diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd7f7667f245..ec168a9276cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,10 +2,10 @@ name: CI on: push: branches: - - master + - master pull_request: branches: - - master + - master merge_group: jobs: @@ -49,6 +49,7 @@ jobs: python tools/ci/illegal_dme_files.py ${GITHUB_WORKSPACE} python tools/ci/define_sanity.py python tools/ci/restrict_file_types.py + python tools/ci/check_map_sizes.py python tools/ci/verify_sql_version.py python tools/ci/no_duplicate_definitions.py python -m tools.ci.check_icon_conflicts @@ -134,9 +135,9 @@ jobs: name: Windows RUSTG Validation runs-on: windows-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.8.2' # Script was made for 3.8.2 - architecture: 'x86' # This MUST be x86 - - run: python tools/ci/validate_rustg_windows.py + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.8.2' # Script was made for 3.8.2 + architecture: 'x86' # This MUST be x86 + - run: python tools/ci/validate_rustg_windows.py diff --git a/_maps/map_files/RandomRuins/SpaceRuins/abandoned_engi_sat.dmm b/_maps/map_files/RandomRuins/SpaceRuins/abandoned_engi_sat.dmm index d528e42a6193..0d2555c7a029 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/abandoned_engi_sat.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/abandoned_engi_sat.dmm @@ -13,6 +13,10 @@ icon_state = "dark" }, /area/ruin/space/abandoned_engi_sat) +"aR" = ( +/mob/living/simple_animal/hostile/carp/megacarp, +/turf/template_noop, +/area/template_noop) "bi" = ( /obj/structure/chair/comfy/black{ dir = 8 @@ -239,6 +243,7 @@ /area/ruin/space/abandoned_engi_sat) "hB" = ( /obj/structure/table, +/obj/item/salvage/ruin/nanotrasen, /turf/simulated/floor/carpet/airless, /area/ruin/space/abandoned_engi_sat) "hE" = ( @@ -567,7 +572,6 @@ "pX" = ( /obj/structure/closet{ icon_state = "eng_secure"; - opened = 1; open_door_sprite = "eng_secure_door"; name = "engineer's locker" }, @@ -577,6 +581,10 @@ /obj/effect/spawner/random_spawners/wall_rusted_always, /turf/simulated/wall/r_wall, /area/ruin/space/abandoned_engi_sat) +"rn" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) "rr" = ( /obj/structure/lattice, /turf/template_noop, @@ -1079,6 +1087,11 @@ name = "floor" }, /area/ruin/space/abandoned_engi_sat) +"Ig" = ( +/obj/structure/table, +/obj/item/salvage/ruin/nanotrasen, +/turf/simulated/floor/plasteel, +/area/ruin/space/abandoned_engi_sat) "Iz" = ( /obj/structure/disposalpipe/segment, /obj/effect/spawner/random_spawners/wall_rusted_always, @@ -1204,6 +1217,10 @@ icon_state = "blue" }, /area/ruin/space/abandoned_engi_sat) +"OW" = ( +/mob/living/simple_animal/hostile/asteroid/hivelord, +/turf/simulated/floor/plating, +/area/ruin/space/abandoned_engi_sat) "OZ" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -1410,6 +1427,11 @@ /obj/structure/bed, /turf/simulated/floor/carpet/airless, /area/ruin/space/abandoned_engi_sat) +"Xq" = ( +/obj/effect/decal/cleanable/dirt, +/mob/living/simple_animal/hostile/asteroid/hivelord, +/turf/simulated/floor/plating, +/area/ruin/space/abandoned_engi_sat) "XP" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, @@ -1550,13 +1572,13 @@ LP "} (2,1,1) = {" LP +rn LP LP LP LP LP -LP -LP +rn LP LP LP @@ -1586,9 +1608,9 @@ LP LP LP LP +rn LP -LP -LP +rn LP LP LP @@ -1780,7 +1802,7 @@ Iz hE LP LP -LP +aR LP LP LP @@ -1974,7 +1996,7 @@ kt eP fA XP -et +OW et Yz CP @@ -2040,7 +2062,7 @@ kZ Tw YE jG -XP +Xq XP Ud fA @@ -2308,7 +2330,7 @@ oL mW NM mW -BR +Ig IC IC ao @@ -2357,11 +2379,11 @@ LP Gi LP LP +rn LP LP LP -LP -LP +rn LP "} (26,1,1) = {" @@ -2427,7 +2449,7 @@ px LP LP LP -LP +rn LP LP LP @@ -2486,7 +2508,7 @@ uQ qu LP LP -LP +rn LP LP LP @@ -2523,7 +2545,7 @@ LP LP LP LP -LP +rn LP LP LP diff --git a/_maps/map_files/RandomRuins/SpaceRuins/asteroid1.dmm b/_maps/map_files/RandomRuins/SpaceRuins/asteroid1.dmm index 4f6c41bba6f3..15199fc7f435 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/asteroid1.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/asteroid1.dmm @@ -8,6 +8,10 @@ "c" = ( /turf/simulated/mineral/random/high_chance, /area/ruin/space/unpowered) +"V" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) (1,1,1) = {" a @@ -83,7 +87,7 @@ a a a a -a +V a a a @@ -158,7 +162,7 @@ c a a a -a +V a a a @@ -220,10 +224,10 @@ a a a a +V a a -a -a +V a a a @@ -254,7 +258,7 @@ a (12,1,1) = {" a a -a +V a a c @@ -322,7 +326,7 @@ a a a a -a +V a a a diff --git a/_maps/map_files/RandomRuins/SpaceRuins/asteroid2.dmm b/_maps/map_files/RandomRuins/SpaceRuins/asteroid2.dmm index cb17b72a6848..10f67de650ef 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/asteroid2.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/asteroid2.dmm @@ -11,6 +11,18 @@ "d" = ( /turf/simulated/mineral/random/high_chance, /area/ruin/space/unpowered) +"t" = ( +/obj/structure/spawner/mining/basilisk, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"R" = ( +/obj/structure/spawner/mining/goliath, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"V" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) (1,1,1) = {" a @@ -105,7 +117,7 @@ a a a b -b +t b c c @@ -367,7 +379,7 @@ b (17,1,1) = {" a a -a +V b a a @@ -388,8 +400,8 @@ a "} (18,1,1) = {" a -a -a +V +V b b a @@ -400,7 +412,7 @@ a b b b -b +R b b b @@ -413,7 +425,7 @@ a a a a -a +V a a a diff --git a/_maps/map_files/RandomRuins/SpaceRuins/asteroid3.dmm b/_maps/map_files/RandomRuins/SpaceRuins/asteroid3.dmm index 6b24021c35a2..869654dfc1ba 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/asteroid3.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/asteroid3.dmm @@ -19,6 +19,17 @@ /obj/item/pickaxe/diamond, /turf/simulated/floor/plating/asteroid/airless, /area/ruin/space/unpowered) +"q" = ( +/turf/simulated/mineral/random/low_chance, +/area/ruin/space/unpowered) +"v" = ( +/obj/structure/spawner/mining/basilisk, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"N" = ( +/obj/structure/spawner/mining/hivelord, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) (1,1,1) = {" a @@ -79,7 +90,7 @@ b d d c -c +q d d d @@ -101,8 +112,8 @@ c d d c -c -d +q +q d d b @@ -115,17 +126,17 @@ b b c c +q +q c c c c c c -c -c -c -d -d +q +q +q d c a @@ -137,16 +148,16 @@ a b c c -c -c -c +q +q +q c c c b c c -c +q c c b @@ -192,7 +203,7 @@ b b c c -b +v b b "} @@ -207,7 +218,7 @@ c c c b -b +N e b b @@ -276,8 +287,8 @@ c c c c -c -c +q +q c d d @@ -292,14 +303,14 @@ a b d d -c -c +q +q c d c -c -c -c +q +q +q c c b @@ -314,12 +325,12 @@ a b d d -c -c -c -c -c -c +q +q +q +q +q +q c c b @@ -337,10 +348,10 @@ b c c c -c -c -c -c +q +q +q +q c c c diff --git a/_maps/map_files/RandomRuins/SpaceRuins/asteroid4.dmm b/_maps/map_files/RandomRuins/SpaceRuins/asteroid4.dmm index 8c13e1375589..e4bef47fe5f4 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/asteroid4.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/asteroid4.dmm @@ -50,6 +50,9 @@ }, /turf/simulated/floor/mineral/titanium/blue, /area/ruin/space/unpowered) +"Q" = ( +/turf/simulated/mineral/random/low_chance, +/area/ruin/space/unpowered) (1,1,1) = {" a @@ -122,7 +125,7 @@ a a b c -c +Q b d d @@ -132,9 +135,9 @@ a a b b +Q b -b -b +Q a a b @@ -154,9 +157,9 @@ a a a a -b -b -b +Q +Q +Q a a a @@ -166,8 +169,8 @@ a a a b -b -b +Q +Q b b d @@ -189,7 +192,7 @@ a a b c -b +Q b b d @@ -211,7 +214,7 @@ a a b b -b +Q b b d @@ -233,8 +236,8 @@ a a a b -b -b +Q +Q b b b @@ -388,9 +391,9 @@ a a a b -b -b -b +Q +Q +Q b b b @@ -408,9 +411,9 @@ a a a a -b -b -b +Q +Q +Q b b a diff --git a/_maps/map_files/RandomRuins/SpaceRuins/asteroid5.dmm b/_maps/map_files/RandomRuins/SpaceRuins/asteroid5.dmm index 7e5a5134d233..313a25539d57 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/asteroid5.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/asteroid5.dmm @@ -11,6 +11,25 @@ "d" = ( /turf/simulated/floor/plating/asteroid/airless, /area/ruin/space/unpowered) +"f" = ( +/obj/structure/spawner/mining/goliath, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"A" = ( +/turf/simulated/mineral/random/low_chance, +/area/ruin/space/unpowered) +"S" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) +"U" = ( +/obj/structure/spawner/mining/basilisk, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"Y" = ( +/obj/structure/spawner/mining/hivelord, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) (1,1,1) = {" a @@ -157,7 +176,7 @@ a a a a -a +S a a a @@ -230,9 +249,9 @@ a c c c -b -b -b +A +A +A b b b @@ -258,7 +277,7 @@ d b b b -b +A b b b @@ -274,8 +293,8 @@ c c c b -b -b +A +A b b b @@ -298,9 +317,9 @@ d d b b -b -b -b +A +A +A b b b @@ -312,8 +331,8 @@ a a a c -c -c +A +A c b b @@ -340,8 +359,8 @@ b c c c -c -b +A +A b b b @@ -354,7 +373,7 @@ a a b c -c +A c b b @@ -369,7 +388,7 @@ b a a a -a +S a a a @@ -380,10 +399,10 @@ b b b c -c -c -c -b +A +A +A +A b c c @@ -396,8 +415,8 @@ a a b b -b -b +A +A b d d @@ -437,8 +456,8 @@ a a b b -b -b +A +A b c d @@ -479,7 +498,7 @@ a a b b -b +A b b d @@ -520,8 +539,8 @@ a a a b -b -b +A +A b d d @@ -562,7 +581,7 @@ a a a b -b +A b c d @@ -591,7 +610,7 @@ d d c d -d +U d b b @@ -679,7 +698,7 @@ d d b b -b +A b a a @@ -721,7 +740,7 @@ d d b b -b +A b b a @@ -762,8 +781,8 @@ d d b b -b -b +A +A c c a @@ -805,7 +824,7 @@ b b c c -b +A c c a @@ -815,7 +834,7 @@ a c c d -d +U d a a @@ -840,14 +859,14 @@ b b b d -d +f d b b b c c -b +A c c a @@ -889,7 +908,7 @@ b b b b -b +A c c a @@ -1263,11 +1282,11 @@ a a a a +S a a a -a -a +S a a a @@ -1337,14 +1356,14 @@ d d d b +A +A +A +A b b -b -b -b -b -a a +S a a a @@ -1361,7 +1380,7 @@ a a a a -a +S a a a @@ -1382,8 +1401,8 @@ b b b b -b -b +A +A c a a @@ -1406,7 +1425,7 @@ a a a a -a +S a a a @@ -1506,7 +1525,7 @@ b b d d -d +Y d b b diff --git a/_maps/map_files/RandomRuins/SpaceRuins/blowntcommsat.dmm b/_maps/map_files/RandomRuins/SpaceRuins/blowntcommsat.dmm index 525a0d85a8a9..a24f340b2aec 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/blowntcommsat.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/blowntcommsat.dmm @@ -199,6 +199,10 @@ icon_state = "dark" }, /area/ruin/space/tcommsat) +"lq" = ( +/mob/living/simple_animal/hostile/syndicate/ranged/space/autogib, +/turf/simulated/floor/plating/airless, +/area/ruin/space/tcommsat) "my" = ( /obj/structure/window/reinforced{ dir = 4 @@ -239,6 +243,7 @@ "oh" = ( /obj/structure/table, /obj/item/taperecorder, +/obj/item/salvage/ruin/nanotrasen, /turf/simulated/floor/plating/airless, /area/ruin/space/tcommsat) "ok" = ( @@ -1978,7 +1983,7 @@ YW hg Wc jv -Wc +lq Wc Wc Wc diff --git a/_maps/map_files/RandomRuins/SpaceRuins/clownmime.dmm b/_maps/map_files/RandomRuins/SpaceRuins/clownmime.dmm index 2a6c21b9737f..26391479a501 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/clownmime.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/clownmime.dmm @@ -81,6 +81,9 @@ }, /turf/simulated/floor/plasteel/airless, /area/ruin/space/unpowered) +"v" = ( +/turf/simulated/mineral/random/high_chance/clown, +/area/ruin/space/unpowered) "x" = ( /obj/effect/mob_spawn/human/corpse/clown, /turf/simulated/floor/plasteel/airless, @@ -204,6 +207,16 @@ }, /turf/simulated/floor/plating/airless, /area/ruin/space/unpowered) +"U" = ( +/turf/simulated/mineral/random/low_chance, +/area/ruin/space/unpowered) +"Y" = ( +/turf/simulated/mineral/random/high_chance, +/area/ruin/space/unpowered) +"Z" = ( +/obj/structure/spawner/mining/hivelord, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) (1,1,1) = {" a @@ -254,8 +267,8 @@ a a a m -m -m +v +v m m m @@ -277,8 +290,8 @@ a a a m -m -m +v +v m m m @@ -299,10 +312,10 @@ a a a a -m -m -m -m +v +v +v +v m m m @@ -321,13 +334,13 @@ a a a a -m -m -m -m -m -m -m +v +U +U +U +U +U +Y m m m @@ -342,14 +355,14 @@ a a a a -m -m -m -m -m -m -m -m +v +v +v +U +U +U +U +U m m m @@ -364,16 +377,16 @@ a a a n +v m m m -m -m -m -m -m -m -m +U +U +U +U +Y +Y m m m @@ -392,9 +405,9 @@ m m m m -m -m -m +Y +U +U m m m @@ -413,14 +426,14 @@ m m m m +Y +Y +Y m m m -m -m -m -n n +Z a a a @@ -435,10 +448,10 @@ m m m m +Y m -m -m -m +Y +Y m m n @@ -528,8 +541,8 @@ m m m m -m -m +v +v m m m @@ -550,10 +563,10 @@ m J b m -m -m -m -m +v +v +v +v m m "} @@ -573,8 +586,8 @@ k b m m -m -m +v +v n m m @@ -595,8 +608,8 @@ K b b m -m -m +v +v n m m diff --git a/_maps/map_files/RandomRuins/SpaceRuins/debris1.dmm b/_maps/map_files/RandomRuins/SpaceRuins/debris1.dmm index 67ff96e0ad2c..4fabbe1c4c7d 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/debris1.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/debris1.dmm @@ -21,6 +21,10 @@ /obj/structure/grille/broken, /turf/space, /area/space) +"f" = ( +/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/space, +/turf/space, +/area/space) "g" = ( /obj/structure/disposalpipe/broken{ dir = 4 @@ -144,6 +148,11 @@ "V" = ( /turf/simulated/wall, /area/space) +"W" = ( +/obj/structure/lattice, +/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/space, +/turf/space, +/area/space) "X" = ( /turf/space, /area/space) @@ -295,7 +304,7 @@ X X y E -X +f E Y X @@ -383,7 +392,7 @@ X X I v -v +W X v t diff --git a/_maps/map_files/RandomRuins/SpaceRuins/debris2.dmm b/_maps/map_files/RandomRuins/SpaceRuins/debris2.dmm index 97bf2280955e..60b4f345c70b 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/debris2.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/debris2.dmm @@ -118,9 +118,7 @@ /area/space) "H" = ( /obj/structure/table, -/obj/item/shard{ - icon_state = "medium" - }, +/obj/item/salvage/ruin/brick, /turf/simulated/floor/plasteel/airless, /area/space) "I" = ( diff --git a/_maps/map_files/RandomRuins/SpaceRuins/debris3.dmm b/_maps/map_files/RandomRuins/SpaceRuins/debris3.dmm index 303bc7dc35d8..fd3877912acc 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/debris3.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/debris3.dmm @@ -134,6 +134,10 @@ /obj/structure/girder/displaced, /turf/space, /area/template_noop) +"Q" = ( +/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/space, +/turf/space, +/area/template_noop) "S" = ( /obj/structure/lattice, /turf/space, @@ -429,7 +433,7 @@ A A B O -A +Q B A M @@ -475,7 +479,7 @@ z H A A -A +Q S A q diff --git a/_maps/map_files/RandomRuins/SpaceRuins/deepstorage.dmm b/_maps/map_files/RandomRuins/SpaceRuins/deepstorage.dmm index 2338e405ac25..c0071384ce9a 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/deepstorage.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/deepstorage.dmm @@ -731,6 +731,7 @@ /obj/structure/chair/office/dark{ dir = 4 }, +/mob/living/simple_animal/hostile/pirate, /turf/simulated/floor/plasteel, /area/ruin/space/unpowered) "bQ" = ( @@ -763,6 +764,7 @@ /area/ruin/space/unpowered) "bV" = ( /obj/structure/chair/office/dark, +/mob/living/simple_animal/hostile/pirate, /turf/simulated/floor/plasteel, /area/ruin/space/unpowered) "bW" = ( @@ -827,12 +829,64 @@ "ce" = ( /turf/simulated/floor/plating/asteroid/airless, /area/ruin/space/unpowered) +"cZ" = ( +/obj/effect/decal/remains/robot, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"iZ" = ( +/turf/simulated/mineral/random/high_chance, +/area/ruin/space/unpowered) +"kM" = ( +/obj/structure/spawner/mining/hivelord, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) "mL" = ( /obj/machinery/tcomms/relay/ruskie{ network_id = "STORAGE-RELAY" }, /turf/simulated/floor/plasteel, /area/ruin/space/unpowered) +"pv" = ( +/obj/machinery/porta_turret/syndicate, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"qn" = ( +/obj/effect/decal/remains/human, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"rb" = ( +/mob/living/simple_animal/hostile/pirate/ranged, +/turf/simulated/floor/plasteel, +/area/ruin/space/unpowered) +"yU" = ( +/obj/structure/spawner/mining/goliath, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"zk" = ( +/obj/structure/chair{ + dir = 8 + }, +/mob/living/simple_animal/hostile/pirate/ranged, +/turf/simulated/floor/plasteel{ + icon_state = "bar" + }, +/area/ruin/space/unpowered) +"KB" = ( +/obj/structure/spawner/mining/basilisk, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"Pm" = ( +/obj/effect/mine/explosive, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"SX" = ( +/obj/structure/flora/ash/rock/style_random, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"To" = ( +/mob/living/simple_animal/hostile/pirate, +/turf/simulated/floor/plasteel, +/area/ruin/space/unpowered) (1,1,1) = {" aa @@ -1132,17 +1186,17 @@ ab ab ab ab +iZ +iZ +iZ +iZ +iZ ab ab ab ab ab -ab -ab -ab -ab -ab -ab +iZ ab ab ab @@ -1203,8 +1257,8 @@ ab ab ab ab -ab -ab +iZ +iZ ab ab ab @@ -1273,6 +1327,7 @@ ab ab ab ab +iZ ab ab ab @@ -1282,11 +1337,10 @@ ab ab ab ab -ab -ab -ab -ab -ab +iZ +iZ +iZ +iZ ab ab ab @@ -1351,17 +1405,17 @@ ab ab ab ab +iZ +iZ +iZ +iZ ab ab ab ab ab ab -ab -ab -ab -ab -ab +iZ ab ab ab @@ -1408,7 +1462,10 @@ ab ab ab ab +ce +ce ab +ce ab ab ab @@ -1417,6 +1474,7 @@ ab ab ab ab +iZ ab ab ab @@ -1426,13 +1484,9 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab +iZ +iZ +iZ ab ab ab @@ -1476,12 +1530,17 @@ ab ab ab ab +ce +ce ab ab +ce +ce ab ab ab ab +iZ ab ab ab @@ -1496,12 +1555,7 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab +iZ ab ab ab @@ -1544,6 +1598,13 @@ ab ab ab ab +ce +ce +ce +ce +ce +ce +ce ab ab ab @@ -1573,14 +1634,7 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab +iZ ab ab ab @@ -1612,14 +1666,14 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab +ce +ce +ce +SX +SX +ce +ce +ce ab ab ab @@ -1680,6 +1734,17 @@ ab ab ab ab +ce +ce +ce +ce +SX +ce +ce +ce +qn +ce +ce ab ab ab @@ -1691,7 +1756,12 @@ ab ab ab ab +ce +ce +kM ab +ce +ce ab ab ab @@ -1703,23 +1773,7 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +iZ ab ab ab @@ -1746,12 +1800,43 @@ ab ab ab ab +ce +ce +ce +ce +qn +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce ab ab ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce ab ab ab @@ -1760,12 +1845,18 @@ ab ab ab ab +iZ ab ab ab ab ab ab +aa +"} +(15,1,1) = {" +aa +aa ab ab ab @@ -1778,14 +1869,46 @@ ab ab ab ab +ce +ce +yU +ce +SX +ce +ce +ce ab +ce +ce +ce ab ab ab +ce +ce +ce +ce +qn +ce +ce +ce +ce +SX +ce +ce +ce ab -ab -ab -ab +ce +ce +ce +ce +qn +ce +SX +ce +ce +ce +ce ab ab ab @@ -1800,63 +1923,132 @@ ab ab aa "} -(15,1,1) = {" +(16,1,1) = {" aa aa ab ab ab ab +iZ +iZ ab +iZ +iZ ab ab ab +ce +ce +ce +ce +ce +ce ab ab +ce +ce +ce +ce ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +SX +ce +ce +ce +ce +ce +ce +ce +ce +ce ab ab ab ab ab +iZ ab ab +iZ ab ab +aa +"} +(17,1,1) = {" +aa ab ab ab ab ab ab +iZ +iZ +iZ ab ab ab ab ab +ce +ce +ce +ce ab ab ab +ce +ce +ce ab ab ab ab +ce +ce +ce +yU +ce +ce +SX +ce +ce +ce ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +SX +SX +ce +ce ab ab ab @@ -1869,18 +2061,7 @@ ab ab aa "} -(16,1,1) = {" -aa -aa -ab -ab -ab -ab -ab -ab -ab -ab -ab +(18,1,1) = {" ab ab ab @@ -1888,19 +2069,36 @@ ab ab ab ab +iZ +iZ ab ab ab ab +ce +ce ab +ce +ce +ce ab ab ab +ce +ce ab ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce ab ab ab @@ -1908,8 +2106,19 @@ ab ab ab ab +ce ab +ce +ce +kM ab +ce +ce +ce +SX +ce +ce +ce ab ab ab @@ -1920,28 +2129,44 @@ ab ab ab ab +"} +(19,1,1) = {" ab ab ab ab ab ab +iZ +iZ +iZ +iZ ab ab ab +ce +ce +ce +ce +ce ab ab ab ab +ce +ce ab ab ab -aa -"} -(17,1,1) = {" -aa ab ab +ce +ce +ce +ce +ce +ce +ce ab ab ab @@ -1951,19 +2176,41 @@ ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce ab ab ab ab ab +iZ ab ab ab ab +"} +(20,1,1) = {" ab ab ab ab +iZ +iZ +iZ +iZ +iZ +iZ +iZ ab ab ab @@ -1975,12 +2222,20 @@ ab ab ab ab +ce +ce ab ab ab ab ab ab +ce +ce +ce +ce +ce +ce ab ab ab @@ -1997,6 +2252,13 @@ ab ab ab ab +ce +ce +ce +ce +ce +ce +ce ab ab ab @@ -2005,13 +2267,8 @@ ab ab ab ab -aa "} -(18,1,1) = {" -ab -ab -ab -ab +(21,1,1) = {" ab ab ab @@ -2020,6 +2277,7 @@ ab ab ab ab +iZ ab ab ab @@ -2033,13 +2291,18 @@ ab ab ab ab +ce +ce +ce ab ab ab ab ab ab +ce ab +ce ab ab ab @@ -2062,6 +2325,9 @@ ab ab ab ab +ce +ce +ce ab ab ab @@ -2070,13 +2336,13 @@ ab ab ab ab +"} +(22,1,1) = {" ab ab ab ab ab -"} -(19,1,1) = {" ab ab ab @@ -2094,17 +2360,25 @@ ab ab ab ab +ce +ce +ce ab ab ab ab ab ab +ce +ce ab ab ab ab +iZ ab +iZ +iZ ab ab ab @@ -2120,6 +2394,9 @@ ab ab ab ab +ce +ce +cZ ab ab ab @@ -2128,6 +2405,8 @@ ab ab ab ab +"} +(23,1,1) = {" ab ab ab @@ -2144,11 +2423,15 @@ ab ab ab ab -"} -(20,1,1) = {" ab ab ab +kM +ce +ce +SX +ce +ce ab ab ab @@ -2161,6 +2444,9 @@ ab ab ab ab +iZ +iZ +iZ ab ab ab @@ -2178,11 +2464,18 @@ ab ab ab ab +ce +ce +ce +ce +ce ab ab ab ab ab +"} +(24,1,1) = {" ab ab ab @@ -2201,9 +2494,17 @@ ab ab ab ab +ce +ce ab +ce +SX +ce +ce ab ab +iZ +iZ ab ab ab @@ -2212,19 +2513,44 @@ ab ab ab ab +iZ +iZ ab -"} -(21,1,1) = {" ab +ac +ac +ac +ac +ac +ac +ac +ac +ac +ac +ac +ac +ac +ac ab +ce +ce +ce +ce +Pm +ce +ce +ce ab ab ab +"} +(25,1,1) = {" ab ab ab ab ab +iZ ab ab ab @@ -2237,10 +2563,17 @@ ab ab ab ab +ce ab ab +ce +ce +qn +ce ab ab +iZ +iZ ab ab ab @@ -2248,25 +2581,69 @@ ab ab ab ab +iZ ab ab ab ab +ac +bg +bj +ac +bx +ar +bG +bO +bU +ar +bZ +ca +ca +ac +ce +ce +Pm +ce +ce +ce +ce +cZ +ce +ce ab ab +"} +(26,1,1) = {" ab ab ab +iZ +iZ +iZ ab ab ab ab +ce +ce +ce +ce +ce +ce ab ab +ce ab +ce +ce +ce +ce +ce ab ab ab +iZ +iZ ab ab ab @@ -2278,274 +2655,111 @@ ab ab ab ab +ac +ar +ar +ac +br +ar +bH +ar +ar +ar +bZ +ca +ca +ac +pv +ce +ce +ce +cZ +ce +ce +ce +ce +ce +ce +ce +"} +(27,1,1) = {" ab ab ab ab -"} -(22,1,1) = {" +iZ +iZ ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce ab +ce +ce +ce +ce ab +ce +ce ab ab +iZ +iZ +iZ +iZ ab ab ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -"} -(23,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ce -ce -ce -ab -ab -ab -ab -ab -"} -(24,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -ac -ac -ac -ac ac ac ac ac ac ac +au ac +bs +by +bI +ar +ar +ar ac +ca +ca ac -ab ce ce ce ce ce +Pm ce ce ce -ab -ab -ab +Pm +ce +ce "} -(25,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +(28,1,1) = {" ab ab ab +iZ +iZ +iZ ab ab -ac -bg -bj -ac -bx -ar -bG -bO -bU -ar -bZ -ca -ca -ac ce ce ce @@ -2556,1134 +2770,151 @@ ce ce ce ce -ab -ab -"} -(26,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -ar -ar -ac -br -ar -bH -ar -ar -ar -bZ -ca -ca -ac -ce -ce -ce -ce -ce -ce -ce -ce -ce -ce -ce -ce -"} -(27,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -ac -ac -ac -ac -ac -au -ac -bs -by -bI -ar -ar -ar -ac -ca -ca -ac -ce -ce -ce -ce -ce -ce -ce -ce -ce -ce -ce -ce -"} -(28,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -aH -aQ -aY -ac -ar -ar -ac -mL -ar -ar -ar -ar -bX -ac -cb -ca -cd -ce -ce -ce -ce -ab -ab -ab -ce -ce -ce -ce -ce -"} -(29,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -aI -aR -aZ -au -ar -ar -ac -ar -ar -ar -ar -bV -bW -ac -cc -ca -cd -ce -ce -ce -ce -ab -ab -ab -ab ce ce -ce -ce -"} -(30,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -aJ -aS -ba -ac -ar -ar -au -ar -ar -ar -bP -ar -bY -ac -ac -ac -ac -ce -ce -ab -ab -ab -ab -ab -ab -ab -ab -ce -ce -"} -(31,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -ac -ac -ac -ac -ac -bh -ar -ac -bu -bz -bJ -bQ -bW -bQ -ac -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -"} -(32,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -av -aK -aT -bb -ac -ar -ar -ac -ac -ac -ac -ac -ac -ac -ac -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -"} -(33,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -aw -aL -aU -aU -be -ar -ar -ar -ar -bA -bK -bR -ac -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa -"} -(34,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -ac -ac -ac -ac -ac -ar -ar -ar -ar -bB -bB -bS -ac -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa -"} -(35,1,1) = {" -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -ax -aM -aV -ac -bf -ar -bk -ac -ar -bC -bL -bB -ac -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa -"} -(36,1,1) = {" -aa -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -ay -ar -ar -bc -ar -ar -bl -ac -ar -bD -bM -bB -ac -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa -"} -(37,1,1) = {" -aa -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -az -ar -ar -bc -ar -ar -bm -ac -ar -bE -bE -bB -ac -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa -"} -(38,1,1) = {" -aa -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -aA -ar -ar -au -ar -ar -bn -ac -ar -ar -ar -ar -ac -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa -"} -(39,1,1) = {" -aa -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -aB -ar -ar -bc -ar -ar -ar -ar -ar -ar -ar -ar -ac -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa -aa -"} -(40,1,1) = {" -aa -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ac -aC -ar -ar -bc -ar -bi -ar -ar -bv -bF -bN -bT -ac -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa -aa -"} -(41,1,1) = {" -aa -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +ce ab ab +ce +ce ab ab ab ab +iZ +iZ +iZ ab ab ab ab ab ac +aH +aQ +aY ac +ar +ar ac +mL +ar +ar +ar +ar +bX ac -ac -aD -aN -aW -ac -au -ac -ac -au -ac -ac -ac -ac -ac -ab +cb +ca +cd +ce +ce +Pm +ce +ce +ce +ce +ce +ce +ce +ce +ce +"} +(29,1,1) = {" ab ab ab +iZ +iZ ab ab ab +ce +ce +ce +ce +ce +yU +ce +qn +ce +ce +ce +ce +ce ab ab +ce +ce ab ab ab ab ab ab -aa -aa -"} -(42,1,1) = {" -aa ab ab ab ab ab ab +ac +aI +aR +aZ +au +ar +ar +ac +ar +ar +ar +ar +bV +bW +ac +cc +ca +cd +ce +ce +ce +ce +ce +ce +ce ab +ce +ce +ce +ce +"} +(30,1,1) = {" ab ab ab +iZ ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce ab +ce ab ab ab ab +ce ab ab ab @@ -3697,64 +2928,62 @@ ab ab ab ac -ad -aj -ap -ac -ac +aJ +aS +ba ac +ar +ar +au +ar +ar +ar +bP +ar +bY ac ac -ar ac -bp -ar -bw ac +ce +ce ab ab +ce +ce ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa +ce +ce "} -(43,1,1) = {" -aa -aa -ab -ab -ab -ab -ab -ab -ab -ab +(31,1,1) = {" ab ab ab +iZ +iZ ab ab ab ab +ce +ce +ce +ce +ce +SX +SX +ce +ce ab +ce ab ab ab ab +ce ab ab ab @@ -3762,23 +2991,25 @@ ab ab ab ab +iZ ab ab ab ac -ae -ak -aq ac -aE -aO -aX -aX -ar ac -bo +ac +ac +ac +bh ar -bo +ac +bu +bz +bJ +bQ +bW +bQ ac ab ab @@ -3787,30 +3018,16 @@ ab ab ab ab +ce +ce ab ab ab ab ab ab -ab -ab -ab -ab -ab -ab -aa "} -(44,1,1) = {" -aa -aa -ab -ab -ab -ab -ab -ab -ab +(32,1,1) = {" ab ab ab @@ -3821,33 +3038,47 @@ ab ab ab ab +ce +ce +ce +SX +SX +ce +ce +ce +ce ab ab ab ab +ce +ce ab ab ab ab ab ab +iZ +iZ ab ab ab ac -af -al -ar -au -ar -ar -ar +av +aK +aT +bb +ac ar ar ac -bo -ar -bo +ac +ac +ac +ac +ac +ac ac ab ab @@ -3856,28 +3087,16 @@ ab ab ab ab +ce +ce ab ab ab ab ab ab -ab -ab -ab -ab -ab -ab -aa "} -(45,1,1) = {" -aa -aa -ab -ab -ab -ab -ab +(33,1,1) = {" ab ab ab @@ -3889,34 +3108,44 @@ ab ab ab ab +ce +ce +ce ab ab +ce +ce +ce ab ab ab ab +ce +ce +ce ab ab ab ab ab +iZ +iZ ab ab ab ac -ag -am +aw +aL +aU +aU +be ar -ac -aF -aF -aF ar ar -ac -bp ar -bw +bA +bK +bR ac ab ab @@ -3927,11 +3156,8 @@ ab ab ab ab -ab -ab -ab -ab -ab +ce +ce ab ab ab @@ -3939,12 +3165,7 @@ ab ab aa "} -(46,1,1) = {" -aa -aa -ab -ab -ab +(34,1,1) = {" ab ab ab @@ -3959,6 +3180,9 @@ ab ab ab ab +ce +ce +ce ab ab ab @@ -3966,26 +3190,31 @@ ab ab ab ab +ce +ce ab ab ab +iZ +iZ +iZ +iZ ab ab ab ac -ah -an -as ac -aF -aF -aF -bd -bd ac ac ac ac +ar +ar +ar +ar +bB +bB +bS ac ab ab @@ -3996,11 +3225,8 @@ ab ab ab ab -ab -ab -ab -ab -ab +ce +ce ab ab ab @@ -4008,10 +3234,7 @@ ab ab aa "} -(47,1,1) = {" -aa -aa -ab +(35,1,1) = {" ab ab ab @@ -4035,22 +3258,32 @@ ab ab ab ab +ce +ce +ce +ce ab ab +iZ +iZ +iZ ab ab ab ab ac -ai -ao -at +ax +aM +aV ac -aG -aG -aG -bd -bd +bf +ar +bk +ac +ar +bC +bL +bB ac ab ab @@ -4061,15 +3294,8 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +ce +ce ab ab ab @@ -4077,8 +3303,7 @@ ab ab aa "} -(48,1,1) = {" -aa +(36,1,1) = {" aa ab ab @@ -4102,28 +3327,33 @@ ab ab ab ab +ce +ce +ab +ce ab ab ab ab +iZ ab ab ab ab ac +ay +ar +ar +bc +ar +ar +bl ac +ar +bD +bM +bB ac -ac -ac -aG -aP -aG -bd -bd -ac -ab -ab -ab ab ab ab @@ -4134,22 +3364,22 @@ ab ab ab ab +ce +ce ab ab ab ab +aa +"} +(37,1,1) = {" +aa ab ab ab ab ab ab -aa -"} -(49,1,1) = {" -aa -aa -aa ab ab ab @@ -4165,7 +3395,11 @@ ab ab ab ab +ce +ce +ce ab +ce ab ab ab @@ -4175,26 +3409,40 @@ ab ab ab ab +ac +az +ar +ar +bc +ar +rb +bm +ac +ar +bE +zk +bB +ac ab ab ab +iZ ab ab ab ab ab -ac -ac -ac -ac -ac -ac -ac ab +ce +ce ab ab ab ab +aa +"} +(38,1,1) = {" +aa ab ab ab @@ -4213,15 +3461,13 @@ ab ab ab ab -aa -"} -(50,1,1) = {" -aa -aa -aa ab ab +ce ab +ce +ce +ce ab ab ab @@ -4232,18 +3478,40 @@ ab ab ab ab +ac +aA +ar +To +au +ar +ar +bn +ac +ar +ar +ar +ar +ac ab ab ab +iZ +iZ ab ab ab ab +ce +ce ab ab ab ab ab +aa +"} +(39,1,1) = {" +aa ab ab ab @@ -4257,12 +3525,18 @@ ab ab ab ab +iZ ab ab ab ab ab ab +ce +ce +ce +ce +ce ab ab ab @@ -4273,20 +3547,39 @@ ab ab ab ab +ac +aB +ar +ar +bc +ar +ar +ar +ar +ar +ar +ar +ar +ac ab ab +iZ +iZ +iZ ab ab ab ab +ce +ce ab ab ab ab -"} -(51,1,1) = {" aa aa +"} +(40,1,1) = {" aa ab ab @@ -4296,7 +3589,23 @@ ab ab ab ab +iZ +iZ +ab ab +iZ +ab +ab +ab +ab +ab +ab +ab +ce +ce +ce +ce +ce ab ab ab @@ -4307,16 +3616,40 @@ ab ab ab ab +ac +aC +ar +ar +bc +ar +bi +ar +ar +bv +bF +bN +bT +ac ab ab +iZ +iZ +iZ ab ab ab ab +ce +ce ab ab ab ab +aa +aa +"} +(41,1,1) = {" +aa ab ab ab @@ -4326,6 +3659,10 @@ ab ab ab ab +iZ +iZ +iZ +iZ ab ab ab @@ -4333,30 +3670,54 @@ ab ab ab ab +ce ab +ce +ce +ce ab ab ab ab ab ab +ac +ac +ac +ac +ac +aD +aN +aW +ac +au +ac +ac +au +ac +ac +ac +ac +ac ab ab +iZ ab ab ab ab ab ab +ce +ce ab ab ab ab -"} -(52,1,1) = {" -aa aa aa +"} +(42,1,1) = {" aa ab ab @@ -4366,6 +3727,10 @@ ab ab ab ab +iZ +iZ +iZ +iZ ab ab ab @@ -4373,13 +3738,33 @@ ab ab ab ab +ce +ce ab +ce +ce +ce ab ab ab ab ab ab +ac +ad +aj +ap +ac +ac +ac +ac +ac +ar +ac +bp +ar +bw +ac ab ab ab @@ -4391,12 +3776,19 @@ ab ab ab ab +ce +ce ab ab ab ab ab ab +aa +"} +(43,1,1) = {" +aa +aa ab ab ab @@ -4404,6 +3796,8 @@ ab ab ab ab +iZ +iZ ab ab ab @@ -4411,23 +3805,35 @@ ab ab ab ab +ce +ce +ce +ce +ce ab +ce +ce ab ab ab ab ab ab -ab -ab -ab -"} -(53,1,1) = {" -aa -aa -aa -aa -ab +ac +ae +ak +aq +ac +aE +aO +aX +aX +ar +ac +bo +ar +bo +ac ab ab ab @@ -4439,12 +3845,19 @@ ab ab ab ab +ce +ce ab ab ab ab ab ab +aa +"} +(44,1,1) = {" +aa +aa ab ab ab @@ -4453,6 +3866,7 @@ ab ab ab ab +iZ ab ab ab @@ -4460,13 +3874,35 @@ ab ab ab ab +ce +ce +ce +ce +ce ab ab +ce +ce ab ab ab ab ab +ac +af +al +ar +au +ar +ar +ar +ar +ar +ac +bo +ar +bo +ac ab ab ab @@ -4477,12 +3913,20 @@ ab ab ab ab +ce +ce +ce ab ab ab ab ab ab +aa +"} +(45,1,1) = {" +aa +aa ab ab ab @@ -4490,25 +3934,44 @@ ab ab ab ab -"} -(54,1,1) = {" -aa -aa -aa -aa +iZ +iZ ab ab ab ab ab ab +ce +ce +SX +ce +ce +ce ab ab +ce +ce ab ab ab ab ab +ac +ag +am +ar +ac +aF +aF +aF +ar +To +ac +bp +ar +bw +ac ab ab ab @@ -4518,6 +3981,9 @@ ab ab ab ab +ce +ce +ce ab ab ab @@ -4525,6 +3991,11 @@ ab ab ab ab +aa +"} +(46,1,1) = {" +aa +aa ab ab ab @@ -4540,30 +4011,58 @@ ab ab ab ab +ce +SX +SX +ce +ce ab ab ab +ce +ce +ce ab ab ab ab +ac +ah +an +as +ac +aF +aF +aF +bd +bd +ac +ac +ac +ac +ac ab ab ab ab +iZ +iZ ab ab ab +ce +ce +ce ab ab ab +iZ +iZ ab ab -"} -(55,1,1) = {" -aa -aa aa +"} +(47,1,1) = {" aa aa ab @@ -4580,25 +4079,61 @@ ab ab ab ab +ce +ce +ce +ce +qn +ce ab ab ab +ce +ce +ce ab ab ab ab +ac +ai +ao +at +ac +aG +aG +aG +bd +bd +ac ab ab ab ab ab +iZ +iZ +iZ +iZ +iZ ab ab ab +ce +ce ab ab +iZ +iZ +iZ +iZ ab ab +aa +"} +(48,1,1) = {" +aa +aa ab ab ab @@ -4613,36 +4148,63 @@ ab ab ab ab +ce +ce +ce +ce +ce +ce ab ab ab ab +ce +ce +ce ab ab ab +ac +ac +ac +ac +ac +aG +aP +aG +bd +bd +ac ab ab ab ab ab +iZ +iZ +iZ +iZ ab ab ab -"} -(56,1,1) = {" -aa -aa -aa -aa -aa -ab -ab -ab -ab +ce +ce +ce +ab ab ab +iZ +iZ +iZ ab ab +aa +"} +(49,1,1) = {" +aa +aa +aa +ab ab ab ab @@ -4655,25 +4217,47 @@ ab ab ab ab +ce +ce +ce +yU +ce +ce ab ab ab ab +ce +ce +ce +ce ab ab ab ab ab ab +ac +ac +ac +ac +ac +ac +ac ab ab ab ab ab +iZ +iZ +iZ ab ab ab ab +ce +ce ab ab ab @@ -4683,6 +4267,12 @@ ab ab ab ab +aa +"} +(50,1,1) = {" +aa +aa +aa ab ab ab @@ -4696,18 +4286,21 @@ ab ab ab ab +ce +qn +ce +ce +ce +ce ab -"} -(57,1,1) = {" -aa -aa -aa -aa -aa ab ab ab ab +ce +ce +ce +ce ab ab ab @@ -4724,11 +4317,16 @@ ab ab ab ab +iZ +iZ ab ab ab ab ab +ce +ce +ce ab ab ab @@ -4739,6 +4337,11 @@ ab ab ab ab +"} +(51,1,1) = {" +aa +aa +aa ab ab ab @@ -4752,12 +4355,22 @@ ab ab ab ab +ce +ce +ce +ce +ce +ce ab ab ab ab ab ab +ce +ce +ce +ce ab ab ab @@ -4765,14 +4378,6 @@ ab ab ab ab -aa -"} -(58,1,1) = {" -aa -aa -aa -aa -aa ab ab ab @@ -4788,6 +4393,9 @@ ab ab ab ab +ce +ce +ce ab ab ab @@ -4798,17 +4406,30 @@ ab ab ab ab +"} +(52,1,1) = {" +aa +aa +aa +aa ab ab ab ab ab ab +iZ +iZ ab ab ab ab ab +ce +ce +ce +ce +ce ab ab ab @@ -4816,6 +4437,10 @@ ab ab ab ab +ce +ce +ce +ce ab ab ab @@ -4823,6 +4448,7 @@ ab ab ab ab +iZ ab ab ab @@ -4834,17 +4460,10 @@ ab ab ab ab -aa -"} -(59,1,1) = {" -aa -aa -aa -aa -aa -aa -aa ab +ce +ce +ce ab ab ab @@ -4856,6 +4475,12 @@ ab ab ab ab +"} +(53,1,1) = {" +aa +aa +aa +aa ab ab ab @@ -4863,6 +4488,7 @@ ab ab ab ab +iZ ab ab ab @@ -4870,6 +4496,9 @@ ab ab ab ab +ce +ce +ce ab ab ab @@ -4878,11 +4507,19 @@ ab ab ab ab +ce +SX +SX +ce +ce ab ab ab ab ab +iZ +iZ +iZ ab ab ab @@ -4893,22 +4530,22 @@ ab ab ab ab +ce +ce +ce ab ab ab ab ab ab +iZ ab ab ab ab -aa "} -(60,1,1) = {" -aa -aa -aa +(54,1,1) = {" aa aa aa @@ -4919,6 +4556,9 @@ ab ab ab ab +iZ +iZ +iZ ab ab ab @@ -4926,6 +4566,8 @@ ab ab ab ab +ce +ce ab ab ab @@ -4935,33 +4577,66 @@ ab ab ab ab +ce +SX +ce +ce +ce +ce ab ab ab ab +iZ +iZ +iZ ab ab ab ab +ce +ce +ce +SX +SX +SX +ce ab ab ab ab +iZ ab +iZ +iZ ab ab ab ab +"} +(55,1,1) = {" +aa +aa +aa +aa +aa ab ab ab ab ab +iZ +iZ +iZ +iZ ab ab ab ab ab +ce +ce +ce ab ab ab @@ -4971,41 +4646,66 @@ ab ab ab ab -aa -aa -"} -(61,1,1) = {" -aa -aa -aa -aa -aa -aa -aa +ab +ce +ce +ce +ce +ce +ab ab ab +iZ +iZ +iZ ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce ab ab ab ab +iZ +iZ +iZ +iZ +iZ ab ab ab +"} +(56,1,1) = {" +aa +aa +aa +aa +aa ab ab ab ab ab ab +iZ +iZ +iZ ab ab ab ab ab +ce +ce +ce ab ab ab @@ -5013,24 +4713,51 @@ ab ab ab ab +ce +ce ab +ce +ce +ce +ce +ce +ce ab ab +iZ ab ab ab ab ab +ce +ce +qn +ce +ce +ce +ce +ce +ce ab ab ab ab ab ab +iZ +iZ ab ab ab ab +"} +(57,1,1) = {" +aa +aa +aa +aa +aa ab ab ab @@ -5038,27 +4765,32 @@ ab ab ab ab +iZ +iZ ab ab -aa -aa -"} -(62,1,1) = {" -aa -aa -aa -aa -aa -aa -aa ab ab ab +ce +ce +ce ab ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +SX +ce +ce +ce ab ab ab @@ -5067,14 +4799,34 @@ ab ab ab ab +KB +ce +ce +ce +SX +ce +ce +ce +ce ab ab ab ab +iZ +iZ +iZ ab ab ab ab +aa +"} +(58,1,1) = {" +aa +aa +aa +aa +aa ab ab ab @@ -5082,16 +4834,32 @@ ab ab ab ab +iZ ab ab ab ab ab +ce +ce +ce ab ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +SX +ce +ce +ce +ce ab ab ab @@ -5100,19 +4868,29 @@ ab ab ab ab +ce +ce +SX +SX +SX +ce +ce +ce +ce ab ab ab ab ab ab +iZ +iZ ab ab ab aa -aa "} -(63,1,1) = {" +(59,1,1) = {" aa aa aa @@ -5130,15 +4908,44 @@ ab ab ab ab +ce +ce +ab +ce +ab ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +SX +SX +ce +ce +ce +ab ab ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce ab ab ab @@ -5150,6 +4957,16 @@ ab ab ab ab +aa +"} +(60,1,1) = {" +aa +aa +aa +aa +aa +aa +aa ab ab ab @@ -5158,16 +4975,46 @@ ab ab ab ab +ce +ce +ce +ce +ce ab ab ab ab ab ab +ce +ce +ce +KB +ce +ce +SX +ce +ce +ce +ce +ce +ce ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce +ce +qn +ce +ce ab ab ab @@ -5181,7 +5028,7 @@ ab aa aa "} -(64,1,1) = {" +(61,1,1) = {" aa aa aa @@ -5195,14 +5042,48 @@ ab ab ab ab +ce +ce +ce +ce +ce +ce +ce ab ab ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce ab ab +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +KB ab ab ab @@ -5213,13 +5094,29 @@ ab ab ab ab +aa +aa +"} +(62,1,1) = {" +aa +aa +aa +aa +aa +aa +aa ab ab ab ab ab +ce +ce ab +ce ab +ce +ce ab ab ab @@ -5228,11 +5125,33 @@ ab ab ab ab +ce +ce +ce +qn +ce +ce ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce +ce ab ab +ce +ce +ce +ce +ce +ce +ce ab ab ab @@ -5244,13 +5163,10 @@ ab ab ab ab -ab -ab -aa aa aa "} -(65,1,1) = {" +(63,1,1) = {" aa aa aa @@ -5263,15 +5179,27 @@ ab ab ab ab +ce ab +ce +ce +ce +ce ab ab ab ab ab ab +iZ ab ab +ce +ce +ce +qn +ce +ce ab ab ab @@ -5279,6 +5207,10 @@ ab ab ab ab +ce +ce +ce +ce ab ab ab @@ -5300,26 +5232,11 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa aa aa "} -(66,1,1) = {" +(64,1,1) = {" +aa aa aa aa @@ -5331,6 +5248,11 @@ ab ab ab ab +ce +ce +ce +ce +ce ab ab ab @@ -5338,9 +5260,15 @@ ab ab ab ab +iZ ab ab ab +ce +ce +ce +ce +ce ab ab ab @@ -5349,20 +5277,8 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +ce +ce ab ab ab @@ -5388,7 +5304,8 @@ aa aa aa "} -(67,1,1) = {" +(65,1,1) = {" +aa aa aa aa @@ -5400,6 +5317,11 @@ ab ab ab ab +ce +ce +ce +ce +ce ab ab ab @@ -5407,9 +5329,14 @@ ab ab ab ab +iZ ab ab ab +ce +ce +ce +ce ab ab ab @@ -5419,19 +5346,8 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +ce +ce ab ab ab @@ -5457,9 +5373,10 @@ aa aa aa "} -(68,1,1) = {" -aa -aa +(66,1,1) = {" +aa +aa +aa aa aa aa @@ -5469,6 +5386,9 @@ ab ab ab ab +ce +ce +ce ab ab ab @@ -5476,6 +5396,9 @@ ab ab ab ab +iZ +iZ +iZ ab ab ab @@ -5491,6 +5414,9 @@ ab ab ab ab +ce +ce +ce ab ab ab @@ -5503,6 +5429,7 @@ ab ab ab ab +iZ ab ab ab @@ -5511,22 +5438,12 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -aa aa aa aa "} -(69,1,1) = {" +(67,1,1) = {" +aa aa aa aa @@ -5548,6 +5465,8 @@ ab ab ab ab +iZ +iZ ab ab ab @@ -5564,6 +5483,9 @@ ab ab ab ab +ce +ce +ce ab ab ab @@ -5576,15 +5498,10 @@ ab ab ab ab +iZ ab -ab -ab -ab -ab -ab -ab -ab -ab +iZ +iZ ab ab ab @@ -5593,9 +5510,9 @@ ab aa aa aa -aa "} -(70,1,1) = {" +(68,1,1) = {" +aa aa aa aa @@ -5618,6 +5535,10 @@ ab ab ab ab +iZ +iZ +iZ +iZ ab ab ab @@ -5629,6 +5550,10 @@ ab ab ab ab +ce +ce +ce +ce ab ab ab @@ -5640,20 +5565,11 @@ ab ab ab ab +iZ ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +iZ +iZ +iZ ab ab ab @@ -5664,7 +5580,8 @@ aa aa aa "} -(71,1,1) = {" +(69,1,1) = {" +aa aa aa aa @@ -5701,6 +5618,10 @@ ab ab ab ab +ce +ce +ce +ce ab ab ab @@ -5713,15 +5634,10 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +iZ +iZ +iZ +iZ ab ab ab @@ -5733,7 +5649,7 @@ aa aa aa "} -(72,1,1) = {" +(70,1,1) = {" aa aa aa @@ -5749,6 +5665,9 @@ ab ab ab ab +ce +ce +ce ab ab ab @@ -5767,6 +5686,9 @@ ab ab ab ab +ce +ce +ce ab ab ab @@ -5781,16 +5703,10 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +iZ +iZ +iZ +iZ ab ab ab @@ -5802,7 +5718,8 @@ aa aa aa "} -(73,1,1) = {" +(71,1,1) = {" +aa aa aa aa @@ -5816,6 +5733,16 @@ ab ab ab ab +ce +ce +ce +ce +ce +ce +ab +ab +ab +ab ab ab ab @@ -5826,7 +5753,10 @@ ab ab ab ab +ce +ce ab +ce ab ab ab @@ -5841,7 +5771,10 @@ ab ab ab ab +iZ +iZ ab +iZ ab ab ab @@ -5849,14 +5782,34 @@ ab ab ab ab +aa +aa +aa +aa +"} +(72,1,1) = {" +aa +aa +aa +aa ab ab ab +iZ +iZ ab ab ab ab ab +ce +ce +ce +ce +ce +ce +ce +ce ab ab ab @@ -5866,15 +5819,12 @@ ab ab ab ab -aa -aa -aa -aa -"} -(74,1,1) = {" -aa -aa -aa +ce +ce +ce +ce +ce +ce ab ab ab @@ -5893,6 +5843,7 @@ ab ab ab ab +iZ ab ab ab @@ -5900,16 +5851,48 @@ ab ab ab ab +aa +aa +aa +aa +"} +(73,1,1) = {" +aa +aa +aa +ab +ab +ab +iZ +iZ +iZ ab ab ab ab +ce +ce +ce +KB +ce +qn +ce +ce +ce +ce +ce ab ab ab ab ab +ce +ce +ce ab +ce +ce +ce ab ab ab @@ -5918,6 +5901,7 @@ ab ab ab ab +iZ ab ab ab @@ -5928,6 +5912,7 @@ ab ab ab ab +iZ ab ab ab @@ -5940,7 +5925,7 @@ aa aa aa "} -(75,1,1) = {" +(74,1,1) = {" aa aa aa @@ -5948,6 +5933,35 @@ ab ab ab ab +iZ +iZ +ab +ab +ab +ab +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ce +ab ab ab ab @@ -5955,6 +5969,9 @@ ab ab ab ab +iZ +iZ +iZ ab ab ab @@ -5972,12 +5989,44 @@ ab ab ab ab +aa +aa +aa +aa +"} +(75,1,1) = {" +aa +aa +aa +ab +ab +iZ +iZ +ab +iZ ab ab ab ab +ce +ce +SX +SX +ce +ce +ce +ce +ce ab ab +ce +ce +ce +ce +ce +KB +ce +ce ab ab ab @@ -5989,6 +6038,11 @@ ab ab ab ab +iZ +iZ +iZ +iZ +iZ ab ab ab @@ -6023,8 +6077,16 @@ ab ab ab ab +ce +ce +ce +ce +ce +ce ab ab +ce +ce ab ab ab @@ -6045,20 +6107,12 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +iZ +iZ +iZ +iZ +iZ +iZ ab ab ab @@ -6122,12 +6176,12 @@ ab ab ab ab +iZ +iZ ab ab -ab -ab -ab -ab +iZ +iZ ab ab ab @@ -6241,10 +6295,10 @@ ab ab ab ab +iZ +iZ ab -ab -ab -ab +iZ ab ab ab @@ -6296,24 +6350,24 @@ ab ab ab ab +iZ +iZ +iZ ab ab +iZ +iZ +iZ ab ab ab ab ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab -ab +iZ +iZ +iZ +iZ +iZ ab ab ab @@ -6367,6 +6421,11 @@ ab ab ab ab +iZ +iZ +iZ +iZ +iZ ab ab ab @@ -6376,12 +6435,7 @@ ab ab ab ab -ab -ab -ab -ab -ab -ab +iZ ab ab ab diff --git a/_maps/map_files/RandomRuins/SpaceRuins/derelict1.dmm b/_maps/map_files/RandomRuins/SpaceRuins/derelict1.dmm index 5d159c28d40d..65aa7ffc7b5b 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/derelict1.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/derelict1.dmm @@ -73,6 +73,25 @@ /obj/structure/alien/weeds, /obj/structure/bed/nest, /obj/effect/decal/remains/xeno, +/mob/living/simple_animal/hostile/alien, +/turf/simulated/floor/plating/airless, +/area/ruin/space/unpowered) +"F" = ( +/obj/structure/alien/weeds/node, +/mob/living/simple_animal/hostile/alien/maid, +/turf/simulated/floor/plating/airless, +/area/ruin/space/unpowered) +"G" = ( +/obj/structure/alien/weeds, +/obj/structure/bed/nest, +/mob/living/simple_animal/hostile/alien, +/turf/simulated/floor/plating/airless, +/area/ruin/space/unpowered) +"S" = ( +/obj/structure/alien/weeds, +/obj/structure/bed/nest, +/obj/effect/decal/remains/human, +/mob/living/simple_animal/hostile/alien, /turf/simulated/floor/plating/airless, /area/ruin/space/unpowered) @@ -680,7 +699,7 @@ b b k f -i +G f c m @@ -810,7 +829,7 @@ c f c f -j +S f c f @@ -1015,7 +1034,7 @@ b c i f -h +F f f c diff --git a/_maps/map_files/RandomRuins/SpaceRuins/derelict2.dmm b/_maps/map_files/RandomRuins/SpaceRuins/derelict2.dmm index b2789d61ecab..d3c8d514d032 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/derelict2.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/derelict2.dmm @@ -34,21 +34,9 @@ /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, /area/ruin/space/powered) -"h" = ( -/obj/machinery/light/small{ - dir = 1 - }, -/turf/simulated/floor/plasteel, -/area/ruin/space/powered) "i" = ( /turf/simulated/floor/plasteel, /area/ruin/space/powered) -"j" = ( -/obj/machinery/light/small{ - dir = 4 - }, -/turf/simulated/floor/plasteel, -/area/ruin/space/powered) "k" = ( /obj/structure/window/reinforced, /turf/template_noop, @@ -65,6 +53,7 @@ dir = 4 }, /obj/effect/decal/remains/human, +/mob/living/simple_animal/hostile/retaliate/ghost, /turf/simulated/floor/plasteel, /area/ruin/space/powered) "n" = ( @@ -78,6 +67,7 @@ /obj/item/trash/plate{ pixel_x = -10 }, +/obj/item/food/snacks/burger/ghost, /turf/simulated/floor/plasteel, /area/ruin/space/powered) "o" = ( @@ -85,6 +75,7 @@ dir = 8 }, /obj/effect/decal/remains/human, +/mob/living/simple_animal/hostile/retaliate/ghost, /turf/simulated/floor/plasteel, /area/ruin/space/powered) "p" = ( @@ -94,13 +85,11 @@ /turf/template_noop, /area/space/nearstation) "q" = ( -/obj/machinery/light/small{ - dir = 8 - }, +/obj/structure/cult/functional/pylon, /turf/simulated/floor/plasteel, /area/ruin/space/powered) "r" = ( -/obj/machinery/light/small, +/obj/item/salvage/ruin/tablet, /turf/simulated/floor/plasteel, /area/ruin/space/powered) @@ -840,7 +829,7 @@ i i i i -q +i f a a @@ -877,12 +866,12 @@ a a a f -h -i i +q i i i +q i f a @@ -924,7 +913,7 @@ i i m i -i +r i g b @@ -1004,7 +993,7 @@ d d g i -i +r i o i @@ -1046,12 +1035,12 @@ a a f i +q i i i +q i -i -r f a a @@ -1088,7 +1077,7 @@ a a a f -j +i i i i diff --git a/_maps/map_files/RandomRuins/SpaceRuins/derelict3.dmm b/_maps/map_files/RandomRuins/SpaceRuins/derelict3.dmm index edb61980dc57..ce096c1198b7 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/derelict3.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/derelict3.dmm @@ -12,6 +12,49 @@ /obj/structure/lattice, /turf/template_noop, /area/space/nearstation) +"h" = ( +/obj/item/grenade/jaunter_grenade, +/turf/simulated/floor/plating/airless, +/area/ruin/space/unpowered) +"l" = ( +/obj/structure/lattice, +/mob/living/simple_animal/hostile/carp/megacarp, +/turf/template_noop, +/area/space/nearstation) +"m" = ( +/obj/item/salvage/ruin/tablet, +/turf/simulated/floor/plating/airless, +/area/ruin/space/unpowered) +"n" = ( +/obj/structure/lattice, +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/space/nearstation) +"s" = ( +/mob/living/simple_animal/hostile/carp/megacarp, +/turf/simulated/floor/plating/airless, +/area/ruin/space/unpowered) +"w" = ( +/mob/living/simple_animal/hostile/megafauna/dragon/space_dragon, +/obj/effect/decal/remains/human, +/turf/simulated/floor/plating/airless, +/area/ruin/space/unpowered) +"x" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) +"F" = ( +/obj/effect/decal/remains/human, +/turf/simulated/floor/plating/airless, +/area/ruin/space/unpowered) +"O" = ( +/mob/living/simple_animal/hostile/carp, +/turf/simulated/floor/plating/airless, +/area/ruin/space/unpowered) +"X" = ( +/obj/item/survivalcapsule/luxury, +/turf/simulated/floor/plating/airless, +/area/ruin/space/unpowered) (1,1,1) = {" a @@ -109,7 +152,7 @@ a a a a -a +x a a a @@ -239,7 +282,7 @@ a a a a -a +x a a a @@ -257,7 +300,7 @@ d b b b -b +X b c a @@ -298,8 +341,8 @@ a d d d -b -b +h +F b c a @@ -328,7 +371,7 @@ a a a a -a +x a a a @@ -358,7 +401,7 @@ a a a a -a +x a a a @@ -479,7 +522,7 @@ a a a a -a +x a a a @@ -535,7 +578,7 @@ a a a a -a +x a a a @@ -609,7 +652,7 @@ a a a a -a +x a a a @@ -639,7 +682,7 @@ a a a a -a +x a a "} @@ -658,7 +701,7 @@ a a a a -a +x a a a @@ -703,7 +746,7 @@ a a a d -d +n b b c @@ -750,7 +793,7 @@ b b c b -b +m b d a @@ -788,11 +831,11 @@ d d b b -b +F b c b -b +F b d a @@ -827,7 +870,7 @@ a d d b -d +l b c c @@ -860,7 +903,7 @@ a a a a -a +x a a d @@ -913,9 +956,9 @@ d d d b +F b -b -b +O b b d @@ -928,7 +971,7 @@ a a a a -a +x a a a @@ -947,7 +990,7 @@ a a b b -b +O b b b @@ -955,7 +998,7 @@ d d d b -b +m b b d @@ -988,11 +1031,11 @@ a a b b -b +O b c b -b +m d d d @@ -1000,7 +1043,7 @@ d b b b -d +n d b d @@ -1076,11 +1119,11 @@ c c c c -b +s b d d -b +w d d d @@ -1168,14 +1211,14 @@ d b b b +O b -b -b +O b b d a -a +x a a a @@ -1201,14 +1244,14 @@ b b b b -b +F b d d d d b -b +F b b b @@ -1249,9 +1292,9 @@ d d d b -b -b -b +s +F +m b c b @@ -1265,7 +1308,7 @@ a a a a -a +x a a a @@ -1283,7 +1326,7 @@ a a a a -d +n d d d @@ -1339,7 +1382,7 @@ c b c b -b +F b a a @@ -1361,14 +1404,14 @@ a a a a +x a a a a a a -a -a +x a d d @@ -1415,9 +1458,9 @@ a a d d +n d -d -d +n b b b @@ -1449,7 +1492,7 @@ a a a a -a +x a a a @@ -1517,7 +1560,7 @@ a a a a -a +x a a a @@ -1540,6 +1583,7 @@ a a a a +x a a a @@ -1552,8 +1596,7 @@ a a a a -a -a +x a a a @@ -1691,5 +1734,5 @@ a a a a -a +x "} diff --git a/_maps/map_files/RandomRuins/SpaceRuins/derelict4.dmm b/_maps/map_files/RandomRuins/SpaceRuins/derelict4.dmm index 2f1cae246aae..4481ccfa867f 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/derelict4.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/derelict4.dmm @@ -89,6 +89,14 @@ /obj/structure/girder, /turf/simulated/floor/plating/airless, /area/ruin/space/unpowered) +"K" = ( +/obj/structure/spawner/mining/basilisk, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) +"Z" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) (1,1,1) = {" a @@ -281,7 +289,7 @@ a a a a -a +Z a a a @@ -313,7 +321,7 @@ c a a a -a +Z a a a @@ -572,7 +580,7 @@ c c c c -c +K c c c @@ -627,7 +635,7 @@ a a a a -a +Z a a a @@ -897,7 +905,7 @@ a a a a -a +Z a a a @@ -968,7 +976,7 @@ b b b c -c +K c a "} @@ -1040,7 +1048,7 @@ h h f c -c +K c c b @@ -1236,7 +1244,7 @@ b b b a -a +Z a b b @@ -1338,7 +1346,7 @@ a a a a -a +Z a a a @@ -1439,7 +1447,7 @@ a a a a -a +Z a a a @@ -1542,7 +1550,7 @@ a a a a -a +Z a a a diff --git a/_maps/map_files/RandomRuins/SpaceRuins/derelict5.dmm b/_maps/map_files/RandomRuins/SpaceRuins/derelict5.dmm index 96be2fc177cf..a5e6e2a6520c 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/derelict5.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/derelict5.dmm @@ -34,6 +34,9 @@ /mob/living/simple_animal/cockroach, /turf/simulated/floor/plasteel, /area/ruin/space/unpowered) +"ez" = ( +/turf/simulated/mineral/random/high_chance/clown, +/area/ruin/space/unpowered) "fi" = ( /obj/structure/closet/cabinet, /obj/item/clothing/under/suit/charcoal, @@ -48,6 +51,10 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel, /area/ruin/space/unpowered) +"gx" = ( +/obj/structure/spawner/mining/basilisk, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) "hG" = ( /obj/structure/kitchenspike, /turf/simulated/floor/plasteel, @@ -168,6 +175,10 @@ /obj/item/gun/projectile/revolver/russian, /turf/simulated/floor/plasteel, /area/ruin/space/unpowered) +"yq" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) "yY" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/decal/cleanable/dirt, @@ -202,6 +213,9 @@ /obj/effect/decal/cleanable/insectguts, /turf/simulated/floor/plasteel, /area/ruin/space/unpowered) +"Dt" = ( +/turf/simulated/mineral/random/high_chance, +/area/ruin/space/unpowered) "Gx" = ( /obj/effect/decal/cleanable/blood, /turf/simulated/floor/plasteel, @@ -216,6 +230,10 @@ /obj/effect/decal/cleanable/blood/splatter, /turf/simulated/floor/plating, /area/ruin/space/unpowered) +"KW" = ( +/obj/structure/spawner/mining/hivelord, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered) "Li" = ( /obj/structure/door_assembly, /obj/structure/barricade/wooden/crude, @@ -394,7 +412,7 @@ TT TT TT TT -TT +yq TT TT TT @@ -409,7 +427,7 @@ VS VS TT TT -TT +yq TT "} (3,1,1) = {" @@ -446,8 +464,8 @@ TT TT TT TT -VS -VS +Dt +Dt VS TT TT @@ -461,7 +479,7 @@ TT TT TT TT -TT +yq TT TT TT @@ -524,7 +542,7 @@ TT TT TT TT -TT +yq TT TT TT @@ -577,7 +595,7 @@ TT TT TT TT -VS +Dt TT "} (7,1,1) = {" @@ -651,23 +669,23 @@ TT TT VS VS -VS -TT -TT +Dt TT TT TT TT TT TT +yq TT +yq TT TT "} (9,1,1) = {" TT TT -TT +yq TT TT TT @@ -693,7 +711,7 @@ TT TT VS VS -VS +Dt TT TT TT @@ -715,10 +733,10 @@ TT TT TT Qx +Dt +Dt Qx -Qx -Qx -Qx +Dt Qx Qx Qx @@ -745,7 +763,7 @@ TT TT TT TT -TT +yq TT "} (11,1,1) = {" @@ -776,7 +794,7 @@ TT TT TT TT -VS +Dt VS VS VS @@ -804,10 +822,10 @@ Qx Qx Qx Qx +Dt Qx Qx -Qx -Qx +Dt Qx Qx WA @@ -842,15 +860,15 @@ TT Qx Qx Qx +Dt +Dt Qx Qx +Dt Qx Qx -Qx -Qx -Qx -Qx -Qx +Dt +Dt Qx Qx Qx @@ -936,8 +954,8 @@ Se Pq Se Qx -Qx -Qx +Dt +Dt Qx Qx WA @@ -967,8 +985,8 @@ TT TT Qx Qx -Qx -Qx +Dt +Dt Qx Pq aN @@ -978,7 +996,7 @@ vg kb Pq LZ -Qx +Dt Qx Qx Qx @@ -1009,7 +1027,7 @@ TT TT TT Qx -Qx +Dt Qx Qx Se @@ -1064,7 +1082,7 @@ Se vE KU Se -Qx +Dt Qx Qx WA @@ -1106,7 +1124,7 @@ Se zN xs Qx -Qx +Dt Qx Qx Qx @@ -1129,14 +1147,14 @@ TT (20,1,1) = {" TT TT +yq TT TT TT TT -TT -Qx Qx Qx +Dt Qx Se ph @@ -1178,7 +1196,7 @@ TT TT Qx Qx -Qx +Dt Qx Qx ZP @@ -1195,7 +1213,7 @@ Qx Qx Qx WA -WA +KW WA WA WA @@ -1233,8 +1251,8 @@ vE kO Se Qx -Qx -Qx +Dt +Dt Qx WA WA @@ -1247,8 +1265,8 @@ WA WA WA Qx -Qx -Qx +Dt +Dt Qx TT "} @@ -1285,7 +1303,7 @@ WA WA WA WA -WA +gx WA WA Qx @@ -1372,8 +1390,8 @@ WA WA Qx Qx -Qx -Qx +Dt +Dt Qx Qx Qx @@ -1390,8 +1408,8 @@ TT Qx Qx Qx -Qx -Qx +Dt +Dt Gx zN zN @@ -1415,7 +1433,7 @@ Qx Qx Qx Qx -Qx +Dt Qx Qx Qx @@ -1433,7 +1451,7 @@ TT Qx Qx Qx -Qx +Dt Qx zN Wy @@ -1445,8 +1463,8 @@ Se Qx Qx Qx -Qx -Qx +ez +ez Qx Qx Qx @@ -1484,12 +1502,12 @@ Se nb zN Qx +Dt Qx Qx -Qx -Qx -Qx -Qx +Dt +Dt +ez Qx Se fi @@ -1501,7 +1519,7 @@ Qx Qx Qx Qx -Qx +Dt Qx "} (29,1,1) = {" @@ -1526,12 +1544,12 @@ Se Se Pq Qx +Dt +ez Qx Qx -Qx -Qx -Qx -Qx +Dt +ez Qx Pq zN @@ -1543,7 +1561,7 @@ Pq Qx Qx Qx -Qx +Dt Qx "} (30,1,1) = {" @@ -1563,17 +1581,17 @@ Qx Qx Qx Qx +Dt +Dt Qx Qx Qx +Dt Qx Qx +ez Qx -Qx -Qx -Qx -Qx -Qx +ez Qx Se vE @@ -1610,12 +1628,12 @@ Qx Qx Qx Qx +Dt +ez Qx Qx -Qx -Qx -Qx -Qx +Dt +ez Qx Pq sd @@ -1625,7 +1643,7 @@ rc vE Se Qx -Qx +Dt Qx Qx Qx @@ -1652,12 +1670,12 @@ Qx Qx Qx Qx +Dt Qx Qx -Qx -Qx -Qx -Qx +Dt +Dt +ez Qx Se Qx @@ -1666,8 +1684,8 @@ Pq Se Pq Se -Qx -Qx +Dt +Dt Qx Qx TT @@ -1677,8 +1695,8 @@ TT TT VS VS -VS -VS +Dt +Dt TT TT TT @@ -1697,8 +1715,8 @@ Qx Qx Qx Qx -Qx -Qx +ez +ez Qx Qx Qx @@ -1718,8 +1736,8 @@ TT TT TT TT -VS -VS +Dt +Dt VS TT TT @@ -1733,6 +1751,7 @@ Qx Qx Qx Qx +Dt Qx Qx Qx @@ -1746,9 +1765,8 @@ Qx Qx Qx Qx -Qx -Qx -Qx +Dt +Dt Qx Qx Qx @@ -1778,16 +1796,16 @@ Qx Qx Qx Qx +Dt Qx Qx Qx +Dt Qx Qx Qx -Qx -Qx -Qx -Qx +Dt +Dt Qx Qx Qx @@ -1827,7 +1845,7 @@ Qx Qx Qx Qx -Qx +Dt Qx Qx Qx @@ -1895,7 +1913,7 @@ TT TT TT TT -TT +yq TT TT TT diff --git a/_maps/map_files/RandomRuins/SpaceRuins/dj.dmm b/_maps/map_files/RandomRuins/SpaceRuins/dj.dmm index 8858774e8665..717a32bcac86 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/dj.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/dj.dmm @@ -512,6 +512,7 @@ /area/ruin/space/djstation) "bp" = ( /obj/structure/chair/office/light, +/mob/living/simple_animal/hostile/russian/ranged/mosin, /turf/simulated/floor/plasteel/dark, /area/ruin/space/djstation) "bq" = ( @@ -794,6 +795,15 @@ }, /turf/template_noop, /area/ruin/space/djstation) +"yr" = ( +/obj/effect/decal/cleanable/dirt, +/obj/item/salvage/ruin/russian, +/turf/simulated/floor/plating, +/area/ruin/space/djstation) +"Zp" = ( +/obj/item/salvage/ruin/russian, +/turf/simulated/floor/plating, +/area/ruin/space/djstation) (1,1,1) = {" aa @@ -1106,8 +1116,8 @@ ae aa aa am -at -av +yr +Zp aF av aM @@ -1226,7 +1236,7 @@ ae ad aa am -av +Zp aB at aJ diff --git a/_maps/map_files/RandomRuins/SpaceRuins/druglab.dmm b/_maps/map_files/RandomRuins/SpaceRuins/druglab.dmm index 6e07362ccb41..afceaf98c253 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/druglab.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/druglab.dmm @@ -108,6 +108,7 @@ /area/ruin/space/methlab) "v" = ( /obj/structure/chair, +/mob/living/simple_animal/hostile/pirate, /turf/simulated/floor/plating, /area/ruin/space/methlab) "w" = ( @@ -123,6 +124,9 @@ /obj/machinery/kitchen_machine/microwave, /turf/simulated/floor/plating, /area/ruin/space/methlab) +"K" = ( +/turf/simulated/mineral/random/high_chance, +/area/ruin/space/methlab) (1,1,1) = {" a @@ -162,9 +166,9 @@ a a b b -b -b -b +K +K +K b b b @@ -229,8 +233,8 @@ e j p t -b -b +K +K b b b @@ -240,12 +244,12 @@ a a b b -b +K f m b -b -b +K +K b b a @@ -255,8 +259,8 @@ a (9,1,1) = {" b b -b -b +K +K f n j @@ -272,7 +276,7 @@ a b b b -b +K g i j diff --git a/_maps/map_files/RandomRuins/SpaceRuins/emptyshell.dmm b/_maps/map_files/RandomRuins/SpaceRuins/emptyshell.dmm index 8d3bac1752aa..4decd99b3e03 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/emptyshell.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/emptyshell.dmm @@ -29,12 +29,21 @@ /area/ruin/space/unpowered) "i" = ( /obj/machinery/door/airlock, +/obj/structure/barricade/wooden/crude, /turf/simulated/floor/plating, /area/ruin/space/unpowered) "j" = ( /obj/item/stack/cable_coil, /turf/simulated/floor/plating, /area/ruin/space/unpowered) +"p" = ( +/mob/living/simple_animal/hostile/asteroid/hivelord, +/turf/simulated/floor/plating, +/area/ruin/space/unpowered) +"T" = ( +/obj/item/salvage/ruin/tablet, +/turf/simulated/floor/plating, +/area/ruin/space/unpowered) (1,1,1) = {" a @@ -161,7 +170,7 @@ a c c e -d +T d g e @@ -182,7 +191,7 @@ d d d d -d +p d d c @@ -230,9 +239,9 @@ c c d e +p d -d -d +T g d e diff --git a/_maps/map_files/RandomRuins/SpaceRuins/intactemptyship.dmm b/_maps/map_files/RandomRuins/SpaceRuins/intactemptyship.dmm index 89383c9e77cd..808ea5fc36b9 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/intactemptyship.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/intactemptyship.dmm @@ -131,6 +131,11 @@ /obj/item/blank_tarot_card, /turf/simulated/floor/mineral/titanium/purple, /area/ruin/space/powered) +"R" = ( +/obj/structure/table/wood, +/obj/item/salvage/ruin/tablet, +/turf/simulated/floor/mineral/titanium/purple, +/area/ruin/space/powered) (1,1,1) = {" a @@ -194,7 +199,7 @@ h z b h -n +R b "} (6,1,1) = {" diff --git a/_maps/map_files/RandomRuins/SpaceRuins/listeningpost.dmm b/_maps/map_files/RandomRuins/SpaceRuins/listeningpost.dmm index ce511619893d..565716ca4b3b 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/listeningpost.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/listeningpost.dmm @@ -18,6 +18,9 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, /area/ruin/space/syndicate_listening_station) +"cB" = ( +/turf/simulated/mineral/random/high_chance, +/area/ruin/space/syndicate_listening_station/asteroid) "du" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, @@ -448,6 +451,10 @@ }, /turf/simulated/floor/plating/airless, /area/ruin/space/syndicate_listening_station/asteroid) +"Ie" = ( +/obj/structure/spawner/mining/basilisk, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/syndicate_listening_station/asteroid) "Km" = ( /obj/machinery/light/small{ dir = 1 @@ -832,10 +839,10 @@ Zw Zw Zw yn -yn +cB Zw Zw -yn +cB yn yn yn @@ -846,8 +853,8 @@ Zw Zw yn yn -yn -yn +cB +cB yn Zw Zw @@ -876,8 +883,8 @@ Zw yn yn Zw -yn -yn +cB +cB yn Zw yn @@ -888,9 +895,9 @@ Zw Zw yn yn -yn -yn -yn +cB +cB +cB Zw Zw Zw @@ -945,7 +952,7 @@ HZ yn yn yn -yn +cB yn AT AT @@ -985,15 +992,15 @@ tk HZ yn yn -yn +cB yn yn yn AT AT yn -yn -yn +cB +cB yn yn yn @@ -1026,9 +1033,9 @@ yn yn yn yn +cB yn -yn -yn +cB yn yn yn @@ -1066,6 +1073,8 @@ kJ kE kJ yn +cB +cB yn yn yn @@ -1078,9 +1087,7 @@ yn yn yn yn -yn -yn -yn +cB yn yn yn @@ -1118,14 +1125,14 @@ yn yn yn yn +cB yn +cB yn yn yn -yn -yn -yn -yn +cB +cB Zw Zw Zw @@ -1164,10 +1171,10 @@ yn yn yn yn -yn -yn -yn -yn +cB +cB +cB +cB Zw Zw Zw @@ -1208,7 +1215,7 @@ yn yn yn yn -yn +cB yn yn Zw @@ -1247,7 +1254,7 @@ kJ kJ yn yn -yn +cB yn yn yn @@ -1377,7 +1384,7 @@ yn yn yn AT -AT +Ie AT Zw Zw @@ -1543,7 +1550,7 @@ yn yn yn AT -AT +Ie AT Zw Zw @@ -1660,9 +1667,9 @@ kJ yn yn rK -yn -yn -yn +cB +cB +cB yn yn yn @@ -1703,9 +1710,9 @@ yn yn rK yn -yn -yn -yn +cB +cB +cB yn yn yn @@ -1746,8 +1753,8 @@ yn iL yn yn -yn -yn +cB +cB yn yn AT @@ -1788,7 +1795,7 @@ yn Zw yn yn -yn +cB Zw yn AT @@ -1980,8 +1987,8 @@ Zw Zw yn yn -yn -yn +cB +cB Zw Zw yn diff --git a/_maps/map_files/RandomRuins/SpaceRuins/meatpackers.dmm b/_maps/map_files/RandomRuins/SpaceRuins/meatpackers.dmm index 067579f3be83..c69993f78e3d 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/meatpackers.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/meatpackers.dmm @@ -1480,6 +1480,7 @@ icon_state = "2-4"; tag = "" }, +/mob/living/simple_animal/hostile/pirate/ranged, /turf/simulated/floor/plasteel{ icon_state = "bar" }, @@ -2398,6 +2399,48 @@ }, /turf/simulated/floor/plating, /area/ruin/unpowered/BMPship/Aft) +"hE" = ( +/obj/effect/landmark/damageturf, +/mob/living/simple_animal/hostile/pirate, +/turf/simulated/floor/plating, +/area/ruin/unpowered/BMPship/Midship) +"qM" = ( +/obj/machinery/conveyor{ + dir = 4; + id = "meatConvey2" + }, +/obj/item/salvage/ruin/pirate, +/turf/simulated/floor/plating, +/area/ruin/unpowered/BMPship/Midship) +"uK" = ( +/mob/living/simple_animal/hostile/pirate, +/turf/simulated/floor/plasteel{ + icon_state = "bar" + }, +/area/ruin/unpowered/BMPship/Midship) +"uT" = ( +/turf/simulated/mineral/random/high_chance, +/area/ruin/powered) +"BC" = ( +/obj/structure/cable{ + d1 = 4; + d2 = 8; + icon_state = "4-8"; + tag = "" + }, +/mob/living/simple_animal/hostile/pirate, +/turf/simulated/floor/plasteel{ + icon_state = "bar" + }, +/area/ruin/unpowered/BMPship/Midship) +"Ht" = ( +/obj/machinery/conveyor{ + dir = 4; + id = "meatConvey1" + }, +/obj/item/salvage/ruin/pirate, +/turf/simulated/floor/plating, +/area/ruin/unpowered/BMPship/Midship) "IM" = ( /obj/structure/closet/crate/freezer, /obj/item/food/snacks/meat, @@ -2761,7 +2804,7 @@ aJ aJ aK aK -aK +uT aK aK aK @@ -2813,9 +2856,9 @@ aJ aK aK aK -aK -aK -aK +uT +uT +uT aK aK aa @@ -2867,7 +2910,7 @@ aK aK aK aK -aK +uT aK aK aa @@ -3114,8 +3157,8 @@ aD aK aK aK -aK -aK +uT +uT aK aK aK @@ -3165,8 +3208,8 @@ aD aK aK aK -aK -aK +uT +uT aK aK aK @@ -3215,9 +3258,9 @@ fA aD aK aK -aK -aK -aK +uT +uT +uT aK aK aK @@ -3266,8 +3309,8 @@ gs aK aK aK -aK -aK +uT +uT aK aK aK @@ -3318,11 +3361,11 @@ gs aK aK aK +uT +uT aK aK -aK -aK -aK +uT aK aK aK @@ -3368,12 +3411,12 @@ gs bc aK aK +uT +uT aK aK -aK -aK -aK -aK +uT +uT aK aK aK @@ -3420,10 +3463,10 @@ aK aK aK aK +uT aK -aK -aK -aK +uT +uT aK aK aK @@ -3469,12 +3512,12 @@ gs gs aK aK -aK -aK -aK -aK -aK -aK +uT +uT +uT +uT +uT +uT aK aK aK @@ -3522,9 +3565,9 @@ aK aK aK aK -aK -aK -aK +uT +uT +uT aK aK aK @@ -3564,7 +3607,7 @@ eo fn dC ca -gb +hE bF aK aK @@ -3573,13 +3616,13 @@ aK aK bc aK +uT aK aK aK aK -aK -aK -aK +uT +uT aK aK aK @@ -3629,9 +3672,9 @@ aK aK aK aK -aK -aK -aK +uT +uT +uT aK aK aK @@ -3682,8 +3725,8 @@ aK aK aK aK -aK -aK +uT +uT aK aK aK @@ -3734,7 +3777,7 @@ aK aK aK aK -aK +uT aK aK aK @@ -3862,7 +3905,7 @@ cr cJ ca ca -ca +uK ca dg ca @@ -3915,7 +3958,7 @@ ca ca dT ca -dg +BC ca ca dT @@ -4117,7 +4160,7 @@ ca ca ca dC -dU +Ht dC dg ca @@ -4195,7 +4238,7 @@ aJ aJ aK aK -aK +uT aK aa "} @@ -4224,7 +4267,7 @@ dC dg ca dC -fr +qM dC ca ca @@ -4245,8 +4288,8 @@ aa aa aa aK -aK -aK +uT +uT aK aa "} @@ -4297,7 +4340,7 @@ aa aa aa aK -aK +uT aa aa "} diff --git a/_maps/map_files/RandomRuins/SpaceRuins/mechtransport.dmm b/_maps/map_files/RandomRuins/SpaceRuins/mechtransport.dmm index b38b995bef2f..d90c6ba615b9 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/mechtransport.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/mechtransport.dmm @@ -340,6 +340,7 @@ /obj/effect/decal/cleanable/shreds{ pixel_y = -10 }, +/mob/living/simple_animal/hostile/pirate/ranged, /turf/simulated/floor/plating/airless, /area/ruin/space/mech_transport) "xE" = ( @@ -383,6 +384,10 @@ /obj/effect/decal/remains/human, /turf/simulated/floor/mineral/plastitanium/red/airless, /area/ruin/space/mech_transport) +"zM" = ( +/mob/living/simple_animal/hostile/pirate, +/turf/simulated/floor/mineral/plastitanium/red/airless, +/area/ruin/space/mech_transport) "zP" = ( /obj/machinery/computer/nonfunctional{ dir = 8 @@ -524,6 +529,10 @@ pixel_x = -6 }, /obj/item/pen/multi/syndicate, +/obj/item/salvage/ruin/nanotrasen{ + pixel_y = 3; + pixel_x = 2 + }, /turf/simulated/floor/mineral/plastitanium, /area/ruin/space/mech_transport) "MA" = ( @@ -556,6 +565,7 @@ pixel_y = -32; name = "secure supplies blast door control" }, +/mob/living/simple_animal/hostile/pirate/ranged, /turf/simulated/floor/mineral/plastitanium, /area/ruin/space/mech_transport) "Nq" = ( @@ -713,6 +723,10 @@ }, /turf/simulated/floor/plating/airless, /area/ruin/space/mech_transport) +"Yq" = ( +/mob/living/simple_animal/hostile/pirate, +/turf/simulated/floor/plasteel/dark, +/area/ruin/space/mech_transport) "Zn" = ( /obj/machinery/light_switch{ dir = 4; @@ -1269,7 +1283,7 @@ MI vo rK bU -bU +Yq bU Af vo @@ -1333,7 +1347,7 @@ vo vo zX bU -bU +Yq bU HK vo @@ -1484,7 +1498,7 @@ oo vo pJ VS -VS +zM VS aW aq diff --git a/_maps/map_files/RandomRuins/SpaceRuins/moonoutpost19.dmm b/_maps/map_files/RandomRuins/SpaceRuins/moonoutpost19.dmm index 349e4181c28b..6258e9c2b2b3 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/moonoutpost19.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/moonoutpost19.dmm @@ -4441,6 +4441,7 @@ }, /obj/effect/decal/cleanable/cobweb2, /obj/structure/table, +/obj/item/salvage/ruin/nanotrasen, /turf/simulated/floor/plasteel{ dir = 5; icon_state = "caution" @@ -4574,6 +4575,15 @@ dir = 8 }, /area/ruin/space/moonbase19) +"oI" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/railing{ + dir = 1 + }, +/obj/structure/table, +/obj/item/salvage/ruin/nanotrasen, +/turf/simulated/floor/plating, +/area/ruin/space/moonbase19) "oJ" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/decal/cleanable/blood/tracks{ @@ -12664,6 +12674,7 @@ /obj/item/taperecorder{ pixel_x = -3 }, +/obj/item/salvage/ruin/nanotrasen, /turf/simulated/floor/plasteel{ dir = 5; icon_state = "cafeteria" @@ -16449,7 +16460,7 @@ Gg Gg tv lm -Ic +oI cm bP NU diff --git a/_maps/map_files/RandomRuins/SpaceRuins/oldstation.dmm b/_maps/map_files/RandomRuins/SpaceRuins/oldstation.dmm index 6ba4f2256a0f..4619d2990986 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/oldstation.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/oldstation.dmm @@ -2421,20 +2421,6 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel, /area/ruin/ancientstation/thetacorridor) -"ge" = ( -/obj/structure/table, -/obj/structure/cable{ - d2 = 2; - icon_state = "0-2"; - pixel_y = 1 - }, -/obj/machinery/power/apc/off_station/empty_charge/directional/west, -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor/plasteel{ - dir = 9; - icon_state = "red" - }, -/area/ruin/ancientstation/sec) "gf" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel, @@ -2497,6 +2483,7 @@ /obj/item/stock_parts/capacitor, /obj/item/stock_parts/micro_laser, /obj/item/stack/cable_coil, +/obj/item/salvage/ruin/nanotrasen, /turf/simulated/floor/plasteel, /area/ruin/ancientstation/rnd) "gn" = ( @@ -3877,9 +3864,11 @@ /turf/simulated/floor/plating, /area/ruin/ancientstation) "jt" = ( -/obj/effect/spawner/random_spawners/wall_rusted_always, -/turf/simulated/wall/r_wall, -/area/ruin/ancientstation/proto) +/obj/structure/table, +/obj/effect/decal/cleanable/dirt, +/obj/item/salvage/ruin/nanotrasen, +/turf/simulated/floor/plasteel, +/area/ruin/ancientstation/comm) "ju" = ( /obj/structure/cable{ d1 = 1; @@ -4141,6 +4130,7 @@ dir = 4 }, /obj/effect/decal/cleanable/dirt, +/obj/item/salvage/ruin/nanotrasen, /turf/simulated/floor/plasteel/white, /area/ruin/ancientstation/proto) "jZ" = ( @@ -4382,8 +4372,8 @@ /turf/simulated/floor/engine, /area/ruin/ancientstation/atmo) "kE" = ( -/obj/effect/spawner/window/reinforced/grilled, -/turf/simulated/floor/plating, +/obj/effect/spawner/random_spawners/wall_rusted_always, +/turf/simulated/wall/indestructible/riveted, /area/ruin/ancientstation/proto) "kF" = ( /obj/structure/transit_tube_pod{ @@ -4960,6 +4950,21 @@ /obj/machinery/power/tesla_coil, /turf/simulated/floor/plating, /area/ruin/ancientstation/thetacorridor) +"Hr" = ( +/obj/structure/table, +/obj/item/salvage/ruin/nanotrasen, +/obj/structure/cable{ + d2 = 2; + icon_state = "0-2"; + pixel_y = 1 + }, +/obj/machinery/power/apc/off_station/empty_charge/directional/west, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + dir = 9; + icon_state = "red" + }, +/area/ruin/ancientstation/sec) "Lu" = ( /obj/structure/transit_tube/horizontal{ dir = 4 @@ -6583,7 +6588,7 @@ aa am aM aO -aF +jt at aS dt @@ -7169,7 +7174,7 @@ bC bC cG dg -ge +Hr eu fX eu @@ -7952,13 +7957,13 @@ dj dj iS jj -jt -jt -jt -jt -jt -jt -jt +kE +kE +kE +kE +kE +kE +kE aa aa aa @@ -8000,13 +8005,13 @@ ig dj ld lg -jt +kE jB jS -jt +kE kq ky -jt +kE aa aa aa @@ -8048,13 +8053,13 @@ ig dj iU jk -jt +kE jC jT -jt +kE jT jC -jt +kE aa aa aa @@ -8096,13 +8101,13 @@ ih dj iV ji -jt +kE jD jU ki jU jU -jt +kE aa aa aa @@ -8144,13 +8149,13 @@ gf dj ld lg -jt +kE cV jV jV jV kz -jt +kE aa aa aa @@ -8288,13 +8293,13 @@ dj dj iT fq -jt +kE cW jV jV jV kz -jt +kE aa aa aa @@ -8336,13 +8341,13 @@ ij dj lf lh -jt +kE jI jW kj jW jW -jt +kE aa aa aa @@ -8384,13 +8389,13 @@ ik dj iT fq -jt +kE jC jX -jt +kE jX jC -jt +kE aa aa aa @@ -8432,13 +8437,13 @@ il dj ld kS -jt +kE jJ jY -jt +kE kt kB -jt +kE aa aa aa @@ -8480,13 +8485,13 @@ dj dj iS jn -jt -jt -jt -jt -jt -jt -jt +kE +kE +kE +kE +kE +kE +kE aa aa aa diff --git a/_maps/map_files/RandomRuins/SpaceRuins/onehalf.dmm b/_maps/map_files/RandomRuins/SpaceRuins/onehalf.dmm index da0e0f1d5709..1f08f9eea575 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/onehalf.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/onehalf.dmm @@ -1224,6 +1224,10 @@ }, /turf/template_noop, /area/space/nearstation) +"gL" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) "jQ" = ( /obj/structure/cable{ d2 = 8; @@ -1239,6 +1243,11 @@ icon_state = "white" }, /area/ruin/space/onehalf/dorms_med) +"kV" = ( +/obj/item/stack/rods, +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/space/nearstation) "xr" = ( /obj/structure/cable{ d2 = 8; @@ -1436,7 +1445,7 @@ bw bK ak aa -cv +kV aa aa aa @@ -1483,7 +1492,7 @@ aa cx aw aa -aa +gL cv dg aa @@ -1502,7 +1511,7 @@ bw bO aj aa -aa +gL cE cv cR diff --git a/_maps/map_files/RandomRuins/SpaceRuins/spacebar.dmm b/_maps/map_files/RandomRuins/SpaceRuins/spacebar.dmm index 68bca8457f62..88ca979c7643 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/spacebar.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/spacebar.dmm @@ -228,9 +228,9 @@ /turf/simulated/floor/plating/asteroid/ancient, /area/space/nearstation) "aZ" = ( -/obj/item/radio/beacon, -/turf/simulated/floor/plasteel, -/area/ruin/space/powered/bar) +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/space) "ba" = ( /obj/machinery/door/airlock/multi_tile/glass{ dir = 1 @@ -492,6 +492,12 @@ icon_state = "dark" }, /area/ruin/space/powered/bar) +"rC" = ( +/mob/living/simple_animal/hostile/pirate, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered/bar) "rN" = ( /obj/machinery/atmospherics/portable/canister/air{ filled = 1 @@ -502,6 +508,7 @@ /obj/structure/chair/stool{ dir = 4 }, +/mob/living/simple_animal/hostile/pirate, /turf/simulated/floor/plasteel, /area/ruin/space/powered/bar) "sq" = ( @@ -563,6 +570,10 @@ }, /turf/simulated/floor/plating/asteroid/ancient, /area/ruin/space/powered) +"wo" = ( +/mob/living/simple_animal/hostile/pirate/ranged, +/turf/simulated/floor/wood, +/area/ruin/space/powered/bar) "wy" = ( /obj/effect/landmark/damageturf, /obj/structure/holosign/barrier/engineering, @@ -581,6 +592,12 @@ icon_state = "dark" }, /area/ruin/space/powered/bar) +"xZ" = ( +/obj/item/radio/beacon, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered/bar) "yC" = ( /obj/machinery/economy/vending/cola, /turf/simulated/floor/plasteel{ @@ -644,6 +661,7 @@ /obj/structure/chair/stool{ dir = 8 }, +/mob/living/simple_animal/hostile/pirate, /turf/simulated/floor/plasteel, /area/ruin/space/powered/bar) "Cx" = ( @@ -890,6 +908,10 @@ /obj/structure/falsewall, /turf/simulated/floor/plating/asteroid/airless, /area/ruin/space/powered/bar) +"Rc" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/space/nearstation) "RL" = ( /obj/structure/girder, /turf/simulated/floor/plating, @@ -1323,7 +1345,7 @@ ad ad ad ad -ad +aZ ad ad ad @@ -1480,7 +1502,7 @@ br br br br -ad +aZ ad ad ad @@ -1530,7 +1552,7 @@ au bo br br -br +Rc br ad ad @@ -1584,7 +1606,7 @@ br br br br -ad +aZ ad ad ad @@ -1739,7 +1761,7 @@ ad ad ad ad -ad +aZ ad ad ad @@ -2184,11 +2206,11 @@ am aE as as -as +wo aK ap aO -aZ +aO aV aO yC @@ -2351,7 +2373,7 @@ LU lO bg bk -bk +rC bk bk bk @@ -2506,7 +2528,7 @@ Is bf am bk -bk +xZ qZ bk Ad diff --git a/_maps/map_files/RandomRuins/SpaceRuins/syndicatedruglab.dmm b/_maps/map_files/RandomRuins/SpaceRuins/syndicatedruglab.dmm index 643d69228c37..8d633526eb93 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/syndicatedruglab.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/syndicatedruglab.dmm @@ -138,6 +138,10 @@ "sb" = ( /turf/template_noop, /area/ruin/space/syndicate_druglab/asteroid) +"st" = ( +/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot, +/turf/simulated/floor/pod/dark, +/area/ruin/space/syndicate_druglab) "sD" = ( /obj/structure/closet/crate/hydroponics, /obj/item/queen_bee/bought, @@ -686,8 +690,8 @@ sb vZ xF vZ -vZ -vZ +yI +yI vZ vZ vZ @@ -720,9 +724,9 @@ sb vZ vZ vZ -vZ -vZ -vZ +yI +yI +yI vZ vZ xF @@ -769,10 +773,10 @@ vZ vZ vZ vZ -vZ -vZ -vZ -vZ +yI +yI +yI +yI vZ yI vZ @@ -803,12 +807,12 @@ Nr Nr Nr vZ -vZ -vZ -vZ +yI +yI +yI xF -vZ -vZ +yI +yI yI yI sb @@ -838,12 +842,12 @@ nP dL Nr vZ -vZ -vZ +yI +yI xF xF ue -vZ +yI vZ vZ sb @@ -873,7 +877,7 @@ tL os Nr Nr -vZ +yI xF ue xF @@ -908,7 +912,7 @@ os os en Nr -vZ +yI xF DG qf @@ -943,8 +947,8 @@ os os Ue Nr -vZ -vZ +yI +yI Gm ue xF @@ -979,7 +983,7 @@ tL Nr Nr vZ -vZ +yI Wd vZ vZ @@ -1087,7 +1091,7 @@ ym te vz Nr -vZ +yI xF xF xF @@ -1109,7 +1113,7 @@ vZ vZ Nr BD -os +st os gU SG @@ -1122,7 +1126,7 @@ gI gI Oy Nr -vZ +yI xF QL xF @@ -1157,7 +1161,7 @@ gI gI Oy Nr -vZ +yI xF xF xF diff --git a/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm b/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm index 5648c4bd0b8b..bed7091a8232 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm @@ -937,7 +937,7 @@ /area/ruin/unpowered/syndicate_space_base/testlab) "fo" = ( /obj/effect/decal/cleanable/blood/old, -/obj/effect/mob_spawn/human/corpse/skeleton, +/obj/effect/decal/remains/human, /turf/simulated/floor/plating/asteroid/ancient, /area/ruin/unpowered/syndicate_space_base/cave) "fp" = ( @@ -7237,6 +7237,9 @@ icon_state = "dark" }, /area/ruin/unpowered/syndicate_space_base/main) +"OT" = ( +/turf/simulated/mineral/random/high_chance, +/area/ruin/unpowered/syndicate_space_base/inner) "OY" = ( /obj/machinery/light{ dir = 1 @@ -13200,7 +13203,7 @@ nv Kh Jo Vl -kE +OT kE kE kE @@ -13272,8 +13275,8 @@ nv Vl Vl Vl -kE -kE +OT +OT kE Ri Ri @@ -13343,8 +13346,8 @@ nv nv qT Vl -kE -kE +OT +OT Ri kE kE @@ -13396,7 +13399,7 @@ LE AD Mf kE -kE +OT kE Vl Vl @@ -13416,7 +13419,7 @@ nv Vl Vl kE -kE +OT kE kE kE @@ -13468,7 +13471,7 @@ AD kE AD kE -kE +OT kE kE Vl @@ -13489,7 +13492,7 @@ Vl kE kE kE -kE +OT kE Ri Ri @@ -13612,7 +13615,7 @@ kE AD kE kE -kE +OT kE kE kE @@ -13632,7 +13635,7 @@ Vl kE kE kE -kE +OT kE Ri Ri @@ -13684,7 +13687,7 @@ kE AD Vs kE -kE +OT kE kE kE @@ -13702,9 +13705,9 @@ Vl Vl kE kE +OT kE -kE -kE +OT Ri Ri Ri @@ -13756,11 +13759,11 @@ kE kE kE kE +OT +OT kE -kE -kE -kE -kE +OT +OT kE kE Vl @@ -13771,13 +13774,13 @@ Vl Vl Vl kE +OT kE +OT kE kE -kE -kE -kE -kE +OT +OT Ri Ri AV @@ -13827,13 +13830,13 @@ kE kE kE kE +OT +OT +OT +OT kE -kE -kE -kE -kE -kE -kE +OT +OT kE kE kE @@ -13842,14 +13845,14 @@ Vl Vl kE kE +OT +OT kE kE kE -kE -kE -kE -kE -kE +OT +OT +OT Ri Ri Ri @@ -13899,6 +13902,8 @@ Ri Ri kE Ri +OT +OT kE kE kE @@ -13910,15 +13915,13 @@ kE kE kE kE +OT +OT kE kE kE kE -kE -kE -kE -kE -kE +OT Ri Ri Ri @@ -13979,9 +13982,9 @@ kE kE Ri kE -kE -kE -kE +OT +OT +OT kE kE kE @@ -13990,7 +13993,7 @@ kE kE Ri kE -kE +OT Ri Ri Ri diff --git a/_maps/map_files/RandomRuins/SpaceRuins/syndiecakesfactory.dmm b/_maps/map_files/RandomRuins/SpaceRuins/syndiecakesfactory.dmm index c8c725c60a69..20f47726645d 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/syndiecakesfactory.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/syndiecakesfactory.dmm @@ -640,7 +640,7 @@ /area/ruin/space/unpowered) "xW" = ( /obj/structure/rack, -/obj/item/clothing/under/syndicate, +/obj/item/clothing/under/syndicate/silicon_cham, /turf/simulated/floor/engine, /area/ruin/space/unpowered) "yU" = ( diff --git a/_maps/map_files/RandomRuins/SpaceRuins/syndiedepot.dmm b/_maps/map_files/RandomRuins/SpaceRuins/syndiedepot.dmm index 5164e88c3292..71c4bb2a8c71 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/syndiedepot.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/syndiedepot.dmm @@ -1168,6 +1168,9 @@ }, /turf/simulated/wall/mineral/plastitanium/nodiagonal, /area/syndicate_depot/core) +"Te" = ( +/turf/simulated/mineral/random/high_chance, +/area/syndicate_depot/outer) (1,1,1) = {" aa @@ -1500,8 +1503,8 @@ ad ad ad ad -ad -ad +Te +Te ad ad ad @@ -1542,7 +1545,7 @@ ac ac ad ad -ad +Te ad af af @@ -1552,9 +1555,9 @@ ad ad ad af -ad -ad -ad +Te +Te +Te ad ad ad @@ -1592,7 +1595,7 @@ ac ac ad ad -ad +Te af am aU @@ -1643,7 +1646,7 @@ ac ad ad ad -ad +Te af af aV @@ -1972,8 +1975,8 @@ cM am dc af -ad -ad +Te +Te ad ac ac @@ -2023,8 +2026,8 @@ af af af af -ad -ad +Te +Te ad ad ac @@ -2075,7 +2078,7 @@ af af af af -ad +Te ad ad ad @@ -2126,7 +2129,7 @@ af af ap af -ad +Te ad ad ac @@ -2303,7 +2306,7 @@ ad ad ad ad -ad +Te ad ad ad @@ -2355,8 +2358,8 @@ ad ad am af -ad -ad +Te +Te ad at aQ @@ -2401,12 +2404,12 @@ ac ac ac ad -ad -ad +Te +Te ad an af -ad +Te ad ad at @@ -2453,7 +2456,7 @@ ac ad ad ac -ad +Te ad af ap @@ -2498,13 +2501,13 @@ aa (27,1,1) = {" ab ac -ad +Te ac ac ac ac ac -ad +Te ad af af @@ -2537,7 +2540,7 @@ af af af ad -ad +Te ad ac ac @@ -2587,8 +2590,8 @@ at af ap af -ad -ad +Te +Te ad ac ac @@ -2755,7 +2758,7 @@ aa ac ac ac -ad +Te ac ac ac @@ -2842,7 +2845,7 @@ aD at af af -ad +Te ad ad ad @@ -2893,7 +2896,7 @@ bv at af af -ad +Te ad ac ad @@ -2944,7 +2947,7 @@ at at cM af -ad +Te ad ac ac @@ -3221,7 +3224,7 @@ ad ad ad ad -ad +Te ad ad ad @@ -3241,9 +3244,9 @@ ad ad ad ad -ad -ad -ad +Te +Te +Te ad ad ad @@ -3269,10 +3272,10 @@ ac ad ad ad +Te ad ad -ad -ad +Te ad ad ad @@ -3291,8 +3294,8 @@ ad ad bf bf -ad -ad +Te +Te ad ad ad @@ -3320,10 +3323,10 @@ ad ad ad ad +Te +Te ad -ad -ad -ad +Te ad ad ad @@ -3371,13 +3374,13 @@ ac ad ad ad +Te +Te +Te +Te ad ad -ad -ad -ad -ad -ad +Te ad ad ad @@ -3421,17 +3424,17 @@ ac ad ad ad +Te +Te +Te +Te ad ad -ad -ad -ad -ad -ad -ad -ad -ad -ad +Te +Te +Te +Te +Te ad bf bm @@ -3472,16 +3475,16 @@ ad ad ad ad +Te +Te +Te ad ad ad -ad -ad -ad -ad -ad -ad -ad +Te +Te +Te +Te ad ad bf @@ -3524,13 +3527,13 @@ ad ad ad ad +Te ad ad ad -ad -ad -ad -ad +Te +Te +Te ad ad ad @@ -3580,7 +3583,7 @@ ad ad ad ad -ad +Te ad ad ad diff --git a/_maps/map_files/RandomRuins/SpaceRuins/turretedoutpost.dmm b/_maps/map_files/RandomRuins/SpaceRuins/turretedoutpost.dmm index fb0523287cb3..7ae763de0916 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/turretedoutpost.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/turretedoutpost.dmm @@ -57,10 +57,11 @@ /obj/structure/chair{ dir = 8 }, +/mob/living/simple_animal/hostile/syndicate/melee/autogib, /turf/simulated/floor/plasteel, /area/ruin/space/unpowered) "o" = ( -/obj/machinery/porta_turret, +/obj/machinery/porta_turret/syndicate/exterior, /turf/simulated/floor/plating/airless, /area/ruin/space/unpowered) "p" = ( @@ -131,6 +132,7 @@ /obj/structure/reagent_dispensers/peppertank{ pixel_y = 32 }, +/obj/item/salvage/loot/syndicate, /turf/simulated/floor/plasteel, /area/ruin/space/unpowered) "B" = ( diff --git a/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm b/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm index ff85ca336a44..5e2914e76a84 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm @@ -279,6 +279,7 @@ /obj/structure/chair/comfy/red{ dir = 1 }, +/mob/living/simple_animal/hostile/russian/ranged/mosin, /turf/simulated/floor/plasteel/dark, /area/ruin/space/derelict/bridge) "aN" = ( @@ -736,9 +737,8 @@ }, /area/ruin/space/derelict/arrival) "bU" = ( -/obj/structure/rack, -/obj/effect/spawner/lootdrop/maintenance, /obj/effect/decal/cleanable/dirt, +/obj/item/salvage/ruin/russian, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "darkred" @@ -894,8 +894,7 @@ /turf/simulated/floor/plasteel/dark, /area/ruin/space/derelict/arrival) "cp" = ( -/obj/structure/rack, -/obj/effect/spawner/lootdrop/maintenance, +/obj/item/salvage/ruin/russian, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "darkred" @@ -2337,6 +2336,7 @@ desc = "This guy seemed to have died in terrible way! Half his remains are dust."; name = "Human remains" }, +/mob/living/simple_animal/hostile/russian/ranged/mosin, /turf/simulated/floor/plasteel/dark, /area/ruin/space/derelict/arrival) "fF" = ( @@ -3111,6 +3111,7 @@ /area/ruin/space/derelict/hallway/primary) "hC" = ( /obj/structure/chair/stool, +/mob/living/simple_animal/hostile/russian, /turf/simulated/floor/plasteel, /area/ruin/space/derelict/hallway/primary) "hD" = ( @@ -4192,7 +4193,7 @@ /turf/simulated/floor/engine/vacuum, /area/ruin/space/derelict/hallway/primary) "ko" = ( -/obj/item/stack/ore/iron, +/obj/item/stack/ore/uranium, /turf/simulated/floor/plating/airless, /area/ruin/space/derelict/hallway/primary) "kp" = ( @@ -4382,6 +4383,7 @@ icon_state = "4-8" }, /obj/effect/decal/cleanable/dirt, +/mob/living/simple_animal/hostile/russian, /turf/simulated/floor/wood, /area/ruin/space/derelict/crew_quarters) "kF" = ( @@ -7549,6 +7551,20 @@ }, /turf/simulated/wall/mineral/titanium/nodecon/nodiagonal, /area/ruin/space/derelict/arrival) +"vm" = ( +/obj/effect/decal/cleanable/dirt, +/obj/item/flag/ussp, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "red" + }, +/area/ruin/space/derelict/arrival) +"Ci" = ( +/mob/living/simple_animal/hostile/pirate/ranged, +/turf/simulated/floor/plasteel/airless{ + icon_state = "white" + }, +/area/ruin/space/derelict/arrival) "Ef" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/barsign{ @@ -7575,9 +7591,22 @@ }, /turf/simulated/wall/mineral/titanium/nodecon/nodiagonal, /area/ruin/space/derelict/crew_quarters) +"PR" = ( +/mob/living/simple_animal/hostile/pirate, +/turf/simulated/floor/plasteel/airless{ + icon_state = "white" + }, +/area/ruin/space/derelict/arrival) "QN" = ( /turf/simulated/wall/mineral/titanium/nodecon/nosmooth, /area/ruin/space/derelict/arrival) +"Sv" = ( +/obj/item/flag/ussp, +/turf/simulated/floor/plasteel{ + dir = 9; + icon_state = "red" + }, +/area/ruin/space/derelict/arrival) "Ud" = ( /obj/effect/spawner/airlock{ req_access_txt = 0 @@ -7595,6 +7624,24 @@ icon_state = "wood-broken" }, /area/ruin/space/derelict/crew_quarters) +"XQ" = ( +/obj/structure/chair/wood{ + dir = 4 + }, +/mob/living/simple_animal/hostile/russian, +/turf/simulated/floor/plasteel/dark, +/area/ruin/space/derelict/crew_quarters) +"Yi" = ( +/obj/structure/cable{ + d1 = 1; + d2 = 2; + icon_state = "1-2" + }, +/mob/living/simple_animal/hostile/pirate/ranged, +/turf/simulated/floor/plasteel/airless{ + icon_state = "white" + }, +/area/ruin/space/derelict/arrival) (1,1,1) = {" ac @@ -8664,7 +8711,7 @@ mS nk mU nG -mS +PR mS oF oS @@ -8754,7 +8801,7 @@ iy mJ mT mT -mT +Yi nH mS nG @@ -9685,7 +9732,7 @@ ac aW aW pI -mS +Ci mS nl oF @@ -9780,7 +9827,7 @@ pJ pS qa mS -mS +Ci qC mU qY @@ -10978,7 +11025,7 @@ ac ac aW sv -qt +Sv ka rq rq @@ -11316,7 +11363,7 @@ eg ac ac ac -ih +hq ii ii ii @@ -11346,7 +11393,7 @@ ac ac aW bn -qv +vm hY ru ru @@ -13528,9 +13575,9 @@ Ef in iK je -je +XQ kC -je +XQ je lX ms diff --git a/_maps/map_files/RandomRuins/SpaceRuins/ussp_tele.dmm b/_maps/map_files/RandomRuins/SpaceRuins/ussp_tele.dmm index 12d6318b4d53..dd40e6e0cdad 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/ussp_tele.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/ussp_tele.dmm @@ -170,6 +170,23 @@ icon_state = "floorgrime" }, /area/ruin/space/derelict/teleporter) +"I" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) +"M" = ( +/mob/living/simple_animal/hostile/carp/megacarp, +/turf/template_noop, +/area/template_noop) +"R" = ( +/obj/item/salvage/ruin/russian, +/turf/simulated/floor/plating/airless, +/area/ruin/space/derelict/teleporter) +"U" = ( +/obj/structure/lattice, +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/space/nearstation) (1,1,1) = {" a @@ -242,7 +259,7 @@ g a "} (6,1,1) = {" -a +I a a a @@ -266,17 +283,17 @@ l m m y -f +R g "} (8,1,1) = {" a -a +M a b f h -f +R m r f @@ -369,7 +386,7 @@ a "} (15,1,1) = {" a -a +I a b b @@ -426,7 +443,7 @@ a (19,1,1) = {" a b -b +U b b b @@ -449,7 +466,7 @@ a a a a -a +I "} (21,1,1) = {" a diff --git a/_maps/map_files/RandomRuins/SpaceRuins/voyager.dmm b/_maps/map_files/RandomRuins/SpaceRuins/voyager.dmm index 28328faafbf9..985200053458 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/voyager.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/voyager.dmm @@ -16,6 +16,10 @@ }, /turf/template_noop, /area/template_noop) +"k" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) "q" = ( /obj/structure/safe/floor, /obj/item/golden_record, @@ -42,7 +46,7 @@ c S S S -S +k "} (2,1,1) = {" S diff --git a/_maps/map_files/RandomRuins/SpaceRuins/way_home.dmm b/_maps/map_files/RandomRuins/SpaceRuins/way_home.dmm index 1d5d0a0d0410..96555361ed94 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/way_home.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/way_home.dmm @@ -14,6 +14,32 @@ }, /turf/simulated/floor/plating/asteroid/airless, /area/ruin/space/unpowered/no_grav/way_home) +"g" = ( +/obj/structure/spawner/mining/hivelord, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered/no_grav/way_home) +"n" = ( +/turf/simulated/mineral/random/high_chance/clown, +/area/ruin/space/unpowered/no_grav/way_home) +"s" = ( +/mob/living/simple_animal/hostile/carp/megacarp, +/turf/template_noop, +/area/template_noop) +"z" = ( +/obj/structure/spawner/mining/basilisk, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered/no_grav/way_home) +"O" = ( +/obj/item/salvage/ruin/tablet, +/turf/simulated/floor/plating/asteroid/airless, +/area/ruin/space/unpowered/no_grav/way_home) +"P" = ( +/mob/living/simple_animal/hostile/carp, +/turf/template_noop, +/area/template_noop) +"R" = ( +/turf/simulated/mineral/random/high_chance, +/area/ruin/space/unpowered/no_grav/way_home) (1,1,1) = {" a @@ -75,7 +101,7 @@ a a a a -a +P a a "} @@ -104,8 +130,8 @@ a a a a -b -b +R +R a a a @@ -136,9 +162,9 @@ a a a a -b -b -b +R +R +R a a a @@ -169,10 +195,10 @@ a a a a -b -a +R a a +P a "} (6,1,1) = {" @@ -234,7 +260,7 @@ a a a a -a +P a a a @@ -252,7 +278,7 @@ a a b b -b +R b b b @@ -282,10 +308,10 @@ a a a b -b -b -b -b +R +R +R +R b b a @@ -315,13 +341,13 @@ b b b b -b -b +R +R b b a a -a +P a a a @@ -348,7 +374,7 @@ b b b b -b +R b c a @@ -356,7 +382,7 @@ a a a a -a +s a a a @@ -376,8 +402,8 @@ b b b b -b -b +R +R b b b @@ -407,8 +433,8 @@ a b b b -b -b +R +R b b b @@ -423,7 +449,7 @@ a a a a -a +P a a a @@ -438,15 +464,15 @@ a b b b +R +R b b b b b -b -b -c c +g c c c @@ -469,10 +495,10 @@ a b b b +R +R b -b -b -b +R b b c @@ -507,7 +533,7 @@ b b b c -c +O c a a @@ -546,7 +572,7 @@ a a c c -c +O c c c @@ -583,7 +609,7 @@ c b b b -b +n b b a @@ -612,11 +638,11 @@ a a c c -c -b -b -b +z b +R +n +n b a a @@ -647,8 +673,8 @@ c c c b -b -b +n +n b b a @@ -680,8 +706,8 @@ a c b b -b -b +n +n b a a @@ -777,8 +803,8 @@ a a a a -b -b +R +R a a a @@ -817,7 +843,7 @@ a "} (26,1,1) = {" a -a +P a a a @@ -850,7 +876,7 @@ a (27,1,1) = {" a a -a +P a a a @@ -882,7 +908,7 @@ a (28,1,1) = {" a a -a +P a a a @@ -913,8 +939,8 @@ a "} (29,1,1) = {" a -a -a +P +P a a a @@ -944,7 +970,7 @@ a a "} (30,1,1) = {" -a +s a a a diff --git a/_maps/map_files/RandomRuins/SpaceRuins/whiteship.dmm b/_maps/map_files/RandomRuins/SpaceRuins/whiteship.dmm index bd0783a12996..4e36b0536388 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/whiteship.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/whiteship.dmm @@ -121,7 +121,7 @@ /area/shuttle/abandoned) "qK" = ( /obj/structure/table/reinforced, -/obj/item/gun/energy/laser/retro, +/obj/item/whiteship_port_generator, /turf/simulated/floor/mineral/plastitanium, /area/shuttle/abandoned) "ri" = ( @@ -214,6 +214,13 @@ }, /turf/simulated/floor/plating, /area/shuttle/abandoned) +"xz" = ( +/obj/structure/chair/comfy/shuttle{ + dir = 8 + }, +/mob/living/simple_animal/hostile/pirate, +/turf/simulated/floor/mineral/plastitanium, +/area/shuttle/abandoned) "ys" = ( /obj/structure/table, /obj/item/storage/box/lights/mixed, @@ -269,6 +276,7 @@ /obj/machinery/light/small{ dir = 4 }, +/obj/item/salvage/ruin/pirate, /turf/simulated/floor/mineral/titanium, /area/shuttle/abandoned) "Ct" = ( @@ -400,6 +408,11 @@ }, /turf/simulated/floor/mineral/plastitanium, /area/shuttle/abandoned) +"YH" = ( +/obj/structure/table/wood/poker, +/obj/item/gun/energy/laser/retro, +/turf/simulated/floor/wood, +/area/shuttle/abandoned) (1,1,1) = {" zM @@ -435,8 +448,8 @@ zM zM zO Gs -SS -SS +xz +xz qK zO zM @@ -545,7 +558,7 @@ zO zO Pe sK -sK +YH zO vB vB diff --git a/_maps/map_files/RandomRuins/SpaceRuins/wizardcrash.dmm b/_maps/map_files/RandomRuins/SpaceRuins/wizardcrash.dmm index 8434558c253c..81116fa3bdf8 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/wizardcrash.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/wizardcrash.dmm @@ -165,13 +165,6 @@ /obj/item/book/manual/hydroponics_pod_people, /turf/simulated/floor/wood, /area/ruin/space/unpowered) -"aF" = ( -/obj/structure/table/wood, -/obj/item/blank_tarot_card, -/turf/simulated/floor/wood{ - icon_state = "wood-broken6" - }, -/area/ruin/space/unpowered) "aG" = ( /obj/structure/table/wood, /obj/item/candle/eternal, @@ -220,8 +213,15 @@ /turf/simulated/floor/wood, /area/ruin/space/unpowered) "aO" = ( -/obj/item/storage/bag/books, +/obj/item/storage/bag/books{ + pixel_y = 4; + pixel_x = 1 + }, /obj/structure/table/wood, +/obj/item/salvage/ruin/tablet{ + pixel_x = -5; + pixel_y = 4 + }, /turf/simulated/floor/wood, /area/ruin/space/unpowered) "aP" = ( @@ -510,6 +510,13 @@ /obj/structure/table, /turf/simulated/floor/plating, /area/ruin/space/unpowered) +"YM" = ( +/obj/structure/table/wood, +/obj/item/blank_tarot_card, +/turf/simulated/floor/wood{ + icon_state = "wood-broken6" + }, +/area/ruin/space/unpowered) (1,1,1) = {" aa @@ -748,7 +755,7 @@ ah an av aC -aF +YM aC aO aC diff --git a/_maps/map_files/RandomRuins/SpaceRuins/wreckedcargoship.dmm b/_maps/map_files/RandomRuins/SpaceRuins/wreckedcargoship.dmm index 83d5f5fefa81..d48f3703ebea 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/wreckedcargoship.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/wreckedcargoship.dmm @@ -146,6 +146,7 @@ /obj/structure/chair/comfy/shuttle{ dir = 4 }, +/mob/living/simple_animal/hostile/pirate/ranged, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -182,6 +183,7 @@ /obj/structure/chair/comfy/corp{ dir = 8 }, +/mob/living/simple_animal/hostile/pirate, /turf/simulated/floor/plasteel, /area/ruin/space/wreck_cargoship) "hO" = ( @@ -466,6 +468,7 @@ /obj/effect/turf_decal/stripes/corner{ dir = 1 }, +/mob/living/simple_animal/parrot, /turf/simulated/floor/plasteel{ icon_state = "titanium"; dir = 4 @@ -593,6 +596,7 @@ }, /area/ruin/space/wreck_cargoship) "vq" = ( +/obj/structure/reagent_dispensers/fueltank, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "black" @@ -908,6 +912,7 @@ /area/ruin/space/wreck_cargoship) "Ll" = ( /obj/effect/decal/cleanable/blood/old, +/obj/item/salvage/ruin/pirate, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "black" @@ -1054,6 +1059,14 @@ icon_state = "black" }, /area/ruin/space/wreck_cargoship) +"RM" = ( +/obj/effect/decal/cleanable/dirt, +/mob/living/simple_animal/hostile/pirate, +/turf/simulated/floor/plasteel{ + icon_state = "titanium"; + dir = 4 + }, +/area/ruin/space/wreck_cargoship) "RZ" = ( /obj/structure/rack, /mob/living/simple_animal/bot/secbot/griefsky/toy, @@ -1185,6 +1198,10 @@ icon_state = "caution" }, /area/ruin/space/wreck_cargoship) +"Vo" = ( +/mob/living/simple_animal/hostile/pirate/ranged, +/turf/simulated/floor/plating, +/area/ruin/space/wreck_cargoship) "Vs" = ( /turf/simulated/floor/plating, /area/ruin/space/wreck_cargoship) @@ -1503,7 +1520,7 @@ ea qg gE Yz -Vs +Vo Sj gE qg @@ -1735,7 +1752,7 @@ NI NM cT NM -NM +RM qY NM xX diff --git a/_maps/map_files/generic/centcomm.dmm b/_maps/map_files/generic/centcomm.dmm index 6949d75e90f5..743bb7b30585 100644 --- a/_maps/map_files/generic/centcomm.dmm +++ b/_maps/map_files/generic/centcomm.dmm @@ -4462,7 +4462,7 @@ /area/centcom/specops) "oQ" = ( /obj/machinery/door/poddoor/multi_tile/impassable/four_tile_ver{ - name = "Jupiter Station Central Access" + name = "Trading Satellite Central Access" }, /turf/simulated/floor/plating/airless, /area/trader_station/sol) @@ -5873,7 +5873,7 @@ dwidth = 4; height = 11; id = "trade_sol_base"; - name = "docking bay 2 at Jupiter Station"; + name = "docking bay at Trading Satellite"; width = 9 }, /obj/structure/fans/tiny, @@ -6851,7 +6851,7 @@ /area/admin) "xf" = ( /obj/machinery/computer/security{ - network = list("SS13","Telecomms","Research Outpost","Mining Outpost","ERT","CentComm","Thunderdome") + network = list("SS13","Telecomms","Research Outpost","Mining Outpost","ERT","CentComm","Thunderdome") }, /turf/simulated/floor/plasteel, /area/admin) @@ -9095,7 +9095,7 @@ "Gs" = ( /obj/machinery/computer/security{ dir = 4; - network = list("SS13","Telecomms","Research Outpost","Mining Outpost") + network = list("SS13","Telecomms","Research Outpost","Mining Outpost") }, /obj/structure/sign/poster/official/nanotrasen_logo{ pixel_x = -32 @@ -10217,7 +10217,7 @@ "Kd" = ( /obj/machinery/computer/security{ dir = 1; - network = list("SS13","Telecomms","Research Outpost","Mining Outpost","ERT","CentComm","Thunderdome") + network = list("SS13","Telecomms","Research Outpost","Mining Outpost","ERT","CentComm","Thunderdome") }, /turf/simulated/floor/plasteel/dark, /area/centcom/control) @@ -10492,7 +10492,7 @@ "Lb" = ( /obj/machinery/computer/security{ dir = 1; - network = list("SS13","Telecomms","Research Outpost","Mining Outpost","ERT","CentComm","Thunderdome") + network = list("SS13","Telecomms","Research Outpost","Mining Outpost","ERT","CentComm","Thunderdome") }, /turf/simulated/floor/mineral/plastitanium/red, /area/shuttle/specops) @@ -12878,7 +12878,7 @@ /area/shuttle/transport) "Tu" = ( /obj/machinery/door/airlock/centcom/glass{ - name = "Jupiter Station Central Access" + name = "Trading Satellite Central Access" }, /turf/simulated/floor/wood, /area/trader_station/sol) @@ -14305,7 +14305,7 @@ "Yu" = ( /obj/machinery/computer/security{ dir = 1; - network = list("SS13","Telecomms","Research Outpost","Mining Outpost","ERT","CentComm","Thunderdome") + network = list("SS13","Telecomms","Research Outpost","Mining Outpost","ERT","CentComm","Thunderdome") }, /turf/simulated/floor/wood, /area/centcom/control) diff --git a/_maps/map_files/shuttles/emergency_narnar.dmm b/_maps/map_files/shuttles/emergency_narnar.dmm index 467195e51d67..776dc4acda56 100644 --- a/_maps/map_files/shuttles/emergency_narnar.dmm +++ b/_maps/map_files/shuttles/emergency_narnar.dmm @@ -152,9 +152,7 @@ /turf/simulated/floor/engine/cult, /area/shuttle/escape) "aA" = ( -/obj/structure/closet/walllocker/emerglocker{ - pixel_x = 28 - }, +/obj/structure/closet/walllocker/emerglocker/north, /turf/simulated/floor/engine/cult, /area/shuttle/escape) "aB" = ( @@ -165,19 +163,9 @@ /obj/structure/chair/comfy/shuttle{ dir = 1 }, -/turf/simulated/floor/engine/cult, -/area/shuttle/escape) -"aC" = ( /obj/item/radio/intercom{ dir = 4; - pixel_x = 28 - }, -/obj/effect/decal/remains/human{ - desc = "This guy seemed to have died in terrible way! Half his remains are dust."; - name = "Human remains" - }, -/obj/structure/chair/comfy/shuttle{ - dir = 8 + pixel_y = -28 }, /turf/simulated/floor/engine/cult, /area/shuttle/escape) @@ -267,12 +255,6 @@ /obj/machinery/light/spot, /turf/simulated/floor/engine/cult, /area/shuttle/escape) -"aU" = ( -/obj/effect/spawner/window/reinforced{ - color = "red" - }, -/turf/space, -/area/shuttle/escape) "aV" = ( /mob/living/simple_animal/hostile/construct/harvester, /turf/simulated/floor/engine/cult, @@ -451,9 +433,9 @@ an ab au aj -aC +au ab -aj +aA aj aj aF @@ -478,7 +460,7 @@ ab ac ay ac -ac +ab aj aF aH @@ -538,7 +520,7 @@ aM aI aQ aF -ac +ab aa aa aa @@ -564,7 +546,7 @@ aI aV aH aS -aU +ab ab ab ab @@ -658,7 +640,7 @@ aa aa ab aj -aA +aj aj aj aj @@ -668,7 +650,7 @@ aj aj aj aj -ac +ab aZ aZ aZ @@ -684,16 +666,16 @@ aa aa ab ab -ab ac -ab -ab -ab ac ac ac +ab +ac ac ac +ac +ab ab ab ab diff --git a/_maps/map_files/stations/boxstation.dmm b/_maps/map_files/stations/boxstation.dmm index eea05eb169fc..dec972b08ada 100644 --- a/_maps/map_files/stations/boxstation.dmm +++ b/_maps/map_files/stations/boxstation.dmm @@ -13858,8 +13858,12 @@ /turf/simulated/floor/plating, /area/station/maintenance/fpmaint) "aSA" = ( -/turf/simulated/wall/r_wall, -/area/station/service/expedition) +/obj/effect/landmark/start/blueshield, +/obj/structure/chair/office/dark{ + dir = 1 + }, +/turf/simulated/floor/wood, +/area/station/command/office/blueshield) "aSC" = ( /turf/simulated/floor/plasteel{ icon_state = "dark" @@ -14093,15 +14097,14 @@ /turf/simulated/wall, /area/station/hallway/secondary/garden) "aTv" = ( -/obj/structure/rack, /obj/effect/turf_decal/delivery/blue/hollow, -/obj/item/pickaxe, -/obj/item/pickaxe, -/obj/item/pickaxe, +/obj/effect/decal/cleanable/dirt, +/obj/structure/rack, +/obj/effect/spawner/lootdrop/maintenance, /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "aTw" = ( /obj/structure/cable{ d1 = 1; @@ -14111,24 +14114,20 @@ /turf/simulated/floor/plating, /area/station/maintenance/fpmaint) "aTx" = ( -/obj/structure/rack, /obj/effect/turf_decal/delivery/blue/hollow, -/obj/item/flashlight, -/obj/item/flashlight, -/obj/item/flashlight, -/obj/item/flashlight, +/obj/effect/decal/cleanable/blood/old, +/obj/effect/decal/remains/xeno, /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "aTy" = ( -/obj/machinery/light{ - dir = 1 - }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/blood/old, /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "aTz" = ( /obj/structure/cable{ d1 = 1; @@ -14583,10 +14582,11 @@ /turf/simulated/wall/r_wall, /area/station/command/vault) "aUF" = ( +/obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "aUG" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -14605,7 +14605,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "aUI" = ( /obj/structure/window/reinforced{ dir = 1 @@ -16577,24 +16577,18 @@ /turf/simulated/floor/plasteel, /area/station/public/storage/tools) "bam" = ( -/obj/structure/cable{ - d1 = 2; - d2 = 8; - icon_state = "2-8" - }, /obj/machinery/atmospherics/unary/vent_pump/on, -/obj/effect/landmark/start/explorer, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "ban" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on, -/obj/effect/landmark/start/explorer, +/obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "bao" = ( /obj/machinery/status_display{ layer = 4; @@ -18213,17 +18207,11 @@ }, /area/station/public/dorms) "bfe" = ( -/obj/machinery/camera{ - c_tag = "Expedition"; - dir = 4 - }, -/obj/structure/table, -/obj/item/storage/fancy/donut_box, -/obj/item/storage/fancy/donut_box, +/obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "bfi" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -18806,20 +18794,20 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/port/east) "bgK" = ( -/obj/structure/chair/stool{ - dir = 8 - }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/blood/old, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "darkbluecorners" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "bgL" = ( +/mob/living/simple_animal/cockroach, /turf/simulated/floor/plasteel{ dir = 4; icon_state = "darkbluecorners" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "bgM" = ( /obj/structure/table/glass, /obj/item/hatchet, @@ -19150,34 +19138,33 @@ /turf/simulated/floor/plasteel, /area/station/public/storage/office) "bhG" = ( -/obj/structure/table, -/obj/machinery/recharger{ - pixel_y = 4 - }, -/obj/machinery/light_switch{ - name = "north bump"; - pixel_y = 24 - }, +/obj/structure/rack, +/obj/effect/spawner/lootdrop/maintenance, /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "bhH" = ( /obj/machinery/status_display{ layer = 4; pixel_x = -32 }, +/obj/machinery/light/small{ + dir = 8 + }, +/obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "darkblue" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "bhI" = ( +/obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "darkblue" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "bhK" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 5 @@ -19237,13 +19224,13 @@ /obj/machinery/ai_status_display{ pixel_x = 32 }, -/obj/machinery/recharge_station, /obj/effect/turf_decal/delivery/hollow, +/obj/structure/ore_box, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "darkblue" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "bhQ" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 10 @@ -19565,11 +19552,6 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/port/east) "biH" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, /turf/simulated/floor/plasteel{ @@ -20251,15 +20233,11 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/nw) "bku" = ( -/obj/effect/spawner/window/reinforced/polarized/grilled{ - id = "NT" - }, -/obj/structure/cable{ - d2 = 2; - icon_state = "0-2" - }, -/turf/simulated/floor/plating, -/area/station/command/office/ntrep) +/obj/effect/decal/cleanable/dirt, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/turf/simulated/floor/plasteel, +/area/station/supply/expedition) "bkv" = ( /turf/simulated/floor/plasteel{ dir = 8; @@ -20534,18 +20512,14 @@ }, /area/station/service/hydroponics) "blf" = ( -/obj/structure/cable{ - d2 = 4; - icon_state = "0-4" - }, -/obj/machinery/power/apc/directional/west, -/obj/structure/closet/secure_closet/personal, +/obj/effect/turf_decal/delivery/hollow, +/obj/structure/ore_box, /obj/effect/turf_decal/delivery/hollow, /turf/simulated/floor/plasteel{ dir = 4; icon_state = "darkbluecorners" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "blg" = ( /obj/machinery/hologram/holopad, /turf/simulated/floor/plasteel, @@ -20888,13 +20862,13 @@ name = "east bump"; pixel_x = 24 }, -/obj/structure/closet/secure_closet/personal, /obj/effect/turf_decal/delivery/hollow, +/obj/structure/ore_box, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "darkbluecorners" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "bmm" = ( /turf/simulated/floor/plasteel, /area/station/hallway/secondary/exit) @@ -21106,11 +21080,6 @@ d2 = 8; icon_state = "4-8" }, -/obj/structure/cable{ - d1 = 1; - d2 = 4; - icon_state = "1-4" - }, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/nw) "bmO" = ( @@ -22560,10 +22529,9 @@ /turf/simulated/floor/plating, /area/station/public/storage/emergency/port) "bqF" = ( -/obj/structure/table/wood, -/obj/item/flashlight/lamp, +/obj/structure/bookcase/sop, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "bqG" = ( /obj/structure/table, /obj/item/stack/sheet/glass{ @@ -24143,14 +24111,18 @@ /turf/simulated/wall, /area/station/public/locker) "bvr" = ( -/obj/machinery/computer/secure_data{ +/obj/effect/decal/cleanable/dirt, +/obj/machinery/requests_console{ + department = "Expedition"; + departmentType = 2; + pixel_x = -30; dir = 4 }, -/obj/structure/sign/poster/random{ - pixel_x = -32 +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "brown" }, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) +/area/station/supply/expedition) "bvs" = ( /turf/simulated/wall, /area/station/public/toilet/lockerroom) @@ -25284,14 +25256,11 @@ /turf/simulated/floor/carpet, /area/station/command/office/captain) "bAb" = ( -/obj/structure/chair/comfy/black{ - dir = 8 - }, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, -/turf/simulated/floor/carpet/blue, -/area/station/command/office/blueshield) +/turf/simulated/floor/carpet/royalblack, +/area/station/command/office/ntrep) "bAe" = ( /obj/machinery/light, /turf/simulated/floor/plasteel, @@ -25523,22 +25492,11 @@ }, /area/station/science/rnd) "bBf" = ( -/obj/machinery/door_control{ - id = "ntrepofficedoor"; - name = "Office Door"; - normaldoorcontrol = 1; - pixel_x = 6; - pixel_y = -24; - req_access_txt = "73" - }, -/obj/machinery/button/windowtint{ - dir = 1; - id = "NT"; - pixel_x = -8; - pixel_y = -24 +/obj/structure/closet/secure_closet/explorer, +/turf/simulated/floor/plasteel{ + icon_state = "brown" }, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) +/area/station/supply/expedition) "bBg" = ( /obj/structure/closet/emcloset, /obj/machinery/camera{ @@ -27793,23 +27751,12 @@ }, /area/station/medical/reception) "bJC" = ( -/obj/structure/table, -/obj/item/radio{ - pixel_x = 6; - pixel_y = 4 - }, -/obj/item/radio{ - pixel_x = -6; - pixel_y = 4 - }, -/obj/item/radio{ - pixel_y = 6 - }, -/obj/item/radio, +/obj/structure/rack, +/obj/item/poster/random_contraband, /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "bJE" = ( /obj/machinery/light{ dir = 8 @@ -27980,12 +27927,8 @@ /turf/simulated/floor/plating, /area/station/hallway/secondary/entry/south) "bKs" = ( -/obj/structure/chair/office/dark{ - dir = 1 - }, -/obj/effect/landmark/start/nanotrasen_rep, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) +/turf/simulated/floor/plasteel, +/area/station/supply/expedition) "bKt" = ( /obj/machinery/atmospherics/pipe/simple/hidden/cyan, /obj/effect/spawner/window/reinforced/tinted, @@ -28786,10 +28729,8 @@ }, /area/station/hallway/secondary/exit) "bNx" = ( +/obj/machinery/alarm/directional/south, /obj/machinery/light, -/obj/machinery/atmospherics/unary/vent_scrubber/on{ - dir = 1 - }, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "browncorner" @@ -29406,8 +29347,12 @@ name = "south bump"; pixel_y = -28 }, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) +/obj/structure/closet/secure_closet/explorer, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + icon_state = "brown" + }, +/area/station/supply/expedition) "bPK" = ( /obj/structure/chair/stool{ dir = 1 @@ -30402,9 +30347,20 @@ }, /area/station/science/robotics) "bTk" = ( -/obj/machinery/economy/vending/cigarette, -/turf/simulated/floor/plasteel, -/area/station/hallway/primary/central/sw) +/obj/machinery/button/windowtint{ + id = "BS"; + pixel_y = -24; + dir = 1; + pixel_x = 4 + }, +/obj/machinery/light_switch{ + dir = 1; + name = "south bump"; + pixel_y = -24; + pixel_x = -4 + }, +/turf/simulated/floor/wood, +/area/station/command/office/blueshield) "bTq" = ( /obj/machinery/light/small{ dir = 1 @@ -30544,7 +30500,6 @@ dir = 1 }, /obj/structure/table, -/obj/item/hand_tele, /turf/simulated/floor/plasteel, /area/station/command/teleporter) "bTR" = ( @@ -31336,14 +31291,18 @@ /turf/simulated/floor/plasteel, /area/station/supply/lobby) "bXk" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 +/obj/structure/cable{ + d1 = 2; + d2 = 8; + icon_state = "2-8" }, -/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ - dir = 1 +/obj/structure/disposalpipe/junction{ + dir = 1; + icon_state = "pipe-j2" }, -/obj/structure/disposalpipe/segment/corner{ - dir = 8 +/obj/machinery/atmospherics/pipe/manifold4w/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ + dir = 1 }, /obj/structure/cable{ d1 = 4; @@ -31693,9 +31652,14 @@ }, /area/station/medical/cryo) "bYD" = ( -/obj/machinery/atmospherics/unary/vent_scrubber/on{ - dir = 1 +/obj/structure/cable{ + d1 = 1; + d2 = 2; + icon_state = "1-2" }, +/obj/structure/disposalpipe/segment, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, /turf/simulated/floor/plasteel, /area/station/supply/lobby) "bYG" = ( @@ -32094,35 +32058,60 @@ }, /area/station/medical/reception) "cao" = ( -/obj/machinery/power/apc/directional/west, -/obj/item/kirbyplants, +/obj/effect/spawner/random_spawners/cobweb_left_frequent, /obj/structure/cable{ - d2 = 2; - icon_state = "0-2" + d2 = 4; + icon_state = "0-4" }, -/obj/machinery/light{ - dir = 1 +/obj/machinery/light_switch{ + name = "north bump"; + pixel_y = 24 }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/obj/machinery/power/apc/directional/west, +/turf/simulated/floor/plasteel{ + dir = 9; + icon_state = "brown" + }, +/area/station/supply/expedition) "cap" = ( -/obj/machinery/status_display{ - layer = 4; - pixel_y = 32 +/obj/effect/decal/cleanable/dirt, +/obj/structure/cable{ + d1 = 1; + d2 = 8; + icon_state = "1-8" }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/obj/structure/disposalpipe/segment{ + dir = 1; + icon_state = "pipe-c" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "brown" + }, +/area/station/supply/expedition) "caq" = ( -/obj/item/flag/nt, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "brown" + }, +/area/station/supply/expedition) "cat" = ( -/obj/structure/bookcase/sop, -/obj/machinery/light{ - dir = 1 +/obj/effect/decal/cleanable/dirt, +/obj/effect/spawner/random_spawners/cobweb_right_frequent, +/obj/structure/disposalpipe/trunk{ + dir = 8 }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/obj/machinery/disposal, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "brown" + }, +/area/station/supply/expedition) "cau" = ( /obj/structure/table, /obj/item/mmi, @@ -32524,10 +32513,15 @@ }, /area/station/medical/medbay) "cbR" = ( -/obj/machinery/disposal, -/obj/structure/disposalpipe/trunk, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/obj/machinery/light{ + dir = 4 + }, +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "brown" + }, +/area/station/supply/expedition) "cbT" = ( /obj/machinery/door/firedoor, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ @@ -32864,8 +32858,9 @@ /obj/machinery/light{ dir = 1 }, +/obj/structure/bookcase/sop, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "ccW" = ( /obj/structure/cable{ d1 = 1; @@ -33008,22 +33003,15 @@ }, /area/station/science/robotics) "cdE" = ( -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/structure/disposalpipe/segment/corner{ - dir = 1 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 +/obj/machinery/computer/security/telescreen/entertainment{ + pixel_x = 32 }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "brown" }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/area/station/supply/expedition) "cdF" = ( /obj/machinery/computer/operating{ name = "Robotics Operating Computer"; @@ -33092,18 +33080,17 @@ }, /area/station/science/hallway) "cdQ" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/obj/machinery/light_switch{ +/obj/effect/decal/cleanable/dirt, +/obj/machinery/newscaster{ dir = 4; name = "west bump"; - pixel_x = -24 + pixel_x = -28 }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "brown" + }, +/area/station/supply/expedition) "cdS" = ( /obj/structure/cable{ d2 = 2; @@ -33372,7 +33359,7 @@ icon_state = "0-8" }, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "ceQ" = ( /obj/structure/disposalpipe/junction{ dir = 1 @@ -33400,20 +33387,21 @@ }, /area/station/supply/miningdock) "cfd" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 4; - icon_state = "1-4" - }, /obj/item/radio/intercom{ name = "west bump"; pixel_x = -28 }, -/obj/machinery/atmospherics/unary/vent_scrubber/on{ - dir = 4 +/obj/machinery/camera{ + c_tag = "AI Satellite Atmospherics"; + dir = 4; + network = list("SS13","MiniSat") }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/obj/machinery/recharge_station, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "brown" + }, +/area/station/supply/expedition) "cfe" = ( /turf/simulated/floor/plating{ desc = "
There is some old writing on this floor. You are barely able to read out a few lines from a tangled scribble.

In a chamber a great mirror lies, cut away it solemn cries. Travel bold as thou might, piercing vastness as a kite.

HONK!
"; @@ -33435,20 +33423,16 @@ codes_txt = "patrol;next_patrol=AIW"; location = "QM" }, -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 5 }, -/obj/structure/disposalpipe/segment{ - dir = 4 +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 5 }, -/obj/machinery/atmospherics/pipe/manifold4w/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/manifold/hidden/supply, /obj/structure/cable{ d1 = 1; - d2 = 8; - icon_state = "1-8" + d2 = 4; + icon_state = "1-4" }, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/sw) @@ -33460,39 +33444,12 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/sw) "cfj" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/structure/disposalpipe/segment{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "browncorner" - }, -/area/station/hallway/primary/central/sw) -"cfm" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/structure/disposalpipe/segment{ - dir = 4 - }, -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" + d1 = 1; + d2 = 2; + icon_state = "1-2" }, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/sw) @@ -33505,9 +33462,6 @@ }, /area/station/hallway/primary/aft/north) "cfq" = ( -/obj/structure/disposalpipe/segment{ - dir = 4 - }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, @@ -33539,9 +33493,6 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, -/obj/structure/disposalpipe/segment{ - dir = 4 - }, /obj/structure/cable{ d1 = 4; d2 = 8; @@ -33555,20 +33506,22 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/sw) "cfu" = ( -/obj/structure/disposalpipe/segment{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 +/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ + dir = 1 }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 +/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ + dir = 1 }, /obj/structure/cable{ d1 = 4; d2 = 8; icon_state = "4-8" }, +/obj/structure/cable{ + d1 = 2; + d2 = 4; + icon_state = "2-4" + }, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/sw) "cfv" = ( @@ -33786,8 +33739,8 @@ }, /obj/structure/cable{ d1 = 2; - d2 = 8; - icon_state = "2-8" + d2 = 4; + icon_state = "2-4" }, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/south) @@ -34193,12 +34146,9 @@ }, /area/station/medical/medbay3) "chH" = ( -/obj/structure/closet/cabinet, -/obj/item/reagent_containers/drinks/bottle/whiskey, -/obj/item/reagent_containers/drinks/drinkingglass, -/obj/item/reagent_containers/drinks/drinkingglass, +/obj/structure/closet/secure_closet/ntrep, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "chI" = ( /obj/machinery/door/poddoor/preopen{ id_tag = "Biohazard_medi"; @@ -34380,7 +34330,7 @@ dir = 1 }, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "ciC" = ( /obj/machinery/alarm/directional/south, /obj/effect/landmark/spawner/xeno, @@ -34419,16 +34369,11 @@ }, /area/station/medical/medbay) "ciG" = ( -/obj/structure/table/wood, -/obj/item/ashtray/glass{ - pixel_x = -4; - pixel_y = -4 - }, /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 4 }, -/turf/simulated/floor/carpet/blue, -/area/station/command/office/blueshield) +/turf/simulated/floor/wood, +/area/station/command/office/ntrep) "ciH" = ( /obj/machinery/computer/crew, /turf/simulated/floor/wood, @@ -34457,7 +34402,7 @@ }, /obj/item/kirbyplants, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "ciM" = ( /obj/machinery/camera{ c_tag = "Central Primary Hallway South-West"; @@ -34862,20 +34807,26 @@ /turf/simulated/wall, /area/station/medical/medbay3) "ckt" = ( -/turf/simulated/floor/carpet/blue, -/area/station/command/office/blueshield) +/obj/structure/table/wood, +/turf/simulated/floor/carpet/royalblack, +/area/station/command/office/ntrep) "ckv" = ( /turf/simulated/floor/wood, /area/station/command/office/ntrep) "ckw" = ( +/obj/structure/disposalpipe/segment{ + dir = 4; + icon_state = "pipe-c" + }, /turf/simulated/floor/carpet/royalblack, /area/station/command/office/ntrep) "ckx" = ( -/obj/machinery/keycard_auth{ - pixel_x = -24 +/obj/machinery/economy/vending/exploredrobe, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "brown" }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/area/station/supply/expedition) "ckB" = ( /obj/machinery/light{ dir = 8 @@ -34950,10 +34901,13 @@ }, /area/station/medical/virology) "ckG" = ( -/obj/structure/chair/comfy/black, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) +/obj/effect/decal/cleanable/dirt, +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + dir = 8 + }, +/obj/effect/landmark/start/explorer, +/turf/simulated/floor/plasteel, +/area/station/supply/expedition) "ckL" = ( /obj/structure/table, /obj/item/paper_bin, @@ -35231,7 +35185,7 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "clO" = ( /obj/structure/disposalpipe/segment, /obj/machinery/door/airlock/public/glass{ @@ -35537,8 +35491,9 @@ dir = 9 }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/turf/simulated/floor/carpet/blue, -/area/station/command/office/blueshield) +/obj/machinery/hologram/holopad, +/turf/simulated/floor/carpet/royalblack, +/area/station/command/office/ntrep) "cmQ" = ( /obj/structure/rack, /obj/item/extinguisher, @@ -35671,10 +35626,21 @@ /obj/machinery/light_switch{ dir = 1; name = "south bump"; - pixel_y = -24 + pixel_y = -24; + pixel_x = -5 + }, +/obj/structure/chair/office/dark{ + dir = 1 + }, +/obj/effect/landmark/start/nanotrasen_rep, +/obj/machinery/button/windowtint{ + id = "NTR"; + pixel_y = -24; + dir = 1; + pixel_x = 4 }, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "cnv" = ( /obj/item/seeds/berry, /turf/simulated/floor/wood{ @@ -35844,9 +35810,13 @@ }, /area/station/medical/patients_rooms1) "cnX" = ( -/obj/structure/closet/secure_closet/ntrep, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) +/obj/structure/closet/secure_closet/explorer, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + dir = 10; + icon_state = "brown" + }, +/area/station/supply/expedition) "cnY" = ( /turf/simulated/floor/plasteel{ dir = 8; @@ -35927,21 +35897,35 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, -/turf/simulated/floor/carpet/blue, -/area/station/command/office/blueshield) +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/structure/cable{ + d1 = 4; + d2 = 8; + icon_state = "4-8" + }, +/turf/simulated/floor/plasteel, +/area/station/hallway/primary/central/sw) "con" = ( /obj/effect/spawner/random_spawners/blood_often, /turf/simulated/floor/plating, /area/station/maintenance/port) "coo" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/turf/simulated/floor/carpet/blue, -/area/station/command/office/blueshield) +/obj/structure/table/wood, +/obj/machinery/photocopier/faxmachine/longrange{ + department = "NT Representative's Office"; + pixel_y = 4 + }, +/turf/simulated/floor/carpet/royalblack, +/area/station/command/office/ntrep) "cop" = ( -/obj/item/flag/nt, /obj/machinery/alarm/directional/east, +/obj/structure/table/wood, +/obj/item/paper_bin/nanotrasen, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "cot" = ( /obj/structure/table, /obj/item/clothing/glasses/hud/health, @@ -35964,9 +35948,13 @@ }, /area/station/maintenance/asmaint2) "coH" = ( -/obj/machinery/photocopier, -/turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/obj/effect/spawner/random_spawners/cobweb_right_frequent, +/obj/structure/dispenser/oxygen, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "brown" + }, +/area/station/supply/expedition) "coK" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 1 @@ -35996,22 +35984,8 @@ }, /area/station/supply/miningdock) "coT" = ( -/obj/machinery/door_control{ - id = "blueshieldofficedoor"; - name = "Office Door"; - normaldoorcontrol = 1; - pixel_x = 6; - pixel_y = -24; - req_access_txt = "67" - }, -/obj/machinery/button/windowtint{ - dir = 1; - id = "BS"; - pixel_x = -8; - pixel_y = -24; - req_access_txt = "67" - }, -/turf/simulated/floor/wood, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/wall, /area/station/command/office/blueshield) "coU" = ( /obj/machinery/camera{ @@ -36022,8 +35996,15 @@ name = "south bump"; pixel_y = -28 }, +/obj/machinery/door/window/classic/normal{ + dir = 8; + name = "Glass Door" + }, +/obj/effect/mapping_helpers/airlock/windoor/access/any/command/ntrep{ + dir = 8 + }, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "coV" = ( /obj/structure/cable{ d1 = 1; @@ -36035,18 +36016,6 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, /area/station/maintenance/port) -"coW" = ( -/obj/machinery/requests_console{ - announcementConsole = 1; - department = "Blueshield"; - departmentType = 5; - pixel_y = -30 - }, -/obj/machinery/atmospherics/unary/vent_scrubber/on{ - dir = 1 - }, -/turf/simulated/floor/wood, -/area/station/command/office/blueshield) "coZ" = ( /obj/structure/table, /turf/simulated/floor/plasteel{ @@ -36431,12 +36400,12 @@ }, /area/station/supply/miningdock) "cqB" = ( -/obj/machinery/camera{ - c_tag = "NT Representative's Office"; - dir = 8 +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "brown" }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/area/station/supply/expedition) "cqG" = ( /obj/effect/decal/cleanable/dirt, /obj/structure/closet/wardrobe/miner, @@ -36446,21 +36415,24 @@ }, /area/station/supply/miningdock) "cqI" = ( -/obj/structure/chair/office/dark{ - dir = 4 +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/structure/cable{ + d1 = 1; + d2 = 2; + icon_state = "1-2" }, -/obj/effect/landmark/start/blueshield, -/turf/simulated/floor/carpet/blue, -/area/station/command/office/blueshield) +/turf/simulated/floor/plasteel, +/area/station/hallway/primary/central/south) "cqJ" = ( /obj/structure/cable{ d1 = 4; d2 = 8; icon_state = "4-8" }, -/obj/machinery/hologram/holopad, -/turf/simulated/floor/carpet/blue, -/area/station/command/office/blueshield) +/obj/structure/chair/comfy/black, +/turf/simulated/floor/carpet/royalblack, +/area/station/command/office/ntrep) "cqK" = ( /obj/effect/decal/cleanable/dirt, /mob/living/simple_animal/mouse, @@ -37829,12 +37801,13 @@ /turf/simulated/floor/plasteel, /area/station/maintenance/port) "cvm" = ( -/obj/item/clothing/gloves/color/rainbow, -/obj/item/clothing/shoes/rainbow, -/obj/item/clothing/under/color/rainbow, -/obj/item/clothing/head/soft/rainbow, -/turf/simulated/floor/plating, -/area/station/maintenance/apmaint) +/obj/effect/decal/cleanable/dirt, +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "brown" + }, +/area/station/supply/expedition) "cvp" = ( /turf/simulated/wall/r_wall, /area/station/maintenance/apmaint) @@ -40001,21 +39974,6 @@ }, /turf/simulated/floor/bluegrid, /area/station/turret_protected/ai) -"cCp" = ( -/obj/machinery/firealarm{ - dir = 4; - name = "east bump"; - pixel_x = 24 - }, -/obj/machinery/requests_console{ - announcementConsole = 1; - department = "NT Representative"; - departmentType = 5; - pixel_y = 30 - }, -/obj/machinery/photocopier, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) "cCq" = ( /turf/simulated/floor/engine, /area/station/maintenance/incinerator) @@ -40469,15 +40427,16 @@ }, /area/station/public/construction) "cDS" = ( -/obj/item/paper/blueshield, +/obj/machinery/alarm/directional/east, /obj/structure/table/wood, -/obj/item/pen/blue, -/obj/item/lighter/zippo/blue{ - pixel_x = 7; - pixel_y = 4 +/obj/item/paper_bin{ + pixel_y = 4; + pixel_x = -5 }, -/obj/machinery/keycard_auth{ - pixel_x = -24 +/obj/item/folder/blue, +/obj/item/book/manual/wiki/sop_command, +/obj/machinery/light{ + dir = 4 }, /turf/simulated/floor/wood, /area/station/command/office/blueshield) @@ -40961,9 +40920,13 @@ }, /area/station/science/misc_lab) "cFM" = ( -/obj/structure/filingcabinet, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) +/obj/structure/closet/secure_closet/explorer, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + dir = 6; + icon_state = "brown" + }, +/area/station/supply/expedition) "cFP" = ( /obj/structure/rack{ dir = 8; @@ -41261,43 +41224,32 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 5 }, -/obj/structure/cable{ - d1 = 1; - d2 = 4; - icon_state = "1-4" - }, -/obj/effect/landmark/start/explorer, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "cGV" = ( /obj/item/radio/intercom{ name = "west bump"; pixel_x = -28 }, -/obj/structure/closet/secure_closet/personal, /obj/effect/turf_decal/delivery/hollow, +/obj/structure/ore_box, /turf/simulated/floor/plasteel{ dir = 4; icon_state = "darkbluecorners" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "cGX" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 10 }, -/obj/structure/cable{ - d1 = 2; - d2 = 8; - icon_state = "2-8" - }, -/obj/effect/landmark/start/explorer, +/obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "cGY" = ( /obj/structure/chair{ dir = 8 @@ -41324,15 +41276,11 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, +/mob/living/simple_animal/mouse/gray, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "cHb" = ( /obj/machinery/status_display{ layer = 4; @@ -41497,23 +41445,17 @@ }, /area/station/turret_protected/ai_upload) "cHB" = ( -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/turf/simulated/floor/plasteel, +/area/station/supply/expedition) "cHC" = ( -/obj/structure/table/wood, -/obj/machinery/photocopier/faxmachine/longrange{ - department = "NT Representative's Office" +/obj/machinery/mineral/equipment_vendor/explorer, +/turf/simulated/floor/plasteel{ + dir = 10; + icon_state = "brown" }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/area/station/supply/expedition) "cHD" = ( /turf/simulated/floor/plasteel, /area/station/hallway/primary/aft/south) @@ -42594,8 +42536,11 @@ /turf/simulated/floor/plasteel, /area/station/maintenance/assembly_line) "cLE" = ( -/obj/effect/spawner/random_spawners/fungus_maybe, -/turf/simulated/wall, +/obj/structure/table/wood, +/obj/item/paper/ntrep, +/obj/item/stamp/rep, +/obj/item/folder, +/turf/simulated/floor/carpet/royalblack, /area/station/command/office/ntrep) "cLF" = ( /obj/structure/cable{ @@ -44302,11 +44247,11 @@ /turf/simulated/wall/r_wall, /area/station/maintenance/portsolar) "cRB" = ( -/obj/machinery/firealarm{ - dir = 8; - name = "west bump"; - pixel_x = -24 +/obj/structure/cable{ + d2 = 8; + icon_state = "0-8" }, +/obj/machinery/power/apc/directional/east, /turf/simulated/floor/wood, /area/station/command/office/blueshield) "cRC" = ( @@ -46394,7 +46339,7 @@ dir = 4; icon_state = "darkbluecorners" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "cYO" = ( /obj/machinery/hologram/holopad, /turf/simulated/floor/plasteel{ @@ -46418,15 +46363,10 @@ "cYS" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "cYT" = ( /obj/machinery/atmospherics/trinary/tvalve/digital/flipped, /turf/simulated/floor/plasteel, @@ -46444,17 +46384,6 @@ /obj/machinery/atmospherics/pipe/manifold4w/visible, /turf/simulated/floor/plasteel, /area/station/engineering/atmos) -"cZa" = ( -/obj/machinery/requests_console{ - department = "Expedition"; - departmentType = 2; - pixel_x = 30 - }, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "darkbluecorners" - }, -/area/station/service/expedition) "cZb" = ( /obj/machinery/atmospherics/binary/pump{ dir = 4; @@ -48156,15 +48085,9 @@ /turf/simulated/floor/plating, /area/station/maintenance/asmaint2) "dfg" = ( -/obj/structure/table/wood, -/obj/item/folder/blue{ - pixel_x = 4; - pixel_y = 6 - }, -/obj/item/paper_bin, -/obj/item/book/manual/wiki/sop_command, -/turf/simulated/floor/carpet/blue, -/area/station/command/office/blueshield) +/obj/machinery/photocopier, +/turf/simulated/floor/wood, +/area/station/command/office/ntrep) "dfh" = ( /obj/effect/turf_decal/delivery, /obj/machinery/atmospherics/portable/scrubber, @@ -51069,6 +50992,7 @@ pixel_x = 24; pixel_y = -5 }, +/obj/item/hand_tele, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -57197,31 +57121,30 @@ id_tag = "blueshieldofficedoor" }, /obj/effect/mapping_helpers/airlock/autoname, -/obj/effect/mapping_helpers/airlock/access/all/command/blueshield, /obj/structure/cable{ d1 = 1; d2 = 2; icon_state = "1-2" }, /obj/effect/mapping_helpers/airlock/polarized{ - id = "BS" + id = "NTR" }, /obj/machinery/door/firedoor, /obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/effect/mapping_helpers/airlock/access/all/command/blueshield, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/effect/mapping_helpers/airlock/access/all/command/ntrep, /obj/structure/cable{ d1 = 1; - d2 = 4; - icon_state = "1-4" + d2 = 8; + icon_state = "1-8" }, /obj/structure/cable{ d1 = 1; - d2 = 8; - icon_state = "1-8" + d2 = 4; + icon_state = "1-4" }, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "fMM" = ( /obj/structure/flora/grass/jungle, /turf/simulated/floor/grass, @@ -58686,10 +58609,10 @@ }, /area/station/public/toilet/unisex) "gyA" = ( -/obj/machinery/hologram/holopad, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) +/obj/effect/decal/cleanable/dirt, +/obj/effect/landmark/start/explorer, +/turf/simulated/floor/plasteel, +/area/station/supply/expedition) "gyG" = ( /obj/effect/turf_decal/stripes/line{ dir = 10 @@ -59278,6 +59201,12 @@ /obj/structure/lattice, /turf/space, /area/space/nearstation) +"gNX" = ( +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "darkblue" + }, +/area/station/maintenance/fpmaint) "gOd" = ( /obj/structure/chair{ dir = 1 @@ -61168,6 +61097,15 @@ /obj/structure/cable, /turf/simulated/floor/plating, /area/station/command/bridge) +"hJe" = ( +/obj/machinery/atmospherics/unary/vent_pump/on{ + dir = 1 + }, +/obj/structure/table/wood, +/obj/item/paper/blueshield, +/obj/item/lighter/zippo/blue, +/turf/simulated/floor/carpet/blue, +/area/station/command/office/blueshield) "hJj" = ( /obj/machinery/computer/security/mining, /turf/simulated/floor/plasteel{ @@ -65225,6 +65163,10 @@ icon_state = "red" }, /area/station/legal/courtroom) +"jNe" = ( +/obj/item/flag/nt, +/turf/simulated/floor/wood, +/area/station/command/office/blueshield) "jNu" = ( /obj/machinery/door_control{ id = "teleshutter"; @@ -66594,22 +66536,14 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/south) "kwE" = ( -/obj/machinery/door/firedoor, -/obj/machinery/door/airlock/command{ - name = "Expedition Access" - }, -/obj/effect/mapping_helpers/airlock/access/all/command/expedition, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, +/obj/machinery/door/airlock/maintenance, +/obj/effect/mapping_helpers/airlock/access/all/engineering/maintenance, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "kwG" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/landmark/spawner/nukedisc_respawn, @@ -66926,6 +66860,14 @@ icon_state = "wood-broken7" }, /area/station/maintenance/asmaint) +"kEs" = ( +/obj/effect/decal/cleanable/dirt, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 5 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/turf/simulated/floor/plasteel, +/area/station/supply/expedition) "kEt" = ( /obj/effect/turf_decal/stripes/corner{ dir = 1 @@ -67076,14 +67018,14 @@ /area/station/science/storage) "kHO" = ( /obj/effect/spawner/window/reinforced/polarized/grilled{ - id = "BS" + id = "NTR" }, /obj/structure/cable{ d2 = 8; icon_state = "0-8" }, /turf/simulated/floor/plating, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "kHT" = ( /obj/machinery/atmospherics/pipe/manifold/hidden/supply, /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, @@ -67417,6 +67359,7 @@ /obj/structure/disposalpipe/segment, /obj/effect/mapping_helpers/airlock/access/any/supply/mining, /obj/effect/mapping_helpers/airlock/access/any/supply/mail_sorting, +/obj/effect/mapping_helpers/airlock/access/any/supply/expedition, /turf/simulated/floor/plasteel, /area/station/supply/sorting) "kPo" = ( @@ -67773,6 +67716,13 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/asmaint2) +"kYq" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/blood/old, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/maintenance/fpmaint) "kYB" = ( /obj/machinery/atmospherics/pipe/simple/visible/cyan, /obj/machinery/atmospherics/pipe/simple/visible/yellow{ @@ -67808,6 +67758,23 @@ icon_state = "white" }, /area/station/science/robotics) +"kZX" = ( +/obj/effect/mapping_helpers/airlock/access/any/supply/expedition, +/obj/structure/cable{ + d1 = 1; + d2 = 2; + icon_state = "1-2" + }, +/obj/structure/disposalpipe/segment, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/door/firedoor, +/obj/machinery/door/airlock/mining{ + name = "Expedition Headquarters" + }, +/obj/effect/mapping_helpers/airlock/autoname, +/turf/simulated/floor/plasteel, +/area/station/supply/expedition) "laa" = ( /obj/machinery/atmospherics/unary/vent_pump/on, /turf/simulated/floor/plasteel{ @@ -71479,6 +71446,13 @@ }, /turf/simulated/floor/engine, /area/station/engineering/control) +"mNf" = ( +/obj/structure/disposalpipe/trunk{ + dir = 1 + }, +/obj/machinery/disposal, +/turf/simulated/floor/wood, +/area/station/command/office/blueshield) "mNq" = ( /obj/machinery/door/firedoor, /obj/machinery/door/window/reinforced/normal{ @@ -71939,20 +71913,16 @@ }, /area/station/medical/medbay2) "mZU" = ( -/obj/machinery/door/window{ - name = "Desk Door"; - dir = 4 - }, -/obj/effect/mapping_helpers/airlock/windoor/access/any/command/blueshield{ - dir = 4 - }, /obj/machinery/newscaster/security_unit{ dir = 1; name = "south bump"; pixel_y = -28 }, +/obj/machinery/computer/secure_data{ + dir = 4 + }, /turf/simulated/floor/wood, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "nab" = ( /obj/machinery/door/airlock/security/glass, /obj/effect/mapping_helpers/airlock/autoname, @@ -72379,8 +72349,11 @@ /area/station/turret_protected/aisat/interior) "nrD" = ( /obj/machinery/alarm/directional/west, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "brown" + }, +/area/station/supply/expedition) "nrS" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 9 @@ -75223,13 +75196,12 @@ }, /area/station/science/misc_lab) "oFK" = ( -/obj/structure/table/wood, -/obj/item/paper_bin/nanotrasen, +/obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/unary/vent_pump/on{ - dir = 1 + dir = 8 }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/turf/simulated/floor/plasteel, +/area/station/supply/expedition) "oGf" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/economy/vending/sovietsoda, @@ -75590,7 +75562,8 @@ }, /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ - icon_state = "white" + dir = 8; + icon_state = "brown" }, /area/station/supply/miningdock) "oLS" = ( @@ -75603,6 +75576,16 @@ icon_state = "whitepurple" }, /area/station/science/xenobiology) +"oLT" = ( +/obj/effect/spawner/window/reinforced/polarized/grilled{ + id = "BS" + }, +/obj/structure/cable{ + d2 = 4; + icon_state = "0-4" + }, +/turf/simulated/floor/plating, +/area/station/command/office/blueshield) "oMz" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -77526,6 +77509,18 @@ icon_state = "red" }, /area/station/security/permabrig) +"pNd" = ( +/obj/structure/cable{ + d1 = 1; + d2 = 4; + icon_state = "1-4" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 9 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/turf/simulated/floor/carpet/blue, +/area/station/command/office/blueshield) "pNj" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -77549,19 +77544,14 @@ /turf/simulated/floor/plasteel, /area/station/command/office/ce) "pNz" = ( -/obj/structure/table/wood, -/obj/item/flashlight/lamp/green{ - pixel_x = -5; - pixel_y = 12 +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 5 }, -/obj/item/clipboard{ - pixel_x = -2 +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "browncorner" }, -/obj/item/folder, -/obj/item/pen/multi/fountain, -/obj/item/stamp/rep, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/area/station/supply/expedition) "pNL" = ( /obj/machinery/power/apc/directional/west, /obj/structure/cable{ @@ -78127,42 +78117,16 @@ }, /area/station/public/toilet/unisex) "qcM" = ( -/obj/machinery/door/airlock/command/glass{ - id_tag = "ntrepofficedoor"; - name = "NT Representative's Office" +/obj/effect/spawner/window/reinforced/polarized/grilled{ + id = "BS" }, -/obj/effect/mapping_helpers/airlock/access/all/command/ntrep, +/obj/structure/disposalpipe/segment, /obj/structure/cable{ - d1 = 4; d2 = 8; - icon_state = "4-8" - }, -/obj/effect/mapping_helpers/airlock/polarized{ - id = "NT" - }, -/obj/machinery/door/firedoor, -/obj/structure/disposalpipe/segment{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/effect/mapping_helpers/airlock/access/all/command/ntrep, -/obj/structure/cable{ - d1 = 2; - d2 = 4; - icon_state = "2-4" - }, -/obj/structure/cable{ - d1 = 1; - d2 = 4; - icon_state = "1-4" + icon_state = "0-8" }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/turf/simulated/floor/plating, +/area/station/command/office/blueshield) "qcN" = ( /obj/structure/disposalpipe/segment/corner{ dir = 4 @@ -79089,13 +79053,14 @@ /turf/simulated/floor/carpet/green, /area/station/command/bridge) "qvo" = ( -/obj/structure/closet/secure_closet/personal, /obj/effect/turf_decal/delivery/hollow, +/obj/effect/decal/cleanable/dirt, +/obj/structure/ore_box, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "darkbluecorners" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "qvO" = ( /obj/structure/table, /obj/item/paper_bin{ @@ -80283,9 +80248,8 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, -/obj/structure/disposalpipe/junction{ - dir = 1; - icon_state = "pipe-j2" +/obj/structure/disposalpipe/junction/reversed{ + dir = 1 }, /obj/structure/cable{ d1 = 4; @@ -80404,6 +80368,18 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fore) +"qZX" = ( +/obj/effect/decal/cleanable/dirt, +/obj/machinery/requests_console{ + department = "Expedition"; + departmentType = 2; + pixel_x = 30 + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "darkbluecorners" + }, +/area/station/maintenance/fpmaint) "rac" = ( /obj/structure/bed, /obj/item/bedsheet/medical, @@ -80995,11 +80971,10 @@ /turf/simulated/floor/plating, /area/station/maintenance/aft) "rmK" = ( -/obj/machinery/light, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "rmT" = ( /obj/machinery/atmospherics/pipe/manifold/visible/cyan{ dir = 1 @@ -81286,14 +81261,14 @@ "rvo" = ( /obj/structure/disposalpipe/segment, /obj/effect/spawner/window/reinforced/polarized/grilled{ - id = "BS" + id = "NTR" }, /obj/structure/cable{ d2 = 4; icon_state = "0-4" }, /turf/simulated/floor/plating, -/area/station/command/office/blueshield) +/area/station/command/office/ntrep) "rvD" = ( /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel, @@ -81837,6 +81812,11 @@ icon_state = "brown" }, /area/station/supply/miningdock) +"rJJ" = ( +/obj/structure/disposalpipe/segment, +/obj/machinery/atmospherics/unary/vent_scrubber/on, +/turf/simulated/floor/plasteel, +/area/station/supply/lobby) "rJZ" = ( /obj/structure/disposalpipe/segment, /obj/structure/cable{ @@ -82428,6 +82408,16 @@ }, /turf/simulated/floor/plasteel, /area/station/supply/sorting) +"rZr" = ( +/obj/structure/cable{ + d1 = 1; + d2 = 2; + icon_state = "1-2" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/turf/simulated/floor/wood, +/area/station/command/office/blueshield) "rZE" = ( /obj/effect/decal/cleanable/dirt, /obj/structure/cable{ @@ -82488,6 +82478,34 @@ }, /turf/simulated/floor/engine/plasma, /area/station/engineering/atmos) +"sco" = ( +/obj/machinery/door/airlock/command/glass{ + id_tag = "blueshieldofficedoor" + }, +/obj/effect/mapping_helpers/airlock/access/all/command/blueshield, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/effect/mapping_helpers/airlock/autoname, +/obj/effect/mapping_helpers/airlock/polarized{ + id = "BS" + }, +/obj/structure/cable{ + d1 = 1; + d2 = 2; + icon_state = "1-2" + }, +/obj/structure/cable{ + d1 = 1; + d2 = 8; + icon_state = "1-8" + }, +/obj/structure/cable{ + d1 = 1; + d2 = 4; + icon_state = "1-4" + }, +/turf/simulated/floor/wood, +/area/station/command/office/blueshield) "scq" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 1 @@ -82666,6 +82684,10 @@ icon_state = "white" }, /area/station/medical/virology) +"shN" = ( +/obj/structure/disposalpipe/segment, +/turf/simulated/floor/plasteel, +/area/station/hallway/primary/central/sw) "siq" = ( /obj/machinery/door/airlock/maintenance_hatch{ name = "MiniSat Maintenance" @@ -82809,14 +82831,15 @@ /turf/simulated/floor/plating, /area/station/maintenance/asmaint) "smS" = ( -/obj/structure/closet/crate, -/obj/effect/spawner/random_spawners/cobweb_right_rare, -/obj/effect/spawner/lootdrop/maintenance, -/obj/machinery/light/small{ - dir = 1 +/obj/machinery/requests_console{ + announcementConsole = 1; + department = "Blueshield"; + departmentType = 5; + name = "Blueshield Requests Console"; + pixel_y = -30 }, -/turf/simulated/floor/plating, -/area/station/maintenance/apmaint) +/turf/simulated/wall, +/area/station/command/office/blueshield) "smW" = ( /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ dir = 4 @@ -83658,6 +83681,26 @@ }, /turf/simulated/floor/plasteel, /area/station/command/bridge) +"sJe" = ( +/obj/machinery/light{ + dir = 4 + }, +/obj/machinery/firealarm{ + dir = 4; + name = "east bump"; + pixel_x = 24 + }, +/obj/machinery/requests_console{ + announcementConsole = 1; + department = "NT Representative"; + departmentType = 5; + pixel_y = 30 + }, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "brown" + }, +/area/station/supply/expedition) "sJu" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock{ @@ -84967,6 +85010,12 @@ /obj/structure/weightmachine/stacklifter, /turf/simulated/floor/plasteel, /area/station/public/dorms) +"tvi" = ( +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + dir = 4 + }, +/turf/simulated/floor/carpet/blue, +/area/station/command/office/blueshield) "tvr" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ @@ -86965,15 +87014,11 @@ }, /area/station/science/xenobiology) "uro" = ( -/obj/machinery/door/window{ - dir = 1; - name = "Desk Door" - }, -/obj/effect/mapping_helpers/airlock/windoor/access/any/command/ntrep{ - dir = 1 +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "browncorner" }, -/turf/simulated/floor/wood, -/area/station/command/office/ntrep) +/area/station/supply/expedition) "ury" = ( /obj/structure/cable{ d1 = 1; @@ -87266,19 +87311,9 @@ /turf/simulated/floor/plating, /area/station/science/xenobiology) "uAa" = ( -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 6 - }, -/turf/simulated/floor/carpet/royalblack, -/area/station/command/office/ntrep) +/obj/effect/landmark/start/explorer, +/turf/simulated/floor/plasteel, +/area/station/supply/expedition) "uAo" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ @@ -90394,11 +90429,10 @@ }, /area/station/public/dorms) "wgt" = ( -/obj/structure/closet/crate, -/obj/effect/spawner/lootdrop/maintenance/two, -/obj/effect/spawner/random_spawners/cobweb_right_rare, -/turf/simulated/floor/plating, -/area/station/maintenance/apmaint) +/obj/structure/table/wood, +/obj/item/ashtray/glass, +/turf/simulated/floor/carpet/blue, +/area/station/command/office/blueshield) "wgA" = ( /obj/effect/landmark/burnturf, /obj/effect/decal/cleanable/dirt, @@ -90839,12 +90873,8 @@ /turf/simulated/floor/plating, /area/station/maintenance/apmaint2) "wrU" = ( -/obj/effect/spawner/window/reinforced/polarized/grilled{ - id = "NT" - }, -/obj/structure/cable, -/turf/simulated/floor/plating, -/area/station/command/office/ntrep) +/turf/simulated/wall, +/area/station/supply/expedition) "wrY" = ( /obj/structure/chair{ dir = 8 @@ -92042,14 +92072,6 @@ icon_state = "whitepurplecorner" }, /area/station/science/hallway) -"xaf" = ( -/obj/structure/table, -/obj/item/storage/firstaid/regular, -/obj/item/storage/firstaid/regular, -/turf/simulated/floor/plasteel{ - icon_state = "darkbluefull" - }, -/area/station/service/expedition) "xag" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 5 @@ -92193,6 +92215,16 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /turf/simulated/floor/plasteel, /area/station/public/dorms) +"xcV" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/mapping_helpers/airlock/windoor/access/all/command/blueshield, +/obj/machinery/door/window/classic/normal, +/obj/item/radio/intercom{ + name = "west bump"; + pixel_x = -28 + }, +/turf/simulated/floor/wood, +/area/station/command/office/blueshield) "xde" = ( /obj/machinery/mech_bay_recharge_port{ dir = 1 @@ -92685,6 +92717,14 @@ icon_state = "whitepurple" }, /area/station/science/explab) +"xpJ" = ( +/obj/effect/decal/cleanable/dirt, +/obj/machinery/camera{ + c_tag = "Blueshield's Office"; + dir = 1 + }, +/turf/simulated/floor/wood, +/area/station/command/office/blueshield) "xpW" = ( /obj/machinery/door/airlock/maintenance, /obj/effect/mapping_helpers/airlock/access/all/engineering/maintenance, @@ -92764,7 +92804,7 @@ /turf/simulated/floor/grass/jungle/no_creep, /area/station/command/bridge) "xqL" = ( -/obj/effect/spawner/random_spawners/fungus_maybe, +/obj/structure/sign/poster/official/nanotrasen_logo, /turf/simulated/wall, /area/station/command/office/blueshield) "xrj" = ( @@ -92838,6 +92878,19 @@ }, /turf/simulated/floor/plating, /area/station/command/bridge) +"xty" = ( +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + dir = 1 + }, +/obj/machinery/requests_console{ + announcementConsole = 1; + department = "NT Representative"; + departmentType = 5; + pixel_y = -30; + dir = 1 + }, +/turf/simulated/floor/wood, +/area/station/command/office/ntrep) "xtZ" = ( /mob/living/simple_animal/pet/penguin/baby, /turf/simulated/floor/carpet, @@ -93334,14 +93387,13 @@ /turf/simulated/floor/plasteel, /area/station/supply/miningdock) "xHw" = ( -/obj/machinery/door/airlock/maintenance{ - name = "Expedition Maintenance" - }, -/obj/effect/mapping_helpers/airlock/access/any/command/eva, +/obj/structure/barricade/wooden/crude, +/obj/effect/mapping_helpers/airlock/access/all/engineering/maintenance, +/obj/machinery/door/airlock/maintenance, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/maintenance/fpmaint) "xHy" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ @@ -117942,14 +117994,14 @@ bDX bDX rwR bzJ -cgW -cgW -cgW -cgW -cgW -cgW -cgW -cgW +wrU +wrU +wrU +wrU +wrU +wrU +wrU +wrU cog nNh coP @@ -118199,16 +118251,16 @@ bUU bUU hLL bsY -cgW +wrU cao cdQ cfd nrD ckx cHC -cgW -cgW -cgW +wrU +wrU +wrU cha cam ckM @@ -118453,19 +118505,19 @@ kOU bzF fTS bzF -bzF +rJJ bXk bYD -cgW +kZX cap -ckw +bku cHB -ckw -ckw +cHB +kEs pNz bvr cnX -cgW +wrU xfv uvc uId @@ -118680,12 +118732,12 @@ aMA bac aSu aSu -aSA -aSA -aSA -aSA -aSA -aSA +aSu +aSu +aSu +aSu +aSu +aSu gIc dmx bkg @@ -118713,16 +118765,16 @@ bUV bVL bXj fIS -cgW +wrU caq -ckw +uAa uAa gyA ckG oFK bKs bBf -cgW +wrU nIY cqs egi @@ -118934,15 +118986,15 @@ aMY aPi aRr aMA -aSA -aSA +aSu +aSu bhG bfe bhH blf cGV cYN -aSA +aSu djO bmC bks @@ -118970,16 +119022,16 @@ bUX tum bVt bWU -cgW +wrU cat cbR cdE -ckv +cvm cqB uro -ckw +bKs bPH -cgW +wrU eGZ jWV cqs @@ -119191,15 +119243,15 @@ uJq aPw aVE aQj -aSA +aSu aTv aTx bgK bhI bam cGT -aUF -aSA +rmK +aSu bgP yhp bkq @@ -119227,16 +119279,16 @@ bUW bPW jPF jPF -cgW -cgW -bku -qcM wrU -cgW -cgW -cCp +wrU +wrU +wrU +wrU +wrU +coH +sJe cFM -cgW +wrU xQB cgQ rgs @@ -119448,15 +119500,15 @@ aMY aPi aRr aQl -aSA +aSu aTy -aUH -aUF +aTy +kYq aUF aUF cGZ rmK -aSA +aSu qZp yhp gsf @@ -119487,13 +119539,13 @@ bOw bYO bOw bOw -cfj bOw -bTk -cgW -cgW -cgW -cLE +bOw +wrU +wrU +wrU +wrU +wrU xyI coL sPF @@ -119707,9 +119759,9 @@ ffD aPi xHw aUH -aUH +bfe bgL -bhI +gNX ban cGX cYS @@ -119747,8 +119799,8 @@ ajO cfh bNx cgQ -cgQ -tGO +coL +coL ezn tIs reC @@ -119962,15 +120014,15 @@ aRP aEl ffD biE -aSA -aSA +aSu +aSu bJC -xaf +aUH bhP bmk qvo -cZa -aSA +qZX +aSu djW yhp bgS @@ -120220,14 +120272,14 @@ aEl aRr aQl aPi -aSA -aSA -aSA -aSA -aSA -aSA -aSA -aSA +aSu +aSu +aSu +aSu +aSu +aSu +aSu +aSu djV bmW bkv @@ -120258,14 +120310,14 @@ bSi bSi bSi bTy -cfm +cok cfi -cgQ +cgS smS -coL -lNb -lNb -cwl +cgS +coT +coT +cgS lNb cyg gYs @@ -120515,14 +120567,14 @@ hwK hwK bSi cdT -cfm +cok nKN -cgQ -gYs -tGO -cqs -lNb -coL +cgS +jNe +clR +xcV +xpJ +cgS nBs hyx cgQ @@ -120774,12 +120826,12 @@ bSi cdS cfs bTy -cgQ -cvm -cgQ +oLT +ciH +tvi wgt -coL -coL +bTk +cgS lNb lNb cgQ @@ -121030,12 +121082,12 @@ mun bSi cdV cfu -bTy -cgS -cgS -cgS -cgS -cgS +cfj +sco +rZr +pNd +hJe +aSA xqL tGO lNb @@ -121286,13 +121338,13 @@ iLY bZc bSi cdU -cfm -bTy -cgS -ciD +cok +shN +qcM +mNf cRB cDS -coH +ciD cgS csw coL @@ -121546,10 +121598,10 @@ cdJ cfT cdJ cgS -ciH -cqI -ckt -coT +cgS +cgS +cgS +cgS cgS lNb ybL @@ -121802,12 +121854,12 @@ bSi cdX rME ciM -cgS +cgW bqF ciG dfg mZU -cgS +cgW coL lNb cgQ @@ -122059,12 +122111,12 @@ sMZ cdZ rME cdN -cgS +cgW ccL bAb -ckt -clR -cgS +ckw +ckv +cgW lNb qov cgQ @@ -122318,10 +122370,10 @@ qVN wuu rvo ciB -cok +bAb ckt coU -cgS +cgW cvf clr cgQ @@ -122572,13 +122624,13 @@ izs doo cfv cgi -cev +cqI fMD clL cmM coo -coW -cgS +xty +cgW cqs csE cgQ @@ -122831,11 +122883,11 @@ cfv cgj cdN kHO -clR +ckv cqJ -ckt +cLE cnu -cgS +cgW cqs csE cgQ @@ -123087,12 +123139,12 @@ nEK cfv cgh bsr -cgS +cgW ciK ceP cop chH -cgS +cgW csE cqs gYs @@ -123344,12 +123396,12 @@ cdN cfv cgj qbm -cgS -cgS -cgS -cgS -cgS -cgS +cgW +cgW +cgW +cgW +cgW +cgW xLy xLy cgQ diff --git a/_maps/map_files/stations/cerestation.dmm b/_maps/map_files/stations/cerestation.dmm index 6d9352005e52..ef2e647a8753 100644 --- a/_maps/map_files/stations/cerestation.dmm +++ b/_maps/map_files/stations/cerestation.dmm @@ -2486,6 +2486,13 @@ /obj/machinery/ai_status_display, /turf/simulated/wall/r_wall, /area/station/turret_protected/aisat/interior) +"apu" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/spawner/lootdrop/maintenance, +/turf/simulated/floor/plating{ + icon_state = "asteroidplating" + }, +/area/station/maintenance/fore2) "apw" = ( /obj/structure/table, /obj/item/storage/toolbox/emergency, @@ -2745,41 +2752,37 @@ /turf/simulated/floor/plating/asteroid/ancient, /area/station/maintenance/fpmaint) "ard" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 9 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 +/obj/effect/decal/cleanable/dirt, +/obj/machinery/light/small, +/turf/simulated/floor/plating{ + icon_state = "asteroidplating" }, -/obj/machinery/syndicatebomb/training, -/obj/machinery/light, -/turf/simulated/floor/plasteel, -/area/station/security/defusal) +/area/station/security/permabrig) "arh" = ( -/obj/item/disk/nuclear/training{ - pixel_y = -2; - pixel_x = -7 - }, -/obj/structure/table/reinforced, -/obj/item/paper/nuclear_guide_spacing{ - pixel_x = 10; - pixel_y = 7 - }, -/obj/item/paper/nuclear_guide_defusing{ - pixel_x = 9; - pixel_y = 4 - }, -/obj/item/disk/nuclear/training{ - pixel_x = -5 +/obj/item/vending_refill/cola, +/obj/item/multitool, +/obj/effect/decal/cleanable/dirt, +/obj/effect/spawner/grouped_spawner{ + group_id = "tunnelbats"; + max_per_spawner = 1; + name = "bat spawner"; + path_to_spawn = /mob/living/simple_animal/hostile/scarybat; + total_amount = 20 }, -/obj/item/paper/nuclear_guide_operating{ - pixel_x = 8; - pixel_y = 1 +/turf/simulated/floor/plating{ + icon_state = "asteroidplating" }, -/turf/simulated/floor/plasteel{ - icon_state = "redcorner" +/area/station/maintenance/fore2) +"ark" = ( +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plating{ + icon_state = "asteroidplating" }, -/area/station/security/defusal) +/area/station/maintenance/fore2) +"arl" = ( +/obj/structure/closet/emcloset, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "arm" = ( /obj/machinery/door/airlock/maintenance{ name = "Fore Asteroid Maintenance Access" @@ -3827,6 +3830,7 @@ "axJ" = ( /obj/structure/table, /obj/item/folder/blue, +/obj/item/hand_tele, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -5825,13 +5829,6 @@ "aMC" = ( /turf/simulated/mineral/ancient, /area/station/medical/break_room) -"aME" = ( -/obj/machinery/door/airlock/maintenance, -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor/plating{ - icon_state = "asteroidplating" - }, -/area/station/security/permabrig) "aMJ" = ( /obj/machinery/firealarm{ dir = 1; @@ -8087,9 +8084,6 @@ d2 = 8; icon_state = "4-8" }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 9 - }, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) "aYU" = ( @@ -9027,22 +9021,6 @@ icon_state = "dark" }, /area/station/ai_monitored/storage/eva) -"bdA" = ( -/obj/structure/cable{ - d1 = 2; - d2 = 4; - icon_state = "2-4" - }, -/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ - dir = 8 - }, -/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/ai_monitored/storage/eva) "bdB" = ( /obj/structure/rack, /obj/structure/window/reinforced{ @@ -9153,11 +9131,6 @@ /obj/effect/mapping_helpers/airlock/access/any/command/eva, /obj/machinery/door/firedoor, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -9313,11 +9286,6 @@ dir = 1 }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -9603,11 +9571,6 @@ /obj/machinery/atmospherics/pipe/manifold/hidden/supply, /obj/machinery/hologram/holopad, /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, -/obj/structure/cable{ - d1 = 1; - d2 = 8; - icon_state = "1-8" - }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -9760,7 +9723,6 @@ /area/station/command/office/cmo) "bhm" = ( /obj/structure/table, -/obj/item/hand_tele, /obj/item/radio/beacon, /obj/item/radio/intercom{ pixel_x = -28; @@ -11255,7 +11217,7 @@ /obj/machinery/door/airlock/engineering/glass{ name = "Laser Room" }, -/obj/effect/mapping_helpers/airlock/access/any/engineering/atmos, +/obj/effect/mapping_helpers/airlock/access/all/engineering/general, /obj/structure/cable{ d1 = 1; d2 = 2; @@ -11263,7 +11225,6 @@ }, /obj/machinery/door/firedoor, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/effect/mapping_helpers/airlock/access/any/engineering/general, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -12065,22 +12026,20 @@ pixel_x = -3; pixel_y = -2 }, +/obj/item/clothing/glasses/sunglasses, +/obj/item/clothing/glasses/sunglasses{ + pixel_x = 3; + pixel_y = 3 + }, /turf/simulated/floor/plasteel, /area/station/security/range) "bsP" = ( +/obj/machinery/syndicatebomb/training, +/obj/structure/closet/bombclosetsecurity, /obj/item/radio/intercom{ pixel_y = -28; name = "custom placement" }, -/obj/structure/table/reinforced, -/obj/item/clothing/glasses/sunglasses{ - pixel_x = 3; - pixel_y = 3 - }, -/obj/item/clothing/glasses/sunglasses, -/obj/item/storage/box/flashbangs{ - pixel_x = -16 - }, /turf/simulated/floor/plasteel, /area/station/security/range) "bsQ" = ( @@ -13631,15 +13590,6 @@ /obj/machinery/economy/vending/cola, /turf/simulated/floor/plating, /area/station/hallway/secondary/entry/south) -"bzs" = ( -/obj/machinery/atmospherics/unary/vent_scrubber/on{ - dir = 8 - }, -/obj/effect/landmark/start/explorer, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "bzv" = ( /obj/structure/table, /obj/item/storage/box/donkpockets, @@ -22750,6 +22700,17 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /turf/simulated/floor/plasteel, /area/station/security/lobby) +"cth" = ( +/obj/effect/landmark/start/explorer, +/obj/machinery/firealarm{ + pixel_y = 24; + name = "north bump" + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "ctk" = ( /obj/machinery/light/small{ dir = 8 @@ -23133,14 +23094,6 @@ icon_state = "darkbrown" }, /area/station/supply/office) -"cvm" = ( -/obj/structure/table, -/obj/item/clothing/gloves/fingerless, -/obj/item/clothing/head/soft/cargo, -/turf/simulated/floor/plasteel{ - icon_state = "darkbrown" - }, -/area/station/supply/office) "cvp" = ( /obj/structure/table, /obj/item/hand_labeler, @@ -25509,16 +25462,6 @@ icon_state = "yellowcorner" }, /area/station/hallway/primary/central/west) -"cJn" = ( -/obj/structure/table, -/obj/item/flashlight, -/obj/item/flashlight, -/obj/item/flashlight, -/obj/item/flashlight, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "cJo" = ( /obj/structure/table, /obj/item/storage/toolbox/mechanical, @@ -25813,16 +25756,13 @@ /turf/simulated/floor/wood, /area/station/legal/magistrate) "cKZ" = ( -/obj/machinery/atmospherics/unary/vent_scrubber/on, -/obj/item/radio/intercom{ - name = "custom placement"; - pixel_y = 28 - }, -/obj/machinery/camera{ - c_tag = "Defusal Workshop" +/obj/machinery/door/airlock/maintenance, +/obj/effect/mapping_helpers/airlock/access/all/security/general, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plating{ + icon_state = "asteroidplating" }, -/turf/simulated/floor/plasteel, -/area/station/security/defusal) +/area/station/maintenance/fore2) "cLa" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -28703,11 +28643,10 @@ }, /area/station/supply/office) "cXf" = ( -/obj/structure/grille/broken, -/turf/simulated/floor/plating{ - icon_state = "asteroidplating" +/turf/simulated/floor/plasteel{ + icon_state = "dark" }, -/area/station/maintenance/fsmaint) +/area/station/supply/expedition) "cXi" = ( /turf/simulated/floor/engine{ slowdown = -0.3 @@ -29006,23 +28945,6 @@ icon_state = "darkyellow" }, /area/station/engineering/atmos) -"cZi" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 6 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 6 - }, -/obj/structure/cable/orange{ - d2 = 2; - icon_state = "0-2" - }, -/obj/machinery/power/apc/directional/west, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "redcorner" - }, -/area/station/security/defusal) "cZr" = ( /obj/structure/chair{ dir = 8 @@ -29394,11 +29316,13 @@ /area/station/security/prison/cell_block/A) "ddl" = ( /obj/effect/spawner/window/reinforced/grilled, -/obj/machinery/door/firedoor, /obj/structure/cable/orange{ + d1 = 1; d2 = 4; - icon_state = "0-4" + icon_state = "1-4" }, +/obj/structure/cable/orange, +/obj/machinery/door/firedoor, /turf/simulated/floor/plating, /area/station/security/permabrig) "ddn" = ( @@ -30644,6 +30568,13 @@ }, /turf/space, /area/station/hallway/spacebridge/cargocom) +"dky" = ( +/obj/effect/landmark/start/explorer, +/obj/effect/spawner/random_spawners/dirt_maybe, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/supply/expedition) "dkC" = ( /obj/machinery/light/small, /obj/structure/closet/firecloset/full, @@ -30720,9 +30651,16 @@ }, /area/station/medical/medbay) "dlb" = ( -/obj/effect/spawner/random_spawners/wall_rusted_always, -/turf/simulated/wall, -/area/mine/unexplored/cere/cargo) +/obj/machinery/light_switch{ + dir = 4; + pixel_x = -24; + name = "west bump" + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "dld" = ( /obj/structure/cable/orange{ d1 = 4; @@ -33168,10 +33106,9 @@ /obj/machinery/door/airlock/engineering/glass{ name = "Laser Room" }, -/obj/effect/mapping_helpers/airlock/access/any/engineering/atmos, +/obj/effect/mapping_helpers/airlock/access/all/engineering/general, /obj/machinery/door/firedoor, /obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/effect/mapping_helpers/airlock/access/any/engineering/general, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -33496,6 +33433,13 @@ icon_state = "white" }, /area/station/medical/cloning) +"dAo" = ( +/obj/structure/closet/secure_closet/explorer, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "dAs" = ( /obj/item/radio/intercom{ pixel_y = 28; @@ -33975,17 +33919,6 @@ icon_state = "yellowcorner" }, /area/station/hallway/primary/central/east) -"dEa" = ( -/obj/machinery/light_switch{ - name = "north bump"; - pixel_y = 24 - }, -/obj/machinery/alarm/directional/west, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "redcorner" - }, -/area/station/security/defusal) "dEi" = ( /obj/structure/table/wood, /obj/item/ammo_box/shotgun/beanbag, @@ -34850,24 +34783,6 @@ icon_state = "bluered" }, /area/station/hallway/secondary/entry/west) -"dQG" = ( -/obj/machinery/door/airlock/security/glass{ - name = "Defusal Workshop" - }, -/obj/effect/mapping_helpers/airlock/access/all/security/general, -/obj/machinery/door/firedoor, -/obj/structure/cable/orange{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "red" - }, -/area/station/security/defusal) "dQR" = ( /obj/machinery/door/airlock/maintenance{ name = "Aft Asteroid Maintenance" @@ -35013,6 +34928,17 @@ }, /turf/simulated/floor/wood, /area/station/service/theatre) +"dSO" = ( +/obj/machinery/newscaster{ + pixel_y = -28; + name = "south bump"; + dir = 1 + }, +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "dSV" = ( /obj/structure/cable{ d1 = 1; @@ -35269,10 +35195,12 @@ }, /area/station/hallway/primary/aft/west) "dXo" = ( -/obj/machinery/light/small{ - dir = 4 - }, /obj/effect/decal/cleanable/dirt, +/obj/structure/cable/orange{ + d1 = 1; + d2 = 8; + icon_state = "1-8" + }, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) "dXD" = ( @@ -36769,6 +36697,15 @@ /obj/machinery/hologram/holopad, /turf/simulated/floor/plasteel, /area/station/hallway/secondary/exit) +"eAn" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/closet/firecloset, +/obj/item/crowbar/red, +/obj/machinery/light{ + dir = 1 + }, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "eAu" = ( /obj/effect/turf_decal/delivery, /obj/machinery/recharge_station, @@ -37573,6 +37510,11 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, /area/station/maintenance/starboard) +"eNn" = ( +/obj/machinery/door/airlock/welded, +/obj/structure/barricade/wooden/crude, +/turf/simulated/floor/plating, +/area/station/maintenance/fsmaint) "eNC" = ( /obj/structure/cable/orange{ d1 = 1; @@ -41527,33 +41469,6 @@ /obj/effect/spawner/random_spawners/dirt_often, /turf/simulated/floor/transparent/glass/reinforced, /area/station/maintenance/apmaint) -"gmV" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 9 - }, -/obj/structure/table/reinforced, -/obj/item/clothing/head/welding{ - pixel_x = 12; - pixel_y = 6 - }, -/obj/item/multitool{ - pixel_x = -4; - pixel_y = 6 - }, -/obj/item/storage/toolbox/mechanical{ - pixel_x = -3; - pixel_y = -2 - }, -/turf/simulated/floor/plasteel, -/area/station/security/defusal) -"gmZ" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 5 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "gnu" = ( /turf/simulated/mineral/ancient, /area/station/maintenance/disposal/west) @@ -41692,6 +41607,13 @@ icon_state = "wood-broken7" }, /area/station/maintenance/asmaint) +"gqh" = ( +/obj/structure/closet/secure_closet/explorer, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "gqH" = ( /obj/structure/cable/orange{ d1 = 1; @@ -42901,21 +42823,6 @@ icon_state = "whitebluecorner" }, /area/station/medical/surgery/secondary) -"gLb" = ( -/obj/item/vending_refill/cola, -/obj/item/multitool, -/obj/effect/decal/cleanable/dirt, -/obj/effect/spawner/grouped_spawner{ - group_id = "tunnelbats"; - max_per_spawner = 1; - name = "bat spawner"; - path_to_spawn = /mob/living/simple_animal/hostile/scarybat; - total_amount = 20 - }, -/turf/simulated/floor/plating{ - icon_state = "asteroidplating" - }, -/area/station/security/permabrig) "gLj" = ( /obj/structure/table/wood, /obj/effect/spawner/lootdrop/maintenance/eight, @@ -42962,6 +42869,14 @@ /obj/machinery/economy/vending/coffee, /turf/simulated/floor/plating, /area/station/hallway/secondary/entry/south) +"gLG" = ( +/obj/structure/table, +/obj/item/clothing/gloves/fingerless, +/obj/item/clothing/head/soft/cargo, +/turf/simulated/floor/plating{ + icon_state = "asteroidplating" + }, +/area/station/supply/office) "gLH" = ( /turf/simulated/mineral/ancient, /area/station/legal/courtroom) @@ -43922,15 +43837,6 @@ icon_state = "red" }, /area/station/security/storage) -"hcm" = ( -/obj/effect/decal/cleanable/dirt, -/obj/structure/closet/firecloset, -/obj/item/crowbar/red, -/obj/machinery/light{ - dir = 1 - }, -/turf/simulated/floor/plating, -/area/station/security/permabrig) "hco" = ( /obj/structure/cable/orange{ d1 = 4; @@ -44518,14 +44424,6 @@ /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, /area/station/turret_protected/aisat/interior/secondary) -"hnL" = ( -/obj/machinery/atmospherics/unary/vent_pump/on, -/obj/machinery/firealarm{ - name = "north bump"; - pixel_y = 24 - }, -/turf/simulated/floor/plasteel, -/area/station/security/defusal) "hoa" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 6 @@ -44546,28 +44444,6 @@ icon_state = "dark" }, /area/station/command/bridge) -"hou" = ( -/obj/structure/table, -/obj/item/radio{ - pixel_x = 7; - pixel_y = 4 - }, -/obj/item/radio{ - pixel_x = 7; - pixel_y = 4 - }, -/obj/item/radio{ - pixel_x = 7; - pixel_y = 4 - }, -/obj/item/radio{ - pixel_x = 7; - pixel_y = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "hoF" = ( /obj/structure/disposalpipe/segment/corner, /turf/simulated/mineral/ancient, @@ -46167,6 +46043,12 @@ icon_state = "darkred" }, /area/station/security/warden) +"hOh" = ( +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plating{ + icon_state = "asteroidplating" + }, +/area/station/maintenance/fsmaint) "hOn" = ( /obj/structure/disposalpipe/segment, /obj/machinery/firealarm{ @@ -47328,6 +47210,16 @@ icon_state = "purple" }, /area/station/hallway/primary/aft/west) +"ifA" = ( +/obj/structure/closet, +/obj/item/clothing/under/syndicate/tacticool, +/obj/item/clothing/under/syndicate/tacticool, +/obj/item/clothing/under/syndicate/tacticool, +/obj/item/poster/syndicate_recruitment, +/obj/item/poster/syndicate_recruitment, +/obj/item/poster/syndicate_recruitment, +/turf/simulated/floor/plating, +/area/station/maintenance/fsmaint) "ifS" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /turf/simulated/floor/plating{ @@ -49354,21 +49246,6 @@ }, /turf/simulated/floor/plating, /area/station/hallway/primary/aft/west) -"iMh" = ( -/obj/structure/table, -/obj/item/pickaxe, -/obj/item/pickaxe, -/obj/item/pickaxe, -/obj/item/pickaxe, -/obj/machinery/light_switch{ - dir = 4; - pixel_x = -24; - name = "west bump" - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "iMq" = ( /obj/structure/chair/comfy/black{ dir = 8 @@ -50843,12 +50720,12 @@ /turf/simulated/floor/plating, /area/station/hallway/primary/central/west) "jjh" = ( -/obj/effect/decal/cleanable/dirt, /obj/structure/cable/orange{ - d1 = 4; + d1 = 2; d2 = 8; - icon_state = "4-8" + icon_state = "2-8" }, +/obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel, /area/station/security/permabrig) "jjp" = ( @@ -51157,6 +51034,14 @@ }, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/north) +"jpi" = ( +/obj/machinery/economy/vending/exploredrobe, +/obj/machinery/alarm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "jpk" = ( /obj/machinery/status_display{ layer = 4 @@ -51545,8 +51430,12 @@ }, /area/station/engineering/atmos) "juo" = ( -/turf/simulated/wall/r_wall, -/area/station/service/expedition) +/obj/machinery/recharge_station, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "juy" = ( /obj/structure/cable/orange{ d1 = 1; @@ -52873,6 +52762,12 @@ icon_state = "browncorner" }, /area/station/hallway/primary/fore/east) +"jNT" = ( +/obj/effect/decal/cleanable/blood, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/supply/expedition) "jNX" = ( /turf/simulated/floor/plating/asteroid/ancient, /area/mine/unexplored/cere/civilian) @@ -53344,12 +53239,6 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/central/west) -"jVI" = ( -/obj/effect/landmark/start/explorer, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "jVQ" = ( /turf/simulated/mineral/ancient, /area/station/medical/medbay) @@ -53984,6 +53873,20 @@ temperature = 80 }, /area/station/science/xenobiology) +"khV" = ( +/obj/effect/spawner/window/reinforced/grilled, +/obj/structure/cable/orange{ + d1 = 4; + d2 = 8; + icon_state = "4-8" + }, +/obj/structure/cable/orange{ + d2 = 8; + icon_state = "0-8" + }, +/obj/machinery/door/firedoor, +/turf/simulated/floor/plating, +/area/station/security/brig) "kic" = ( /obj/structure/closet/wardrobe/grey, /turf/simulated/floor/mineral/titanium/blue, @@ -55093,10 +54996,10 @@ /turf/simulated/floor/plasteel, /area/station/hallway/secondary/entry/south) "kyi" = ( -/obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 6 + dir = 4 }, +/obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) "kyo" = ( @@ -55284,15 +55187,6 @@ icon_state = "cafeteria" }, /area/station/science/hallway) -"kCa" = ( -/obj/machinery/door/airlock/command{ - name = "Expedition Access" - }, -/obj/effect/mapping_helpers/airlock/access/all/command/expedition, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/ai_monitored/storage/eva) "kCe" = ( /obj/machinery/atmospherics/binary/volume_pump/on{ dir = 1; @@ -56768,13 +56662,9 @@ /turf/simulated/floor/plasteel, /area/station/science/storage) "kZV" = ( -/obj/machinery/atmospherics/unary/vent_pump/on{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) +/obj/effect/decal/remains/human, +/turf/simulated/floor/plating, +/area/station/maintenance/fsmaint) "kZW" = ( /obj/structure/flora/junglebush, /turf/simulated/floor/grass/jungle, @@ -58072,11 +57962,6 @@ "lrd" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -59144,6 +59029,17 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/carpet/black, /area/station/command/bridge) +"lGH" = ( +/obj/machinery/camera{ + c_tag = "Research Toxins Test Chamber South"; + dir = 1; + network = list("Toxins","Research","SS13") + }, +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "lHa" = ( /obj/machinery/atmospherics/unary/portables_connector{ dir = 8 @@ -59629,15 +59525,6 @@ icon_state = "cafeteria" }, /area/station/service/kitchen) -"lQa" = ( -/obj/effect/spawner/window/reinforced/grilled, -/obj/machinery/door/firedoor, -/obj/structure/cable/orange{ - d2 = 8; - icon_state = "0-8" - }, -/turf/simulated/floor/plating, -/area/station/security/permabrig) "lQy" = ( /obj/machinery/optable, /obj/machinery/light{ @@ -59675,9 +59562,6 @@ icon_state = "yellowcorner" }, /area/station/hallway/primary/central/east) -"lQV" = ( -/turf/simulated/mineral/ancient/outer, -/area/station/service/expedition) "lQY" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -59816,22 +59700,6 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, /area/station/maintenance/port) -"lSo" = ( -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/ai_monitored/storage/eva) "lSt" = ( /obj/structure/window/reinforced{ dir = 4 @@ -60928,14 +60796,6 @@ icon_state = "dark" }, /area/station/science/robotics) -"mmn" = ( -/obj/structure/table, -/obj/item/storage/firstaid/regular, -/obj/item/storage/firstaid/regular, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "mmx" = ( /obj/structure/closet/crate, /obj/effect/spawner/lootdrop/maintenance/two, @@ -61067,6 +60927,11 @@ /obj/effect/spawner/random_spawners/dirt_often, /turf/simulated/floor/plating, /area/station/maintenance/disposal/external/southwest) +"moQ" = ( +/obj/effect/spawner/lootdrop/maintenance, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "moY" = ( /obj/structure/closet/secure_closet/medical3, /obj/machinery/light, @@ -61916,6 +61781,13 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/fore/north) +"mDA" = ( +/obj/machinery/light, +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "mDB" = ( /obj/structure/cable/orange{ d1 = 1; @@ -62629,6 +62501,15 @@ }, /turf/simulated/floor/plating, /area/station/security/brig) +"mSf" = ( +/obj/effect/spawner/window/reinforced/grilled, +/obj/structure/cable/orange{ + d2 = 8; + icon_state = "0-8" + }, +/obj/machinery/door/firedoor, +/turf/simulated/floor/plating, +/area/station/security/permabrig) "mSh" = ( /obj/structure/girder, /turf/simulated/floor/plating, @@ -62923,12 +62804,13 @@ /turf/simulated/floor/plating, /area/station/maintenance/maintcentral) "mVr" = ( -/obj/machinery/nuclearbomb/training, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "redcorner" +/obj/item/clothing/shoes/orange, +/obj/item/clothing/under/color/orange/prison, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plating{ + icon_state = "asteroidplating" }, -/area/station/security/defusal) +/area/station/maintenance/fore2) "mVs" = ( /obj/structure/disposalpipe/segment/corner{ dir = 8; @@ -63369,16 +63251,6 @@ /obj/structure/sign/securearea, /turf/simulated/wall, /area/station/engineering/tech_storage) -"nde" = ( -/obj/structure/cable/orange{ - d1 = 2; - d2 = 8; - icon_state = "2-8" - }, -/turf/simulated/floor/plasteel{ - icon_state = "floorgrime" - }, -/area/station/security/permabrig) "ndl" = ( /obj/effect/spawner/window/reinforced/polarized/grilled{ id = "rd" @@ -65142,6 +65014,17 @@ }, /turf/simulated/floor/carpet, /area/station/security/detective) +"nHB" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/cable/orange{ + d1 = 1; + d2 = 2; + icon_state = "1-2" + }, +/turf/simulated/floor/plating{ + icon_state = "asteroidplating" + }, +/area/station/maintenance/fsmaint) "nHK" = ( /obj/structure/table, /obj/effect/spawner/lootdrop/maintenance/two, @@ -65443,6 +65326,12 @@ icon_state = "darkyellow" }, /area/station/engineering/break_room) +"nNa" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/turf/simulated/wall, +/area/station/supply/office) "nNd" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/light/small{ @@ -65474,11 +65363,6 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/fore/east) -"nNB" = ( -/obj/effect/spawner/lootdrop/maintenance, -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor/plating, -/area/station/security/permabrig) "nNF" = ( /obj/machinery/door/airlock/maintenance{ name = "Service SMES Access" @@ -65514,10 +65398,6 @@ }, /turf/simulated/floor/plating, /area/station/hallway/primary/port/north) -"nOr" = ( -/obj/structure/closet/emcloset, -/turf/simulated/floor/plating, -/area/station/security/permabrig) "nOu" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/structure/disposalpipe/segment, @@ -65793,16 +65673,6 @@ "nTa" = ( /turf/simulated/mineral/ancient, /area/station/hallway/primary/central/east) -"nTo" = ( -/obj/machinery/requests_console{ - department = "Expedition"; - departmentType = 2; - pixel_x = 30 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "nTJ" = ( /obj/structure/disposalpipe/segment/corner{ dir = 8 @@ -68295,26 +68165,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/disposal/east) -"oKk" = ( -/obj/machinery/door/airlock/command{ - name = "Expedition Access" - }, -/obj/effect/mapping_helpers/airlock/access/all/command/expedition, -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/ai_monitored/storage/eva) "oKm" = ( /turf/simulated/floor/plasteel{ dir = 8; @@ -68747,7 +68597,7 @@ }, /area/station/maintenance/gambling_den) "oQn" = ( -/obj/structure/cable{ +/obj/structure/cable/orange{ d1 = 4; d2 = 8; icon_state = "4-8" @@ -68755,13 +68605,13 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" +/obj/structure/cable/orange{ + d1 = 1; + d2 = 8; + icon_state = "1-8" }, -/area/station/service/expedition) +/turf/simulated/floor/plating, +/area/station/maintenance/fsmaint) "oQs" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -68977,6 +68827,18 @@ }, /turf/simulated/floor/plasteel, /area/station/science/toxins/launch) +"oTU" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "oTV" = ( /obj/structure/cable{ d1 = 2; @@ -69090,9 +68952,6 @@ icon_state = "whiteblue" }, /area/station/medical/cloning) -"oVI" = ( -/turf/simulated/mineral/ancient, -/area/station/service/expedition) "oVZ" = ( /obj/structure/cable/orange{ d1 = 4; @@ -69591,6 +69450,17 @@ icon_state = "dark" }, /area/station/service/library) +"pdF" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/supply/office) "ped" = ( /obj/machinery/hologram/holopad, /turf/simulated/floor/plasteel{ @@ -69647,9 +69517,6 @@ icon_state = "dark" }, /area/station/turret_protected/ai) -"peU" = ( -/turf/simulated/wall/r_wall, -/area/station/security/defusal) "pfe" = ( /obj/structure/chair/wood{ dir = 1 @@ -71367,6 +71234,13 @@ /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, /area/station/maintenance/disposal) +"pGk" = ( +/obj/machinery/mineral/equipment_vendor/explorer, +/turf/simulated/floor/plasteel{ + dir = 9; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "pGv" = ( /obj/structure/cable/orange{ d1 = 4; @@ -72655,6 +72529,16 @@ icon_state = "whitepurple" }, /area/station/science/genetics) +"pZX" = ( +/obj/effect/landmark/start/explorer, +/obj/effect/spawner/random_spawners/dirt_maybe, +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/supply/expedition) "qad" = ( /obj/machinery/door/airlock/glass{ id_tag = "Cryogenics"; @@ -72911,22 +72795,6 @@ /obj/effect/spawner/random_spawners/dirt_often, /turf/simulated/floor/plating, /area/station/hallway/secondary/entry/north) -"qdT" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 8; - icon_state = "1-8" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 10 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "qef" = ( /obj/structure/rack, /obj/item/clothing/mask/gas, @@ -74337,6 +74205,13 @@ /obj/item/clothing/glasses/meson, /turf/simulated/floor/plating, /area/station/maintenance/port2) +"qzq" = ( +/obj/structure/dispenser/oxygen, +/turf/simulated/floor/plasteel{ + dir = 6; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "qzy" = ( /obj/effect/spawner/random_spawners/wall_rusted_always, /turf/simulated/wall, @@ -75273,6 +75148,18 @@ icon_state = "whiteblue" }, /area/station/medical/storage/secondary) +"qNc" = ( +/obj/effect/spawner/random_spawners/dirt_maybe, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 10 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/supply/expedition) "qNe" = ( /obj/structure/cable/orange{ d1 = 1; @@ -75441,11 +75328,8 @@ }, /area/station/hallway/secondary/entry/north) "qQc" = ( -/obj/structure/reagent_dispensers/watertank, -/turf/simulated/floor/plating{ - icon_state = "asteroidplating" - }, -/area/station/maintenance/fsmaint) +/turf/simulated/wall, +/area/station/supply/expedition) "qQw" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -76156,6 +76040,18 @@ }, /turf/simulated/floor/plasteel, /area/station/security/prisonlockers) +"rgQ" = ( +/obj/effect/spawner/random_spawners/dirt_maybe, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/supply/expedition) "rhg" = ( /obj/structure/disposalpipe/junction/reversed{ dir = 1 @@ -77454,30 +77350,6 @@ }, /turf/simulated/floor/plasteel, /area/station/public/locker) -"rGv" = ( -/obj/structure/cable/orange{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/structure/disposalpipe/segment{ - dir = 4 - }, -/obj/structure/cable/orange{ - d1 = 1; - d2 = 8; - icon_state = "1-8" - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/security/brig) "rGw" = ( /obj/structure/disposalpipe/segment/corner, /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ @@ -80965,15 +80837,6 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/port/south) -"sMx" = ( -/obj/structure/closet/secure_closet/personal, -/obj/machinery/light{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "sME" = ( /obj/machinery/light{ dir = 8 @@ -81537,6 +81400,18 @@ /obj/structure/chair/stool, /turf/simulated/floor/wood, /area/station/maintenance/gambling_den) +"sVg" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "darkbrown" + }, +/area/station/supply/office) "sVn" = ( /obj/machinery/light{ dir = 8 @@ -83731,18 +83606,16 @@ /area/station/maintenance/port) "tFL" = ( /obj/effect/spawner/window/reinforced/grilled, -/obj/machinery/door/firedoor, /obj/structure/cable/orange{ - d1 = 1; - d2 = 4; - icon_state = "1-4" + d2 = 8; + icon_state = "0-8" }, /obj/structure/cable/orange{ - d1 = 1; + d1 = 4; d2 = 8; - icon_state = "1-8" + icon_state = "4-8" }, -/obj/structure/cable/orange, +/obj/machinery/door/firedoor, /turf/simulated/floor/plating, /area/station/security/permabrig) "tFY" = ( @@ -84330,12 +84203,6 @@ }, /turf/simulated/wall, /area/station/maintenance/electrical_shop) -"tTc" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "tTm" = ( /obj/machinery/quantumpad/cere/service_cargo, /obj/structure/sign/directions/cargo{ @@ -85012,9 +84879,6 @@ icon_state = "4-8" }, /obj/effect/spawner/random_spawners/dirt_frequent, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) "ucV" = ( @@ -85730,12 +85594,6 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/wood, /area/station/service/library) -"uot" = ( -/obj/structure/closet/secure_closet/personal, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "uoB" = ( /obj/machinery/alarm/directional/north, /obj/machinery/economy/vending/coffee, @@ -86390,13 +86248,6 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/port/south) -"uyj" = ( -/obj/structure/table, -/obj/item/storage/fancy/donut_box, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "uyl" = ( /turf/simulated/wall/r_wall, /area/station/science/test_chamber) @@ -88991,6 +88842,22 @@ icon_state = "darkpurple" }, /area/station/public/quantum/science) +"vmZ" = ( +/obj/machinery/door/firedoor, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/effect/mapping_helpers/airlock/access/any/supply/expedition, +/obj/machinery/door/airlock/mining{ + name = "Expedition Headquarters" + }, +/turf/simulated/floor/plasteel{ + icon_state = "darkbrownfull" + }, +/area/station/supply/expedition) "vng" = ( /turf/simulated/wall, /area/station/command/office/rd) @@ -89939,6 +89806,18 @@ /obj/structure/disposalpipe/segment/corner, /turf/simulated/floor/plating/asteroid/ancient, /area/station/maintenance/port2) +"vzY" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/cable/orange{ + d2 = 2; + icon_state = "0-2" + }, +/obj/effect/turf_decal/stripes/end, +/obj/machinery/power/apc/directional/north, +/turf/simulated/floor/plating{ + icon_state = "asteroidplating" + }, +/area/station/supply/expedition) "vAg" = ( /obj/machinery/disposal, /obj/structure/disposalpipe/trunk, @@ -90508,10 +90387,14 @@ /turf/simulated/floor/plating, /area/station/maintenance/starboard) "vId" = ( +/obj/effect/spawner/random_spawners/dirt_maybe, +/obj/machinery/atmospherics/unary/vent_pump/on{ + dir = 1 + }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/supply/expedition) "vIi" = ( /obj/structure/cable{ d1 = 1; @@ -91784,14 +91667,6 @@ icon_state = "darkyellow" }, /area/station/engineering/control) -"weh" = ( -/obj/item/clothing/shoes/orange, -/obj/item/clothing/under/color/orange/prison, -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor/plating{ - icon_state = "asteroidplating" - }, -/area/station/security/permabrig) "weN" = ( /obj/structure/cable{ d1 = 4; @@ -92176,13 +92051,6 @@ }, /turf/simulated/floor/plasteel, /area/station/hallway/primary/aft/west) -"wiU" = ( -/obj/effect/decal/cleanable/dirt, -/obj/effect/spawner/lootdrop/maintenance, -/turf/simulated/floor/plating{ - icon_state = "asteroidplating" - }, -/area/station/security/permabrig) "wiV" = ( /obj/structure/mirror{ pixel_x = -28 @@ -93666,18 +93534,6 @@ icon_state = "neutral" }, /area/station/public/storage/tools) -"wBp" = ( -/obj/structure/cable{ - d2 = 2; - icon_state = "0-2" - }, -/obj/machinery/power/apc/directional/north, -/obj/structure/table, -/obj/item/storage/fancy/donut_box, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) "wBr" = ( /obj/machinery/computer/monitor{ dir = 1 @@ -94447,6 +94303,12 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/maintcentral) +"wNm" = ( +/obj/item/gun/projectile/automatic/toy/pistol, +/obj/structure/rack, +/obj/item/toy/sword, +/turf/simulated/floor/plating, +/area/station/maintenance/fsmaint) "wNA" = ( /obj/structure/table, /obj/item/storage/box/syringes, @@ -95446,7 +95308,7 @@ id = "engsm"; name = "Radiation Shutters Control"; pixel_y = 24; - req_access_txt = "32" + req_access_txt = "10" }, /obj/machinery/camera{ c_tag = "SM South"; @@ -95955,6 +95817,18 @@ /obj/effect/spawner/random_spawners/dirt_often, /turf/simulated/floor/plating, /area/station/hallway/primary/port/north) +"xnp" = ( +/obj/effect/landmark/start/explorer, +/obj/machinery/requests_console{ + department = "Expedition"; + pixel_x = -30; + dir = 4 + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "xnz" = ( /obj/structure/flora/ausbushes/ywflowers, /mob/living/simple_animal/cow/betsy, @@ -96214,6 +96088,13 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/gambling_den) +"xsd" = ( +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + dir = 10; + icon_state = "darkbrown" + }, +/area/station/supply/expedition) "xsS" = ( /turf/simulated/floor/plasteel{ icon_state = "neutralfull" @@ -98758,7 +98639,6 @@ /obj/machinery/light/small{ dir = 4 }, -/obj/structure/closet/bombclosetsecurity, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -119072,7 +118952,7 @@ rHj cDb rHj aQL -nde +aQL tFL rNK rNK @@ -119330,10 +119210,10 @@ gLk cVR amO myY -lQa +tFL rNK rNK -lPn +khV yfX fOj awv @@ -119587,11 +119467,11 @@ dpC rHj adc rHj -peU -peU -peU -peU -wGz +mSf +rNK +rNK +lPn +yfX uaJ awB uqz @@ -119844,12 +119724,12 @@ rHj rHj vNP sFU -peU -dEa -cZi -dQG -dsy -rGv +afd +afd +afd +afd +wGz +uaJ dtr uqz aLp @@ -120101,10 +119981,10 @@ rHj cgX tkn dqz -peU -hnL +tkn +rHj ard -peU +afd daG sVX daG @@ -120354,13 +120234,13 @@ aTz afd aTz aTz +rHj +aTz +aTz afd afd -aME -mYJ -peU cKZ -gmV +mYJ fqh eBm krP @@ -120611,11 +120491,11 @@ afd afd aTz aTz +aTz +aTz +aTz afd -tkn -weh -gLb -peU +vXM mVr arh fqh @@ -120868,13 +120748,13 @@ abW abW afd aTz +aTz +aTz +aTz afd -hcm -nNB -adc -peU -peU -peU +eAn +moQ +ark fqh xax pZs @@ -121123,15 +121003,15 @@ rNK cRv abW abW +abW afd aTz -afd -vNP -wiU -nOr -afd aTz aTz +afd +vrQ +apu +arl asu atc eZh @@ -121380,14 +121260,14 @@ rNK cRv cRv cRv +abW afd aTz aTz -afd -afd aTz -afd aTz +afd +afd aTz fqh bOR @@ -137379,7 +137259,7 @@ aXD baS bZk bYS -bdA +lrd lrd bev bfk @@ -137636,7 +137516,7 @@ aXD baS xuC qBL -lSo +bYQ bdB etP vRj @@ -137893,7 +137773,7 @@ aXD baS bZk bYQ -lSo +bYQ cGr baS cID @@ -138150,12 +138030,12 @@ xbO sUW sUW sUW -oKk +sUW sUW sUW sUW baS -kCa +sUW sUW dwz nTa @@ -138405,16 +138285,16 @@ aXD xbO xbO aXR -oVI -mmn -oQn -sMx -uot -uot -sMx -vId -iMh -oVI +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR xbO xbO wJN @@ -138662,16 +138542,16 @@ xbO xbO aXR aXR -juo -wBp -qdT -tTc -tTc -tTc -gmZ -vId -cJn -oVI +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR xbO xbO jvP @@ -138919,16 +138799,16 @@ xbO xbO xbO aXR -oVI -uyj -kZV -jVI -jVI -jVI -bzs -nTo -hou -oVI +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR xbO aXD euP @@ -139176,16 +139056,16 @@ rNK xbO xbO xbO -oVI -oVI -oVI -oVI -oVI -oVI -oVI -oVI -oVI -lQV +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR +aXR +xbO xbO aXD euP @@ -150709,14 +150589,14 @@ cqm any aVM hZJ -hZJ +pdF kDN any any any any fue -any +nNa ucH gaX any @@ -150966,13 +150846,13 @@ scI any aQC hZJ -hZJ +pdF aTs any -rWb -rWb -rWb -aRx +ifA +kZV +lMw +eNn kyi aYT vdj @@ -151223,12 +151103,12 @@ scI any aQD dKI -dKI +sVg cIw any -rWb -rWb -rWb +wNm +yiW +yiW vpe upy sLD @@ -151478,13 +151358,13 @@ uKL mXt scI any -rWb -rWb -rWb -rWb -rWb -rWb -rWb +qQc +qQc +vmZ +qQc +qQc +qQc +qQc vpe cUk xaF @@ -151735,13 +151615,13 @@ wtU woa hTh cvi -rWb -rWb -rWb -rWb -rWb -rWb -rWb +qQc +pGk +oTU +dlb +xnp +xsd +qQc rWb cXK kJr @@ -151991,14 +151871,14 @@ aCo iss tqv gFv -cvm -rWb -rWb -rWb -rWb -rWb -rWb -rWb +gLG +qQc +juo +rgQ +cXf +jNT +lGH +qQc rWb bwM qOp @@ -152249,16 +152129,16 @@ fQk qsY aOl bue -rWb -rWb -rWb -rWb -rWb -rWb -aRx -aRx -hqL -xaF +qQc +jpi +qNc +vId +dky +mDA +qQc +vzY +nHB +oQn yiW aRx cpC @@ -152506,14 +152386,14 @@ aMn hrx krZ aPO -rWb -rWb -rWb -rWb -rWb -rWb qQc -vpe +cth +pZX +cXf +cXf +dSO +qQc +hOh yiW cZd eUS @@ -152763,13 +152643,13 @@ iss lUU cqo cvp -aRx -aRx -aRx -rWb -rWb -rWb -cXf +qQc +dAo +gqh +gqh +gqh +qzq +qQc dkW alk klx @@ -153020,14 +152900,14 @@ uKL any txT any -aRx -rWb -rWb -rWb -rWb -rWb +qQc +qQc +qQc +qQc +qQc +qQc +qQc alk -bkW cHS leh rPi @@ -153283,7 +153163,7 @@ aYR hKk cey eUS -cHS +bkW dXo qkJ aRx @@ -153541,7 +153421,7 @@ yiW yiW yiW vdj -dlb +vdj alc alc hFo diff --git a/_maps/map_files/stations/deltastation.dmm b/_maps/map_files/stations/deltastation.dmm index 51d579a263d1..911dd437d2d2 100644 --- a/_maps/map_files/stations/deltastation.dmm +++ b/_maps/map_files/stations/deltastation.dmm @@ -37853,11 +37853,12 @@ /area/station/legal/courtroom) "ccx" = ( /obj/structure/table/reinforced, -/obj/machinery/power/apc/directional/south, /obj/structure/cable, /obj/effect/turf_decal/stripes/line{ dir = 1 }, +/obj/item/hand_tele, +/obj/machinery/power/apc/directional/south, /turf/simulated/floor/plating, /area/station/turret_protected/aisat) "ccy" = ( @@ -40607,9 +40608,8 @@ /turf/simulated/floor/plasteel, /area/station/command/teleporter) "ckB" = ( -/obj/machinery/power/apc/directional/north, /obj/structure/table, -/obj/item/hand_tele, +/obj/machinery/power/apc/directional/north, /obj/structure/cable{ d2 = 2; icon_state = "0-2" @@ -43845,8 +43845,12 @@ }, /area/station/hallway/primary/central) "csV" = ( -/turf/simulated/wall/r_wall, -/area/station/service/expedition) +/obj/structure/closet/secure_closet/explorer, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "browncorner" + }, +/area/station/supply/expedition) "csW" = ( /turf/simulated/floor/plasteel{ dir = 1; @@ -44207,36 +44211,39 @@ }, /area/station/hallway/primary/central) "cuk" = ( -/obj/structure/table, -/obj/item/radio, -/obj/item/radio, -/obj/item/radio, -/obj/item/radio, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "browncorner" + }, +/area/station/supply/expedition) "cul" = ( -/obj/machinery/power/apc/directional/north, /obj/structure/cable{ d2 = 4; icon_state = "0-4" }, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) -"cum" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" +/obj/structure/chair/office{ + dir = 8 }, +/obj/machinery/power/apc/directional/north, +/obj/effect/landmark/start/explorer, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "brown" + }, +/area/station/supply/expedition) +"cum" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/structure/cable{ - d1 = 2; + d1 = 1; d2 = 8; - icon_state = "2-8" + icon_state = "1-8" }, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "brown" + }, +/area/station/supply/expedition) "cun" = ( /obj/machinery/light{ dir = 8 @@ -44585,13 +44592,16 @@ }, /area/station/engineering/control) "cuX" = ( -/obj/item/kirbyplants, /obj/machinery/light_switch{ name = "north bump"; pixel_y = 24 }, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/obj/effect/spawner/random_spawners/dirt_often, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "brown" + }, +/area/station/supply/expedition) "cuY" = ( /obj/machinery/suit_storage_unit/engine/secure, /obj/machinery/ai_status_display{ @@ -44834,54 +44844,34 @@ }, /area/station/hallway/primary/central) "cvJ" = ( -/obj/structure/closet/crate, -/obj/item/stack/sheet/metal/fifty, -/obj/item/stack/rods{ - amount = 8 - }, /obj/structure/extinguisher_cabinet{ name = "east bump"; pixel_x = 30 }, -/obj/item/storage/toolbox/emergency, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "brown" + }, +/area/station/supply/expedition) "cvK" = ( -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "brown" }, -/obj/structure/table, -/obj/item/storage/fancy/donut_box, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cvM" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/obj/structure/cable{ - d1 = 2; - d2 = 8; - icon_state = "2-8" - }, /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cvQ" = ( /obj/machinery/status_display{ pixel_y = 32 }, -/obj/structure/table, -/obj/item/pickaxe, -/obj/item/pickaxe, -/obj/item/pickaxe, -/obj/item/pickaxe, +/obj/machinery/mineral/equipment_vendor/explorer, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cvT" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -44924,9 +44914,13 @@ }, /area/station/hallway/primary/starboard/south) "cvY" = ( -/obj/structure/table, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/obj/effect/spawner/random_spawners/dirt_often, +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "browncorner" + }, +/area/station/supply/expedition) "cvZ" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -45318,48 +45312,41 @@ }, /area/station/public/locker) "cxe" = ( -/obj/structure/table, -/obj/item/storage/fancy/donut_box, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) -"cxf" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/obj/structure/cable{ - d1 = 1; - d2 = 4; - icon_state = "1-4" +/obj/structure/musician/piano, +/turf/simulated/floor/plasteel{ + dir = 9; + icon_state = "brown" }, +/area/station/supply/expedition) +"cxf" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, /turf/simulated/floor/plasteel{ icon_state = "neutralfull" }, -/area/station/service/expedition) +/area/station/supply/expedition) "cxh" = ( -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, +/obj/effect/spawner/random_spawners/dirt_often, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cxk" = ( -/obj/structure/cable{ - d2 = 2; - icon_state = "0-2" +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 }, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "browncorner" + }, +/area/station/supply/expedition) "cxl" = ( -/obj/structure/table, -/obj/item/storage/firstaid/regular, -/obj/item/storage/firstaid/regular, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/obj/machinery/recharge_station, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "browncorner" + }, +/area/station/supply/expedition) "cxm" = ( /obj/machinery/camera{ c_tag = "Central Ring Hallway East"; @@ -45527,16 +45514,9 @@ /turf/simulated/floor/plasteel, /area/station/engineering/hardsuitstorage) "cxJ" = ( -/obj/structure/table, -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/machinery/cell_charger, -/obj/item/stock_parts/cell/high, +/obj/machinery/suit_storage_unit/expedition, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cxL" = ( /obj/structure/rack, /obj/item/storage/belt/utility, @@ -45779,15 +45759,14 @@ c_tag = "Expedition Access"; dir = 4 }, +/obj/machinery/computer/security/telescreen/entertainment{ + pixel_x = -32 + }, +/obj/effect/spawner/random_spawners/dirt_often, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cys" = ( /obj/machinery/hologram/holopad, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ dir = 4 }, @@ -45797,51 +45776,49 @@ /turf/simulated/floor/plasteel{ icon_state = "neutralfull" }, -/area/station/service/expedition) +/area/station/supply/expedition) "cyt" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 4 }, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cyu" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 8 }, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cyv" = ( /turf/simulated/wall, -/area/station/service/expedition) +/area/station/supply/expedition) "cyw" = ( /obj/machinery/light{ dir = 8 }, -/obj/structure/chair/stool{ - dir = 1 +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "browncorner" }, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cyx" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/obj/structure/cable{ - d2 = 2; - icon_state = "0-2" +/obj/structure/chair{ + dir = 4 }, +/obj/effect/landmark/start/explorer, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cyy" = ( /obj/machinery/camera{ c_tag = "Expedition"; dir = 8 }, -/obj/structure/closet/secure_closet/personal, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/obj/structure/closet/secure_closet/explorer, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "brown" + }, +/area/station/supply/expedition) "cyz" = ( /obj/item/radio/intercom{ name = "west bump"; @@ -45911,16 +45888,14 @@ /turf/simulated/floor/plasteel, /area/station/public/toilet/lockerroom) "cyI" = ( -/obj/machinery/light{ - dir = 4 - }, /obj/item/radio/intercom{ name = "east bump"; pixel_x = 28 }, -/obj/structure/table, +/obj/effect/spawner/random_spawners/dirt_often, +/obj/machinery/suit_storage_unit/expedition, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cyJ" = ( /obj/structure/urinal{ pixel_y = 28 @@ -46454,56 +46429,25 @@ /turf/simulated/floor/plasteel, /area/station/public/toilet/lockerroom) "czV" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/structure/chair/stool/bar, /turf/simulated/floor/plasteel{ icon_state = "neutralfull" }, -/area/station/service/expedition) +/area/station/supply/expedition) "czW" = ( -/obj/structure/closet/crate/internals, -/obj/item/clothing/suit/storage/hazardvest, -/obj/item/clothing/suit/storage/hazardvest, -/obj/item/clothing/suit/storage/hazardvest, -/obj/item/clothing/suit/storage/hazardvest, -/obj/item/clothing/suit/storage/hazardvest, -/obj/item/tank/internals/emergency_oxygen/double, -/obj/item/tank/internals/emergency_oxygen/double, -/obj/item/tank/internals/emergency_oxygen/double, -/obj/item/tank/internals/emergency_oxygen/double, -/obj/item/tank/internals/emergency_oxygen/double, -/obj/item/clothing/mask/breath, -/obj/item/clothing/mask/breath, -/obj/item/clothing/mask/breath, -/obj/item/clothing/mask/breath, -/obj/item/clothing/mask/breath, -/obj/item/clothing/head/hardhat/orange{ - name = "protective hat"; - pixel_y = 8 - }, -/obj/item/clothing/head/hardhat/orange{ - name = "protective hat"; - pixel_y = 8 - }, -/obj/item/clothing/head/hardhat/orange{ - name = "protective hat"; - pixel_y = 8 - }, -/obj/item/clothing/head/hardhat/orange{ - name = "protective hat"; - pixel_y = 8 +/obj/effect/spawner/random_spawners/dirt_often, +/obj/machinery/requests_console{ + department = "Expedition"; + pixel_x = -30; + dir = 4 }, -/obj/item/clothing/head/hardhat/orange{ - name = "protective hat"; - pixel_y = 8 +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "browncorner" }, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "czY" = ( /turf/simulated/floor/plasteel{ dir = 4; @@ -46511,14 +46455,9 @@ }, /area/station/hallway/primary/central/south) "cAb" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /obj/machinery/atmospherics/unary/vent_pump/on, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cAc" = ( /turf/simulated/floor/plasteel/freezer, /area/station/public/toilet/lockerroom) @@ -47010,57 +46949,49 @@ /turf/simulated/floor/carpet, /area/station/science/robotics/showroom) "cBv" = ( -/obj/effect/landmark/start/explorer, +/obj/structure/table/reinforced, +/obj/item/pizzabox/firecracker, +/obj/effect/spawner/random_spawners/dirt_often, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cBw" = ( -/obj/structure/table, /obj/machinery/firealarm{ dir = 8; name = "west bump"; pixel_x = -24 }, -/obj/item/flashlight, -/obj/item/flashlight, -/obj/item/flashlight, -/obj/item/flashlight, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) -"cBy" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 4; - icon_state = "1-4" +/obj/effect/landmark/start/explorer, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "brown" }, +/area/station/supply/expedition) +"cBy" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 5 }, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 5 }, +/obj/structure/chair/stool/bar, +/obj/effect/landmark/start/explorer, +/obj/effect/spawner/random_spawners/dirt_often, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cBC" = ( -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "browncorner" + }, +/area/station/supply/expedition) "cBD" = ( /obj/machinery/hologram/holopad, -/obj/structure/cable{ - d1 = 1; - d2 = 8; - icon_state = "1-8" - }, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 9 }, @@ -47068,7 +46999,7 @@ dir = 10 }, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cBE" = ( /turf/simulated/floor/plating, /area/station/public/toilet/lockerroom) @@ -47464,22 +47395,29 @@ /turf/simulated/floor/carpet, /area/station/science/robotics/showroom) "cCV" = ( -/obj/structure/table, -/obj/machinery/recharger, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/turf/simulated/floor/plasteel{ + dir = 10; + icon_state = "brown" + }, +/area/station/supply/expedition) "cCW" = ( -/obj/structure/table, /obj/machinery/light_switch{ dir = 1; name = "south bump"; pixel_y = -24 }, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/obj/structure/table/reinforced, +/turf/simulated/floor/plasteel{ + icon_state = "brown" + }, +/area/station/supply/expedition) "cCX" = ( -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/obj/machinery/economy/vending/exploredrobe, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "browncorner" + }, +/area/station/supply/expedition) "cCY" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock/public/glass{ @@ -47501,10 +47439,8 @@ }, /area/station/hallway/primary/starboard/south) "cDa" = ( -/obj/machinery/recharge_station, -/obj/effect/turf_decal/delivery/hollow, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cDb" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock/external{ @@ -47529,7 +47465,7 @@ dir = 1 }, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "cDd" = ( /obj/effect/landmark/lightsout, /turf/simulated/floor/plasteel{ @@ -47541,9 +47477,12 @@ /turf/simulated/wall, /area/station/public/toilet/lockerroom) "cDf" = ( -/obj/structure/closet/secure_closet/personal, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/obj/structure/closet/secure_closet/explorer, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "brown" + }, +/area/station/supply/expedition) "cDg" = ( /obj/structure/cable{ d1 = 1; @@ -58955,8 +58894,10 @@ "dte" = ( /obj/item/kirbyplants, /obj/machinery/alarm/directional/south, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/turf/simulated/floor/plasteel{ + icon_state = "brown" + }, +/area/station/supply/expedition) "dto" = ( /obj/structure/sign/science{ icon_state = "xenobio2" @@ -67399,8 +67340,10 @@ "eXJ" = ( /obj/structure/dispenser/oxygen, /obj/effect/turf_decal/delivery/hollow, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/turf/simulated/floor/plasteel{ + icon_state = "browncorner" + }, +/area/station/supply/expedition) "eXP" = ( /obj/structure/rack, /obj/item/clothing/suit/armor/bulletproof/sec, @@ -68276,12 +68219,6 @@ icon_state = "redyellowfull" }, /area/station/medical/break_room) -"fyq" = ( -/obj/machinery/requests_console{ - department = "Expedition" - }, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) "fzd" = ( /obj/machinery/access_button{ autolink_id = "virolab_btn_int"; @@ -73244,33 +73181,15 @@ /area/station/maintenance/abandonedbar) "iFr" = ( /obj/machinery/door/firedoor, -/obj/machinery/door/airlock/command{ - name = "Expedition Access" - }, -/obj/effect/mapping_helpers/airlock/access/all/command/expedition, -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/structure/cable{ - d1 = 1; - d2 = 8; - icon_state = "1-8" - }, -/obj/structure/cable{ - d1 = 2; - d2 = 8; - icon_state = "2-8" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, +/obj/effect/mapping_helpers/airlock/access/all/supply/expedition, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, +/obj/machinery/door/airlock/mining{ + name = "Expedition Headquarters" + }, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "iFv" = ( /obj/machinery/atmospherics/pipe/simple/visible/yellow{ dir = 4 @@ -79019,9 +78938,12 @@ name = "east bump"; pixel_x = 28 }, -/obj/structure/closet/secure_closet/personal, -/turf/simulated/floor/plasteel, -/area/station/service/expedition) +/obj/structure/closet/secure_closet/explorer, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "brown" + }, +/area/station/supply/expedition) "miL" = ( /obj/structure/chair/comfy/black, /obj/effect/landmark/start/head_of_security, @@ -81215,18 +81137,12 @@ /turf/simulated/floor/grass, /area/station/medical/medbay) "nsD" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 8; - icon_state = "1-8" - }, -/obj/structure/cable{ - d2 = 8; - icon_state = "0-8" +/obj/structure/chair/stool/bar, +/obj/effect/spawner/random_spawners/dirt_often, +/turf/simulated/floor/plasteel{ + icon_state = "brown" }, -/obj/effect/spawner/window/reinforced/grilled, -/turf/simulated/floor/plating, -/area/station/service/expedition) +/area/station/supply/expedition) "ntt" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 6 @@ -83828,13 +83744,9 @@ /turf/simulated/floor/plasteel, /area/station/maintenance/port) "oVl" = ( -/obj/structure/cable{ - d2 = 4; - icon_state = "0-4" - }, /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, -/area/station/service/expedition) +/area/station/supply/expedition) "oVu" = ( /obj/structure/morgue, /obj/machinery/light/small, @@ -85196,20 +85108,14 @@ /turf/simulated/floor/plasteel, /area/station/supply/miningdock) "pLm" = ( -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, -/obj/effect/landmark/start/explorer, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "pLs" = ( /obj/machinery/hologram/holopad, /turf/simulated/floor/plasteel/white, @@ -89916,11 +89822,6 @@ /obj/effect/spawner/random_spawners/wall_rusted_maybe, /turf/simulated/wall, /area/station/maintenance/apmaint) -"stt" = ( -/obj/structure/cable, -/obj/effect/spawner/window/reinforced/grilled, -/turf/simulated/floor/plating, -/area/station/service/expedition) "stv" = ( /obj/item/radio/intercom{ name = "north bump"; @@ -92713,7 +92614,7 @@ "uaS" = ( /obj/machinery/economy/vending/cigarette, /obj/effect/turf_decal/delivery, -/turf/simulated/floor/plasteel, +/turf/simulated/wall, /area/station/hallway/primary/central) "ubm" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ @@ -97491,13 +97392,11 @@ /turf/simulated/floor/plating, /area/station/security/prison/cell_block) "wUm" = ( -/obj/structure/cable{ - d2 = 2; - icon_state = "0-2" +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "brown" }, -/obj/effect/spawner/window/reinforced/grilled, -/turf/simulated/floor/plating, -/area/station/service/expedition) +/area/station/supply/expedition) "wUq" = ( /obj/machinery/economy/vending/hydronutrients, /obj/effect/turf_decal/delivery/hollow, @@ -98225,14 +98124,14 @@ }, /area/station/hallway/primary/aft/south) "xph" = ( -/obj/machinery/door/firedoor, -/obj/machinery/door/airlock/command{ - name = "Expedition Access" - }, -/obj/effect/mapping_helpers/airlock/access/all/command/expedition, -/obj/effect/turf_decal/stripes/line, +/obj/structure/table/reinforced, +/obj/item/reagent_containers/drinks/cans/beer, +/obj/item/reagent_containers/drinks/cans/beer, +/obj/item/reagent_containers/drinks/cans/beer, +/obj/item/reagent_containers/drinks/cans/beer, +/obj/effect/spawner/random_spawners/dirt_often, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "xpq" = ( /obj/machinery/economy/vending/snack, /turf/simulated/floor/plasteel{ @@ -98703,10 +98602,7 @@ /area/station/medical/virology) "xFp" = ( /obj/machinery/door/firedoor, -/obj/machinery/door/airlock/command{ - name = "Expedition Access" - }, -/obj/effect/mapping_helpers/airlock/access/all/command/expedition, +/obj/effect/mapping_helpers/airlock/access/all/supply/expedition, /obj/structure/cable{ d1 = 1; d2 = 2; @@ -98714,8 +98610,11 @@ }, /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/door/airlock/mining{ + name = "Expedition Headquarters" + }, /turf/simulated/floor/plasteel, -/area/station/service/expedition) +/area/station/supply/expedition) "xFq" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ @@ -141005,15 +140904,15 @@ aaa bsv tlB bIX -csV -csV +cyv +cyv oVl -csV -csV -csV -csV -csV -csV +cyv +cyv +cyv +cyv +cyv +cyv cEY ckv cHK @@ -141262,15 +141161,15 @@ cht cht ygv bIX -csV +cyv cxe cvK -fyq +cyw cyr czW cBw cCV -csV +cyv gaZ ckv cHK @@ -141519,15 +141418,15 @@ cmX cht ygv hQe -csV +cyv cul -cxh -cCX +cDa +cDa cyt -cBv +xph cBv cCW -csV +cyv cEZ ckv cHK @@ -141783,8 +141682,8 @@ cxf cys czV cBy -cCX -xph +nsD +cyv csW qZt ukK @@ -142033,15 +141932,15 @@ cnA cht sor bIX -csV +cyv cuX -cCX +cyx cxh cyu -cBv +cDa pLm dte -csV +cyv csW ckv cHK @@ -142290,15 +142189,15 @@ cnB coF sHD crO -csV +cyv cvJ cvY cxJ cyI -cCX -cBC cDa -csV +cxk +cDa +cyv rfw ckv cHK @@ -142547,15 +142446,15 @@ cnB coG wat bIX -csV -csV -wUm -nsD cyv -wUm +cyv +oVl +oVl +cyv +oVl iFr -stt -csV +oVl +cyv jdr dLT njU @@ -142805,14 +142704,14 @@ cht sqO bIX uaS -csV +cyv cxl cuk cyw -cCX +cuk cBC cCX -csV +cyv csW ckv jfG @@ -143062,14 +142961,14 @@ xmE ygv bIX rVL -csV +cyv cvQ -cxk -cyx +cDa +cDa cAb cBD cDc -csV +cyv csW ckv cHN @@ -143319,14 +143218,14 @@ cht ygv bIX nSv -csV +cyv eXJ -cCX +wUm cyy mhU cDf -cDf csV +cyv csW ckv cHN @@ -143575,15 +143474,15 @@ cht cht vAP bSz -csV -csV -csV -csV -csV -csV -csV -csV -csV +cyv +cyv +cyv +cyv +cyv +cyv +cyv +cyv +cyv lXi tIa njo diff --git a/_maps/map_files/stations/metastation.dmm b/_maps/map_files/stations/metastation.dmm index 1a88285f3340..426773de5551 100644 --- a/_maps/map_files/stations/metastation.dmm +++ b/_maps/map_files/stations/metastation.dmm @@ -7362,11 +7362,6 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/fore/north) "aKI" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /obj/machinery/atmospherics/unary/vent_scrubber/on, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/se) @@ -22460,6 +22455,7 @@ }, /obj/item/folder/blue, /obj/item/pen/multi, +/obj/item/hand_tele, /turf/simulated/floor/plasteel{ icon_state = "grimy" }, @@ -25003,11 +24999,6 @@ d2 = 8; icon_state = "4-8" }, -/obj/structure/cable{ - d1 = 2; - d2 = 8; - icon_state = "2-8" - }, /turf/simulated/floor/plasteel{ dir = 4; icon_state = "neutralcorner" @@ -25751,6 +25742,11 @@ d2 = 8; icon_state = "4-8" }, +/obj/structure/cable{ + d1 = 2; + d2 = 8; + icon_state = "2-8" + }, /turf/simulated/floor/plasteel{ dir = 4; icon_state = "neutralcorner" @@ -25898,7 +25894,7 @@ /area/station/engineering/controlroom) "bNh" = ( /turf/simulated/wall/r_wall, -/area/station/service/expedition) +/area/station/supply/expedition) "bNi" = ( /turf/simulated/wall, /area/station/public/storage/emergency/port) @@ -25908,11 +25904,12 @@ }, /area/station/medical/reception) "bNl" = ( -/obj/machinery/economy/vending/coffee, +/obj/structure/closet/secure_closet/explorer, /turf/simulated/floor/plasteel{ - icon_state = "darkgrey" + dir = 6; + icon_state = "darkyellow" }, -/area/station/hallway/secondary/bridge) +/area/station/supply/expedition) "bNm" = ( /obj/machinery/status_display{ layer = 4; @@ -25933,17 +25930,6 @@ icon_state = "arrival" }, /area/station/hallway/secondary/entry/south) -"bNo" = ( -/obj/machinery/door/airlock/maintenance, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/obj/effect/mapping_helpers/airlock/autoname, -/obj/effect/mapping_helpers/airlock/access/any/engineering/maintenance, -/turf/simulated/floor/plating, -/area/station/maintenance/maintcentral) "bNp" = ( /turf/simulated/floor/plasteel{ dir = 1; @@ -26048,23 +26034,12 @@ /turf/simulated/floor/carpet, /area/station/command/bridge) "bNU" = ( -/obj/machinery/door_control{ - id = "gateshutter"; - name = "Expedition Shutter Control"; - pixel_y = -26; - req_access_txt = "62" - }, -/obj/machinery/firealarm{ - dir = 8; - name = "west bump"; - pixel_x = -24 - }, /obj/machinery/recharge_station, /turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "darkblue" + dir = 10; + icon_state = "darkyellow" }, -/area/station/service/expedition) +/area/station/supply/expedition) "bNX" = ( /obj/structure/window/reinforced{ dir = 4 @@ -26392,16 +26367,22 @@ /turf/simulated/floor/plating, /area/station/security/permabrig) "bOY" = ( -/obj/machinery/newscaster{ - dir = 1; - name = "south bump"; - pixel_y = -28 +/obj/machinery/door/firedoor, +/obj/effect/mapping_helpers/airlock/access/any/supply/expedition, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/door/airlock/mining{ + name = "Expedition Headquarters" + }, +/obj/structure/cable{ + d1 = 1; + d2 = 2; + icon_state = "1-2" }, -/obj/machinery/economy/vending/cigarette, /turf/simulated/floor/plasteel{ - icon_state = "darkgrey" + icon_state = "darkyellowfull" }, -/area/station/hallway/secondary/bridge) +/area/station/supply/expedition) "bOZ" = ( /obj/effect/turf_decal/stripes/line{ dir = 1 @@ -26542,7 +26523,6 @@ icon_state = "2-8" }, /obj/item/radio/beacon, -/obj/item/hand_tele, /turf/simulated/floor/plasteel, /area/station/command/teleporter) "bPB" = ( @@ -26701,10 +26681,6 @@ /turf/simulated/floor/plasteel, /area/station/science/xenobiology) "bQm" = ( -/obj/structure/table, -/obj/machinery/recharger{ - pixel_y = 4 - }, /obj/item/radio/intercom{ name = "west bump"; pixel_x = -28 @@ -26712,11 +26688,12 @@ /obj/machinery/camera{ c_tag = "Expedition" }, +/obj/machinery/mineral/equipment_vendor/explorer, /turf/simulated/floor/plasteel{ dir = 9; - icon_state = "darkblue" + icon_state = "darkyellow" }, -/area/station/service/expedition) +/area/station/supply/expedition) "bQn" = ( /obj/machinery/hologram/holopad, /turf/simulated/floor/wood, @@ -26755,11 +26732,16 @@ /turf/simulated/floor/engine/vacuum, /area/station/maintenance/turbine) "bQB" = ( -/obj/structure/closet/secure_closet/personal, +/obj/machinery/firealarm{ + dir = 8; + name = "west bump"; + pixel_x = -24 + }, /turf/simulated/floor/plasteel{ - icon_state = "dark" + icon_state = "darkyellow"; + dir = 8 }, -/area/station/service/expedition) +/area/station/supply/expedition) "bQC" = ( /obj/structure/table, /obj/machinery/kitchen_machine/microwave, @@ -26773,13 +26755,11 @@ }, /area/station/service/kitchen) "bQD" = ( -/obj/structure/table, -/obj/item/storage/firstaid/regular, -/obj/item/storage/firstaid/regular, /turf/simulated/floor/plasteel{ - icon_state = "dark" + icon_state = "darkyellow"; + dir = 1 }, -/area/station/service/expedition) +/area/station/supply/expedition) "bQF" = ( /obj/machinery/door/firedoor, /turf/simulated/floor/plasteel{ @@ -27133,15 +27113,12 @@ }, /area/station/hallway/primary/central/west) "bRP" = ( -/obj/machinery/status_display{ - layer = 4; - pixel_y = 32 - }, -/obj/effect/landmark/start/explorer, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/supply/expedition) "bRQ" = ( /obj/machinery/atmospherics/portable/canister/oxygen, /obj/effect/turf_decal/stripes/line{ @@ -27273,40 +27250,23 @@ /turf/simulated/floor/engine/vacuum, /area/station/maintenance/turbine) "bSo" = ( -/obj/structure/table, -/obj/item/radio{ - pixel_x = 7; - pixel_y = 4 - }, -/obj/item/radio{ - pixel_x = 7; - pixel_y = 4 - }, -/obj/item/radio{ - pixel_x = 7; - pixel_y = 4 - }, -/obj/item/radio{ - pixel_x = 7; - pixel_y = 4 - }, -/obj/machinery/requests_console{ - department = "Expedition"; - pixel_x = 30 - }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/supply/expedition) "bSp" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" +/obj/machinery/camera{ + c_tag = "Research Test Lab North"; + dir = 8; + network = list("RD","SS13"); + pixel_y = -22 }, -/obj/effect/landmark/spawner/nukedisc_respawn, -/turf/simulated/floor/plating, -/area/station/maintenance/maintcentral) +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "darkyellow" + }, +/area/station/supply/expedition) "bSr" = ( /obj/machinery/light, /obj/structure/extinguisher_cabinet{ @@ -27813,36 +27773,25 @@ /turf/simulated/floor/carpet/royalblack, /area/station/command/office/ntrep) "bTS" = ( -/obj/machinery/light{ - dir = 8 +/obj/machinery/computer/security/telescreen/entertainment{ + pixel_x = -32 }, -/obj/structure/closet/secure_closet/personal, +/obj/structure/weightmachine/weightlifter, +/obj/effect/landmark/start/explorer, /turf/simulated/floor/plasteel{ - icon_state = "dark" + icon_state = "darkyellow"; + dir = 8 }, -/area/station/service/expedition) +/area/station/supply/expedition) "bTU" = ( -/obj/machinery/light{ - dir = 4 +/obj/effect/spawner/random_spawners/dirt_maybe, +/obj/machinery/atmospherics/unary/vent_pump/on{ + dir = 8 }, -/obj/structure/table, -/obj/item/pickaxe, -/obj/item/pickaxe, -/obj/item/pickaxe, -/obj/item/pickaxe, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) -"bTV" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/obj/effect/landmark/burnturf, -/turf/simulated/floor/plating, -/area/station/maintenance/maintcentral) +/area/station/supply/expedition) "bTW" = ( /obj/item/radio/intercom{ name = "west bump"; @@ -28669,65 +28618,40 @@ /turf/simulated/floor/wood, /area/station/command/office/blueshield) "bWV" = ( -/obj/structure/cable{ - d2 = 4; - icon_state = "0-4" - }, -/obj/machinery/power/apc/directional/west, -/obj/structure/table, -/obj/item/storage/fancy/donut_box, -/obj/item/storage/fancy/donut_box, +/obj/structure/dispenser/oxygen, /turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "darkblue" + icon_state = "darkyellow"; + dir = 8 }, -/area/station/service/expedition) +/area/station/supply/expedition) "bWW" = ( -/obj/machinery/atmospherics/unary/vent_pump/on{ - dir = 4 - }, -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, +/obj/effect/landmark/start/explorer, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/supply/expedition) "bWX" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 6 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 10 - }, -/obj/machinery/hologram/holopad, -/obj/structure/cable{ - d1 = 2; - d2 = 8; - icon_state = "2-8" +/obj/machinery/light{ + dir = 8 }, /turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) -"bWY" = ( -/obj/machinery/atmospherics/unary/vent_scrubber/on{ + icon_state = "darkyellow"; dir = 8 }, +/area/station/supply/expedition) +"bWY" = ( +/obj/machinery/suit_storage_unit/expedition, /turf/simulated/floor/plasteel{ - icon_state = "dark" + dir = 5; + icon_state = "darkyellow" }, -/area/station/service/expedition) +/area/station/supply/expedition) "bWZ" = ( -/obj/machinery/door/airlock/maintenance{ - name = "Expedition Maintenance" +/obj/effect/spawner/random_spawners/dirt_maybe, +/turf/simulated/floor/plasteel{ + icon_state = "dark" }, -/obj/effect/mapping_helpers/airlock/autoname, -/obj/effect/mapping_helpers/airlock/access/all/command/expedition, -/turf/simulated/floor/plating, -/area/station/maintenance/maintcentral) +/area/station/supply/expedition) "bXb" = ( /obj/machinery/plantgenes, /obj/effect/turf_decal/stripes/line, @@ -29184,16 +29108,16 @@ /turf/simulated/floor/carpet/royalblack, /area/station/command/office/ntrep) "bYp" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/obj/effect/turf_decal/stripes/line{ +/obj/machinery/requests_console{ + department = "Expedition"; + pixel_x = 30; dir = 8 }, -/turf/simulated/floor/plating, -/area/station/maintenance/maintcentral) +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "darkyellow" + }, +/area/station/supply/expedition) "bYq" = ( /turf/simulated/floor/plasteel{ icon_state = "white" @@ -29471,32 +29395,22 @@ }, /area/station/maintenance/asmaint) "bZz" = ( +/obj/effect/spawner/random_spawners/dirt_maybe, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 5 + }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/service/expedition) +/area/station/supply/expedition) "bZD" = ( -/obj/machinery/light_switch{ - dir = 8; - name = "east bump"; - pixel_x = 24 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 10 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 10 - }, -/obj/effect/landmark/start/explorer, -/obj/structure/cable{ - d1 = 2; - d2 = 8; - icon_state = "2-8" - }, +/obj/machinery/light, +/obj/structure/closet/secure_closet/explorer, /turf/simulated/floor/plasteel{ - icon_state = "dark" + icon_state = "darkyellow" }, -/area/station/service/expedition) +/area/station/supply/expedition) "bZH" = ( /obj/structure/bookcase, /turf/simulated/floor/wood, @@ -29533,23 +29447,8 @@ /turf/simulated/floor/wood, /area/station/service/library) "bZX" = ( -/obj/machinery/door/firedoor, -/obj/machinery/door/airlock/command{ - name = "Expedition Access" - }, -/obj/effect/mapping_helpers/airlock/access/all/command/expedition, -/obj/effect/turf_decal/delivery, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/service/expedition) +/turf/simulated/wall, +/area/station/supply/expedition) "bZZ" = ( /obj/structure/chair/office/dark{ dir = 4 @@ -29918,19 +29817,25 @@ /turf/simulated/floor/plasteel/dark/telecomms, /area/station/science/server/coldroom) "cbi" = ( -/obj/machinery/door/firedoor, -/obj/effect/turf_decal/stripes/corner{ - dir = 4 +/obj/machinery/light_switch{ + name = "custom placement"; + pixel_x = 6; + pixel_y = 24 }, -/turf/simulated/floor/plasteel, -/area/station/hallway/primary/central/south) +/obj/machinery/power/apc/directional/west, +/obj/structure/cable{ + d2 = 4; + icon_state = "0-4" + }, +/turf/simulated/floor/plasteel{ + dir = 9; + icon_state = "darkyellow" + }, +/area/station/supply/expedition) "cbj" = ( /obj/structure/sign/securearea{ pixel_y = 32 }, -/obj/effect/turf_decal/stripes/corner{ - dir = 1 - }, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/se) "cbl" = ( @@ -30241,24 +30146,24 @@ /turf/simulated/floor/engine/co2, /area/station/engineering/atmos) "ccl" = ( -/obj/structure/closet/secure_closet/personal, /turf/simulated/floor/plasteel{ dir = 1; - icon_state = "darkblue" + icon_state = "darkyellowcorners" }, -/area/station/service/expedition) +/area/station/supply/expedition) "ccm" = ( -/obj/machinery/alarm/directional/east, -/obj/structure/table, -/obj/item/flashlight, -/obj/item/flashlight, -/obj/item/flashlight, -/obj/item/flashlight, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/structure/cable{ + d1 = 1; + d2 = 8; + icon_state = "1-8" + }, /turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "darkblue" + icon_state = "darkyellow"; + dir = 1 }, -/area/station/service/expedition) +/area/station/supply/expedition) "ccn" = ( /obj/structure/cable{ d1 = 4; @@ -30562,12 +30467,14 @@ /turf/simulated/floor/plasteel, /area/station/engineering/atmos) "cdB" = ( -/obj/effect/landmark/start/explorer, +/obj/effect/spawner/random_spawners/dirt_maybe, +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + dir = 1 + }, /turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "darkblue" + icon_state = "dark" }, -/area/station/service/expedition) +/area/station/supply/expedition) "cdC" = ( /obj/structure/sign/poster/official/ian, /turf/simulated/wall, @@ -31699,6 +31606,28 @@ /obj/effect/spawner/window, /turf/simulated/floor/plating, /area/station/medical/reception) +"chF" = ( +/obj/structure/table, +/obj/item/radio{ + pixel_x = 7; + pixel_y = 4 + }, +/obj/item/radio{ + pixel_y = 4; + pixel_x = -2 + }, +/obj/item/radio{ + pixel_x = -7; + pixel_y = 4 + }, +/obj/item/radio{ + pixel_x = 4; + pixel_y = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/supply/expedition) "chH" = ( /obj/effect/turf_decal/stripes/line{ dir = 1 @@ -38909,17 +38838,12 @@ }, /area/station/medical/paramedic) "cJT" = ( -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/obj/effect/spawner/lootdrop{ - loot = list(/obj/item/cigbutt,/obj/item/trash/cheesie,/obj/item/trash/candy,/obj/item/trash/chips,/obj/item/trash/pistachios,/obj/item/trash/plate,/obj/item/trash/popcorn,/obj/item/trash/raisins,/obj/item/trash/sosjerky,/obj/item/trash/syndi_cakes); - name = "trash spawner" +/obj/machinery/suit_storage_unit/expedition, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "darkyellow" }, -/turf/simulated/floor/plating, -/area/station/maintenance/maintcentral) +/area/station/supply/expedition) "cJU" = ( /obj/structure/sign/poster/contraband/random{ pixel_x = 32 @@ -39564,11 +39488,6 @@ d2 = 8; icon_state = "4-8" }, -/obj/structure/cable{ - d1 = 1; - d2 = 8; - icon_state = "1-8" - }, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, @@ -40385,16 +40304,6 @@ /turf/simulated/floor/plating, /area/station/maintenance/aft) "cPD" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 1 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/se) "cPF" = ( @@ -50876,12 +50785,6 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) -"fXz" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 1 - }, -/turf/simulated/floor/plasteel, -/area/station/hallway/primary/central/se) "fYb" = ( /obj/machinery/atmospherics/pipe/simple/visible/cyan{ dir = 10 @@ -57988,17 +57891,11 @@ /turf/simulated/floor/plasteel, /area/station/security/processing) "iSE" = ( -/obj/machinery/door/firedoor, -/obj/machinery/door/poddoor/shutters{ - dir = 2; - id_tag = "gateshutter"; - name = "Expedition Access Shutter" - }, -/obj/effect/turf_decal/caution/stand_clear, +/obj/structure/closet/secure_closet/explorer, /turf/simulated/floor/plasteel{ - icon_state = "dark" + icon_state = "darkyellow" }, -/area/station/service/expedition) +/area/station/supply/expedition) "iSH" = ( /obj/machinery/atmospherics/pipe/simple/visible{ dir = 5 @@ -75855,11 +75752,10 @@ /turf/simulated/floor/plating, /area/station/hallway/primary/fore/east) "qrT" = ( -/obj/effect/landmark/start/explorer, /turf/simulated/floor/plasteel{ - icon_state = "dark" + icon_state = "darkyellow" }, -/area/station/service/expedition) +/area/station/supply/expedition) "qse" = ( /obj/machinery/hologram/holopad, /obj/effect/turf_decal/delivery/blue/hollow, @@ -78992,21 +78888,20 @@ /area/station/medical/morgue) "rFL" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/disposalpipe/segment{ - dir = 8; - icon_state = "pipe-c" +/obj/structure/disposalpipe/segment/corner{ + dir = 8 }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, /obj/machinery/light_switch{ dir = 8; name = "east bump"; pixel_x = 24 }, +/obj/structure/cable{ + d1 = 1; + d2 = 2; + icon_state = "1-2" + }, /turf/simulated/floor/wood, /area/station/command/office/ntrep) "rGd" = ( @@ -84140,21 +84035,12 @@ }, /area/station/medical/surgery/secondary) "tST" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 5 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 5 - }, -/obj/structure/cable{ - d1 = 1; - d2 = 4; - icon_state = "1-4" - }, +/obj/structure/closet/secure_closet/explorer, +/obj/machinery/alarm/directional/south, /turf/simulated/floor/plasteel{ - icon_state = "dark" + icon_state = "darkyellow" }, -/area/station/service/expedition) +/area/station/supply/expedition) "tSX" = ( /obj/machinery/photocopier, /obj/machinery/newscaster/security_unit{ @@ -84929,20 +84815,12 @@ }, /area/station/service/bar) "uhY" = ( -/obj/structure/cable{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/manifold/hidden/supply, -/obj/structure/cable{ - d1 = 1; - d2 = 4; - icon_state = "1-4" +/obj/effect/landmark/start/explorer, +/turf/simulated/floor/plasteel{ + icon_state = "darkyellow"; + dir = 1 }, -/turf/simulated/floor/plasteel, -/area/station/hallway/primary/central/se) +/area/station/supply/expedition) "uiK" = ( /obj/item/radio/intercom{ name = "south bump"; @@ -87752,17 +87630,12 @@ /turf/simulated/floor/plasteel, /area/station/security/main) "vtR" = ( -/obj/machinery/door/firedoor, -/obj/effect/turf_decal/caution/stand_clear, -/obj/machinery/door/poddoor/shutters{ - dir = 2; - id_tag = "gateshutter"; - name = "Expedition Access Shutter" - }, +/obj/machinery/economy/vending/exploredrobe, /turf/simulated/floor/plasteel{ - icon_state = "dark" + dir = 4; + icon_state = "darkyellow" }, -/area/station/service/expedition) +/area/station/supply/expedition) "vtY" = ( /obj/effect/decal/cleanable/dirt, /obj/structure/closet/crate, @@ -89429,12 +89302,6 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /turf/simulated/floor/engine, /area/station/engineering/control) -"wkM" = ( -/obj/machinery/economy/vending/cola, -/turf/simulated/floor/plasteel{ - icon_state = "darkgrey" - }, -/area/station/hallway/secondary/bridge) "wlo" = ( /obj/structure/closet/crate/trashcart, /obj/effect/spawner/lootdrop{ @@ -124053,7 +123920,7 @@ bNh bNh bNh bNh -bNh +bZX caN jdP bdb @@ -124310,8 +124177,8 @@ bNh bQm bWV bNU -bNh -cbi +bZX +cIA ben bqb fXo @@ -124559,16 +124426,16 @@ bHC qgk bJp bLg -wkM -bNh -bQB +bZX +cbi +bWX bQB bTS ccl -bWW +bSo qrT -iSE -fXz +bZX +cPD ixQ eOI bbg @@ -124815,17 +124682,17 @@ bEm bIy qgk bMG -bLg +bLq bOY -bNh +ccm +bRP bRP -bZz bZz cdB -bWX +bWZ tST -vtR -fXz +bZX +cPD sZY eOI dbb @@ -125073,17 +124940,17 @@ bHH qgk bJB bLg -bNl -bNh +bZX bQD bSo +chF bTU -ccm -bWY +bWZ +bWZ bZD bZX cPD -uhY +sZY eOI dbb cmo @@ -125330,15 +125197,15 @@ qgk qgk bJp daF -bNh -bNh -bNh -bNh -bNh -bNh +bZX +uhY +bWW +bWW bWZ -bNh -bNh +bWZ +bWZ +iSE +bZX cbj nJC bhp @@ -125586,16 +125453,16 @@ cdO cPt bHK bJC -bLq -bNo -clO -bTV +bLg +bZX +bWY +cJT bSp cJT -cdO +vtR bYp -cPt -bHK +bNl +bZX aKI cMh cdE @@ -125844,15 +125711,15 @@ bht bht bJD bLr -bht -bht -bht -bht -bht -bht -bht -bht -bht +bZX +bZX +bZX +bZX +bZX +bZX +bZX +bZX +bZX xki jAV bqR diff --git a/code/__DEFINES/admin_defines.dm b/code/__DEFINES/admin_defines.dm index 1856a55e010a..fd1ada925ef5 100644 --- a/code/__DEFINES/admin_defines.dm +++ b/code/__DEFINES/admin_defines.dm @@ -46,12 +46,14 @@ #define R_HOST ((1<<18)-1) //17 bit bitmask, update me if we ever add more admin permissions. Sum of all permissions to allow easy setting. + #define ADMIN_QUE(user,display) "[display]" #define ADMIN_FLW(user,display) "[display]" #define ADMIN_PP(user,display) "[display]" #define ADMIN_VV(atom,display) "[display]" #define ADMIN_SM(user,display) "[display]" #define ADMIN_TP(user,display) "[display]" +#define ADMIN_OBS(user, display) "[display]" #define ADMIN_ALERT(user, display) "[display]" #define ADMIN_BSA(user,display) "[display]" #define ADMIN_CENTCOM_REPLY(user,display) "[display]" diff --git a/code/__DEFINES/atom_states.dm b/code/__DEFINES/atom_states.dm new file mode 100644 index 000000000000..91484f9a51f1 --- /dev/null +++ b/code/__DEFINES/atom_states.dm @@ -0,0 +1,4 @@ +#define BAD_INIT_QDEL_BEFORE (1<<0) +#define BAD_INIT_DIDNT_INIT (1<<1) +#define BAD_INIT_SLEPT (1<<2) +#define BAD_INIT_NO_HINT (1<<3) diff --git a/code/__DEFINES/dcs/signals.dm b/code/__DEFINES/dcs/signals.dm index 3dd763ba3dab..84491eb549bc 100644 --- a/code/__DEFINES/dcs/signals.dm +++ b/code/__DEFINES/dcs/signals.dm @@ -181,6 +181,8 @@ #define COMSIG_ATOM_ORBIT_BEGIN "atom_orbit_begin" ///called when an atom stops orbiting another atom: (atom) #define COMSIG_ATOM_ORBIT_STOP "atom_orbit_stop" +/// called on an atom who has stopped orbiting another atom (atom/orbiter, atom/formerly_orbited) +#define COMSIG_ATOM_ORBITER_STOP "atom_orbiter_stop" ///from base of atom/hitby(atom/movable/AM, skipcatch, hitpush, blocked, datum/thrownthing/throwingdatum) #define COMSIG_ATOM_HITBY "atom_hitby" /// Called when an atom is sharpened or dulled. @@ -945,11 +947,26 @@ ///from base of datum/action/proc/Trigger(): (datum/action) #define COMSIG_ACTION_TRIGGER "action_trigger" #define COMPONENT_ACTION_BLOCK_TRIGGER (1<<0) +/// From /datum/action/Grant(): (mob/grant_to) +#define COMSIG_ACTION_GRANTED "action_grant" +/// From /datum/action/Grant(): (datum/action) +#define COMSIG_MOB_GRANTED_ACTION "mob_action_grant" +/// From /datum/action/Remove(): (mob/removed_from) +#define COMSIG_ACTION_REMOVED "action_removed" +/// From /datum/action/Remove(): (datum/action) +#define COMSIG_MOB_REMOVED_ACTION "mob_action_removed" // Note that this is only defined for actions because this could be a good bit expensive otherwise /// From base of /atom/movable/screen/movable/action_button/MouseWheel(src, delta_x, delta_y, location, control, params) #define COMSIG_ACTION_SCROLLED "action_scrolled" +// ghost signals + +/// from observer_base/do_observe(): (mob/now_followed) +#define COMSIG_GHOST_START_OBSERVING "ghost_start_observing" +/// from observer_base/do_observe(): (mob/no_longer_following) +#define COMSIG_GHOST_STOP_OBSERVING "ghost_stop_observing" + //Xenobio hotkeys ///from slime CtrlClickOn(): (/mob) diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index 3e1275ba880b..a907170b5e36 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -164,6 +164,8 @@ if(sight_check && !isInSight(A, O)) continue L |= M + for(var/mob/dead/observer/ghost in M.observers) + L |= ghost //log_world("[recursion_limit] = [M] - [get_turf(M)] - ([M.x], [M.y], [M.z])") if(isobj(A) || ismob(A)) @@ -198,20 +200,50 @@ /proc/get_mobs_in_radio_ranges(list/obj/item/radio/radios) . = list() - // Returns a list of mobs who can hear any of the radios + // Returns a list of mobs who can hear any of the radios given in @radios var/list/speaker_coverage = list() for(var/obj/item/radio/R in radios) - var/obj/item/radio/borg/BR = R - if(istype(BR) && BR.myborg) - if(!BR.myborg.is_component_functioning("radio")) - continue //No power. - - for(var/mob/listener in R.listeners) - speaker_coverage |= listener - - if(ismob(R.loc)) - speaker_coverage |= R.loc - return speaker_coverage + if(R) + //Cyborg checks. Receiving message uses a bit of cyborg's charge. + var/obj/item/radio/borg/BR = R + if(istype(BR) && BR.myborg) + var/mob/living/silicon/robot/borg = BR.myborg + var/datum/robot_component/CO = borg.get_component("radio") + if(!CO) + continue //No radio component (Shouldn't happen) + if(!borg.is_component_functioning("radio")) + continue //No power. + + var/turf/speaker = get_turf(R) + if(speaker) + for(var/turf/T in hear(R.canhear_range,speaker)) + var/obj/item/radio/oldR = speaker_coverage[T] + if(!istype(oldR)) + speaker_coverage[T] = R + continue + if(oldR.canhear_range < R.canhear_range) + speaker_coverage[T] = R + + // Try to find all the players who can hear the message + for(var/A in GLOB.player_list + GLOB.hear_radio_list) + var/mob/M = A + if(!M) + continue + var/turf/ear = get_turf(M) + if(!ear) + continue + // Ghostship is magic: Ghosts can hear radio chatter from anywhere + if(isobserver(M) && M.get_preference(PREFTOGGLE_CHAT_GHOSTRADIO)) + . |= M + continue + if(!speaker_coverage[ear]) + continue + var/obj/item/radio/R = speaker_coverage[ear] + if(!istype(R) || R.canhear_range > 0) + . |= M + continue + if(is_same_root_atom(M, speaker_coverage[ear])) + . |= M /proc/inLineOfSight(X1,Y1,X2,Y2,Z=1,PX1=16.5,PY1=16.5,PX2=16.5,PY2=16.5) var/turf/T diff --git a/code/__HELPERS/lists.dm b/code/__HELPERS/lists.dm index cd6d5d8820b2..1f1af7032bdb 100644 --- a/code/__HELPERS/lists.dm +++ b/code/__HELPERS/lists.dm @@ -676,6 +676,7 @@ #define UNSETEMPTY(L) if(L && !length(L)) L = null #define LAZYREMOVE(L, I) if(L) { L -= I; if(!length(L)) { L = null; } } #define LAZYADD(L, I) if(!L) { L = list(); } L += I; +/// Add an item to the list if not already present, if the list is null it will initialize it #define LAZYOR(L, I) if(!L) { L = list(); } L |= I; /// Adds I to L, initializing L if necessary, if I is not already in L #define LAZYDISTINCTADD(L, I) if(!L) { L = list(); } L |= I; diff --git a/code/__HELPERS/mob_helpers.dm b/code/__HELPERS/mob_helpers.dm index d4e50baa3612..30c2693a643b 100644 --- a/code/__HELPERS/mob_helpers.dm +++ b/code/__HELPERS/mob_helpers.dm @@ -554,7 +554,7 @@ GLOBAL_LIST_EMPTY(do_after_once_tracker) to_chat(user, "Name = [M.name]; Real_name = [M.real_name]; Mind_name = [M.mind?"[M.mind.name]":""]; Key = [M.key];") to_chat(user, "Location = [location_description];") to_chat(user, "[special_role_description]") - to_chat(user, "(PM) ([ADMIN_PP(M,"PP")]) ([ADMIN_VV(M,"VV")]) ([ADMIN_TP(M,"TP")]) ([ADMIN_SM(M,"SM")]) ([ADMIN_FLW(M,"FLW")])") + to_chat(user, "(PM) ([ADMIN_PP(M,"PP")]) ([ADMIN_VV(M,"VV")]) ([ADMIN_TP(M,"TP")]) ([ADMIN_SM(M,"SM")]) ([ADMIN_FLW(M,"FLW")]) ([ADMIN_OBS(M, "OBS")])") // Gets the first mob contained in an atom, and warns the user if there's not exactly one /proc/get_mob_in_atom_with_warning(atom/A, mob/user = usr) diff --git a/code/__HELPERS/trait_helpers.dm b/code/__HELPERS/trait_helpers.dm index e3778abe37fa..112661491d74 100644 --- a/code/__HELPERS/trait_helpers.dm +++ b/code/__HELPERS/trait_helpers.dm @@ -235,6 +235,10 @@ Remember to update _globalvars/traits.dm if you're adding/removing/renaming trai #define TRAIT_SLEIGHT_OF_HAND "sleight_of_hand" #define TRAIT_KNOWS_COOKING_RECIPES "knows_cooking_recipes" +/// used for dead mobs that are observing, but should not be afforded all the same platitudes as full ghosts. +/// This is a mind trait because ghosts can be frequently deleted and we want to be sure this sticks. +#define TRAIT_MENTOR_OBSERVING "mentor_observe" + //***** ITEM AND MOB TRAITS *****// /// Show what machine/door wires do when held. #define TRAIT_SHOW_WIRE_INFO "show_wire_info" @@ -321,6 +325,8 @@ Remember to update _globalvars/traits.dm if you're adding/removing/renaming trai #define HOLO_CIGAR "holo_cigar" #define GLADIATOR "gladiator" #define PULSEDEMON_TRAIT "pulse_demon" +/// Mentor observing +#define MENTOR_OBSERVING "mobserving" //quirk traits #define TRAIT_ALCOHOL_TOLERANCE "alcohol_tolerance" diff --git a/code/_globalvars/lists/reagents_lists.dm b/code/_globalvars/lists/reagents_lists.dm index 39540790b932..94388ef1c72a 100644 --- a/code/_globalvars/lists/reagents_lists.dm +++ b/code/_globalvars/lists/reagents_lists.dm @@ -47,5 +47,5 @@ GLOBAL_LIST_INIT(blocked_chems, list("polonium", "initropidril", "concentrated_i "fungalspores", "jagged_crystals", "salmonella", "lavaland_extract", "stable_mutagen", "beer2", "curare", "gluttonytoxin", "smoke_powder", "stimulative_cling", - "teslium_paste" + "teslium_paste", "omnizine_no_addiction" )) diff --git a/code/_onclick/hud/action_button.dm b/code/_onclick/hud/action_button.dm index 205d4fe1ddeb..a8303d46fb82 100644 --- a/code/_onclick/hud/action_button.dm +++ b/code/_onclick/hud/action_button.dm @@ -16,6 +16,8 @@ var/id /// UID of the last thing we hovered over. Used for managing action button dragging. var/last_hovered_ref + /// Whether or not this should be shown to observers + var/shown_to_observers = FALSE /// Whether or not this button is locked, preventing it from being dragged. var/locked = FALSE @@ -32,8 +34,14 @@ return ..() /atom/movable/screen/movable/action_button/proc/can_use(mob/user) + if(isobserver(user)) + var/mob/dead/observer/dead_mob = user + if(dead_mob.mob_observed) // Observers can only click on action buttons if they're not observing something + return FALSE if(!linked_action) return TRUE + if(linked_action.owner != user) + return FALSE return !isnull(linked_action.viewers[user.hud_used]) // Entered and Exited won't fire while you're dragging something, because you're still "holding" it @@ -60,7 +68,8 @@ last_hovered.MouseExited(over_location, over_control, params) closeToolTip(usr) last_hovered_ref = UID(over_object) - over_object.MouseEntered(over_location, over_control, params) + if(!isnull(over_object)) + over_object.MouseEntered(over_location, over_control, params) /atom/movable/screen/movable/action_button/MouseDrop(over_object) last_hovered_ref = null @@ -113,6 +122,8 @@ animate(src, transform = matrix(), time = 0.4 SECONDS, alpha = 255) /atom/movable/screen/movable/action_button/Click(location, control, params) + if(!can_use(usr)) + return FALSE var/list/modifiers = params2list(params) if(modifiers["ctrl"] && modifiers["shift"]) INVOKE_ASYNC(src, PROC_REF(set_to_keybind), usr) @@ -578,4 +589,47 @@ GLOBAL_LIST_INIT(palette_removed_matrix, list(1.4,0,0,0, 0.7,0.4,0,0, 0.4,0,0.6, button = action.viewers[src] position_action(button, button.location) + +/** + * Show (most) of the another mob's action buttons to this mob + * + * Used for observers viewing another mob's screen + */ +/mob/proc/show_other_mob_action_buttons(mob/take_from) + if(!hud_used || !client) + return + + for(var/datum/action/action as anything in take_from.actions) + if(!action.show_to_observers) + continue + action.GiveAction(src) + RegisterSignal(take_from, COMSIG_MOB_GRANTED_ACTION, PROC_REF(on_observing_action_granted), override = TRUE) + RegisterSignal(take_from, COMSIG_MOB_REMOVED_ACTION, PROC_REF(on_observing_action_removed), override = TRUE) + +/** + * Hide another mob's action buttons from this mob + * + * Used for observers viewing another mob's screen + */ +/mob/proc/hide_other_mob_action_buttons(mob/take_from) + for(var/datum/action/action as anything in take_from.actions) + action.HideFrom(src) + UnregisterSignal(take_from, list(COMSIG_MOB_GRANTED_ACTION, COMSIG_MOB_REMOVED_ACTION)) + +/// Signal proc for [COMSIG_MOB_GRANTED_ACTION] - If we're viewing another mob's action buttons, +/// we need to update with any newly added buttons granted to the mob. +/mob/proc/on_observing_action_granted(mob/living/source, datum/action/action) + SIGNAL_HANDLER // COMSIG_MOB_GRANTED_ACTION + + if(!action.show_to_observers) + return + action.GiveAction(src) + +/// Signal proc for [COMSIG_MOB_REMOVED_ACTION] - If we're viewing another mob's action buttons, +/// we need to update with any removed buttons from the mob. +/mob/proc/on_observing_action_removed(mob/living/source, datum/action/action) + SIGNAL_HANDLER // COMSIG_MOB_REMOVED_ACTION + + action.HideFrom(src) + #undef AB_MAX_COLUMNS diff --git a/code/_onclick/hud/ai_hud.dm b/code/_onclick/hud/ai_hud.dm index d99b737cc1fa..1f0cf58e2371 100644 --- a/code/_onclick/hud/ai_hud.dm +++ b/code/_onclick/hud/ai_hud.dm @@ -1,20 +1,27 @@ /atom/movable/screen/ai icon = 'icons/mob/screen_ai.dmi' +/atom/movable/screen/ai/Click() + if(isobserver(usr) || usr.incapacitated()) + return TRUE + /atom/movable/screen/ai/aicore name = "AI core" icon_state = "ai_core" /atom/movable/screen/ai/aicore/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - AI.view_core() + if(..()) + return + var/mob/living/silicon/ai/AI = usr + AI.view_core() /atom/movable/screen/ai/camera_list name = "Show Camera List" icon_state = "camera" /atom/movable/screen/ai/camera_list/Click() + if(..()) + return var/mob/living/silicon/ai/AI = usr var/camera = tgui_input_list(AI, "Choose which camera you want to view", "Cameras", AI.get_camera_list()) AI.ai_camera_list(camera) @@ -24,53 +31,60 @@ icon_state = "track" /atom/movable/screen/ai/camera_track/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - var/target_name = tgui_input_list(AI, "Choose a target you want to track", "Tracking", AI.trackable_mobs()) - if(target_name) - AI.ai_camera_track(target_name) + if(..()) + return + var/mob/living/silicon/ai/AI = usr + var/target_name = tgui_input_list(AI, "Choose a target you want to track", "Tracking", AI.trackable_mobs()) + if(target_name) + AI.ai_camera_track(target_name) /atom/movable/screen/ai/camera_light name = "Toggle Camera Light" icon_state = "camera_light" /atom/movable/screen/ai/camera_light/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - AI.toggle_camera_light() + if(..()) + return + var/mob/living/silicon/ai/AI = usr + AI.toggle_camera_light() /atom/movable/screen/ai/crew_monitor name = "Crew Monitoring Console" icon_state = "crew_monitor" /atom/movable/screen/ai/crew_monitor/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - AI.subsystem_crew_monitor() + if(..()) + return + var/mob/living/silicon/ai/AI = usr + AI.subsystem_crew_monitor() /atom/movable/screen/ai/crew_manifest name = "Crew Manifest" icon_state = "manifest" /atom/movable/screen/ai/crew_manifest/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - AI.ai_roster() + if(..()) + return + var/mob/living/silicon/ai/AI = usr + AI.ai_roster() /atom/movable/screen/ai/alerts name = "Show Alerts" icon_state = "alerts" /atom/movable/screen/ai/alerts/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - AI.ai_alerts() + if(..()) + return + var/mob/living/silicon/ai/AI = usr + AI.ai_alerts() /atom/movable/screen/ai/announcement name = "Make Announcement" icon_state = "announcement" /atom/movable/screen/ai/announcement/Click() + if(..()) + return var/mob/living/silicon/ai/AI = usr AI.announcement() @@ -79,15 +93,18 @@ icon_state = "call_shuttle" /atom/movable/screen/ai/call_shuttle/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - AI.ai_call_shuttle() + if(..()) + return + var/mob/living/silicon/ai/AI = usr + AI.ai_call_shuttle() /atom/movable/screen/ai/state_laws name = "Law Manager" icon_state = "state_laws" /atom/movable/screen/ai/state_laws/Click() + if(..()) + return if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.subsystem_law_manager() @@ -97,42 +114,48 @@ icon_state = "pda_send" /atom/movable/screen/ai/pda_msg_send/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - AI.aiPDA.cmd_send_pdamesg() + if(..()) + return + var/mob/living/silicon/ai/AI = usr + AI.aiPDA.cmd_send_pdamesg() /atom/movable/screen/ai/pda_msg_show name = "PDA - Show Message Log" icon_state = "pda_receive" /atom/movable/screen/ai/pda_msg_show/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - AI.aiPDA.cmd_show_message_log() + if(..()) + return + var/mob/living/silicon/ai/AI = usr + AI.aiPDA.cmd_show_message_log() /atom/movable/screen/ai/image_take name = "Take Image" icon_state = "take_picture" /atom/movable/screen/ai/image_take/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - AI.aiCamera.toggle_camera_mode() + if(..()) + return + var/mob/living/silicon/ai/AI = usr + AI.aiCamera.toggle_camera_mode() /atom/movable/screen/ai/image_view name = "View Images" icon_state = "view_images" /atom/movable/screen/ai/image_view/Click() - if(isAI(usr)) - var/mob/living/silicon/ai/AI = usr - AI.aiCamera.viewpictures() + if(..()) + return + var/mob/living/silicon/ai/AI = usr + AI.aiCamera.viewpictures() /atom/movable/screen/ai/sensors name = "Toggle Sensor Augmentation" icon_state = "ai_sensor" /atom/movable/screen/ai/sensors/Click() + if(..()) + return if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.sensor_mode() diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm index 8af3de91da03..80abb2b6f260 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -48,6 +48,8 @@ if(override) alert.timeout = null + alert.attach_owner(src) + if(icon_override) alert.icon = icon_override @@ -100,10 +102,50 @@ name = "Alert" desc = "Something seems to have gone wrong with this alert, so report this bug please" mouse_opacity = MOUSE_OPACITY_ICON - var/timeout = 0 //If set to a number, this alert will clear itself after that many deciseconds + /// How long before this alert automatically clears itself (in deciseconds). If zero, remains until cleared. + var/timeout = 0 + /// Some alerts may have different icon states based on severity, this adjusts that. var/severity = 0 + /// Tool-tip for the alert. var/alerttooltipstyle = "" - var/override_alerts = FALSE //If it is overriding other alerts of the same type + /// If true, this should override any other alerts of the same type thrown. + var/override_alerts = FALSE + /// The mob that this alert was originally thrown to. + var/mob/owner + +/atom/movable/screen/alert/proc/attach_owner(mob/new_owner) + owner = new_owner + RegisterSignal(owner, COMSIG_PARENT_QDELETING, PROC_REF(remove_owner)) + +/atom/movable/screen/alert/proc/remove_owner(mob/source, force) + SIGNAL_HANDLER // COMSIG_PARENT_QDELETING + if(owner == source && !isnull(owner)) + UnregisterSignal(owner, COMSIG_PARENT_QDELETING) + owner = null + +/atom/movable/screen/alert/Destroy() + if(owner) + UnregisterSignal(owner, COMSIG_PARENT_QDELETING) + owner = null + severity = 0 + master = null + screen_loc = "" + return ..() + +/atom/movable/screen/alert/Click(location, control, params) + ..() + if(!usr || !usr.client) + return FALSE + if(usr != owner) + to_chat(usr, "Only [owner] can use that!") + return FALSE + var/paramslist = params2list(params) + if(paramslist["shift"]) // screen objects don't do the normal Click() stuff so we'll cheat + to_chat(usr, "[name] - [desc]") + return FALSE + if(master) + usr.client.Click(master, location, control, params) + return TRUE /atom/movable/screen/alert/MouseEntered(location, control, params) . = ..() @@ -310,7 +352,7 @@ or something covering your eyes." icon_state = "embeddedobject" /atom/movable/screen/alert/embeddedobject/Click() - if(isliving(usr)) + if(isliving(usr) && ..()) var/mob/living/carbon/human/M = usr return M.help_shake_act(M) @@ -333,7 +375,7 @@ or shoot a gun to move around via Newton's 3rd Law of Motion." icon_state = "fire" /atom/movable/screen/alert/fire/Click() - if(isliving(usr)) + if(isliving(usr) && ..()) var/mob/living/L = usr return L.resist() @@ -343,7 +385,7 @@ or shoot a gun to move around via Newton's 3rd Law of Motion." icon_state = "direction_lock" /atom/movable/screen/alert/direction_lock/Click() - if(isliving(usr)) + if(isliving(usr) && ..()) var/mob/living/L = usr return L.clear_forced_look() @@ -406,7 +448,7 @@ Recharging stations are available in robotics, the dormitory bathrooms, and the desc = "You have merged with a diona gestalt and are now part of it's biomass. You can still wiggle yourself free though." /atom/movable/screen/alert/nymph/Click() - if(!usr || !usr.client) + if(!..()) return if(isnymph(usr)) var/mob/living/simple_animal/diona/D = usr @@ -417,7 +459,7 @@ Recharging stations are available in robotics, the dormitory bathrooms, and the desc = "You have merged with one or more diona nymphs. Click here to drop it (or one of them)." /atom/movable/screen/alert/gestalt/Click() - if(!usr || !usr.client) + if(!..()) return var/list/nymphs = list() @@ -465,7 +507,7 @@ so as to remain in compliance with the most up-to-date laws." return ..() /atom/movable/screen/alert/hackingapc/Click() - if(!usr || !usr.client) + if(!..()) return if(!target) return @@ -491,7 +533,7 @@ so as to remain in compliance with the most up-to-date laws." return ..() /atom/movable/screen/alert/mech_port_available/Click() - if(!usr || !usr.client) + if(!..()) return if(!ismecha(usr.loc) || !target) return @@ -507,7 +549,7 @@ so as to remain in compliance with the most up-to-date laws." icon_state = "mech_port_x" /atom/movable/screen/alert/mech_port_disconnect/Click() - if(!usr || !usr.client) + if(!..()) return if(!ismecha(usr.loc)) return @@ -566,7 +608,7 @@ so as to remain in compliance with the most up-to-date laws." timeout = 300 /atom/movable/screen/alert/notify_cloning/Click() - if(!usr || !usr.client) + if(!..()) return var/mob/dead/observer/G = usr G.reenter_corpse() @@ -585,6 +627,8 @@ so as to remain in compliance with the most up-to-date laws." overlays += I /atom/movable/screen/alert/ghost/Click() + if(!..()) + return var/mob/living/carbon/human/infected_user = usr if(!istype(infected_user) || infected_user.stat == DEAD) infected_user.clear_alert("ghost_nest") @@ -640,7 +684,7 @@ so as to remain in compliance with the most up-to-date laws." return ..() /atom/movable/screen/alert/notify_action/Click() - if(!usr || !usr.client) + if(!..()) return var/mob/dead/observer/G = usr @@ -721,7 +765,7 @@ so as to remain in compliance with the most up-to-date laws." var/stoner = null /atom/movable/screen/alert/notify_soulstone/Click() - if(!usr || !usr.client) + if(!..()) return if(stone) if(tgui_alert(usr, "Do you want to be captured by [stoner]'s soul stone? This will destroy your corpse and make it \ @@ -738,6 +782,7 @@ so as to remain in compliance with the most up-to-date laws." icon_state = "map_vote" /atom/movable/screen/alert/notify_mapvote/Click() + // ehh sure let observers click on it if they really want, who cares usr.client.vote() //OBJECT-BASED @@ -756,11 +801,14 @@ so as to remain in compliance with the most up-to-date laws." desc = "You're legcuffed, which slows you down considerably. Click the alert to free yourself." /atom/movable/screen/alert/restrained/Click() - if(isliving(usr)) - var/mob/living/L = usr - return L.resist() + if(!isliving(usr) || !..()) + return + var/mob/living/L = usr + return L.resist() /atom/movable/screen/alert/restrained/buckled/Click() + if(!isliving(usr) || !..()) + return var/mob/living/L = usr if(!istype(L) || !L.can_resist()) return @@ -770,20 +818,23 @@ so as to remain in compliance with the most up-to-date laws." // PRIVATE = only edit, use, or override these if you're editing the system as a whole // Re-render all alerts - also called in /datum/hud/show_hud() because it's needed there -/datum/hud/proc/reorganize_alerts() +/datum/hud/proc/reorganize_alerts(mob/viewmob) + var/mob/screenmob = viewmob || mymob + if(!screenmob.client) + return var/list/alerts = mymob.alerts if(!alerts) return FALSE var/icon_pref if(!hud_shown) for(var/i in 1 to length(alerts)) - mymob.client.screen -= alerts[alerts[i]] + screenmob.client.screen -= alerts[alerts[i]] return TRUE for(var/i in 1 to length(alerts)) var/atom/movable/screen/alert/alert = alerts[alerts[i]] if(alert.icon_state == "template") if(!icon_pref) - icon_pref = ui_style2icon(mymob.client.prefs.UI_style) + icon_pref = ui_style2icon(screenmob.client.prefs.UI_style) alert.icon = icon_pref switch(i) if(1) @@ -799,24 +850,12 @@ so as to remain in compliance with the most up-to-date laws." else . = "" alert.screen_loc = . - mymob.client.screen |= alert + screenmob.client.screen |= alert + if(!viewmob) + for(var/viewer in mymob.observers) + reorganize_alerts(viewer) return TRUE -/atom/movable/screen/alert/Click(location, control, params) - if(!usr || !usr.client) - return - var/paramslist = params2list(params) - if(paramslist["shift"]) // screen objects don't do the normal Click() stuff so we'll cheat - to_chat(usr, "[name] - [desc]") - return - if(master) - return usr.client.Click(master, location, control, params) - -/atom/movable/screen/alert/Destroy() - severity = 0 - master = null - screen_loc = "" - return ..() /// Gives the player the option to succumb while in critical condition /atom/movable/screen/alert/succumb @@ -825,7 +864,7 @@ so as to remain in compliance with the most up-to-date laws." icon_state = "succumb" /atom/movable/screen/alert/succumb/Click() - if(!usr || !usr.client) + if(!..()) return var/mob/living/living_owner = usr if(!istype(usr)) diff --git a/code/_onclick/hud/alien_hud.dm b/code/_onclick/hud/alien_hud.dm index eff377796e02..ad4e8d2a05c8 100644 --- a/code/_onclick/hud/alien_hud.dm +++ b/code/_onclick/hud/alien_hud.dm @@ -146,19 +146,22 @@ inv_slots[inv.slot_id] = inv inv.update_icon() -/datum/hud/alien/persistent_inventory_update() +/datum/hud/alien/persistent_inventory_update(mob/viewer) if(!mymob) return var/mob/living/carbon/alien/humanoid/H = mymob + var/mob/screenmob = viewer || H if(hud_version != HUD_STYLE_NOHUD) if(H.r_hand) H.r_hand.screen_loc = ui_rhand - H.client.screen += H.r_hand + screenmob.client.screen += H.r_hand if(H.l_hand) H.l_hand.screen_loc = ui_lhand - H.client.screen += H.l_hand + screenmob.client.screen += H.l_hand else if(H.r_hand) H.r_hand.screen_loc = null + screenmob.client.screen -= H.r_hand if(H.l_hand) H.l_hand.screen_loc = null + screenmob.client.screen -= H.l_hand diff --git a/code/_onclick/hud/fullscreen.dm b/code/_onclick/hud/fullscreen.dm index afc30ca34220..b085669097bd 100644 --- a/code/_onclick/hud/fullscreen.dm +++ b/code/_onclick/hud/fullscreen.dm @@ -49,16 +49,17 @@ for(var/category in screens) clear_fullscreen(category) -/datum/hud/proc/reload_fullscreen() - if(mymob.client) - var/atom/movable/screen/fullscreen/screen - var/list/screens = mymob.screens - for(var/category in screens) - screen = screens[category] - if(screen.should_show_to(mymob)) - mymob.client.screen |= screen - continue - mymob.client.screen -= screen +/mob/proc/reload_fullscreen() + if(!client) + return + var/atom/movable/screen/fullscreen/screen + for(var/category in screens) + screen = screens[category] + if(screen.should_show_to(src)) + screen.update_for_view(client.view) + client.screen |= screen + else + client.screen -= screen /atom/movable/screen/fullscreen icon = 'icons/mob/screen_full.dmi' diff --git a/code/_onclick/hud/ghost_hud.dm b/code/_onclick/hud/ghost_hud.dm index f7994d9aa456..40c957b26c9b 100644 --- a/code/_onclick/hud/ghost_hud.dm +++ b/code/_onclick/hud/ghost_hud.dm @@ -110,7 +110,24 @@ for(var/atom/movable/screen/S in (static_inventory + toggleable_inventory)) S.hud = src -/datum/hud/ghost/show_hud() - mymob.client.screen = list() - mymob.client.screen += static_inventory - ..() +/datum/hud/ghost/show_hud(version = 0, mob/viewmob) + // don't show this HUD if observing; show the HUD of the observee + var/mob/dead/observer/O = mymob + if(istype(O) && O.mob_observed) + plane_masters_update() + return FALSE + + . = ..() + if(!.) + return + var/mob/screenmob = viewmob || mymob + screenmob.client.screen += static_inventory + + +// We should only see observed mob alerts. +/datum/hud/ghost/reorganize_alerts(mob/viewmob) + var/mob/dead/observer/O = mymob + if(istype(O) && O.mob_observed) + return + return ..() + diff --git a/code/_onclick/hud/hud_datum.dm b/code/_onclick/hud/hud_datum.dm index 566e07c7bb9f..4f11604ade24 100644 --- a/code/_onclick/hud/hud_datum.dm +++ b/code/_onclick/hud/hud_datum.dm @@ -11,7 +11,7 @@ var/hud_shown = TRUE /// Current displayed version of the HUD var/hud_version = 1 - /// Whether or not their toggleable inventory + /// Whether or not their toggleable inventory (generally their contents on the left) is expanded var/inventory_shown = TRUE /// This is to hide the buttons that can be used via hotkeys. (hotkeybuttons list of buttons) var/hotkey_ui_hidden = FALSE @@ -147,14 +147,22 @@ QDEL_NULL(screentip_text) return ..() -/datum/hud/proc/show_hud(version = 0) +/** + * Shows this hud's hud to some mob + * + * Arguments + * * version - denotes which style should be displayed. blank or 0 means "next version" + * * viewmob - what mob to show the hud to. Can be this hud's mob, can be another mob, can be null (will use this hud's mob if so) + */ +/datum/hud/proc/show_hud(version = 0, mob/viewmob) if(!ismob(mymob)) return FALSE - - if(!mymob.client) + var/mob/screenmob = viewmob || mymob + if(!screenmob.client) return FALSE - mymob.client.screen = list() + screenmob.client.clear_screen() + screenmob.client.apply_clickcatcher() var/display_hud_version = version if(!display_hud_version) //If 0 or blank, display the next hud version @@ -166,15 +174,15 @@ if(HUD_STYLE_STANDARD) //Default HUD hud_shown = TRUE //Governs behavior of other procs if(length(static_inventory)) - mymob.client.screen += static_inventory - if(length(toggleable_inventory) && inventory_shown) - mymob.client.screen += toggleable_inventory - if(length(hotkeybuttons) && !hotkey_ui_hidden) - mymob.client.screen += hotkeybuttons + screenmob.client.screen += static_inventory + if(length(toggleable_inventory) && screenmob.hud_used?.inventory_shown) + screenmob.client.screen += toggleable_inventory + if(length(hotkeybuttons) && !screenmob.hud_used?.hotkey_ui_hidden) + screenmob.client.screen += hotkeybuttons if(length(infodisplay)) - mymob.client.screen += infodisplay + screenmob.client.screen += infodisplay - mymob.client.screen += toggle_palette + screenmob.client.screen += toggle_palette if(action_intent) action_intent.screen_loc = initial(action_intent.screen_loc) //Restore intent selection to the original position @@ -182,33 +190,33 @@ if(HUD_STYLE_REDUCED) //Reduced HUD hud_shown = FALSE //Governs behavior of other procs if(length(static_inventory)) - mymob.client.screen -= static_inventory + screenmob.client.screen -= static_inventory if(length(toggleable_inventory)) - mymob.client.screen -= toggleable_inventory + screenmob.client.screen -= toggleable_inventory if(length(hotkeybuttons)) - mymob.client.screen -= hotkeybuttons + screenmob.client.screen -= hotkeybuttons if(length(infodisplay)) - mymob.client.screen += infodisplay + screenmob.client.screen += infodisplay //These ones are a part of 'static_inventory', 'toggleable_inventory' or 'hotkeybuttons' but we want them to stay if(inv_slots[SLOT_HUD_LEFT_HAND]) - mymob.client.screen += inv_slots[SLOT_HUD_LEFT_HAND] //we want the hands to be visible + screenmob.client.screen += inv_slots[SLOT_HUD_LEFT_HAND] //we want the hands to be visible if(inv_slots[SLOT_HUD_RIGHT_HAND]) - mymob.client.screen += inv_slots[SLOT_HUD_RIGHT_HAND] //we want the hands to be visible + screenmob.client.screen += inv_slots[SLOT_HUD_RIGHT_HAND] //we want the hands to be visible if(action_intent) - mymob.client.screen += action_intent //we want the intent switcher visible + screenmob.client.screen += action_intent //we want the intent switcher visible action_intent.screen_loc = ui_acti_alt //move this to the alternative position, where zone_select usually is. if(HUD_STYLE_NOHUD) //No HUD hud_shown = FALSE //Governs behavior of other procs if(length(static_inventory)) - mymob.client.screen -= static_inventory + screenmob.client.screen -= static_inventory if(length(toggleable_inventory)) - mymob.client.screen -= toggleable_inventory + screenmob.client.screen -= toggleable_inventory if(length(hotkeybuttons)) - mymob.client.screen -= hotkeybuttons + screenmob.client.screen -= hotkeybuttons if(length(infodisplay)) - mymob.client.screen -= infodisplay + screenmob.client.screen -= infodisplay if(HUD_STYLE_ACTIONHUD) //No HUD hud_shown = TRUE //Governs behavior of other procs @@ -220,36 +228,46 @@ mymob.client.screen -= infodisplay hud_version = display_hud_version - persistent_inventory_update() - mymob.update_action_buttons(1) - reorganize_alerts() - reload_fullscreen() - update_parallax_pref(mymob) + persistent_inventory_update(screenmob) + screenmob.update_action_buttons(TRUE) + reorganize_alerts(screenmob) + screenmob.reload_fullscreen() + update_parallax_pref(screenmob) + if(!viewmob) + // working off of mymob + plane_masters_update() + for(var/M in mymob.observers) + show_hud(hud_version, M) + else if(viewmob.hud_used) + viewmob.hud_used.plane_masters_update() + viewmob.show_other_mob_action_buttons(mymob) plane_masters_update() + return TRUE /datum/hud/proc/plane_masters_update() // Plane masters are always shown to OUR mob, never to observers for(var/thing in plane_masters) var/atom/movable/screen/plane_master/PM = plane_masters[thing] PM.backdrop(mymob) - mymob.client.screen += PM + mymob.client?.screen += PM -/datum/hud/human/show_hud(version = 0) +/datum/hud/human/show_hud(version = 0, mob/viewmob) . = ..() if(!.) return - hidden_inventory_update() + var/mob/screenmob = viewmob || mymob + hidden_inventory_update(screenmob) -/datum/hud/robot/show_hud(version = 0) +/datum/hud/robot/show_hud(version = 0, mob/viewmob) . = ..() if(!.) return - update_robot_modules_display() + update_robot_modules_display(viewmob) -/datum/hud/proc/hidden_inventory_update() +/datum/hud/proc/hidden_inventory_update(mob/viewer) return -/datum/hud/proc/persistent_inventory_update() +/datum/hud/proc/persistent_inventory_update(mob/viewer) return /mob/proc/hide_hud() diff --git a/code/_onclick/hud/human_hud.dm b/code/_onclick/hud/human_hud.dm index 68eb065069f3..94c08989d003 100644 --- a/code/_onclick/hud/human_hud.dm +++ b/code/_onclick/hud/human_hud.dm @@ -6,14 +6,22 @@ icon_state = "toggle" /atom/movable/screen/human/toggle/Click() - if(usr.hud_used.inventory_shown) + + var/mob/targetmob = usr + + if(isobserver(usr)) + if(ishuman(usr.client.eye) && (usr.client.eye != usr)) + var/mob/M = usr.client.eye + targetmob = M + + if(usr.hud_used.inventory_shown && targetmob.hud_used) usr.hud_used.inventory_shown = FALSE - usr.client.screen -= usr.hud_used.toggleable_inventory + usr.client.screen -= targetmob.hud_used.toggleable_inventory else usr.hud_used.inventory_shown = TRUE - usr.client.screen += usr.hud_used.toggleable_inventory + usr.client.screen += targetmob.hud_used.toggleable_inventory - usr.hud_used.hidden_inventory_update() + targetmob.hud_used.hidden_inventory_update(usr) /atom/movable/screen/human/equip name = "equip" @@ -21,7 +29,7 @@ /atom/movable/screen/human/equip/Click() if(ismecha(usr.loc)) // stops inventory actions in a mech - return 1 + return TRUE var/mob/living/carbon/human/H = usr H.quick_equip() @@ -33,6 +41,8 @@ screen_loc = ui_lingstingdisplay /atom/movable/screen/ling/sting/Click() + if(isobserver(usr)) + return var/datum/antagonist/changeling/cling = usr.mind.has_antag_datum(/datum/antagonist/changeling) cling?.chosen_sting?.unset_sting() @@ -389,100 +399,118 @@ else crafting.invisibility = initial(crafting.invisibility) -/datum/hud/human/hidden_inventory_update() +/datum/hud/human/hidden_inventory_update(mob/viewer) if(!mymob) return var/mob/living/carbon/human/H = mymob - if(inventory_shown && hud_version == HUD_STYLE_STANDARD) + + var/mob/screenmob = viewer || H + if(screenmob.hud_used.inventory_shown && screenmob.hud_used.hud_shown && screenmob.hud_used.hud_version == HUD_STYLE_STANDARD) + if(H.shoes) H.shoes.screen_loc = ui_shoes - H.client.screen += H.shoes + screenmob.client.screen += H.shoes if(H.gloves) H.gloves.screen_loc = ui_gloves - H.client.screen += H.gloves + screenmob.client.screen += H.gloves if(H.l_ear) H.l_ear.screen_loc = ui_l_ear - H.client.screen += H.l_ear + screenmob.client.screen += H.l_ear if(H.r_ear) H.r_ear.screen_loc = ui_r_ear - H.client.screen += H.r_ear + screenmob.client.screen += H.r_ear if(H.glasses) H.glasses.screen_loc = ui_glasses - H.client.screen += H.glasses + screenmob.client.screen += H.glasses if(H.w_uniform) H.w_uniform.screen_loc = ui_iclothing - H.client.screen += H.w_uniform + screenmob.client.screen += H.w_uniform if(H.wear_suit) H.wear_suit.screen_loc = ui_oclothing - H.client.screen += H.wear_suit + screenmob.client.screen += H.wear_suit if(H.wear_mask) H.wear_mask.screen_loc = ui_mask - H.client.screen += H.wear_mask + screenmob.client.screen += H.wear_mask if(H.head) H.head.screen_loc = ui_head - H.client.screen += H.head + screenmob.client.screen += H.head else - if(H.shoes) H.shoes.screen_loc = null - if(H.gloves) H.gloves.screen_loc = null - if(H.l_ear) H.l_ear.screen_loc = null - if(H.r_ear) H.r_ear.screen_loc = null - if(H.glasses) H.glasses.screen_loc = null - if(H.w_uniform) H.w_uniform.screen_loc = null - if(H.wear_suit) H.wear_suit.screen_loc = null - if(H.wear_mask) H.wear_mask.screen_loc = null - if(H.head) H.head.screen_loc = null - -/datum/hud/human/persistent_inventory_update() + if(H.shoes) + screenmob.client.screen -= H.shoes + if(H.gloves) + screenmob.client.screen -= H.gloves + if(H.l_ear) + screenmob.client.screen -= H.l_ear + if(H.r_ear) + screenmob.client.screen -= H.r_ear + if(H.glasses) + screenmob.client.screen -= H.glasses + if(H.w_uniform) + screenmob.client.screen -= H.w_uniform + if(H.wear_suit) + screenmob.client.screen -= H.wear_suit + if(H.wear_mask) + screenmob.client.screen -= H.wear_mask + if(H.head) + screenmob.client.screen -= H.head + +/datum/hud/human/persistent_inventory_update(mob/viewer) if(!mymob) return + ..() var/mob/living/carbon/human/H = mymob - if(hud_version == HUD_STYLE_STANDARD) - if(H.s_store) - H.s_store.screen_loc = ui_sstore1 - H.client.screen += H.s_store - if(H.wear_id) - H.wear_id.screen_loc = ui_id - H.client.screen += H.wear_id - if(H.wear_pda) - H.wear_pda.screen_loc = ui_pda - H.client.screen += H.wear_pda - if(H.belt) - H.belt.screen_loc = ui_belt - H.client.screen += H.belt - if(H.back) - H.back.screen_loc = ui_back - H.client.screen += H.back - if(H.l_store) - H.l_store.screen_loc = ui_storage1 - H.client.screen += H.l_store - if(H.r_store) - H.r_store.screen_loc = ui_storage2 - H.client.screen += H.r_store - else - if(H.s_store) - H.s_store.screen_loc = null - if(H.wear_id) - H.wear_id.screen_loc = null - if(H.wear_pda) - H.wear_pda.screen_loc = null - if(H.belt) - H.belt.screen_loc = null - if(H.back) - H.back.screen_loc = null - if(H.l_store) - H.l_store.screen_loc = null - if(H.r_store) - H.r_store.screen_loc = null + var/mob/screenmob = viewer || H + + if(screenmob.hud_used) + if(screenmob.hud_used.hud_shown && screenmob.hud_used.hud_version == HUD_STYLE_STANDARD) + if(H.s_store) + H.s_store.screen_loc = ui_sstore1 + screenmob.client.screen += H.s_store + if(H.wear_id) + H.wear_id.screen_loc = ui_id + screenmob.client.screen += H.wear_id + if(H.wear_pda) + H.wear_pda.screen_loc = ui_pda + screenmob.client.screen += H.wear_pda + if(H.belt) + H.belt.screen_loc = ui_belt + screenmob.client.screen += H.belt + if(H.back) + H.back.screen_loc = ui_back + screenmob.client.screen += H.back + if(H.l_store) + H.l_store.screen_loc = ui_storage1 + screenmob.client.screen += H.l_store + if(H.r_store) + H.r_store.screen_loc = ui_storage2 + screenmob.client.screen += H.r_store + else + if(H.s_store) + screenmob.client.screen -= H.s_store + if(H.wear_id) + screenmob.client.screen -= H.wear_id + if(H.wear_pda) + screenmob.client.screen -= H.wear_pda + if(H.belt) + screenmob.client.screen -= H.belt + if(H.back) + screenmob.client.screen -= H.back + if(H.l_store) + screenmob.client.screen -= H.l_store + if(H.r_store) + screenmob.client.screen -= H.r_store if(hud_version != HUD_STYLE_NOHUD) if(H.r_hand) H.r_hand.screen_loc = ui_rhand - H.client.screen += H.r_hand + screenmob.client.screen += H.r_hand if(H.l_hand) H.l_hand.screen_loc = ui_lhand - H.client.screen += H.l_hand + screenmob.client.screen += H.l_hand else if(H.r_hand) - H.r_hand.screen_loc = null + screenmob.r_hand.screen_loc = null + screenmob.client.screen -= H.r_hand if(H.l_hand) - H.l_hand.screen_loc = null + screenmob.l_hand.screen_loc = null + screenmob.client.screen -= H.l_hand diff --git a/code/_onclick/hud/parallax.dm b/code/_onclick/hud/parallax.dm index 2dca02b6e6d9..aec2360ededd 100644 --- a/code/_onclick/hud/parallax.dm +++ b/code/_onclick/hud/parallax.dm @@ -1,6 +1,9 @@ -/datum/hud/proc/create_parallax() - var/client/C = mymob.client - if(!apply_parallax_pref()) +/datum/hud/proc/create_parallax(mob/viewmob) + var/mob/screenmob = viewmob || mymob + if(!screenmob.client) + return + var/client/C = screenmob.client + if(!apply_parallax_pref(screenmob)) return // this is needed so it blends properly with the space plane and blackness plane. var/atom/movable/screen/plane_master/space/S = plane_masters["[PLANE_SPACE]"] @@ -34,16 +37,20 @@ C.screen |= (C.parallax_layers + C.parallax_static_layers_tail) -/datum/hud/proc/remove_parallax() - var/client/C = mymob.client +/datum/hud/proc/remove_parallax(mob/viewmob) + var/mob/screenmob = viewmob || mymob + var/client/C = screenmob.client C.screen -= (C.parallax_layers_cached + C.parallax_static_layers_tail) C.parallax_layers = null var/atom/movable/screen/plane_master/space/S = plane_masters["[PLANE_SPACE]"] S.color = null S.appearance_flags &= ~NO_CLIENT_COLOR -/datum/hud/proc/apply_parallax_pref() - var/client/C = mymob.client +/datum/hud/proc/apply_parallax_pref(mob/viewmob) + var/mob/screen_mob = viewmob || mymob + var/client/C = screen_mob.client + if(!istype(C)) + return FALSE if(C.prefs) var/pref = C.prefs.parallax if(isnull(pref)) @@ -72,16 +79,22 @@ C.parallax_layers_max = 4 return TRUE -/datum/hud/proc/update_parallax_pref() - remove_parallax() - create_parallax() - update_parallax() +/datum/hud/proc/update_parallax_pref(mob/viewmob) + var/mob/screen_mob = viewmob || mymob + if(!screen_mob.client) + return + remove_parallax(screen_mob) + create_parallax(screen_mob) + update_parallax(screen_mob) // This sets which way the current shuttle is moving (returns true if the shuttle has stopped moving so the caller can append their animation) // Well, it would if our shuttle code had dynamic areas -/datum/hud/proc/set_parallax_movedir(new_parallax_movedir, skip_windups) +/datum/hud/proc/set_parallax_movedir(mob/viewmob, new_parallax_movedir, skip_windups) . = FALSE - var/client/C = mymob.client + var/mob/screen_mob = viewmob || mymob + var/client/C = screen_mob.client + if(!istype(C)) + return if(new_parallax_movedir == C.parallax_movedir) return var/animatedir = new_parallax_movedir @@ -157,8 +170,9 @@ animate(L, transform = L.transform, time = 0, loop = -1, flags = ANIMATION_END_NOW) animate(transform = matrix(), time = T) -/datum/hud/proc/update_parallax() - var/client/C = mymob.client +/datum/hud/proc/update_parallax(mob/viewmob) + var/mob/screenmob = viewmob || mymob + var/client/C = screenmob.client var/turf/posobj = get_turf(C.eye) if(!posobj) return @@ -167,9 +181,9 @@ // Update the movement direction of the parallax if necessary (for shuttles) var/area/shuttle/SA = areaobj if(!SA || !SA.moving) - set_parallax_movedir(0) + set_parallax_movedir(screenmob, 0) else - set_parallax_movedir(SA.parallax_move_direction) + set_parallax_movedir(screenmob, SA.parallax_move_direction) var/force if(!C.previous_turf || (C.previous_turf.z != posobj.z)) @@ -193,7 +207,7 @@ for(var/thing in C.parallax_layers) var/atom/movable/screen/parallax_layer/L = thing - L.update_status(mymob) + L.update_status(screenmob) if(L.view_sized != C.view) L.update_o(C.view) diff --git a/code/_onclick/hud/robot_hud.dm b/code/_onclick/hud/robot_hud.dm index 30fae75f8168..60310611b71f 100644 --- a/code/_onclick/hud/robot_hud.dm +++ b/code/_onclick/hud/robot_hud.dm @@ -1,23 +1,34 @@ /atom/movable/screen/robot icon = 'icons/mob/screen_robot.dmi' +/atom/movable/screen/robot/Click() + . = ..() + if(isobserver(usr)) + return TRUE + /atom/movable/screen/robot/module name = "cyborg module" icon_state = "nomod" /atom/movable/screen/robot/module/Click() - if(isrobot(usr)) + if(isrobot(usr) && !..()) var/mob/living/silicon/robot/R = usr - if(R.module) - R.hud_used.toggle_show_robot_modules() - return 1 - R.pick_module() + if(!R.module) + R.pick_module() + return + + // we can let ghosts mess with this one + usr.hud_used.toggle_show_robot_modules(usr) + return TRUE + /atom/movable/screen/robot/module1 name = "module1" icon_state = "inv1" /atom/movable/screen/robot/module1/Click() + if(..()) + return if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.toggle_module(1) @@ -27,6 +38,8 @@ icon_state = "inv2" /atom/movable/screen/robot/module2/Click() + if(..()) + return if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.toggle_module(2) @@ -36,6 +49,8 @@ icon_state = "inv3" /atom/movable/screen/robot/module3/Click() + if(..()) + return if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.toggle_module(3) @@ -46,6 +61,8 @@ icon_state = "radio" /atom/movable/screen/robot/radio/Click() + if(..()) + return if(issilicon(usr)) var/mob/living/silicon/robot/R = usr R.radio_menu() @@ -55,6 +72,8 @@ icon_state = "store" /atom/movable/screen/robot/store/Click() + if(..()) + return if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.uneq_active() @@ -66,6 +85,8 @@ screen_loc = ui_borg_lamp /atom/movable/screen/robot/lamp/Click() + if(..()) + return if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.control_headlamp() @@ -75,6 +96,8 @@ icon_state = "ionpulse0" /atom/movable/screen/robot/thrusters/Click() + if(..()) + return var/mob/living/silicon/robot/R = usr R.toggle_ionpulse() @@ -83,11 +106,23 @@ icon_state = "running" /atom/movable/screen/robot/mov_intent/Click() + if(..()) + return usr.toggle_move_intent() +/datum/hud/robot + var/shown_robot_modules = FALSE // Used to determine whether they have the module menu shown or not + var/atom/movable/screen/robot_modules_background + /datum/hud/robot/New(mob/user) ..() + + robot_modules_background = new() + robot_modules_background.icon_state = "block" + robot_modules_background.layer = HUD_LAYER // Objects that appear on screen are on layer 20, UI should be just below it. + robot_modules_background.plane = HUD_PLANE + var/atom/movable/screen/using var/mob/living/silicon/robot/mymobR = mymob @@ -184,41 +219,51 @@ return ..() -/datum/hud/proc/toggle_show_robot_modules() - if(!isrobot(mymob)) - return +/datum/hud/proc/toggle_show_robot_modules(mob/viewmob) + return - var/mob/living/silicon/robot/R = mymob +/datum/hud/robot/toggle_show_robot_modules(mob/viewmob) + var/mob/screenmob = viewmob || mymob + if(istype(viewmob.hud_used, /datum/hud/robot)) + var/datum/hud/robot/robohud = screenmob.hud_used + robohud.shown_robot_modules = !robohud.shown_robot_modules + + update_robot_modules_display(viewmob) - R.shown_robot_modules = !R.shown_robot_modules - update_robot_modules_display() +/datum/hud/proc/update_robot_modules_display(mob/viewer) + return -/datum/hud/proc/update_robot_modules_display() +/datum/hud/robot/update_robot_modules_display(mob/viewer) if(!isrobot(mymob)) return var/mob/living/silicon/robot/R = mymob + var/mob/screenmob = viewer || R + if(!R.client) return if(!R.module) + shown_robot_modules = FALSE + screenmob.client.screen -= robot_modules_background + screenmob.client?.screen -= screenmob.hud_used.module_store_icon return - if(R.shown_robot_modules && hud_version == HUD_STYLE_STANDARD) + if(shown_robot_modules && hud_shown && hud_version == HUD_STYLE_STANDARD) //Modules display is shown - R.client.screen += module_store_icon //"store" icon + screenmob.client.screen += module_store_icon //"store" icon if(!R.module.modules) to_chat(usr, "Selected module has no modules to select.") return - if(!R.robot_modules_background) + if(!robot_modules_background) return var/display_rows = CEILING(length(R.module.modules) / 8, 1) - R.robot_modules_background.screen_loc = "CENTER-4:16,SOUTH+1:7 to CENTER+3:16,SOUTH+[display_rows]:7" - R.client.screen += R.robot_modules_background + robot_modules_background.screen_loc = "CENTER-4:16,SOUTH+1:7 to CENTER+3:16,SOUTH+[display_rows]:7" + screenmob.client.screen += robot_modules_background var/x = -4 //Start at CENTER-4,SOUTH+1 var/y = 1 @@ -226,7 +271,7 @@ for(var/atom/movable/A in R.module.modules) if((A != R.module_state_1) && (A != R.module_state_2) && (A != R.module_state_3)) //Module is not currently active - R.client.screen += A + screenmob.client.screen += A if(x < 0) A.screen_loc = "CENTER[x]:16,SOUTH+[y]:7" else @@ -241,11 +286,39 @@ else //Modules display is hidden - R.client.screen -= module_store_icon + screenmob.client.screen -= module_store_icon for(var/atom/A in R.module.modules) if((A != R.module_state_1) && (A != R.module_state_2) && (A != R.module_state_3)) //Module is not currently active - R.client.screen -= A - R.shown_robot_modules = FALSE - R.client.screen -= R.robot_modules_background + screenmob.client.screen -= A + shown_robot_modules = FALSE + screenmob.client.screen -= robot_modules_background + +/datum/hud/robot/persistent_inventory_update(mob/viewer) + if(!mymob) + return + var/mob/living/silicon/robot/R = mymob + + var/mob/screenmob = viewer || R + + var/held_items = list(R.module_state_1, R.module_state_2, R.module_state_3) + if(!screenmob.hud_used) + return + if(screenmob.hud_used.hud_shown) + for(var/i in 1 to length(held_items)) + var/obj/item/I = held_items[i] + if(I) + switch(i) + if(1) + I.screen_loc = ui_inv1 + if(2) + I.screen_loc = ui_inv2 + if(3) + I.screen_loc = ui_inv3 + else + return + screenmob.client.screen += I + else + for(var/obj/item/I in held_items) + screenmob.client.screen -= I diff --git a/code/_onclick/hud/screen_objects.dm b/code/_onclick/hud/screen_objects.dm index b4897cd5df7d..9216a62bbf3c 100644 --- a/code/_onclick/hud/screen_objects.dm +++ b/code/_onclick/hud/screen_objects.dm @@ -367,6 +367,8 @@ screen_loc = ui_crafting /atom/movable/screen/craft/Click() + if(!isliving(usr)) + return var/mob/living/M = usr M.OpenCraftingMenu() @@ -396,24 +398,26 @@ object_overlays.Cut() /atom/movable/screen/inventory/proc/add_overlays() - var/mob/user = hud.mymob + var/mob/user = hud?.mymob - if(hud && user && slot_id) - var/obj/item/holding = user.get_active_hand() + if(!user || !slot_id || user != usr) + return - if(!holding || user.get_item_by_slot(slot_id)) - return + var/obj/item/holding = user.get_active_hand() - var/image/item_overlay = image(holding) - item_overlay.alpha = 92 + if(!holding || user.get_item_by_slot(slot_id)) + return - if(!user.can_equip(holding, slot_id, disable_warning = TRUE)) - item_overlay.color = "#ff0000" - else - item_overlay.color = "#00ff00" + var/image/item_overlay = image(holding) + item_overlay.alpha = 92 + + if(!user.can_equip(holding, slot_id, TRUE)) + item_overlay.color = "#ff0000" + else + item_overlay.color = "#00ff00" - object_overlays += item_overlay - add_overlay(object_overlays) + object_overlays += item_overlay + add_overlay(object_overlays) /atom/movable/screen/inventory/MouseDrop(atom/over) cut_overlay(object_overlays) diff --git a/code/_onclick/observer_onclick.dm b/code/_onclick/observer_onclick.dm index b0632715a475..44ead52d45bc 100644 --- a/code/_onclick/observer_onclick.dm +++ b/code/_onclick/observer_onclick.dm @@ -80,6 +80,8 @@ /atom/proc/attack_ghost(mob/dead/observer/user) if(SEND_SIGNAL(src, COMSIG_ATOM_ATTACK_GHOST, user) & COMPONENT_CANCEL_ATTACK_CHAIN) return TRUE + if(!istype(user)) // Make sure user is actually an observer. Revenents also use attack_ghost, but do not have the health_scan var. + return FALSE if(user.client) if(user.gas_scan && atmos_scan(user=user, target=src, silent=TRUE)) return TRUE diff --git a/code/controllers/subsystem/SSeconomy.dm b/code/controllers/subsystem/SSeconomy.dm index 8e6e428e69b5..a847892ba8cb 100644 --- a/code/controllers/subsystem/SSeconomy.dm +++ b/code/controllers/subsystem/SSeconomy.dm @@ -56,6 +56,8 @@ SUBSYSTEM_DEF(economy) var/credits_per_plasma = 10 /// credits gained per research design sold var/credits_per_design = 20 + /// points gained per salvage sold + var/credits_per_salvage = 100 /// credits gained per working mech sold var/credits_per_mech = 100 /// credits gained for each secondary goal completed diff --git a/code/controllers/subsystem/non_firing/SSatoms.dm b/code/controllers/subsystem/non_firing/SSatoms.dm index a1c515fdb80d..038f417c9b0c 100644 --- a/code/controllers/subsystem/non_firing/SSatoms.dm +++ b/code/controllers/subsystem/non_firing/SSatoms.dm @@ -1,8 +1,3 @@ -#define BAD_INIT_QDEL_BEFORE (1<<0) -#define BAD_INIT_DIDNT_INIT (1<<1) -#define BAD_INIT_SLEPT (1<<2) -#define BAD_INIT_NO_HINT (1<<3) - SUBSYSTEM_DEF(atoms) name = "Atoms" init_order = INIT_ORDER_ATOMS @@ -123,7 +118,25 @@ SUBSYSTEM_DEF(atoms) old_initialized = SSatoms.old_initialized BadInitializeCalls = SSatoms.BadInitializeCalls -#undef BAD_INIT_QDEL_BEFORE -#undef BAD_INIT_DIDNT_INIT -#undef BAD_INIT_SLEPT -#undef BAD_INIT_NO_HINT + + +/client/proc/debug_atom_init() + set name = "Atom Init Log" + set category = "Debug" + set desc = "Shows what failed to init this round" + + if(!check_rights(R_DEBUG | R_VIEWRUNTIMES)) + return + + var/list/html_data = list() + html_data += "

Bad Initialize() Calls

" + + for(var/typepath in SSatoms.BadInitializeCalls) + var/val = SSatoms.BadInitializeCalls[typepath] + + html_data += "" + + html_data += "
TypeQdeleted before initDid not initSlept during initNo init hint
[typepath][val & BAD_INIT_QDEL_BEFORE ? "X" : " "][val & BAD_INIT_DIDNT_INIT ? "X" : " "][val & BAD_INIT_SLEPT ? "X" : " "][val & BAD_INIT_NO_HINT ? "X" : " "]
" + + usr << browse(html_data.Join(), "window=initdebug") + diff --git a/code/controllers/subsystem/non_firing/SSlate_mapping.dm b/code/controllers/subsystem/non_firing/SSlate_mapping.dm index 9d48af77cfad..ca68dc48e9f8 100644 --- a/code/controllers/subsystem/non_firing/SSlate_mapping.dm +++ b/code/controllers/subsystem/non_firing/SSlate_mapping.dm @@ -8,10 +8,32 @@ SUBSYSTEM_DEF(late_mapping) flags = SS_NO_FIRE /// List of all maze generators to process var/list/obj/effect/mazegen/generator/maze_generators = list() + /// List of all bridge spawners to process + var/list/obj/effect/spawner/bridge/bridge_spawners = list() /datum/controller/subsystem/late_mapping/Initialize() if(length(maze_generators)) + var/watch = start_watch() log_startup_progress("Generating mazes...") + for(var/i in maze_generators) var/obj/effect/mazegen/generator/MG = i MG.run_generator() + + var/list/mgcount = length(maze_generators) // Keeping track of this here because we wipe it next line down + QDEL_LIST_CONTENTS(maze_generators) + 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") diff --git a/code/controllers/subsystem/non_firing/SSmapping.dm b/code/controllers/subsystem/non_firing/SSmapping.dm index 3823c267e71a..cef6d19cb47b 100644 --- a/code/controllers/subsystem/non_firing/SSmapping.dm +++ b/code/controllers/subsystem/non_firing/SSmapping.dm @@ -139,6 +139,59 @@ SUBSYSTEM_DEF(mapping) if(HAS_TRAIT(SSstation, STATION_TRAIT_HANGOVER)) generate_themed_messes(list(/obj/effect/spawner/themed_mess/party)) +/datum/controller/subsystem/mapping/proc/seed_space_salvage(space_z_levels) + log_startup_progress("Seeding space salvage...") + var/space_salvage_timer = start_watch() + var/seeded_salvage_surfaces = list() + var/seeded_salvage_closets = list() + + var/list/small_salvage_items = list( + /obj/item/salvage/ruin/brick, + /obj/item/salvage/ruin/nanotrasen, + /obj/item/salvage/ruin/carp, + /obj/item/salvage/ruin/tablet, + /obj/item/salvage/ruin/pirate, + /obj/item/salvage/ruin/russian + ) + + for(var/z_level in space_z_levels) + var/list/turf/z_level_turfs = block(locate(1, 1, z_level), locate(world.maxx, world.maxy, z_level)) + for(var/z_level_turf in z_level_turfs) + var/turf/T = z_level_turf + var/area/A = get_area(T) + if(istype(A, /area/ruin/space)) + // cardboard boxes are blacklisted otherwise deepstorage.dmm ends up hogging all the loot + var/list/closet_blacklist = list(/obj/structure/closet/cardboard, /obj/structure/closet/fireaxecabinet, /obj/structure/closet/walllocker/emerglocker, /obj/structure/closet/crate/can, /obj/structure/closet/body_bag, /obj/structure/closet/coffin) + for(var/obj/structure/closet/closet in T) + if(is_type_in_list(closet, closet_blacklist)) + continue + + seeded_salvage_closets |= closet + for(var/obj/structure/table/table in T) + if(locate(/obj/machinery) in T) + continue // Machinery on tables tend to take up all the visible space + seeded_salvage_surfaces |= table + + var/max_salvage_attempts = rand(10, 15) + while(max_salvage_attempts > 0 && length(seeded_salvage_closets) > 0) + var/obj/structure/closet/C = pick_n_take(seeded_salvage_closets) + var/salvage_item_type = pick(small_salvage_items) + var/obj/salvage_item = new salvage_item_type(C) + salvage_item.pixel_x = rand(-5, 5) + salvage_item.pixel_y = rand(-5, 5) + max_salvage_attempts -= 1 + + max_salvage_attempts = rand(10, 15) + while(max_salvage_attempts > 0 && length(seeded_salvage_surfaces) > 0) + var/obj/T = pick_n_take(seeded_salvage_surfaces) + var/salvage_item_type = pick(small_salvage_items) + var/obj/salvage_item = new salvage_item_type(T.loc) + salvage_item.pixel_x = rand(-5, 5) + salvage_item.pixel_y = rand(-5, 5) + max_salvage_attempts -= 1 + + log_startup_progress("Successfully seeded space salvage in [stop_watch(space_salvage_timer)]s.") + // Do not confuse with seedRuins() /datum/controller/subsystem/mapping/proc/handleRuins() // load in extra levels of space ruins @@ -156,8 +209,10 @@ SUBSYSTEM_DEF(mapping) // Note that this budget is not split evenly accross all zlevels log_startup_progress("Seeding ruins...") var/seed_ruins_timer = start_watch() - seedRuins(levels_by_trait(SPAWN_RUINS), rand(20, 30), /area/space, GLOB.space_ruins_templates) + var/space_z_levels = levels_by_trait(SPAWN_RUINS) + seedRuins(space_z_levels, rand(20, 30), /area/space, GLOB.space_ruins_templates) log_startup_progress("Successfully seeded ruins in [stop_watch(seed_ruins_timer)]s.") + seed_space_salvage(space_z_levels) // Loads in the station /datum/controller/subsystem/mapping/proc/loadStation() diff --git a/code/controllers/subsystem/tickets/SStickets.dm b/code/controllers/subsystem/tickets/SStickets.dm index a9bec34fdec0..a555dfda3a3f 100644 --- a/code/controllers/subsystem/tickets/SStickets.dm +++ b/code/controllers/subsystem/tickets/SStickets.dm @@ -574,9 +574,9 @@ UI STUFF for(var/key in C?.pm_tracker.pms) var/datum/pm_convo/convo = C.pm_tracker.pms[key] if(convo.typing) - dat += "[T.client_ckey] is typing
" - break + dat += "[key] is typing
" + var/found_typing = FALSE for(var/client/X in GLOB.admins) if(ckey(X.ckey) == ckey(T.client_ckey)) continue @@ -587,8 +587,11 @@ UI STUFF continue var/datum/pm_convo/convo = X.pm_tracker.pms[key] if(convo.typing) - dat += "[X.ckey] is typing
" + dat += "[key] is typing
" + found_typing = TRUE break + if(found_typing) + break dat += "
" dat += "Re-Open[check_rights(rights_needed, 0) ? "Auto": ""]Resolve

" diff --git a/code/datums/action.dm b/code/datums/action.dm index 0a099de316c6..33c5681c9b66 100644 --- a/code/datums/action.dm +++ b/code/datums/action.dm @@ -16,6 +16,8 @@ var/default_button_position = SCRN_OBJ_IN_LIST /// Map of huds viewing a button with our action -> their button var/list/viewers = list() + /// Whether or not this will be shown to observers + var/show_to_observers = TRUE /datum/action/New(Target) @@ -49,6 +51,8 @@ Remove(owner) owner = M RegisterSignal(owner, COMSIG_PARENT_QDELETING, PROC_REF(clear_ref), override = TRUE) + SEND_SIGNAL(src, COMSIG_ACTION_GRANTED, owner) + SEND_SIGNAL(owner, COMSIG_MOB_GRANTED_ACTION, src) GiveAction(M) /datum/action/proc/Remove(mob/remove_from) @@ -64,6 +68,9 @@ if(isnull(owner)) return + SEND_SIGNAL(src, COMSIG_ACTION_REMOVED, owner) + SEND_SIGNAL(owner, COMSIG_MOB_REMOVED_ACTION, src) + if(target == owner) RegisterSignal(target, COMSIG_PARENT_QDELETING, PROC_REF(clear_ref), override = TRUE) if(owner == remove_from) diff --git a/code/datums/components/orbiter.dm b/code/datums/components/orbiter.dm index 50ff05d4af1b..d7a5a3a8adef 100644 --- a/code/datums/components/orbiter.dm +++ b/code/datums/components/orbiter.dm @@ -163,6 +163,7 @@ orbiter.animate_movement = SLIDE_STEPS if(!QDELETED(parent)) SEND_SIGNAL(parent, COMSIG_ATOM_ORBIT_STOP, orbiter) + SEND_SIGNAL(orbiter, COMSIG_ATOM_ORBITER_STOP, parent) orbiter.transform = get_cached_transform(orbiter) orbiter.layer = get_orbiter_layer(orbiter) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index 5b159ce5e2cd..6adc70e2d649 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -517,7 +517,7 @@ var/val if(IS_NORMAL_LIST(L) && !isnum(key)) val = L[key] - if(!val) + if(isnull(val)) val = key key = i @@ -952,7 +952,7 @@ message_admins("[key_name(usr)] has added [amount] units of [chosen_id] to \the [A]") else if(href_list["editreagents"]) - if(!check_rights(R_DEBUG|R_ADMIN)) + if(!check_rights(R_DEBUG|R_ADMIN)) return var/atom/A = locateUID(href_list["editreagents"]) diff --git a/code/datums/outfits/plasmamen_outfits.dm b/code/datums/outfits/plasmamen_outfits.dm index 5fc1adec16b5..4ba5e9665a34 100644 --- a/code/datums/outfits/plasmamen_outfits.dm +++ b/code/datums/outfits/plasmamen_outfits.dm @@ -70,6 +70,12 @@ head = /obj/item/clothing/head/helmet/space/plasmaman/cargo uniform = /obj/item/clothing/under/plasmaman/cargo +/datum/outfit/plasmaman/expedition + name = "Plasmaman Expedition" + + head = /obj/item/clothing/head/helmet/space/plasmaman/expedition + uniform = /obj/item/clothing/under/plasmaman/expedition + /datum/outfit/plasmaman/mining name = "Plasmaman Mining" diff --git a/code/datums/particles.dm b/code/datums/particles.dm index 2162198a05c6..01206630faa2 100644 --- a/code/datums/particles.dm +++ b/code/datums/particles.dm @@ -43,8 +43,8 @@ count = 45 spawning = 45 gradient = list("#FA9632", "#C3630C", "#333333", "#808080", "#FFFFFF") - lifespan = 2.5 SECONDS - fade = 2 SECONDS + lifespan = 2 SECONDS + fade = 4 SECONDS color = generator(GEN_NUM, 0, 0.25) color_change = generator(GEN_NUM, 0.04, 0.05) velocity = generator(GEN_CIRCLE, 15, 15) @@ -56,13 +56,17 @@ grow = 0.05 /particles/explosion_smoke/deva + lifespan = 3 SECONDS + fade = 6 SECONDS scale = 0.5 velocity = generator(GEN_CIRCLE, 23, 23) /particles/explosion_smoke/small + lifespan = 1 SECONDS + fade = 2 SECONDS count = 15 spawning = 15 - scale = 0.25 + scale = 0.15 velocity = generator(GEN_CIRCLE, 10, 10) /particles/smoke_wave @@ -72,14 +76,14 @@ height = 750 count = 75 spawning = 75 - lifespan = 3 SECONDS - fade = 6 SECONDS + lifespan = 1 SECONDS + fade = 4 SECONDS gradient = list("#BA9F6D", "#808080", "#FFFFFF") color = generator(GEN_NUM, 0, 0.25) color_change = generator(GEN_NUM, 0.08, 0.07) velocity = generator(GEN_CIRCLE, 15, 15) rotation = generator(GEN_NUM, -45, 45) - scale = 0.15 + scale = 0.10 grow = 0.05 friction = 0.1 @@ -87,8 +91,8 @@ count = 45 spawning = 45 scale = 0.05 - lifespan = 2 SECONDS - fade = 5 SECONDS + lifespan = 0.5 SECONDS + fade = 3 SECONDS /particles/sparks_outwards icon = 'icons/effects/64x64.dmi' @@ -97,8 +101,8 @@ height = 750 count = 40 spawning = 20 - lifespan = 5 SECONDS - fade = 2 SECONDS + lifespan = 2 SECONDS + fade = 4 SECONDS position = generator(GEN_SPHERE, 8, 8) velocity = generator(GEN_CIRCLE, 30, 30) scale = 0.1 diff --git a/code/datums/ruins/bridges/bridges.dm b/code/datums/ruins/bridges/bridges.dm index 636a94adb18e..6d5770419a3c 100644 --- a/code/datums/ruins/bridges/bridges.dm +++ b/code/datums/ruins/bridges/bridges.dm @@ -62,7 +62,13 @@ /obj/effect/spawner/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) @@ -79,4 +85,3 @@ 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) - qdel(src) //Don't turn to hint qdel, it won't work well at all sadly. diff --git a/code/datums/ruins/space_ruins.dm b/code/datums/ruins/space_ruins.dm index 89bf26257261..84cb4f5cfd3b 100644 --- a/code/datums/ruins/space_ruins.dm +++ b/code/datums/ruins/space_ruins.dm @@ -82,6 +82,7 @@ name = "Derelict 3" description = "These hulks were once part of a larger structure, where \ the three great \[REDACTED\] were forged." + allow_duplicates = FALSE /datum/map_template/ruin/space/derelict4 id = "derelict4" @@ -146,7 +147,8 @@ No tabs. No violence in the inside areas. That's it. Welcome to the \ Rampant Golem and Yellow Hound. Can I take your order?" allow_duplicates = FALSE //it spawn ship docking, no more than one to avoid duplication in console. - cost = 2 + always_place = TRUE + cost = 0 /datum/map_template/ruin/space/turreted_outpost id = "turreted-outpost" diff --git a/code/datums/uplink_items/uplink_general.dm b/code/datums/uplink_items/uplink_general.dm index 9a9425ee96b3..4ef15dbfb3ab 100644 --- a/code/datums/uplink_items/uplink_general.dm +++ b/code/datums/uplink_items/uplink_general.dm @@ -811,13 +811,6 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) item = /obj/item/bio_chip_implanter/traitor cost = 50 -/datum/uplink_item/bio_chips/proto_adrenal - name = "Proto-Adrenal Bio-chip" - desc = "A old prototype of the Adrenalin implant, that grants the user 4 seconds of antistun, getting them back on their feet instantly once, but nothing more. Speed and healing sold seperately." - reference = "PAI" - item = /obj/item/bio_chip_implanter/proto_adrenalin - cost = 18 - /datum/uplink_item/bio_chips/adrenal name = "Adrenal Bio-chip" desc = "A bio-chip injected into the body, and later activated manually to inject a chemical cocktail, which has a mild healing effect along with removing and reducing the time of all stuns and increasing movement speed. Can be activated up to 3 times." @@ -825,6 +818,21 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) item = /obj/item/bio_chip_implanter/adrenalin cost = 40 +/datum/uplink_item/bio_chips/basic_adrenal + name = "Basic-Adrenal Bio-chip" + desc = "A single-use bio-chip injected into the body and later activated manually to inject a chemical cocktail. This one has a worse healing effect than regular adrenaline. It can be activated once for 3/4 of the effect of the original." + reference = "BAI" + item = /obj/item/bio_chip_implanter/basic_adrenalin + cost = 20 + can_discount = FALSE + +/datum/uplink_item/bio_chips/proto_adrenal + name = "Proto-Adrenal Bio-chip" + desc = "A old prototype of the Adrenalin implant, that grants the user 4 seconds of antistun, getting them back on their feet instantly once, but nothing more. Speed and healing sold seperately." + reference = "PAI" + item = /obj/item/bio_chip_implanter/proto_adrenalin + cost = 10 + /datum/uplink_item/bio_chips/stealthimplant name = "Stealth Bio-chip" desc = "This one-of-a-kind implant will make you almost invisible if you play your cards right. \ diff --git a/code/datums/uplink_items/uplink_traitor.dm b/code/datums/uplink_items/uplink_traitor.dm index 3a601fa24f9d..4566d67b1886 100644 --- a/code/datums/uplink_items/uplink_traitor.dm +++ b/code/datums/uplink_items/uplink_traitor.dm @@ -84,7 +84,7 @@ reference = "KPM" item = /obj/item/borg/upgrade/modkit/indoors cost = 25 //you need two for full damage, so total of 50 for maximum damage - job = list("Shaft Miner") + job = list("Shaft Miner", "Explorer") surplus = 0 // Requires a KA to even be used. /datum/uplink_item/jobspecific/mining_charge_hacker diff --git a/code/game/area/centcom_areas.dm b/code/game/area/centcom_areas.dm index ca23f1ace4f4..455911a1b118 100644 --- a/code/game/area/centcom_areas.dm +++ b/code/game/area/centcom_areas.dm @@ -135,7 +135,7 @@ dynamic_lighting = DYNAMIC_LIGHTING_DISABLED /area/trader_station/sol - name = "Jupiter Station 6" + name = "Trading Satellite" /area/ghost_bar name = "Ghost Bar" diff --git a/code/game/area/ss13_areas/service_areas.dm b/code/game/area/ss13_areas/service_areas.dm index a32cfce08221..db6956a205ca 100644 --- a/code/game/area/ss13_areas/service_areas.dm +++ b/code/game/area/ss13_areas/service_areas.dm @@ -59,9 +59,3 @@ name = "Hydroponics" icon_state = "hydro" sound_environment = SOUND_AREA_STANDARD_STATION - -/area/station/service/expedition - name = "\improper Expedition room" - icon_state = "expedition" - ambientsounds = ENGINEERING_SOUNDS - sound_environment = SOUND_AREA_STANDARD_STATION diff --git a/code/game/area/ss13_areas/supply_areas.dm b/code/game/area/ss13_areas/supply_areas.dm index 2344b78525e8..0266aebe7ab1 100644 --- a/code/game/area/ss13_areas/supply_areas.dm +++ b/code/game/area/ss13_areas/supply_areas.dm @@ -37,3 +37,9 @@ /area/station/supply/mechbay name = "\improper Mech Bay" icon_state = "yellow" + +/area/station/supply/expedition + name = "\improper Expedition Room" + icon_state = "expedition" + ambientsounds = list('sound/ambience/ambiexp.ogg') + sound_environment = SOUND_AREA_SMALL_ENCLOSED diff --git a/code/game/gamemodes/steal_items.dm b/code/game/gamemodes/steal_items.dm index daf721682359..f3e6ac5d09f9 100644 --- a/code/game/gamemodes/steal_items.dm +++ b/code/game/gamemodes/steal_items.dm @@ -64,7 +64,7 @@ name = "a hand teleporter" typepath = /obj/item/hand_tele protected_jobs = list("Captain", "Research Director", "Chief Engineer") - location_override = "Teleporter" + location_override = "the AI Satellite, or the Captain's Office" /datum/theft_objective/defib name = "the chief medical officer's advanced compact defibrillator" diff --git a/code/game/jobs/job/support.dm b/code/game/jobs/job/support.dm index b24597ec1fa6..11034d972264 100644 --- a/code/game/jobs/job/support.dm +++ b/code/game/jobs/job/support.dm @@ -27,7 +27,9 @@ ACCESS_RC_ANNOUNCE, ACCESS_SEC_DOORS, ACCESS_SUPPLY_SHUTTLE, - ACCESS_WEAPONS + ACCESS_WEAPONS, + ACCESS_TELEPORTER, + ACCESS_EXPEDITION ) blacklisted_disabilities = list(DISABILITY_FLAG_BLIND, DISABILITY_FLAG_DEAF, DISABILITY_FLAG_MUTE, DISABILITY_FLAG_DIZZY) outfit = /datum/outfit/job/qm @@ -161,7 +163,45 @@ back = /obj/item/mod/control/pre_equipped/mining/asteroid mask = /obj/item/clothing/mask/breath +/datum/job/explorer + title = "Explorer" + flag = JOB_EXPLORER + department_flag = JOBCAT_SUPPORT + job_department_flags = DEP_FLAG_SUPPLY + total_positions = 4 + spawn_positions = 4 + supervisors = "the quartermaster" + department_head = list("Quartermaster") + selection_color = "#eeddbe" + access = list( + ACCESS_MAINT_TUNNELS, + ACCESS_EXPEDITION, + ACCESS_EVA, + ACCESS_EXTERNAL_AIRLOCKS, + ACCESS_TELEPORTER, + ACCESS_CARGO, + ACCESS_CARGO_BAY, + ACCESS_MINERAL_STOREROOM, + ACCESS_SUPPLY_SHUTTLE, + ACCESS_MINING_STATION + ) + alt_titles = list("Salvage Technician", "Scavenger") + outfit = /datum/outfit/job/explorer +/datum/outfit/job/explorer + name = "Explorer" + jobtype = /datum/job/explorer + l_ear = /obj/item/radio/headset/headset_cargo/expedition + head = /obj/item/clothing/head/soft/expedition + uniform = /obj/item/clothing/under/rank/cargo/expedition + gloves = /obj/item/clothing/gloves/color/black + shoes = /obj/item/clothing/shoes/jackboots + belt = /obj/item/storage/belt/utility/expedition + id = /obj/item/card/id/explorer + pda = /obj/item/pda/explorer + backpack = /obj/item/storage/backpack/explorer + satchel = /obj/item/storage/backpack/satchel/explorer + box = /obj/item/storage/box/survival_mining //Food /datum/job/bartender @@ -500,26 +540,3 @@ if(new_language.flags & (HIVEMIND|NOLIBRARIAN)) continue H.add_language(la) - -/datum/job/explorer - title = "Explorer" - flag = JOB_EXPLORER - department_flag = JOBCAT_SUPPORT - total_positions = 4 - spawn_positions = 4 - supervisors = "the head of personnel" - department_head = list("Head of Personnel") - selection_color = "#dddddd" - access = list(ACCESS_MAINT_TUNNELS, ACCESS_EXPEDITION, ACCESS_EVA, ACCESS_EXTERNAL_AIRLOCKS) - outfit = /datum/outfit/job/explorer - -/datum/outfit/job/explorer - name = "Explorer" - jobtype = /datum/job/explorer - uniform = /obj/item/clothing/under/color/orange - gloves = /obj/item/clothing/gloves/color/black - shoes = /obj/item/clothing/shoes/workboots - glasses = /obj/item/clothing/glasses/welding - belt = /obj/item/storage/belt/utility - l_pocket = /obj/item/gps - id = /obj/item/card/id/explorer diff --git a/code/game/jobs/job_globals.dm b/code/game/jobs/job_globals.dm index b469381bbfe9..eafaadcfaa14 100644 --- a/code/game/jobs/job_globals.dm +++ b/code/game/jobs/job_globals.dm @@ -65,14 +65,14 @@ GLOBAL_LIST_INIT(service_positions, list( "Internal Affairs Agent", "Chaplain", "Clown", - "Mime", - "Explorer" + "Mime" )) GLOBAL_LIST_INIT(supply_positions, list( "Quartermaster", "Cargo Technician", - "Shaft Miner" + "Shaft Miner", + "Explorer" )) /// Roles that include any semblence of security, mostly for jobbans diff --git a/code/game/machinery/computer/card.dm b/code/game/machinery/computer/card.dm index 40f707866e0e..580373b5048b 100644 --- a/code/game/machinery/computer/card.dm +++ b/code/game/machinery/computer/card.dm @@ -34,7 +34,6 @@ GLOBAL_VAR_INIT(time_last_changed_position, 0) /datum/job/ntspecops/solgovspecops, /datum/job/assistant, /datum/job/syndicateofficer, - /datum/job/explorer // blacklisted so that HOPs don't try prioritizing it, then wonder why that doesn't work ) // Jobs that appear in the list, and you can prioritize, but not open/close slots for var/list/blacklisted_partial = list( @@ -62,8 +61,8 @@ GLOBAL_VAR_INIT(time_last_changed_position, 0) var/list/opened_positions = list() -/obj/machinery/computer/card/Initialize() - ..() +/obj/machinery/computer/card/Initialize(mapload) + . = ..() Radio = new /obj/item/radio(src) Radio.listening = FALSE Radio.config(list("Command" = 0)) diff --git a/code/game/machinery/computer/medical_records.dm b/code/game/machinery/computer/medical_records.dm index 1c9e8a787682..a57bc83ff48a 100644 --- a/code/game/machinery/computer/medical_records.dm +++ b/code/game/machinery/computer/medical_records.dm @@ -28,7 +28,7 @@ light_color = LIGHT_COLOR_DARKBLUE /obj/machinery/computer/med_data/Initialize() - ..() + . = ..() field_edit_questions = list( // General "sex" = "Please select new sex:", diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm index 5890c24d07fc..af3b0d0eeda0 100644 --- a/code/game/machinery/constructable_frame.dm +++ b/code/game/machinery/constructable_frame.dm @@ -277,6 +277,7 @@ to destroy them and players will be able to make replacements. "EngiDrobe" = /obj/machinery/economy/vending/engidrobe, "AtmosDrobe" = /obj/machinery/economy/vending/atmosdrobe, "CargoDrobe" = /obj/machinery/economy/vending/cargodrobe, + "ExploreDrobe" = /obj/machinery/economy/vending/exploredrobe, "ChefDrobe" = /obj/machinery/economy/vending/chefdrobe, "BarDrobe" = /obj/machinery/economy/vending/bardrobe, "HydroDrobe" = /obj/machinery/economy/vending/hydrodrobe, @@ -1052,6 +1053,11 @@ to destroy them and players will be able to make replacements. icon_state = "generic" build_path = /obj/machinery/mineral/equipment_vendor/labor +/obj/item/circuitboard/mining_equipment_vendor/explorer + board_name = "Explorer Equipment Vendor" + icon_state = "supply" + build_path = /obj/machinery/mineral/equipment_vendor/explorer + /obj/item/circuitboard/clawgame board_name = "Claw Game" icon_state = "generic" diff --git a/code/game/machinery/dye_generator.dm b/code/game/machinery/dye_generator.dm index 3e7d346ec524..3a6e2c2c86f7 100644 --- a/code/game/machinery/dye_generator.dm +++ b/code/game/machinery/dye_generator.dm @@ -9,7 +9,7 @@ var/dye_color = "#FFFFFF" /obj/machinery/dye_generator/Initialize() - ..() + . = ..() power_change() /obj/machinery/dye_generator/deconstruct(disassembled = TRUE) diff --git a/code/game/machinery/magnetic_module.dm b/code/game/machinery/magnetic_module.dm index f10aae48db5a..5f50939ffd11 100644 --- a/code/game/machinery/magnetic_module.dm +++ b/code/game/machinery/magnetic_module.dm @@ -212,7 +212,6 @@ return INITIALIZE_HINT_LATELOAD /obj/machinery/magnetic_controller/LateInitialize() - ..() if(autolink) // GLOB.machines is populated in /machinery/Initialize // so linkage gets delayed until that one finished. diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm index 0b34829a4398..3e9ffe429bcc 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -179,6 +179,11 @@ helmet_type = /obj/item/clothing/head/space/prisoner_gulag mask_type = /obj/item/clothing/mask/breath +/obj/machinery/suit_storage_unit/expedition + name = "explorer modsuit storage unit" + mask_type = /obj/item/clothing/mask/gas/explorer + suit_type = /obj/item/mod/control/pre_equipped/standard/explorer + req_access = list(ACCESS_EXPEDITION) /obj/machinery/suit_storage_unit/cmo name = "chief medical officer's suit storage unit" mask_type = /obj/item/clothing/mask/breath diff --git a/code/game/machinery/tcomms/nttc.dm b/code/game/machinery/tcomms/nttc.dm index da5178641b9f..8fbed17d8172 100644 --- a/code/game/machinery/tcomms/nttc.dm +++ b/code/game/machinery/tcomms/nttc.dm @@ -111,6 +111,9 @@ "Cargo Technician" = "supradio", "Shaft Miner" = "supradio", "Spelunker" = "supradio", + "Explorer" = "supradio", + "Salvage Technician" = "supradio", + "Scavenger" = "supradio", // Service "Bartender" = "srvradio", "Beautician" = "srvradio", diff --git a/code/game/machinery/tcomms/tcomms_base.dm b/code/game/machinery/tcomms/tcomms_base.dm index c9507b676360..f89810dd4d8d 100644 --- a/code/game/machinery/tcomms/tcomms_base.dm +++ b/code/game/machinery/tcomms/tcomms_base.dm @@ -280,7 +280,7 @@ GLOBAL_LIST_EMPTY(tcomms_machines) bad_connection = is_bad_connection(tcm.connection.frequency, display_freq) new_connection = SSradio.return_frequency(display_freq) - var/list/radios = list(GLOB.deadchat_radio) + var/list/radios = list() // --- Broadcast only to intercom devices --- diff --git a/code/game/machinery/turret_control.dm b/code/game/machinery/turret_control.dm index d675f29d405f..0641f41f2369 100644 --- a/code/game/machinery/turret_control.dm +++ b/code/game/machinery/turret_control.dm @@ -68,7 +68,7 @@ return ..() /obj/machinery/turretid/Initialize() - ..() + . = ..() if(!control_area) control_area = get_area(src) else if(istext(control_area)) diff --git a/code/game/machinery/vendors/wardrobe_vendors.dm b/code/game/machinery/vendors/wardrobe_vendors.dm index aabb66a71a3f..f5be50a1995b 100644 --- a/code/game/machinery/vendors/wardrobe_vendors.dm +++ b/code/game/machinery/vendors/wardrobe_vendors.dm @@ -562,7 +562,8 @@ /obj/item/clothing/shoes/workboots = 3) contraband = list(/obj/item/toy/figure/crew/qm = 1, - /obj/item/toy/figure/crew/cargotech = 1) + /obj/item/toy/figure/crew/cargotech = 1, + /obj/item/toy/figure/crew/miner = 1) prices = list(/obj/item/clothing/under/rank/cargo/tech = 50, /obj/item/clothing/under/rank/cargo/tech/skirt = 50, @@ -580,6 +581,48 @@ refill_canister = /obj/item/vending_refill/cargodrobe +/obj/machinery/economy/vending/exploredrobe + name = "\improper ExploreDrobe" + desc = "This vending machine dispense clothing for the expedition team, though wearing any of the contents in place of a space suit may not go well for you." + icon_state = "exploredrobe" + icon_lightmask = "base_drobe" + icon_panel = "drobe" + icon_broken = "base_drobe" + icon_off = "base_drobe" + category = VENDOR_TYPE_CLOTHING + ads_list = list("Not guaranteed to protect the user from space. We are not liable!") + + vend_reply = "Thank you for using the ExploreDrobe!" + products = list(/obj/item/clothing/under/rank/cargo/expedition = 3, + /obj/item/clothing/under/rank/cargo/expedition/skirt = 3, + /obj/item/clothing/under/rank/cargo/expedition/overalls = 3, + /obj/item/clothing/head/soft/expedition = 3, + /obj/item/clothing/head/beret/expedition = 3, + /obj/item/clothing/suit/jacket/expeditionbomber = 3, + /obj/item/mod/skin_applier = 3, + /obj/item/clothing/gloves/color/black = 3, + /obj/item/clothing/accessory/armband/cargo = 3, + /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) + + contraband = list(/obj/item/toy/figure/crew/explorer = 1) + + prices = list(/obj/item/clothing/under/rank/cargo/expedition = 50, + /obj/item/clothing/under/rank/cargo/expedition/skirt = 50, + /obj/item/clothing/under/rank/cargo/expedition/overalls = 50, + /obj/item/clothing/head/soft/expedition = 20, + /obj/item/clothing/head/beret/expedition = 20, + /obj/item/clothing/suit/jacket/expeditionbomber = 75, + /obj/item/clothing/gloves/color/black = 20, + /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) + + refill_canister = /obj/item/vending_refill/exploredrobe + /obj/machinery/economy/vending/chefdrobe name = "\improper ChefDrobe" desc = "This vending machine might not dispense meat, but it certainly dispenses chef related clothing." diff --git a/code/game/mecha/combat/durand.dm b/code/game/mecha/combat/durand.dm index 1ba971d347f3..bbab6fe3e942 100644 --- a/code/game/mecha/combat/durand.dm +++ b/code/game/mecha/combat/durand.dm @@ -1,5 +1,5 @@ /obj/mecha/combat/durand - desc = "It's time to light some fires and kick some tires." + desc = "A heavily armored exosuit designed for front-line combat." name = "Durand Mk. II" icon_state = "durand" initial_icon = "durand" @@ -28,9 +28,18 @@ ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack ME.attach(src) +/obj/mecha/combat/durand/examine_more(mob/user) + . = ..() + . += "A durable heavyweight combat mech designed and produced by Defiance Arms. \ + The Durand is an outdated design among Defiance's line of battlemechs and was initially created to fulfill the role of a combat spearhead, breaking into enemy combat formations. \ + Supplanted by newer, more advanced models, these old machines found themselves on the open market and are popular among corporations, private security firms, and planetary militia." + . += "" + . += "Able to bear a wide array of heavy weapons and defensive tools, Nanotrasen found a use for the Durand as a machine to counter biohazards and hostile alien lifeforms, using it to secure new research installations or to fend off hostile fauna and bioforms. \ + As with all station-side mechs, Nanotrasen has purchased the license to produce the Durand in their facilities." + /obj/mecha/combat/durand/old - desc = "A retired, third-generation combat exosuit utilized by the Nanotrasen corporation. Originally developed to combat hostile alien lifeforms." - name = "Durand" + desc = "A retired, third-generation combat exosuit designed by Defiance Arms. Originally developed to combat hostile alien lifeforms" + name = "Old Durand" icon_state = "old_durand" initial_icon = "old_durand" step_in = 4 @@ -42,3 +51,12 @@ infra_luminosity = 8 force = 40 wreckage = /obj/structure/mecha_wreckage/durand/old + +/obj/mecha/combat/durand/old/examine_more(mob/user) + ..() + . = list() + . += "A relic of a mech, once produced by Defiance Arms in the decade of 2470. \ + It is now sought after by collectors and museums alike and has found its way into the hands of many a black market over the decades since its later versions replaced it." + . += "" + . += "Built initially to break into and destroy Xenomorph infestations, bigger and better war machines exist. \ + But many still uphold this version of the Durand as an unstoppable classic, and finding one intact and functional has become increasingly rare." diff --git a/code/game/mecha/combat/gygax.dm b/code/game/mecha/combat/gygax.dm index da18bf23f57c..6742c606111c 100644 --- a/code/game/mecha/combat/gygax.dm +++ b/code/game/mecha/combat/gygax.dm @@ -1,5 +1,5 @@ /obj/mecha/combat/gygax - desc = "A lightweight, security exosuit. Popular among private and corporate security." + desc = "A lightweight security exosuit. Popular among private and corporate security." name = "Gygax" icon_state = "gygax" initial_icon = "gygax" @@ -33,6 +33,16 @@ ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/flashbang ME.attach(src) +/obj/mecha/combat/gygax/examine_more(mob/user) + . = ..() + . += "A light, fast and cheap combat mech designed and produced by Shellguard Munitions. \ + Originally developed as a mobile flanker for open combat scenarios, a substantial flaw in the mech's Leg Overdrive systems caused poor sales. \ + When using this system, the legs of the Gygax are prone to overheating and damaging the rest of the machine, leading overzealous pilots to harm themselves more than the enemy." + . += "" + . += "Despite this flaw, Shellguard was able to reconsider the use of the mech and instead marketed it as a civil defence and policing mech. \ + Popularity soared, especially among corporations like Nanotrasen, who were seeking a light, fast, cheap design to use to equip their security teams. \ + As with all station-side mechs, Nanotrasen has purchased the license to produce the Gygax in their facilities." + /obj/mecha/combat/gygax/dark desc = "A lightweight exosuit, painted in a dark scheme. This model appears to have some modifications." name = "Dark Gygax" @@ -68,3 +78,12 @@ /obj/mecha/combat/gygax/dark/add_cell() cell = new /obj/item/stock_parts/cell/bluespace(src) + +/obj/mecha/combat/gygax/dark/examine_more(mob/user) + ..() + . = list() + . += "A light, fast and cheap combat mech designed and produced by Shellguard Munitions, though this one appears to be modified. \ + With minor alterations to the loadout, armor, and a slick black paint job, this variant strikes a menacing silhouette, its owner clearly being someone you should not mess with." + . += "" + . += "Despite the flaws of the base model, this modified Gygax has no trouble being a speedy, dangerous killing machine. \ + Alterations such as this are common amongst fringe users and outlaw groups, and the upgrades are most certainly illegal. Don't cut yourself." diff --git a/code/game/mecha/combat/honker.dm b/code/game/mecha/combat/honker.dm index 8e25bf3dac6d..6d54e9dc01a4 100644 --- a/code/game/mecha/combat/honker.dm +++ b/code/game/mecha/combat/honker.dm @@ -135,3 +135,11 @@ if("sadtrombone") playsound(src, 'sound/misc/sadtrombone.ogg', 50) return + +/obj/mecha/combat/honker/examine_more(mob/user) + . = ..() + . += "A cheerful, colorful modification of a Durand chassis, the Honk mech is designed as heavy laughterfield support for producing mass honking casualties. \ + Built and perfected by some of the most skilled Clowns ever known to the galaxy, with materials and labor provided by Donk Co, the Honk has somehow managed to have its design smuggled aboard almost ever Nanotrasen station, to the imminent laughter (screams) and joy (despair) of it's crew!" + . += "" + . += "Equipped with a massive HoNkER BlAsT 5000 horn and long range mortars capable of firing both slippery banana peels and dangerous mousetraps, the Honk is well equipped to provide a Clown with everything they need to 'entertain' a station's crew, and to draw the ire of any nearby Security. \ + Honk!" diff --git a/code/game/mecha/combat/marauder.dm b/code/game/mecha/combat/marauder.dm index 80b8263d2e13..14176514fbcf 100644 --- a/code/game/mecha/combat/marauder.dm +++ b/code/game/mecha/combat/marauder.dm @@ -1,5 +1,5 @@ /obj/mecha/combat/marauder - desc = "Heavy-duty, combat exosuit, developed after the Durand model. Rarely found among civilian populations." + desc = "Heavy-duty combat exosuit, developed after the Durand model. Rarely found among civilian populations." name = "Marauder" icon_state = "marauder" initial_icon = "marauder" @@ -48,9 +48,17 @@ /obj/mecha/combat/marauder/add_cell() cell = new /obj/item/stock_parts/cell/bluespace(src) +/obj/mecha/combat/marauder/examine_more(mob/user) + . = ..() + . += "The newest combat mech developed by Defiance Arms, the Marauder is now their mainline offering in the galactic arms market. \ + Based on the earlier Durand chassis, the Marauder is a high-tech weapon of war and destruction, fulfilling the spearhead role of Defiance's earlier design while supporting more firepower than ever before." + . += "" + . += "The Marauder is rarely seen in civilian hands; instead, it is marketed towards military and mercenary forces. \ + Recently, Defiance has opened sales to more customers; This includes Nanotrasen, who uses it to equip their ERT dvision." + /obj/mecha/combat/marauder/ares name = "Ares" - desc = "Heavy-duty, combat exosuit, adapted from rejected early versions of the Marauder to serve as a biohazard containment exosuit. This model, albeit rare, can be found among civilian populations." + desc = "Heavy-duty combat exosuit, adapted from rejected early versions of the Marauder to serve as a biohazard containment exosuit. This model, albeit rare, can be found among civilian populations." icon_state = "ares" initial_icon = "ares" operation_req_access = list(ACCESS_SECURITY) @@ -75,8 +83,17 @@ ME = new /obj/item/mecha_parts/mecha_equipment/thrusters ME.attach(src) +/obj/mecha/combat/marauder/ares/examine_more(mob/user) + ..() + . = list() + . += "Developed from earlier Durand prototypes that never saw production, the Ares is produced by Defiance Arms and marketed as the final word in biohazard containment and protection. \ + Heavily armed and armored, and perhaps a little out of date, the Ares is built from the ground up to destroy biological incursions, whatever those may be." + . += "" + . += "Defiance does not sell the license for the Ares to be produced, and as such, it is rarer than most combat mechs, but is more commonly seen among civilian markets compared to their mainline Marauder chassis. \ + Nanotrases supports a small stable of Ares battlemechs to be used in times of dire emergency." + /obj/mecha/combat/marauder/seraph - desc = "Heavy-duty, command-type exosuit. This is a custom model, utilized only by high-ranking military personnel." + desc = "Heavy-duty command-type exosuit. This is a custom model, utilized only by high-ranking personnel." name = "Seraph" icon_state = "seraph" initial_icon = "seraph" @@ -110,8 +127,17 @@ ME = new /obj/item/mecha_parts/mecha_equipment/thrusters ME.attach(src) +/obj/mecha/combat/marauder/seraph/examine_more(mob/user) + ..() + . = list() + . += "In the field, Nanotrasen teams often needed a command and control unit that could assist where comms failed, and thus, they created a retrofit of the Marauder. \ + This new Seraph variant would serve as a command model, with enhanced comms and command capabilities, but would otherwise be incredibly rare." + . += "" + . += "Due to the rarity of the Seraph, it can be assumed that things are well and truly fucked if one is seen operating. \ + Deployed only in the direst of emergencies, it will inevitably be the lynchpin of any defense or assault." + /obj/mecha/combat/marauder/mauler - desc = "Heavy-duty, combat exosuit, developed off of the existing Marauder model." + desc = "Heavy-duty combat exosuit, modified with illegal technology and weapons." name = "Mauler" icon_state = "mauler" initial_icon = "mauler" @@ -137,3 +163,12 @@ ME.attach(src) ME = new /obj/item/mecha_parts/mecha_equipment/thrusters ME.attach(src) + +/obj/mecha/combat/marauder/mauler/examine_more(mob/user) + ..() + . = list() + . += "A bulky, brutish combat mech painted a deep, matte black, highlighted with a menacing red; the Mauler is an illegal retrofit of Defiance's Marauder chassis. \ + Armed to the teeth with various weapons and armored more thickly than some main battle tanks, this mechanical monstrosity is incredibly rare, and little is known about who makes them or why they exist." + . += "" + . += "The few confirmed sightings have recently been in the hands of the Gorlex Marauders, a group of hostile pirates with suspected ties to the Syndicate. \ + The Mauler poses a severe threat to any force and should never be taken lightly." diff --git a/code/game/mecha/combat/phazon.dm b/code/game/mecha/combat/phazon.dm index 9eb80d4b21fc..f1825b567596 100644 --- a/code/game/mecha/combat/phazon.dm +++ b/code/game/mecha/combat/phazon.dm @@ -1,5 +1,5 @@ /obj/mecha/combat/phazon - desc = "An exosuit which can only be described as 'WTF?'." + desc = "An experimental, phase-shifting exosuit developed by Nanotrasen's research division" name = "Phazon" icon_state = "phazon" initial_icon = "phazon" @@ -47,3 +47,13 @@ "} output += ..() return output + +/obj/mecha/combat/phazon/examine_more(mob/user) + . = ..() + . += "The Phazon is an experimental Nanotrasen combat design, using a Bluespace Anomaly Core as its heart. \ + This odd crystal allows the mech to phase part way out of reality, allowing it to pass through walls, floors, and other structures as if they never existed in the first place. \ + Designed by an NT research team, the design has recently been distributed to their science stations for testing and preliminary production." + . += "" + . += "Due to the nature of finding Anomaly Cores, Phazons are exceedingly rare. \ + It seems to hum with stored energy, the edges of its chassis blurry in the eyes of others, even at rest. \ + Early test pilots report strange hallucinations and “visions” after extensive use of the phasing ability." diff --git a/code/game/mecha/combat/reticence.dm b/code/game/mecha/combat/reticence.dm index e6970740a80e..62393bc84a8b 100644 --- a/code/game/mecha/combat/reticence.dm +++ b/code/game/mecha/combat/reticence.dm @@ -26,3 +26,12 @@ ME.attach(src) ME = new /obj/item/mecha_parts/mecha_equipment/mimercd //HAHA IT MAKES WALLS GET IT ME.attach(src) + +/obj/mecha/combat/reticence/examine_more(mob/user) + . = ..() + . += "A dour, colorless modification of a Gygax chassis, the Reticence is a sight to behold…or not behold. \ + It utilizes a mysterious dampening field, added by a cabal of nearly unheard-of mimes, to be entirely silent as it moves over any terrain, making it a favored weapon of this supposed conspiracy and the assassins they may, or may not, employ." + . += "" + . += "Armed with an S.H.H. “Quietus” Carbine, an utterly silent weapon that can drain the stamina of targets unfortunate enough to be shot by it, it can ensure swift getaways. \ + As a secondary tool, it comes equipped with a mime R.C.D., a device capable of replicating a mime's mysterious ability to create impenetrable, invisible walls. \ + Strangely, the design for the Reticence seems to be present aboard every Nanotrasen station, though to what ends, no one knows." diff --git a/code/game/mecha/medical/odysseus.dm b/code/game/mecha/medical/odysseus.dm index 05d1d5c38ced..e8995cfd47cb 100644 --- a/code/game/mecha/medical/odysseus.dm +++ b/code/game/mecha/medical/odysseus.dm @@ -1,5 +1,5 @@ /obj/mecha/medical/odysseus - desc = "These exosuits are developed and produced by Vey-Med. (© All rights reserved)." + desc = "These exosuits are developed and produced by DeForest Medical Corporation, for rescue operations." name = "Odysseus" icon_state = "odysseus" initial_icon = "odysseus" @@ -44,3 +44,12 @@ builtin_hud_user = 0 . = ..() + +/obj/mecha/medical/odysseus/examine_more(mob/user) + . = ..() + . += "The Odysseus is a relatively fast, lightweight, and easy-to-maintain exosuit developed by DeForest Medical Corporation. \ + Initially designed for patient rescue and care within hostile environments, it has seen semi-widespread use throughout the sector, usually by larger corporations and military groups who value its ability to get in and out of even the most rugged disaster zones." + . += "" + . += "DeForest has seen modest success from the Odysseus, with only minor complaints arising from its sluggish pace and lack of armor or defensive capabilities. \ + Despite these flaws, it has found a home amid Nanotrasen medical teams, where Paramedics find solid uses for it and its varied equipment loadout. \ + As with all station-side mechs, Nanotrasen has purchased the license to produce the Odysseus in their facilities." diff --git a/code/game/mecha/working/ripley.dm b/code/game/mecha/working/ripley.dm index c1d333e8c4a3..6323c2096f53 100644 --- a/code/game/mecha/working/ripley.dm +++ b/code/game/mecha/working/ripley.dm @@ -120,6 +120,16 @@ else if(drake_hides == DRAKE_HIDES_COVERED_SLIGHT) . += occupant ? "ripley-d" : "ripley-d-open" +/obj/mecha/working/ripley/examine_more(mob/user) + . = ..() + . += "The Ripley is a robust, venerable utility exosuit originally produced by Hephaestus Industries. \ + It now sees widespread use in and around the Orion sector, being one of the most pervasive mechs ever produced. \ + Shortly after initial production, Hephaestus licensed production rights for the Ripley to other corporations, earning royalties as the exosuit grew more popular." + . += "" + . += "Depending on the configuration, the Ripley can be used for many purposes, including mining, construction, and even goods transport. \ + To this day, it remains one of the most valuable mechs ever produced, and Hephaestus enjoys a substantial profit from sales of this aging but rugged design. \ + As with all station-side mechs, Nanotrasen has purchased the license to make the Ripley in their facilities." + /obj/mecha/working/ripley/firefighter desc = "A standard APLU chassis that was refitted with additional thermal protection and a cistern." name = "APLU \"Firefighter\"" @@ -129,10 +139,19 @@ max_integrity = 250 resistance_flags = LAVA_PROOF | FIRE_PROOF lights_power = 7 - armor = list(MELEE = 40, BULLET = 30, LASER = 30, ENERGY = 30, BOMB = 60, RAD = 70, FIRE = 100) + armor = list(MELEE = 40, BULLET = 30, LASER = 30, ENERGY = 30, BOMB = 60, RAD = 70, FIRE = 100, ACID = 100) max_equip = 5 // More armor, less tools wreckage = /obj/structure/mecha_wreckage/ripley/firefighter +/obj/mecha/working/ripley/firefighter/examine_more(mob/user) + ..() + . = list() + . += "Based on the venerable Ripley chassis, designed initially by Hephaestus Industries, the Firefighter is a retrofit created by Nanotrasen as their mining operations expanded, and a robust, fireproof exosuit was needed. \ + Adapted to fit heat-resistant shielding, the Firefighter became a popular mech for mining teams in dangerous environments." + . += "" + . += "Since Nanotrasen's expansion into Epsilon Eridani and their mining operations on Lavaland, the Firefighter has grown more popular among seasoned miners looking for a safer, armored way to mine in even the hottest of biomes. \ + Additionally, it has seen some use among atmospherics crews and is admired for its ability to control even the toughest of plasmafires while protecting its pilot." + /obj/mecha/working/ripley/deathripley desc = "OH SHIT IT'S THE DEATHSQUAD WE'RE ALL GONNA DIE" name = "DEATH-RIPLEY" @@ -155,6 +174,16 @@ ME.attach(src) return +/obj/mecha/working/ripley/deathripley/examine_more(mob/user) + ..() + . = list() + . += "A functioning, well-made collectable for the popular Nanotrasen-Funded holovid show, 'Deathsquad'. \ + A retrofitted and repainted Ripley chassis, the Death Ripley was created and used by the leader of the Deathsquad, Master Sergeant Killjoy, during the climactic battle with the Spider Queen “Xerxes” at the end of Season 4. \ + The mech bears the signature mark of the team's engineer, Corporal Ironhead, who assisted Killjoy in its construction." + . += "" + . += "Replicas such as this are sought-after collectibles among the biggest fans of Deathsquad. \ + An altercation even occurred where an individual dressed in a poorly-made Killjoy costume attempted to kill a collector to gain a Death Ripley, who was later sent to a mental institution after screaming, “THE DEATHSQUAD IS REAL." + /obj/mecha/working/ripley/mining desc = "An old, dusty mining ripley." name = "APLU \"Miner\"" diff --git a/code/game/objects/effects/effect_system/effects_foam.dm b/code/game/objects/effects/effect_system/effects_foam.dm index f07d0243c183..1dd7548fd4f7 100644 --- a/code/game/objects/effects/effect_system/effects_foam.dm +++ b/code/game/objects/effects/effect_system/effects_foam.dm @@ -177,7 +177,7 @@ var/metal = MFOAM_ALUMINUM /obj/structure/foamedmetal/Initialize() - ..() + . = ..() air_update_turf(1) /obj/structure/foamedmetal/Destroy() diff --git a/code/game/objects/effects/spawners/random_spawners.dm b/code/game/objects/effects/spawners/random_spawners.dm index 03639969e9bd..0384d6a718c8 100644 --- a/code/game/objects/effects/spawners/random_spawners.dm +++ b/code/game/objects/effects/spawners/random_spawners.dm @@ -253,11 +253,11 @@ /obj/item/toy/syndicateballoon = 1, /obj/item/soap/syndie = 1, /obj/item/clothing/under/syndicate = 1, - /obj/item/clothing/under/syndicate/tacticool = 1, /obj/item/clothing/mask/gas/syndicate = 1, /obj/item/suppressor = 1, /obj/item/coin/antagtoken/syndicate = 1, - /obj/item/storage/box/syndie_kit/cutouts = 1) + /obj/item/storage/box/syndie_kit/space = 1, + /obj/item/clothing/shoes/magboots/syndie = 1) /obj/effect/spawner/random_spawners/syndicate/loot/stetchkin name = "20pc stetchkin" @@ -271,88 +271,72 @@ /obj/effect/spawner/random_spawners/syndicate/loot/level2 name = "rare loot" - // Loot schema: space gear, basic armor, basic ammo (10mm, rcd), drugs, more dangerous/useful gimmick items, lower-value minerals + // Basic stealth, utility and environmental gear. result = list(/datum/nothing = 27, - /obj/item/storage/box/syndie_kit/space = 1, /obj/item/mod/control/pre_equipped/traitor = 1, - /obj/item/clothing/shoes/magboots/syndie = 1, - /obj/item/clothing/suit/armor/vest/combat = 1, /obj/item/ammo_box/magazine/m10mm = 1, - /obj/item/storage/pill_bottle/happy = 1, - /obj/item/storage/pill_bottle/zoom = 1, - /obj/item/storage/pill_bottle/random_drug_bottle = 2, /obj/item/storage/backpack/duffel/syndie/med/surgery = 1, /obj/item/clothing/shoes/chameleon/noslip = 1, /obj/item/storage/belt/military = 1, /obj/item/clothing/under/chameleon = 1, /obj/item/storage/backpack/satchel_flat = 1, - /obj/item/rcd = 1, - /obj/item/rcd_ammo = 1, /obj/item/stamp/chameleon = 1, - /obj/item/flag/chameleon = 1, /obj/item/lighter/zippo/gonzofist = 1, - /obj/item/clothing/gloves/fingerless/rapid = 1, - /obj/item/grenade/spawnergrenade/manhacks = 1, - /obj/item/grenade/syndieminibomb = 1, - /obj/item/storage/box/syndie_kit/throwing_weapons = 1, - /obj/item/pen/edagger = 1, /obj/item/stack/sheet/mineral/plasma{amount = 20} = 1, /obj/item/stack/sheet/mineral/silver{amount = 20} = 1, /obj/item/stack/sheet/mineral/gold{amount = 20} = 1, + /obj/item/stack/sheet/mineral/uranium{amount = 20} = 1, /obj/item/mod/module/noslip = 1, - /obj/item/mod/module/visor/night = 1) + /obj/item/mod/module/visor/night = 1, + /obj/item/clothing/gloves/color/black/thief = 1, + /obj/item/clothing/suit/storage/iaa/blackjacket/armored = 1, + /obj/item/clothing/suit/jacket/syndicatebomber = 1, + /obj/item/mod/module/holster/hidden = 1, + /obj/item/storage/firstaid/tactical = 1, + /obj/item/clothing/under/syndicate/silicon_cham = 1, + /obj/item/storage/box/syndie_kit/camera_bug = 1, + /obj/item/gun/projectile/automatic/toy/pistol/riot = 1, + /obj/item/flash/cameraflash = 1, + /obj/item/mod/module/chameleon = 1, + /obj/item/reagent_containers/hypospray/autoinjector/nanocalcium = 1) /obj/effect/spawner/random_spawners/syndicate/loot/level3 name = "officer loot" - // Loot schema: medkits, very useful devices (jammer, illegal upgrade, RCD), better quality ammo (AP, fire), basic weapons (pistol, empgrenade), high value ores (diamond, uranium) + // Primarily utility items with occasional low damage weaponry. result = list(/datum/nothing = 25, /obj/item/jammer = 1, - /obj/item/storage/firstaid/regular = 1, - /obj/item/reagent_containers/hypospray/autoinjector/nanocalcium = 1, - /obj/item/gun/projectile/automatic/pistol = 1, - /obj/item/stock_parts/cell/bluespace = 1, - /obj/item/card/emag = 1, /obj/item/encryptionkey/binary = 1, /obj/item/pinpointer/advpinpointer = 1, - /obj/item/borg/upgrade/vtec = 1, /obj/item/borg/upgrade/syndicate = 1, /obj/item/borg/upgrade/selfrepair = 1, + /obj/item/storage/box/syndie_kit/stechkin = 1, /obj/item/stack/sheet/mineral/diamond{amount = 10} = 1, /obj/item/stack/sheet/mineral/uranium{amount = 10} = 1, /obj/item/clothing/shoes/magboots/elite = 1, - /obj/item/grenade/empgrenade = 1, - /obj/item/grenade/clown_grenade = 1, - /obj/item/grenade/spawnergrenade/feral_cats = 1, - /obj/item/ammo_box/magazine/m10mm/ap = 1, - /obj/item/ammo_box/magazine/m10mm/fire = 1, - /obj/item/ammo_box/magazine/m10mm/hp = 1, - /obj/item/storage/box/syndie_kit/emp = 1, - /obj/item/toy/plushie/carpplushie/dehy_carp = 1, /obj/item/clothing/glasses/hud/security/chameleon = 1, /obj/item/mod/module/visor/thermal = 1, /obj/item/mod/module/stealth = 1, - /obj/item/mod/module/power_kick = 1) + /obj/item/mod/module/power_kick = 1, + /obj/item/storage/box/syndidonkpockets = 1, + /obj/item/pen/edagger = 1, + /obj/item/door_remote/omni/access_tuner = 1, + /obj/item/clothing/glasses/thermal = 1) /obj/effect/spawner/random_spawners/syndicate/loot/level4 name = "armory loot" spawn_inside = /obj/structure/closet/secure_closet/syndicate/depot/armory - // Loot schema: high-power weapons (m90, esword, ebow, revolver), devices that negate depot challenges (thermal glasses, chameleon device), explosives - result = list(/obj/item/gun/projectile/automatic/c20r = 1, - /obj/item/gun/projectile/automatic/m90 = 1, - /obj/item/gun/projectile/automatic/sniper_rifle/syndicate = 1, - /obj/item/melee/energy/sword/saber = 1, - /obj/item/gun/energy/kinetic_accelerator/crossbow = 1, - /obj/item/gun/projectile/revolver = 1, - /obj/item/bio_chip_implanter/shock = 1, - /obj/item/butcher_chainsaw = 1, - /obj/item/bee_briefcase = 1, - /obj/item/fireaxe/energized = 1, - /obj/item/clothing/glasses/thermal = 1, + // Combat orientated items that could give the player an advantage if an antag messes with them. + result = list(/obj/item/melee/energy/sword/saber = 1, + /obj/item/autosurgeon/organ/syndicate/razorwire = 1, /obj/item/chameleon = 1, + /obj/item/CQC_manual = 1, /obj/item/reagent_containers/hypospray/autoinjector/stimulants = 1, - /obj/item/grenade/plastic/c4/x4 = 1, - /obj/item/mod/control/pre_equipped/traitor_elite = 1)// Adding this as it is something an explorer can use to explore space better, that isn't a high powered murder weapon. + /obj/item/clothing/gloves/fingerless/rapid = 1, + /obj/item/gun/medbeam = 1, + /obj/item/shield/energy = 1, + /obj/item/storage/box/syndie_kit/teleporter = 1, + /obj/item/weaponcrafting/gunkit/universal_gun_kit = 1) // Layout-affecting spawns diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 03a576f03588..bcad26c143e0 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -913,7 +913,7 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons pointed_object += " inside [target_atom.loc]" if(pointer_mob.a_intent == INTENT_HELP || !ismob(target_atom)) - pointer_mob.visible_message("[pointer_mob] points to [pointed_object] with [src]") + pointer_mob.visible_message("[pointer_mob] points to [pointed_object] with [src].") return TRUE target_atom.visible_message("[pointer_mob] points [src] at [pointed_object]!", diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm index 5b8fc955e737..d1b68f4bc9a6 100644 --- a/code/game/objects/items/crayons.dm +++ b/code/game/objects/items/crayons.dm @@ -303,6 +303,7 @@ name = "\improper Nanotrasen-brand Rapid Paint Applicator" desc = "A metallic container containing spray paint." icon_state = "spraycan_cap" + slot_flags = SLOT_FLAG_BELT var/capped = TRUE instant = TRUE validSurfaces = list(/turf/simulated/floor,/turf/simulated/wall) diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index 5118c56e6285..eb19e9b13953 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -253,8 +253,8 @@ blocks_emissive = FALSE /obj/item/flashlight/flare/glowstick/Initialize() + . = ..() light_color = color - ..() /obj/item/flashlight/flare/glowstick/update_icon_state() if(!fuel) diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm index dbb4ecb723a6..1d56a6af5c30 100644 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -26,8 +26,8 @@ ..() internal_channels.Cut() -/obj/item/radio/headset/Initialize() - ..() +/obj/item/radio/headset/Initialize(mapload) + . = ..() if(ks1type) keyslot1 = new ks1type(src) @@ -289,6 +289,11 @@ desc = "Headset used by shaft miners." icon_state = "mine_headset" +/obj/item/radio/headset/headset_cargo/expedition + name = "expedition radio headset" + desc = "Headset used by space explorers." + icon_state = "mine_headset" + /obj/item/radio/headset/headset_service name = "service radio headset" desc = "Headset used by the service staff, tasked with keeping the station full, happy and clean." diff --git a/code/game/objects/items/devices/radio/radio_objects.dm b/code/game/objects/items/devices/radio/radio_objects.dm index d8476380c450..f201488678bd 100644 --- a/code/game/objects/items/devices/radio/radio_objects.dm +++ b/code/game/objects/items/devices/radio/radio_objects.dm @@ -60,8 +60,6 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) var/obj/item/encryptionkey/syndicate/syndiekey = null /// How many times this is disabled by EMPs var/disable_timer = 0 - /// List of all the mobs that can hear this radio - var/list/listeners = list() /// Areas in which this radio cannot send messages var/static/list/blacklisted_areas = list(/area/adminconstruction, /area/tdome, /area/ruin/space/bubblegum_arena) @@ -84,6 +82,7 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) var/requires_tcomms = FALSE // Does this device require tcomms to work.If TRUE it wont function at all without tcomms. If FALSE, it will work without tcomms, just slowly var/instant = FALSE // Should this device instantly communicate if there isnt tcomms + /obj/item/radio/proc/set_frequency(new_frequency) SSradio.remove_object(src, frequency) frequency = new_frequency @@ -98,7 +97,6 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) /obj/item/radio/Destroy() SStgui.close_uis(wires) - listeners.Cut() QDEL_NULL(wires) if(SSradio) SSradio.remove_object(src, frequency) @@ -109,39 +107,14 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) follow_target = null return ..() -/obj/item/radio/Initialize() - ..() +/obj/item/radio/Initialize(mapload) + . = ..() if(frequency < RADIO_LOW_FREQ || frequency > RADIO_HIGH_FREQ) frequency = sanitize_frequency(frequency, RADIO_LOW_FREQ, RADIO_HIGH_FREQ) set_frequency(frequency) for(var/ch_name in channels) secure_radio_connections[ch_name] = SSradio.add_object(src, SSradio.radiochannels[ch_name], RADIO_CHAT) - if(canhear_range) - AddComponent(/datum/component/proximity_monitor, canhear_range) - -/obj/item/radio/HasProximity(mob/crosser) - if(!istype(crosser) || (crosser in listeners)) - return - listeners += crosser - RegisterSignal(crosser, COMSIG_MOVABLE_MOVED, PROC_REF(is_crosser_still_listening)) - RegisterSignal(crosser, COMSIG_PARENT_QDELETING, PROC_REF(remove_from_listener_list)) - -/obj/item/radio/proc/is_crosser_still_listening(mob/crosser) - SIGNAL_HANDLER // COMSIG_MOVABLE_MOVED - var/still_listening = FALSE - for(var/obj/effect/abstract/proximity_checker/checker in get_turf(crosser)) - if(checker.monitor.hasprox_receiver == src) - still_listening = TRUE - break - if(still_listening) - return - remove_from_listener_list(crosser) - -/obj/item/radio/proc/remove_from_listener_list(mob/crosser) - SIGNAL_HANDLER // COMSIG_PARENT_QDELETING - listeners -= crosser - UnregisterSignal(crosser, list(COMSIG_PARENT_QDELETING, COMSIG_MOVABLE_MOVED)) /obj/item/radio/attack_ghost(mob/user) return interact(user) @@ -158,11 +131,19 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) ui_interact(user) /obj/item/radio/AltClick(mob/user) - if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user) || !istype(user)) + if(!istype(user) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user)) return ToggleBroadcast() - to_chat(user, "You [broadcasting ? "enable" : "disable"] [src]'s hotmic!") + to_chat(user, "You [broadcasting ? "enable" : "disable"] [src]'s hotmic.") + add_fingerprint(user) + +/obj/item/radio/CtrlShiftClick(mob/user) + if(!istype(user) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user)) + return + + ToggleReception() + to_chat(user, "You [listening ? "enable" : "disable"] [src]'s speaker.") add_fingerprint(user) /obj/item/radio/ui_state(mob/user) @@ -236,26 +217,14 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) if(has_loudspeaker) loudspeaker = !loudspeaker if(loudspeaker) - update_hear_range(3) + canhear_range = 3 else - update_hear_range(0) + canhear_range = 0 else . = FALSE if(.) add_fingerprint(usr) -/obj/item/radio/proc/update_hear_range(new_hear_range) - canhear_range = new_hear_range - var/datum/component/proximity_monitor/our_prox_component = GetComponent(/datum/component/proximity_monitor) - if(!canhear_range) - QDEL_NULL(our_prox_component) - return - - if(our_prox_component) - our_prox_component.set_radius(canhear_range) - else - AddComponent(/datum/component/proximity_monitor, canhear_range) - /obj/item/radio/proc/list_secure_channels(mob/user) var/list/dat = list() for(var/channel in channels) @@ -576,17 +545,29 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) /obj/item/radio/proc/send_announcement() if(is_listening()) - return listeners + return get_mobs_in_view(canhear_range, src) + + return null + +/obj/item/radio/proc/show_examine_hotkeys() + . = list() + . += "Alt-Click to toggle [src]'s hotmic." + . += "Ctrl-Shift-Click to toggle [src]'s speaker." /obj/item/radio/examine(mob/user) . = ..() - . += "Alt-Click to toggle [src]'s hotmic!" + . += show_examine_hotkeys() + if(in_range(src, user) || loc == user) if(b_stat) . += "\the [src] can be attached and modified!" else . += "\the [src] can not be modified or attached!" +/obj/item/radio/examine_more(mob/user) + . = ..() + . += "You can transmit messages from [src] without the hotmic by using :l or :r whilst holding it in your left or right hand." + /obj/item/radio/screwdriver_act(mob/user, obj/item/I) . = TRUE if(!I.use_tool(src, user, 0, volume = I.tool_volume)) @@ -844,16 +825,3 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) return return M.say_dead(message) - -GLOBAL_DATUM_INIT(deadchat_radio, /obj/item/radio/dchat_radio_handler, new()) - -/obj/item/radio/dchat_radio_handler - name = "Deadchat radio handler. Do not fuck with" - canhear_range = 0 - -/obj/item/radio/dchat_radio_handler/Destroy(force) - . = ..() - stack_trace("Someone just tried to delete the deadchat handler!") - if(!force) - return QDEL_HINT_LETMELIVE - return ..() diff --git a/code/game/objects/items/devices/uplinks.dm b/code/game/objects/items/devices/uplinks.dm index 1439b9134c6e..7cdd7ebbdf27 100644 --- a/code/game/objects/items/devices/uplinks.dm +++ b/code/game/objects/items/devices/uplinks.dm @@ -405,6 +405,15 @@ GLOBAL_LIST_EMPTY(world_uplinks) hidden_uplink = new(src) icon_state = "radio" +/obj/item/radio/uplink/AltClick() + return + +/obj/item/radio/uplink/CtrlShiftClick() + return + +/obj/item/radio/uplink/show_examine_hotkeys() + return list() + /obj/item/radio/uplink/attack_self(mob/user as mob) if(hidden_uplink) hidden_uplink.trigger(user) diff --git a/code/game/objects/items/salvage.dm b/code/game/objects/items/salvage.dm new file mode 100644 index 000000000000..c7f930488826 --- /dev/null +++ b/code/game/objects/items/salvage.dm @@ -0,0 +1,101 @@ +/obj/item/salvage + name = "salvage" + desc = "A tonne of salvage looted from bad mapping practices. Who spawned the base type? Report this on the github." + icon = 'icons/obj/sellable.dmi' + force = 5 + throwforce = 5 + throw_speed = 1 + throw_range = 4 + hitsound = 'sound/items/handling/salvagepickup.ogg' + pickup_sound = 'sound/items/handling/salvagepickup.ogg' + drop_sound = 'sound/items/handling/salvagedrop.ogg' + w_class = WEIGHT_CLASS_NORMAL + +/obj/item/salvage/examine(mob/user) + . = ..() + . += "You can bring this back to Cargo to sell to Central Command onboard the 'NTV Arion' Supply shuttle." + +/// Ruin Salvage, misc loot gained from looking around ruins. + +/obj/item/salvage/ruin + desc = "A tonne of salvage recovered from an abandoned ruin. Who spawned the base type? Report this on the github." + +/obj/item/salvage/ruin/pirate + name = "rum keg" + desc = "A highly valued keg of aged space rum. Limited edition and sure to be a collector's item." + icon = 'icons/obj/objects.dmi' + icon_state = "barrel" + color = "#7e5c00" // So that it's slightly different from normal kegs + +/obj/item/salvage/ruin/russian + name = "armaments cache" + desc = "A crate of old disused Belastrav ballistic firearms clearly long past their usability. This crate would make good scrap metal for shuttle construction." + icon_state = "weapon_crate" + +/obj/item/salvage/ruin/brick + name = "mysterious brick" + desc = "A peculier brick formed out of what appears to be plastic. This would make a fantastic collector's item." + icon_state = "lego_brick" + hitsound = 'sound/items/handling/taperecorder_drop.ogg' + pickup_sound = 'sound/items/handling/taperecorder_pickup.ogg' + drop_sound = 'sound/items/handling/taperecorder_drop.ogg' + +/obj/item/salvage/ruin/brick/Initialize(mapload) + . = ..() + AddComponent(/datum/component/caltrop, 5, 10) // 5 to 10 damage, hits like a truck + +/obj/item/salvage/ruin/nanotrasen + name = "lost research notes" + desc = "A collection of research notes penned by old Nanotrasen scientists from decades past, technology lost in time- until you found them. It is a mystery what technology Central Command will push if they could just get their hands on these notes." + icon_state = "research_doc" + hitsound = 'sound/items/handling/paper_pickup.ogg' + pickup_sound = 'sound/items/handling/paper_pickup.ogg' + drop_sound = 'sound/items/handling/paper_drop.ogg' + +/obj/item/salvage/ruin/nanotrasen/Initialize(mapload) + . = ..() + origin_tech = pick(list("combat=5", "materials=5", "engineering=5", "biotech=5", "power=5", "data=5")) +/obj/item/salvage/ruin/carp + name = "carp scales" + desc = "A collection of scales shed from a corrupted space carp. Their culinary potential could mean untold riches for Nanotrasen." + icon_state = "dragon_scales" + hitsound = sound('sound/effects/hit_on_shattered_glass.ogg', 20) + pickup_sound = sound('sound/hallucinations/im_here2.ogg', 10) + drop_sound = sound('sound/hallucinations/look_up2.ogg', 10) + +/obj/item/salvage/ruin/tablet + name = "mysterious tablet" + desc = "A mysterious and old stone tablet. When you read the text on it, you start getting chills." + icon_state = "stone_tablet" + hitsound = sound('sound/effects/break_stone.ogg', 20) + pickup_sound = sound('sound/hallucinations/im_here2.ogg', 10) + drop_sound = sound('sound/hallucinations/look_up2.ogg', 10) + +/// Loot salvage, gained from fighting space simplemobs. + +/obj/item/salvage/loot + desc = "A tonne of salvage looted from a fallen foe. Who spawned the base type? Report this on the github." + +/obj/item/salvage/loot/pirate + name = "stolen jewellery" + desc = "A collection of stolen jewellery, fashioned from pilfered bluespace crystals and gems. Rumour has it, local pirates have been known to use these accessories to avoid capture." + icon_state = "pirate_treasure" + hitsound = 'sound/items/handling/taperecorder_drop.ogg' + pickup_sound = 'sound/items/handling/taperecorder_pickup.ogg' + drop_sound = 'sound/items/handling/taperecorder_drop.ogg' + +/obj/item/salvage/loot/russian + name = "siosp manual" + desc = "A small manual, written in Neo-Russkyia, detailing the manifesto of Malfoy Ames, father of The Cygni Rebellion. Central Command may wish to share this with their allies in the Trans-Solar Federation." + icon_state = "ussp_manual" + hitsound = 'sound/items/handling/paper_pickup.ogg' + pickup_sound = 'sound/items/handling/paper_pickup.ogg' + drop_sound = 'sound/items/handling/paper_drop.ogg' + +/obj/item/salvage/loot/syndicate + name = "syndicate intel" + desc = "A folder detailing Syndicate plans to infiltrate and sabotage operations in the Epsilon Eridani sector. Central Command may find use of this to aid them in counter-intelligence." + icon_state = "syndie_doc" + hitsound = 'sound/items/handling/paper_pickup.ogg' + pickup_sound = 'sound/items/handling/paper_pickup.ogg' + drop_sound = 'sound/items/handling/paper_drop.ogg' diff --git a/code/game/objects/items/stacks/sheets/leather.dm b/code/game/objects/items/stacks/sheets/leather.dm index 266974088d24..fda73ccf92b5 100644 --- a/code/game/objects/items/stacks/sheets/leather.dm +++ b/code/game/objects/items/stacks/sheets/leather.dm @@ -204,7 +204,6 @@ GLOBAL_LIST_INIT(sinew_recipes, list ( return C.armor = current_armor.setRating(melee_value = min(current_armor.getRating(MELEE) + 15, 75)) to_chat(user, "You strengthen [target], improving its resistance against melee attacks.") - use(1) else to_chat(user, "You can't improve [C] any further!") else if(istype(target, /obj/mecha/working/ripley)) @@ -214,7 +213,7 @@ GLOBAL_LIST_INIT(sinew_recipes, list ( to_chat(user, "You dont have enough [src] for this!") return D.hides++ - D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 25, 115)) + D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 10, 70)) D.armor = D.armor.setRating(bullet_value = min(D.armor.getRating(BULLET) + 7, 60)) D.armor = D.armor.setRating(laser_value = min(D.armor.getRating(LASER) + 7, 60)) to_chat(user, "You strengthen [target], improving its resistance against attacks.") @@ -256,9 +255,8 @@ GLOBAL_LIST_INIT(sinew_recipes, list ( if(!use(1)) to_chat(user, "You dont have enough [src] for this!") return - use(1) D.plates++ - D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 10, 70)) + D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 7, 60)) D.armor = D.armor.setRating(bullet_value = min(D.armor.getRating(BULLET) + 4, 50)) D.armor = D.armor.setRating(laser_value = min(D.armor.getRating(LASER) + 4, 50)) to_chat(user, "You strengthen [target], improving its resistance against attacks.") @@ -287,14 +285,13 @@ GLOBAL_LIST_INIT(sinew_recipes, list ( if(istype(target, /obj/mecha/working/ripley)) var/obj/mecha/working/ripley/D = target if(D.drake_hides < DRAKE_HIDES_COVERED_FULL && !D.hides && !D.plates) - if(!use(1)) + if(!use(3)) to_chat(user, "You dont have enough [src] for this!") return - use(1) D.drake_hides++ D.max_integrity += 50 D.obj_integrity += 50 - D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 45, 175)) // 77.7% melee armor maximum + D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 13, 80)) D.armor = D.armor.setRating(bullet_value = min(D.armor.getRating(BULLET) + 7, 60)) D.armor = D.armor.setRating(laser_value = min(D.armor.getRating(LASER) + 7, 60)) to_chat(user, "You strengthen [target], improving its resistance against attacks.") diff --git a/code/game/objects/items/stacks/sheets/sheet_types.dm b/code/game/objects/items/stacks/sheets/sheet_types.dm index 33a29c0fa15f..c79ceef488d9 100644 --- a/code/game/objects/items/stacks/sheets/sheet_types.dm +++ b/code/game/objects/items/stacks/sheets/sheet_types.dm @@ -11,6 +11,7 @@ * Brass (clockwork cult) * Bones * Plastic + * Saltpetre Crystal */ /* @@ -692,3 +693,16 @@ GLOBAL_LIST_INIT(plastic_recipes, list( /obj/item/stack/sheet/plastic/five amount = 5 + +/* + * Saltpetre crystal + */ + +/obj/item/stack/sheet/saltpetre_crystal + name = "saltpetre crystal" + desc = "A bunch of saltpetre crystals. Can be ground to get liquid saltpetre that can be used to dope hydroponics trays and soil plots." + singular_name = "saltpetre crystal" + icon = 'icons/obj/stacks/organic.dmi' + icon_state = "sheet-saltpetre" + item_state = "sheet-saltpetre" + origin_tech = "materials=1;biotech=1" diff --git a/code/game/objects/items/tools/welder.dm b/code/game/objects/items/tools/welder.dm index 239d13fd9a7c..afb690efa6e6 100644 --- a/code/game/objects/items/tools/welder.dm +++ b/code/game/objects/items/tools/welder.dm @@ -35,7 +35,7 @@ var/progress_flash_divisor = 10 //Length of time between each "eye flash" /obj/item/weldingtool/Initialize(mapload) - ..() + . = ..() create_reagents(maximum_fuel) reagents.add_reagent("fuel", maximum_fuel) update_icon() @@ -149,7 +149,7 @@ /obj/item/weldingtool/attack(mob/living/carbon/M, mob/living/carbon/user) // For lighting other people's cigarettes. var/obj/item/clothing/mask/cigarette/cig = M?.wear_mask - if(!istype(cig) || user.zone_selected != "mouth" || !tool_enabled) + if(!istype(cig) || user.zone_selected != "mouth" || !tool_enabled) return ..() if(M == user) diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index 683b0eac1490..d7d0ea0e536c 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -1367,6 +1367,12 @@ icon_state = "cargotech" toysay = "For Cargonia!" +/obj/item/toy/figure/crew/explorer + name = "\improper Explorer action figure" + desc = "The oblivious explorer, from Space Life's SS12 figurine collection." + icon_state = "explorer" + toysay = "I f-foun-nd-d it-t in-n s-spac-ce!" + /obj/item/toy/figure/crew/ce name = "\improper Chief Engineer action figure" desc = "The expert Chief Engineer, from Space Life's SS12 figurine collection." diff --git a/code/game/objects/items/weapons/bio_chips/bio_chip_adrenalin.dm b/code/game/objects/items/weapons/bio_chips/bio_chip_adrenalin.dm index 67e06aad5990..264212986d1a 100644 --- a/code/game/objects/items/weapons/bio_chips/bio_chip_adrenalin.dm +++ b/code/game/objects/items/weapons/bio_chips/bio_chip_adrenalin.dm @@ -19,7 +19,7 @@ SEND_SIGNAL(imp_in, COMSIG_LIVING_CLEAR_STUNS) imp_in.reagents.add_reagent("synaptizine", 10) - imp_in.reagents.add_reagent("omnizine", 10) + imp_in.reagents.add_reagent("omnizine_no_addiction", 10) imp_in.reagents.add_reagent("stimulative_agent", 10) if(!uses) qdel(src) @@ -33,6 +33,41 @@ desc = "A glass case containing an adrenaline bio-chip." implant_type = /obj/item/bio_chip/adrenalin +/obj/item/bio_chip/basic_adrenalin + name = "basic adrenal bio-chip" + desc = "Removes all stuns and knockdowns." + icon_state = "adrenal" + origin_tech = "materials=2;biotech=4;combat=3;syndicate=3" + uses = 1 + implant_data = /datum/implant_fluff/basic_adrenalin + implant_state = "implant-syndicate" + +/obj/item/bio_chip/basic_adrenalin/activate() + uses-- + to_chat(imp_in, "You feel a sudden surge of energy!") + imp_in.SetStunned(0) + imp_in.SetWeakened(0) + imp_in.SetKnockDown(0) + imp_in.SetParalysis(0) + imp_in.adjustStaminaLoss(-75) + imp_in.stand_up(TRUE) + SEND_SIGNAL(imp_in, COMSIG_LIVING_CLEAR_STUNS) + + imp_in.reagents.add_reagent("synaptizine", 7.5) + imp_in.reagents.add_reagent("weak_omnizine", 7.5) + imp_in.reagents.add_reagent("stimulative_agent", 7.5) + if(!uses) + qdel(src) + +/obj/item/bio_chip_implanter/basic_adrenalin + name = "bio-chip implanter (basic adrenalin)" + implant_type = /obj/item/bio_chip/basic_adrenalin + +/obj/item/bio_chip_case/basic_adrenalin + name = "bio-chip case - 'Basic Adrenaline'" + desc = "A glass case containing an smaller than normal adrenaline bio-chip." + implant_type = /obj/item/bio_chip/basic_adrenalin + /obj/item/bio_chip/proto_adrenalin name = "proto-adrenal bio-chip" desc = "Removes all stuns and knockdowns." diff --git a/code/game/objects/items/weapons/bio_chips/bio_chip_fluff.dm b/code/game/objects/items/weapons/bio_chips/bio_chip_fluff.dm index 96f4de6aa72e..7ec6ade59702 100644 --- a/code/game/objects/items/weapons/bio_chips/bio_chip_fluff.dm +++ b/code/game/objects/items/weapons/bio_chips/bio_chip_fluff.dm @@ -22,6 +22,12 @@ notes = "One of Cybersun Industries oldest and simplest implants, even in its simplicity it is rumoured to be one of Cybersun Industries best-selling products." function = "Subjects injected with this bio-chip can activate an injection of medical cocktails that removes stuns, increases speed, and has mild healing effects." +/datum/implant_fluff/basic_adrenalin + name = "Cybersun Industries RX-1 Adrenaline Bio-chip" + life = "Five days or after 1 use." + notes = "One of Cybersun Industries oldest implants, made smaller because of popular demand, because of the manufacturing cost and the smaller size. Then, more inferior products were used in the implant to decrease the price." + function = "Subjects injected with this bio-chip can activate an injection of medical cocktails that removes stuns, increases speed, and has mild healing effects." + /datum/implant_fluff/proto_adrenaline name = "Cybersun Industries FX-1 Proto-Adrenaline Bio-chip" life = "Destroyed after 1 use." diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index cc9c370b9735..4abfbffb9482 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -350,6 +350,7 @@ initial_access = list(ACCESS_SYNDICATE) assignment = "Syndicate Researcher" icon_state = "syndie" + untrackable = TRUE /obj/item/card/id/syndicate/New() access = initial_access.Copy() @@ -1034,7 +1035,7 @@ name = "Free Golem ID" desc = "A card used to claim mining points and buy gear. Use it to mark it as yours." icon_state = "research" - access = list(ACCESS_FREE_GOLEMS, ACCESS_ROBOTICS, ACCESS_CLOWN, ACCESS_MIME) //access to robots/mechs + access = list(ACCESS_FREE_GOLEMS, ACCESS_ROBOTICS, ACCESS_CLOWN, ACCESS_MIME, ACCESS_XENOBIOLOGY) //access to robots/mechs var/registered = FALSE /obj/item/card/id/golem/attack_self(mob/user as mob) diff --git a/code/game/objects/items/weapons/cigs.dm b/code/game/objects/items/weapons/cigs.dm index efd1ea577923..718851cda552 100644 --- a/code/game/objects/items/weapons/cigs.dm +++ b/code/game/objects/items/weapons/cigs.dm @@ -1,3 +1,5 @@ +#define REAGENT_TIME_RATIO 2.5 + /* CONTAINS: CIGARETTES @@ -502,7 +504,7 @@ LIGHTERS ARE IN LIGHTERS.DM return smoke() -/obj/item/clothing/mask/cigarette/pipe/attack_self(mob/user) //Refills the pipe. Can be changed to an attackby later, if loose tobacco is added to vendors or something. +/obj/item/clothing/mask/cigarette/pipe/attack_self(mob/user) // Extinguishes the pipe. if(lit) user.visible_message("[user] puts out [src].") lit = FALSE @@ -510,17 +512,27 @@ LIGHTERS ARE IN LIGHTERS.DM item_state = icon_off STOP_PROCESSING(SSobj, src) return - if(smoketime <= 0) - to_chat(user, "You refill the pipe with tobacco.") - reagents.add_reagent("nicotine", chem_volume) - smoketime = initial(smoketime) - first_puff = TRUE /obj/item/clothing/mask/cigarette/pipe/try_light(obj/item/cigar, obj/item/lighting_item) if(can_light_fancy(lighting_item)) return ..() +// Refill or light the pipe /obj/item/clothing/mask/cigarette/pipe/attackby(obj/item/I, mob/user, params) + if(istype(I, /obj/item/food/snacks/grown)) + var/obj/item/food/snacks/grown/O = I + if(O.dry) + if(reagents.total_volume == reagents.maximum_volume) + to_chat(user, "[src] is full!") + return + O.reagents.trans_to(src, chem_volume) + to_chat(user, "You stuff the [O.name] into the pipe.") + smoketime = max(reagents.total_volume * REAGENT_TIME_RATIO, smoketime) + qdel(O) + else + to_chat(user, "You need to dry this first!") + return + if(!is_type_in_typecache(I, things_that_light)) return if(can_light_fancy(I)) @@ -535,8 +547,9 @@ LIGHTERS ARE IN LIGHTERS.DM item_state = "cobpipeoff" icon_on = "cobpipeon" //Note - these are in masks.dmi icon_off = "cobpipeoff" - smoketime = 800 - chem_volume = 40 + smoketime = 0 //there is nothing to smoke initially + chem_volume = 160 + list_reagents = list() /////////// //ROLLING// @@ -569,3 +582,5 @@ LIGHTERS ARE IN LIGHTERS.DM to_chat(user, "You need to dry this first!") else ..() + +#undef REAGENT_TIME_RATIO diff --git a/code/game/objects/items/weapons/dna_injector.dm b/code/game/objects/items/weapons/dna_injector.dm index b2e1014bbb25..7958cd9dca88 100644 --- a/code/game/objects/items/weapons/dna_injector.dm +++ b/code/game/objects/items/weapons/dna_injector.dm @@ -20,8 +20,13 @@ var/value = 0 var/forcedmutation = FALSE //Will it give the mutation, guaranteed? -/obj/item/dnainjector/Initialize() +/obj/item/dnainjector/Initialize(mapload) . = ..() + + var/init_block = GetInitBlock() + if(init_block) + block = init_block + if(datatype && block) buf = new buf.dna = new @@ -29,6 +34,10 @@ buf.dna.ResetSE() SetValue(value) +// Override this with a var reference to do setup +/obj/item/dnainjector/proc/GetInitBlock() + return null + /obj/item/dnainjector/Destroy() QDEL_NULL(buf) return ..() @@ -157,9 +166,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/hulkmut/Initialize() - block = GLOB.hulkblock - ..() +/obj/item/dnainjector/hulkmut/GetInitBlock() + return GLOB.hulkblock /obj/item/dnainjector/antihulk name = "DNA-Injector (Anti-Hulk)" @@ -168,9 +176,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antihulk/Initialize() - block = GLOB.hulkblock - ..() +/obj/item/dnainjector/antihulk/GetInitBlock() + return GLOB.hulkblock /obj/item/dnainjector/firemut name = "DNA-Injector (Fire)" @@ -179,9 +186,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/firemut/Initialize() - block = GLOB.fireblock - ..() +/obj/item/dnainjector/firemut/GetInitBlock() + return GLOB.fireblock /obj/item/dnainjector/antifire name = "DNA-Injector (Anti-Fire)" @@ -190,9 +196,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antifire/Initialize() - block = GLOB.fireblock - ..() +/obj/item/dnainjector/antifire/GetInitBlock() + return GLOB.fireblock /obj/item/dnainjector/telemut name = "DNA-Injector (Tele.)" @@ -201,9 +206,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/telemut/Initialize() - block = GLOB.teleblock - ..() +/obj/item/dnainjector/telemut/GetInitBlock() + return GLOB.teleblock /obj/item/dnainjector/telemut/darkbundle name = "DNA injector" @@ -216,9 +220,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antitele/Initialize() - block = GLOB.teleblock - ..() +/obj/item/dnainjector/antitele/GetInitBlock() + return GLOB.teleblock /obj/item/dnainjector/nobreath name = "DNA-Injector (Breathless)" @@ -227,9 +230,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/nobreath/Initialize() - block = GLOB.breathlessblock - ..() +/obj/item/dnainjector/nobreath/GetInitBlock() + return GLOB.breathlessblock /obj/item/dnainjector/antinobreath name = "DNA-Injector (Anti-Breathless)" @@ -238,9 +240,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antinobreath/Initialize() - block = GLOB.breathlessblock - ..() +/obj/item/dnainjector/antinobreath/GetInitBlock() + return GLOB.breathlessblock /obj/item/dnainjector/remoteview name = "DNA-Injector (Remote View)" @@ -249,9 +250,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/remoteview/Initialize() - block = GLOB.remoteviewblock - ..() +/obj/item/dnainjector/remoteview/GetInitBlock() + return GLOB.remoteviewblock /obj/item/dnainjector/antiremoteview name = "DNA-Injector (Anti-Remote View)" @@ -260,9 +260,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antiremoteview/Initialize() - block = GLOB.remoteviewblock - ..() +/obj/item/dnainjector/antiremoteview/GetInitBlock() + return GLOB.remoteviewblock /obj/item/dnainjector/regenerate name = "DNA-Injector (Regeneration)" @@ -271,9 +270,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/regenerate/Initialize() - block = GLOB.regenerateblock - ..() +/obj/item/dnainjector/regenerate/GetInitBlock() + return GLOB.regenerateblock /obj/item/dnainjector/antiregenerate name = "DNA-Injector (Anti-Regeneration)" @@ -282,9 +280,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antiregenerate/Initialize() - block = GLOB.regenerateblock - ..() +/obj/item/dnainjector/antiregenerate/GetInitBlock() + return GLOB.regenerateblock /obj/item/dnainjector/morph name = "DNA-Injector (Morph)" @@ -293,9 +290,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/morph/Initialize() - block = GLOB.morphblock - ..() +/obj/item/dnainjector/morph/GetInitBlock() + return GLOB.morphblock /obj/item/dnainjector/antimorph name = "DNA-Injector (Anti-Morph)" @@ -304,9 +300,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antimorph/Initialize() - block = GLOB.morphblock - ..() +/obj/item/dnainjector/antimorph/GetInitBlock() + return GLOB.morphblock /obj/item/dnainjector/noprints name = "DNA-Injector (No Prints)" @@ -315,9 +310,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/noprints/Initialize() - block = GLOB.noprintsblock - ..() +/obj/item/dnainjector/noprints/GetInitBlock() + return GLOB.noprintsblock /obj/item/dnainjector/antinoprints name = "DNA-Injector (Anti-No Prints)" @@ -326,9 +320,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antinoprints/Initialize() - block = GLOB.noprintsblock - ..() +/obj/item/dnainjector/antinoprints/GetInitBlock() + return GLOB.noprintsblock /obj/item/dnainjector/insulation name = "DNA-Injector (Shock Immunity)" @@ -337,9 +330,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/insulation/Initialize() - block = GLOB.shockimmunityblock - ..() +/obj/item/dnainjector/insulation/GetInitBlock() + return GLOB.shockimmunityblock /obj/item/dnainjector/antiinsulation name = "DNA-Injector (Anti-Shock Immunity)" @@ -348,9 +340,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antiinsulation/Initialize() - block = GLOB.shockimmunityblock - ..() +/obj/item/dnainjector/antiinsulation/GetInitBlock() + return GLOB.shockimmunityblock /obj/item/dnainjector/midgit name = "DNA-Injector (Small Size)" @@ -359,9 +350,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/midgit/Initialize() - block = GLOB.smallsizeblock - ..() +/obj/item/dnainjector/midgit/GetInitBlock() + return GLOB.smallsizeblock /obj/item/dnainjector/antimidgit name = "DNA-Injector (Anti-Small Size)" @@ -370,9 +360,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antimidgit/Initialize() - block = GLOB.smallsizeblock - ..() +/obj/item/dnainjector/antimidgit/GetInitBlock() + return GLOB.smallsizeblock /obj/item/dnainjector/eatmut name = "DNA-Injector (Matter Eater)" @@ -381,9 +370,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/eatmut/Initialize() - block = GLOB.eatblock - return ..() +/obj/item/dnainjector/eatmut/GetInitBlock() + return GLOB.eatblock /obj/item/dnainjector/antieat name = "DNA-Injector (Anti-Matter Eater)" @@ -392,9 +380,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antieat/Initialize() - block = GLOB.eatblock - return ..() +/obj/item/dnainjector/antieat/GetInitBlock() + return GLOB.eatblock ///////////////////////////////////// /obj/item/dnainjector/antiglasses @@ -404,9 +391,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antiglasses/Initialize() - block = GLOB.glassesblock - ..() +/obj/item/dnainjector/antiglasses/GetInitBlock() + return GLOB.glassesblock /obj/item/dnainjector/glassesmut name = "DNA-Injector (Glasses)" @@ -415,9 +401,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/glassesmut/Initialize() - block = GLOB.glassesblock - ..() +/obj/item/dnainjector/glassesmut/GetInitBlock() + return GLOB.glassesblock /obj/item/dnainjector/epimut name = "DNA-Injector (Epi.)" @@ -426,9 +411,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/epimut/Initialize() - block = GLOB.epilepsyblock - ..() +/obj/item/dnainjector/epimut/GetInitBlock() + return GLOB.epilepsyblock /obj/item/dnainjector/antiepi name = "DNA-Injector (Anti-Epi.)" @@ -437,9 +421,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antiepi/Initialize() - block = GLOB.epilepsyblock - ..() +/obj/item/dnainjector/antiepi/GetInitBlock() + return GLOB.epilepsyblock /obj/item/dnainjector/anticough name = "DNA-Injector (Anti-Cough)" @@ -448,9 +431,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/anticough/Initialize() - block = GLOB.coughblock - ..() +/obj/item/dnainjector/anticough/GetInitBlock() + return GLOB.coughblock /obj/item/dnainjector/coughmut name = "DNA-Injector (Cough)" @@ -459,9 +441,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/coughmut/Initialize() - block = GLOB.coughblock - ..() +/obj/item/dnainjector/coughmut/GetInitBlock() + return GLOB.coughblock /obj/item/dnainjector/clumsymut name = "DNA-Injector (Clumsy)" @@ -470,9 +451,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/clumsymut/Initialize() - block = GLOB.clumsyblock - ..() +/obj/item/dnainjector/clumsymut/GetInitBlock() + return GLOB.clumsyblock /obj/item/dnainjector/anticlumsy name = "DNA-Injector (Anti-Clumy)" @@ -481,9 +461,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/anticlumsy/Initialize() - block = GLOB.clumsyblock - ..() +/obj/item/dnainjector/anticlumsy/GetInitBlock() + return GLOB.clumsyblock /obj/item/dnainjector/antitour name = "DNA-Injector (Anti-Tour.)" @@ -492,9 +471,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antitour/Initialize() - block = GLOB.twitchblock - ..() +/obj/item/dnainjector/antitour/GetInitBlock() + return GLOB.twitchblock /obj/item/dnainjector/tourmut name = "DNA-Injector (Tour.)" @@ -503,9 +481,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/tourmut/Initialize() - block = GLOB.twitchblock - ..() +/obj/item/dnainjector/tourmut/GetInitBlock() + return GLOB.twitchblock /obj/item/dnainjector/stuttmut name = "DNA-Injector (Stutt.)" @@ -514,9 +491,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/stuttmut/Initialize() - block = GLOB.nervousblock - ..() +/obj/item/dnainjector/stuttmut/GetInitBlock() + return GLOB.nervousblock /obj/item/dnainjector/antistutt @@ -526,9 +502,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antistutt/Initialize() - block = GLOB.nervousblock - ..() +/obj/item/dnainjector/antistutt/GetInitBlock() + return GLOB.nervousblock /obj/item/dnainjector/blindmut name = "DNA-Injector (Blind)" @@ -537,9 +512,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/blindmut/Initialize() - block = GLOB.blindblock - ..() +/obj/item/dnainjector/blindmut/GetInitBlock() + return GLOB.blindblock /obj/item/dnainjector/antiblind name = "DNA-Injector (Anti-Blind)" @@ -548,9 +522,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antiblind/Initialize() - block = GLOB.blindblock - ..() +/obj/item/dnainjector/antiblind/GetInitBlock() + return GLOB.blindblock /obj/item/dnainjector/deafmut name = "DNA-Injector (Deaf)" @@ -559,9 +532,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/deafmut/Initialize() - block = GLOB.deafblock - ..() +/obj/item/dnainjector/deafmut/GetInitBlock() + return GLOB.deafblock /obj/item/dnainjector/antideaf name = "DNA-Injector (Anti-Deaf)" @@ -570,9 +542,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antideaf/Initialize() - block = GLOB.deafblock - ..() +/obj/item/dnainjector/antideaf/GetInitBlock() + return GLOB.deafblock /obj/item/dnainjector/hallucination name = "DNA-Injector (Halluctination)" @@ -581,9 +552,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/hallucination/Initialize() - block = GLOB.hallucinationblock - ..() +/obj/item/dnainjector/hallucination/GetInitBlock() + return GLOB.hallucinationblock /obj/item/dnainjector/antihallucination name = "DNA-Injector (Anti-Hallucination)" @@ -592,9 +562,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/antihallucination/Initialize() - block = GLOB.hallucinationblock - ..() +/obj/item/dnainjector/antihallucination/GetInitBlock() + return GLOB.hallucinationblock /obj/item/dnainjector/h2m name = "DNA-Injector (Human > Monkey)" @@ -603,9 +572,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/h2m/Initialize() - block = GLOB.monkeyblock - ..() +/obj/item/dnainjector/h2m/GetInitBlock() + return GLOB.monkeyblock /obj/item/dnainjector/m2h name = "DNA-Injector (Monkey > Human)" @@ -614,9 +582,8 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/m2h/Initialize() - block = GLOB.monkeyblock - ..() +/obj/item/dnainjector/m2h/GetInitBlock() + return GLOB.monkeyblock /obj/item/dnainjector/comic @@ -626,9 +593,8 @@ value = 0xFFF forcedmutation = TRUE -/obj/item/dnainjector/comic/Initialize() - block = GLOB.comicblock - ..() +/obj/item/dnainjector/comic/GetInitBlock() + return GLOB.comicblock /obj/item/dnainjector/anticomic name = "DNA-Injector (Ant-Comic)" @@ -637,6 +603,5 @@ value = 0x001 forcedmutation = TRUE -/obj/item/dnainjector/anticomic/Initialize() - block = GLOB.comicblock - ..() +/obj/item/dnainjector/anticomic/GetInitBlock() + return GLOB.comicblock diff --git a/code/game/objects/items/weapons/melee/energy_melee_weapons.dm b/code/game/objects/items/weapons/melee/energy_melee_weapons.dm index 0313f5ae46a8..e047ea965b60 100644 --- a/code/game/objects/items/weapons/melee/energy_melee_weapons.dm +++ b/code/game/objects/items/weapons/melee/energy_melee_weapons.dm @@ -254,9 +254,11 @@ /obj/item/melee/energy/sword/pirate name = "energy cutlass" desc = "Arrrr matey." + force_on = 20 icon_state = "cutlass0" icon_state_on = "cutlass1" light_color = LIGHT_COLOR_RED + origin_tech = "combat=3;magnets=4;syndicate=2" /obj/item/melee/energy/blade name = "energy blade" diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm index 153dfffef92f..ea696589078b 100644 --- a/code/game/objects/items/weapons/storage/bags.dm +++ b/code/game/objects/items/weapons/storage/bags.dm @@ -8,7 +8,6 @@ * Trash Bag * Mining Satchel * Plant Bag - * Sheet Snatcher * Book Bag * Tray * @@ -262,143 +261,6 @@ depth = min(8, depth + 1) unsorted.sort(depth) -// ----------------------------- -// Sheet Snatcher -// ----------------------------- -// Because it stacks stacks, this doesn't operate normally. -// However, making it a storage/bag allows us to reuse existing code in some places. -Sayu - -/// what is this even used for -/obj/item/storage/bag/sheetsnatcher - icon = 'icons/obj/mining.dmi' - icon_state = "sheetsnatcher" - name = "Sheet Snatcher" - desc = "A patented Nanotrasen storage system designed for any kind of mineral sheet." - - var/capacity = 300; //the number of sheets it can carry. - w_class = WEIGHT_CLASS_NORMAL - - allow_quick_empty = TRUE // this function is superceded - -/obj/item/storage/bag/sheetsnatcher/can_be_inserted(obj/item/W as obj, stop_messages = 0) - if(!istype(W,/obj/item/stack/sheet) || istype(W,/obj/item/stack/sheet/mineral/sandstone) || istype(W,/obj/item/stack/sheet/wood)) - if(!stop_messages) - to_chat(usr, "The snatcher does not accept [W].") - return 0 //I don't care, but the existing code rejects them for not being "sheets" *shrug* -Sayu - var/current = 0 - for(var/obj/item/stack/sheet/S in contents) - current += S.amount - if(capacity == current)//If it's full, you're done - if(!stop_messages) - to_chat(usr, "The snatcher is full.") - return 0 - return 1 - - -// Modified handle_item_insertion. Would prefer not to, but... -/obj/item/storage/bag/sheetsnatcher/handle_item_insertion(obj/item/W as obj, mob/user, prevent_warning = FALSE) - var/obj/item/stack/sheet/S = W - if(!istype(S)) return 0 - - var/amount - var/inserted = 0 - var/current = 0 - for(var/obj/item/stack/sheet/S2 in contents) - current += S2.amount - if(capacity < current + S.amount)//If the stack will fill it up - amount = capacity - current - else - amount = S.amount - - for(var/obj/item/stack/sheet/sheet in contents) - if(S.type == sheet.type) // we are violating the amount limitation because these are not sane objects - sheet.amount += amount // they should only be removed through procs in this file, which split them up. - S.amount -= amount - inserted = 1 - break - - if(!inserted || !S.amount) - usr.unEquip(S) - usr.update_icons() //update our overlays - if(usr.client && usr.s_active != src) - usr.client.screen -= S - S.dropped(usr) - if(!S.amount) - qdel(S) - else - S.loc = src - - if(usr.s_active) - usr.s_active.show_to(usr) - update_icon() - return 1 - - -// Sets up numbered display to show the stack size of each stored mineral -// NOTE: numbered display is turned off currently because it's broken -/obj/item/storage/bag/sheetsnatcher/orient2hud(mob/user as mob) - var/adjusted_contents = length(contents) - - //Numbered contents display - var/list/datum/numbered_display/numbered_contents - if(display_contents_with_number) - numbered_contents = list() - adjusted_contents = 0 - for(var/obj/item/stack/sheet/I in contents) - adjusted_contents++ - var/datum/numbered_display/D = new/datum/numbered_display(I) - D.number = I.amount - numbered_contents.Add( D ) - - var/row_num = 0 - var/col_count = min(7,storage_slots) -1 - if(adjusted_contents > 7) - row_num = round((adjusted_contents-1) / 7) // 7 is the maximum allowed width. - standard_orient_objs(row_num, col_count, numbered_contents) - return - - -/obj/item/storage/bag/sheetsnatcher/drop_inventory(mob/user) - var/location = get_turf(src) - for(var/obj/item/stack/sheet/S in contents) - while(S.amount) - var/obj/item/stack/sheet/N = new S.type(location) - var/stacksize = min(S.amount,N.max_amount) - N.amount = stacksize - S.amount -= stacksize - if(!S.amount) - qdel(S) // todo: there's probably something missing here - if(user.s_active) - user.s_active.show_to(user) - update_icon() - -// Instead of removing -/obj/item/storage/bag/sheetsnatcher/remove_from_storage(obj/item/W as obj, atom/new_location) - var/obj/item/stack/sheet/S = W - if(!istype(S)) return 0 - - //I would prefer to drop a new stack, but the item/attack_hand code - // that calls this can't receive a different object than you clicked on. - //Therefore, make a new stack internally that has the remainder. - // -Sayu - - if(S.get_amount() > S.max_amount) - var/obj/item/stack/sheet/temp = new S.type(src) - temp.amount = S.amount - S.max_amount - S.amount = S.max_amount - - return ..(S,new_location) - -// ----------------------------- -// Sheet Snatcher (Cyborg) -// ----------------------------- - -/obj/item/storage/bag/sheetsnatcher/borg - name = "Sheet Snatcher 9000" - desc = "" - capacity = 500//Borgs get more because >specialization - - // ----------------------------- // Cash Bag // ----------------------------- @@ -600,3 +462,28 @@ w_class = WEIGHT_CLASS_TINY can_hold = list(/obj/item/airlock_electronics, /obj/item/firelock_electronics, /obj/item/firealarm_electronics, /obj/item/apc_electronics, /obj/item/airalarm_electronics, /obj/item/camera_assembly, /obj/item/stock_parts/cell, /obj/item/circuitboard, /obj/item/stack/cable_coil) resistance_flags = FLAMMABLE + +/* + * Treasure bag + */ + +/obj/item/storage/bag/expedition + name = "treasure satchel" + desc = "A satchel for storing scavenged salvage. There be treasure." + icon = 'icons/obj/mining.dmi' + icon_state = "satchel" // placeholder + origin_tech = "engineering=2" + slot_flags = SLOT_FLAG_BELT | SLOT_FLAG_POCKET + w_class = WEIGHT_CLASS_NORMAL + storage_slots = 15 + max_combined_w_class = 60 + max_w_class = WEIGHT_CLASS_NORMAL + can_hold = list(/obj/item/salvage) + +/obj/item/storage/bag/expedition/robust + name = "robust treasure satchel" + desc = "We heard you liked booty so we put booty in your booty so ye could carry more booty." + storage_slots = 30 + max_combined_w_class = 120 + origin_tech = "materials=3;engineering=3" + icon_state = "satchel_bspace" // placeholder diff --git a/code/game/objects/items/weapons/storage/belt.dm b/code/game/objects/items/weapons/storage/belt.dm index 0750631f1ba2..f9276d10f9a5 100644 --- a/code/game/objects/items/weapons/storage/belt.dm +++ b/code/game/objects/items/weapons/storage/belt.dm @@ -164,6 +164,21 @@ new /obj/item/stack/cable_coil(src, 30, COLOR_RED) update_icon() +/obj/item/storage/belt/utility/expedition + desc = "A belt for holding tools, but with style." + icon_state = "assaultbelt" + item_state = "assault" + +/obj/item/storage/belt/utility/expedition/populate_contents() + new /obj/item/screwdriver(src, "blue") + new /obj/item/wrench(src) + new /obj/item/weldingtool/hugetank(src) + new /obj/item/crowbar(src) + new /obj/item/wirecutters(src) + new /obj/item/multitool(src) + new /obj/item/stack/cable_coil(src, 30, COLOR_BLUE) + update_icon() + /obj/item/storage/belt/medical name = "medical belt" desc = "Can hold various medical equipment." diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index a2578bc2cb55..4d585cef1d98 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -949,6 +949,17 @@ return return ..() +/obj/item/storage/box/relay_kit + name = "telecommunications relay kit" + desc = "Contains everything you need to set up your own telecommunications array!" + +/obj/item/storage/box/relay_kit/populate_contents() + new /obj/item/paper/tcommskey(src) + new /obj/item/stack/sheet/metal/(src, 5) + new /obj/item/circuitboard/tcomms/relay(src) + new /obj/item/stock_parts/manipulator(src) + new /obj/item/stock_parts/manipulator(src) + new /obj/item/stack/cable_coil(src, 7) /obj/item/storage/box/centcomofficer name = "officer kit" diff --git a/code/game/objects/items/weapons/storage/garment.dm b/code/game/objects/items/weapons/storage/garment.dm index f648c022c237..47835a9a9c65 100644 --- a/code/game/objects/items/weapons/storage/garment.dm +++ b/code/game/objects/items/weapons/storage/garment.dm @@ -298,4 +298,15 @@ new /obj/item/clothing/gloves/color/latex/nitrile(src) new /obj/item/clothing/shoes/black(src) - +/obj/item/storage/bag/garment/explorer + name = "explorer's garment bag" + desc = "A bag for storing extra clothes and shoes. This one belongs to the explorer." + +/obj/item/storage/bag/garment/explorer/populate_contents() + new /obj/item/clothing/under/rank/cargo/expedition(src) + new /obj/item/clothing/under/rank/cargo/expedition/overalls(src) + new /obj/item/clothing/head/soft/expedition(src) + new /obj/item/clothing/head/beret/expedition(src) + new /obj/item/clothing/gloves/color/black(src) + new /obj/item/clothing/shoes/jackboots(src) + new /obj/item/clothing/mask/gas/explorer(src) diff --git a/code/game/objects/items/weapons/storage/storage_base.dm b/code/game/objects/items/weapons/storage/storage_base.dm index cfb1b6015dcf..ea3e086b3d69 100644 --- a/code/game/objects/items/weapons/storage/storage_base.dm +++ b/code/game/objects/items/weapons/storage/storage_base.dm @@ -199,12 +199,9 @@ orient2hud(user) // this only needs to happen to make .contents show properly as screen objects. if(user.s_active) user.s_active.hide_from(user) // If there's already an interface open, close it. - user.client.screen -= boxes - user.client.screen -= closer - user.client.screen -= contents - user.client.screen += boxes - user.client.screen += closer - user.client.screen += contents + user.client.screen |= boxes + user.client.screen |= closer + user.client.screen |= contents user.s_active = src LAZYDISTINCTADD(mobs_viewing, user) @@ -245,6 +242,9 @@ update_viewers() /obj/item/storage/proc/open(mob/user) + if(isobserver(user)) + show_to(user) + return if(use_sound && isliving(user)) playsound(loc, use_sound, 50, TRUE, -5) @@ -459,6 +459,10 @@ if(user) if(user.client && user.s_active != src) user.client.screen -= I + if(length(user.observers)) + for(var/mob/observer in user.observers) + if(observer.client && observer.s_active != src) + observer.client.screen -= I I.dropped(user, TRUE) add_fingerprint(user) diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm index 460a227057dd..629a85c2f094 100644 --- a/code/game/objects/items/weapons/twohanded.dm +++ b/code/game/objects/items/weapons/twohanded.dm @@ -565,7 +565,7 @@ origin_tech = "combat=4;bluespace=4;plasmatech=7" /obj/item/singularityhammer/Initialize(mapload) - ..() + . = ..() AddComponent(/datum/component/two_handed, \ force_wielded = 40, \ force_unwielded = force, \ @@ -634,7 +634,7 @@ origin_tech = "combat=4;powerstorage=7" /obj/item/mjollnir/Initialize(mapload) - ..() + . = ..() AddComponent(/datum/component/two_handed, \ force_wielded = 25, \ force_unwielded = force, \ diff --git a/code/game/objects/items/weapons/vending_items.dm b/code/game/objects/items/weapons/vending_items.dm index 026810647950..6995d3ad4426 100644 --- a/code/game/objects/items/weapons/vending_items.dm +++ b/code/game/objects/items/weapons/vending_items.dm @@ -200,6 +200,10 @@ machine_name = "CargoDrobe" icon_state = "refill_clothes" +/obj/item/vending_refill/exploredrobe + machine_name = "ExploreDrobe" + icon_state = "refill_clothes" + /obj/item/vending_refill/chefdrobe machine_name = "ChefDrobe" icon_state = "refill_clothes" diff --git a/code/game/objects/mail.dm b/code/game/objects/mail.dm index 2f2eec45cf94..6a437f9a7354 100644 --- a/code/game/objects/mail.dm +++ b/code/game/objects/mail.dm @@ -107,10 +107,11 @@ /obj/item/clothing/mask/cigarette/cigar, /obj/item/stack/wrapping_paper, /obj/item/toy/figure/crew/cargotech, + /obj/item/toy/figure/crew/explorer, /obj/item/toy/figure/crew/qm, /obj/item/toy/figure/crew/miner, /obj/item/storage/box/scratch_cards) - job_list = list("Quartermaster", "Cargo Technician", "Shaft Miner") + job_list = list("Quartermaster", "Cargo Technician", "Shaft Miner", "Explorer") /obj/item/envelope/medical icon_state = "mail_med" @@ -211,7 +212,7 @@ /obj/item/toy/figure/owl, /obj/item/toy/figure/griffin, /obj/item/storage/box/scratch_cards) - job_list = list("Assistant", "Explorer") + job_list = list("Assistant") /*//////////////////////\/ diff --git a/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm b/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm index 1dcf525e29af..50298cb22db0 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm @@ -13,6 +13,24 @@ new /obj/item/clothing/head/soft/cargo(src) new /obj/item/storage/bag/mail(src) +/obj/structure/closet/secure_closet/explorer + name = "explorer's locker" + req_access = list(ACCESS_EXPEDITION) + icon_state = "explorer" + open_door_sprite = "mining_door" + +/obj/structure/closet/secure_closet/explorer/populate_contents() + new /obj/item/radio/headset/headset_cargo/expedition(src) + new /obj/item/gun/energy/kinetic_accelerator/pistol(src) + new /obj/item/storage/firstaid/regular(src) + new /obj/item/clothing/accessory/holster(src) + new /obj/item/radio/beacon(src) + new /obj/item/storage/box/relay_kit(src) + new /obj/item/gps(src) + new /obj/item/storage/bag/ore(src) + new /obj/item/t_scanner/adv_mining_scanner/lesser(src) + new /obj/item/storage/bag/expedition(src) + /obj/structure/closet/secure_closet/quartermaster name = "quartermaster's locker" req_access = list(ACCESS_QM) diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm index 9ed65153be98..1f7902908708 100644 --- a/code/game/objects/structures/crates_lockers/crates.dm +++ b/code/game/objects/structures/crates_lockers/crates.dm @@ -517,6 +517,12 @@ icon_opened = "scicrate_open" icon_closed = "scicrate" +/obj/structure/closet/crate/sci/robo + desc = "A science crate. Contain various mech parts." + icon_state = "scicrate_mech" + icon_opened = "scicrate_mech_open" + icon_closed = "scicrate_mech" + /obj/structure/closet/crate/secure/scisec name = "secure science crate" desc = "A crate with a lock on it, painted in the scheme of the station's scientists." diff --git a/code/game/objects/structures/noticeboard.dm b/code/game/objects/structures/noticeboard.dm index eeb179d870da..83317b9d430d 100644 --- a/code/game/objects/structures/noticeboard.dm +++ b/code/game/objects/structures/noticeboard.dm @@ -8,7 +8,7 @@ w_class = WEIGHT_CLASS_BULKY /obj/item/mounted/noticeboard/do_build(turf/on_wall, mob/user) - new /obj/structure/noticeboard(get_turf(user), get_dir(on_wall, user), building = TRUE) + new /obj/structure/noticeboard(get_turf(user), get_dir(on_wall, user), TRUE) qdel(src) /obj/structure/noticeboard @@ -21,21 +21,21 @@ max_integrity = 150 var/notices = 0 -/obj/structure/noticeboard/New(turf/loc, direction, building = FALSE) +/obj/structure/noticeboard/Initialize(mapload, direction, building = FALSE) . = ..() + if(building) setDir(direction) set_pixel_offsets_from_dir(-32, 32, -30, 30) update_icon(UPDATE_ICON_STATE) -/obj/structure/noticeboard/Initialize() - . = ..() for(var/obj/item/paper in loc) if(notices >= MAX_NOTICES) break if(istype(paper, /obj/item/paper)) paper.loc = src notices++ + update_icon(UPDATE_ICON_STATE) /obj/structure/noticeboard/update_icon_state() diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm index d33997709797..45159cb37c4d 100644 --- a/code/game/objects/structures/plasticflaps.dm +++ b/code/game/objects/structures/plasticflaps.dm @@ -100,8 +100,8 @@ desc = "Heavy duty, airtight, plastic flaps." /obj/structure/plasticflaps/mining/Initialize() + . = ..() air_update_turf(TRUE) - ..() /obj/structure/plasticflaps/mining/Destroy() var/turf/T = get_turf(src) diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index baf89390823d..b1f28b70a9ae 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -12,6 +12,8 @@ GLOBAL_LIST_INIT(admin_verbs_admin, list( /client/proc/invisimin, /*allows our mob to go invisible/visible*/ /datum/admins/proc/announce, /*priority announce something to all clients.*/ /client/proc/admin_ghost, /*allows us to ghost/reenter body at will*/ + /client/proc/admin_observe, /*allows us to freely observe mobs */ + /client/proc/admin_observe_target, /*and gives it to us on right click*/ /client/proc/toggle_view_range, /*changes how far we can see*/ /client/proc/cmd_admin_pm_context, /*right-click adminPM interface*/ /client/proc/cmd_admin_pm_panel, /*admin-pm list*/ @@ -170,7 +172,8 @@ GLOBAL_LIST_INIT(admin_verbs_debug, list( /client/proc/force_verb_bypass, /client/proc/show_gc_queues, /client/proc/debug_global_variables, - /client/proc/profile_code + /client/proc/profile_code, + /client/proc/debug_atom_init )) GLOBAL_LIST_INIT(admin_verbs_possess, list( /proc/possess, @@ -196,13 +199,17 @@ GLOBAL_LIST_INIT(admin_verbs_mod, list( /client/proc/dsay, /datum/admins/proc/show_player_panel, /client/proc/ban_panel, - /client/proc/debug_variables /*allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify*/ + /client/proc/debug_variables, /*allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify*/ + /client/proc/admin_observe, + /client/proc/admin_observe_target, )) GLOBAL_LIST_INIT(admin_verbs_mentor, list( /client/proc/cmd_admin_pm_context, /*right-click adminPM interface*/ /client/proc/cmd_admin_pm_panel, /*admin-pm list*/ /client/proc/cmd_admin_pm_by_key_panel, /*admin-pm list by key*/ /client/proc/openMentorTicketUI, + /client/proc/admin_observe, /* Allow mentors to observe as well, though they face some limitations */ + /client/proc/admin_observe_target, /client/proc/cmd_mentor_say /* mentor say*/ // cmd_mentor_say is added/removed by the toggle_mentor_chat verb )) @@ -339,13 +346,22 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list( to_chat(src, "All of your adminverbs are now visible.") SSblackbox.record_feedback("tally", "admin_verb", 1, "Show Admin Verbs") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/client/proc/admin_ghost() - set category = "Admin" - set name = "Aghost" +/client/proc/mentor_ghost() + var/is_mentor = check_rights(R_MENTOR, FALSE) + var/is_full_admin = check_rights(R_ADMIN|R_MOD, FALSE) - if(!check_rights(R_ADMIN|R_MOD)) + if(!is_mentor && !is_full_admin) + to_chat(src, "You aren't allowed to use this!") + return + + // mentors are allowed only if they have the observe trait, which is given on observe. + // they should also not be given this proc. + if(!is_full_admin && (is_mentor && !HAS_MIND_TRAIT(mob, TRAIT_MENTOR_OBSERVING) || !is_mentor)) return + do_aghost() + +/client/proc/do_aghost() if(isobserver(mob)) //re-enter var/mob/dead/observer/ghost = mob @@ -372,6 +388,134 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list( // TODO: SStgui.on_transfer() to move windows from old and new SSblackbox.record_feedback("tally", "admin_verb", 1, "Aghost") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! +/client/proc/admin_ghost() + set category = "Admin" + set name = "Aghost" + + if(!check_rights(R_ADMIN|R_MOD)) + return + + do_aghost() + +/// Allow an admin to observe someone. +/// mentors are allowed to use this verb while living, but with some stipulations: +/// if they attempt to do anything that would stop their orbit, they will immediately be returned to their body. +/client/proc/admin_observe() + set name = "Aobserve" + set category = "Admin" + if(!check_rights(R_ADMIN|R_MOD|R_MENTOR)) + return + + if(isnewplayer(mob)) + to_chat(src, "You cannot aobserve while in the lobby. Please join or observe first.") + return + + var/mob/target + + target = tgui_input_list(mob, "Select a mob to observe", "Aobserve", GLOB.player_list) + if(isnull(target)) + return + if(target == src) + to_chat(src, "You can't observe yourself!") + return + + if(isobserver(target)) + to_chat(src, "[target] is a ghost, and cannot be observed.") + return + + if(isnewplayer(target)) + to_chat(src, "[target] is in the lobby, and cannot be observed.") + return + + admin_observe_target(target) + +/client/proc/cleanup_admin_observe(mob/dead/observer/ghost) + if(!istype(ghost) || !ghost.mob_observed) + return FALSE + + // un-follow them + ghost.cleanup_observe() + // if it's a mentor, make sure they go back to their body. + if(HAS_TRAIT(mob.mind, TRAIT_MENTOR_OBSERVING)) + // handler will handle removing the trait + mob.stop_orbit() + log_admin("[key_name(src)] has de-activated Aobserve") + SSblackbox.record_feedback("tally", "admin_verb", 1, "Aobserve") + return TRUE + +/// targeted form of admin_observe: this should only appear in the right-click menu. +/client/proc/admin_observe_target(mob/target as mob in GLOB.mob_list) + set name = "\[Admin\] Aobserve" + set category = null + + if(!check_rights(R_ADMIN|R_MOD|R_MENTOR, mob)) + return + + var/full_admin = check_rights(R_ADMIN|R_MOD, FALSE, mob) + + if(isnewplayer(mob)) + to_chat(src, "You cannot aobserve while in the lobby. Please join or observe first.") + return + + if(isnewplayer(target)) + to_chat(src, "[target] is currently in the lobby.") + return + + if(isobserver(target)) + to_chat(src, "You can't observe a ghost.") + return + + if(cleanup_admin_observe(mob)) + return + + if(isnull(target) || target == src) + // let the default one find the target if there isn't one + admin_observe() + return + + // observers don't need to ghost, so we don't need to worry about adding any traits + if(isobserver(mob)) + var/mob/dead/observer/ghost = mob + SSblackbox.record_feedback("tally", "admin_verb", 1, "Aobserve") + ghost.do_observe(target) + return + + log_admin("[key_name(src)] has Aobserved out of their body to follow [target]") + do_aghost() + var/mob/dead/observer/ghost = mob + + if(!full_admin) + // if they're a me and they're alive, add the MENTOR_OBSERVINGtrait to ensure that they can only go back to their body. + // we need to handle this here because when you aghost, your mob gets set to the ghost. Oops! + ADD_TRAIT(mob.mind, TRAIT_MENTOR_OBSERVING, MENTOR_OBSERVING) + RegisterSignal(ghost, COMSIG_ATOM_ORBITER_STOP, PROC_REF(on_mentor_observe_end), override = TRUE) + to_chat(src, "You have temporarily observed [target], either move or observe again to un-observe.") + log_admin("[key_name(src)] has mobserved out of their body to follow [target].") + else + log_admin("[key_name(src)] is aobserving [target].") + + + ghost.do_observe(target) + +/client/proc/on_mentor_observe_end(atom/movable/us, atom/movable/orbited) + SIGNAL_HANDLER // COMSIG_ATOM_ORBITER_STOP + if(!isobserver(mob)) + log_and_message_admins("A mentor somehow managed to end observing while not being a ghost. Please investigate and notify coders.") + return + var/mob/dead/observer/ghost = mob + + // just to be safe + ghost.cleanup_observe() + + REMOVE_TRAIT(mob.mind, TRAIT_MENTOR_OBSERVING, MENTOR_OBSERVING) + UnregisterSignal(mob, COMSIG_ATOM_ORBITER_STOP) + + if(!ghost.reenter_corpse()) + // tell everyone since this is kinda nasty. + log_debug("Mentor [key_name_mentor(src)] was unable to re-enter their body after mentor observing.") + log_and_message_admins("[key_name_mentor(src)] was unable to re-enter their body after mentor observing.") + to_chat(src, "Unable to return you to your body after mentor ghosting. If your body still exists, please contact a coder, and you should probably ahelp.") + /client/proc/invisimin() set name = "Invisimin" set category = "Admin" diff --git a/code/modules/admin/player_panel.dm b/code/modules/admin/player_panel.dm index ca98106ea1ba..3b33c7287136 100644 --- a/code/modules/admin/player_panel.dm +++ b/code/modules/admin/player_panel.dm @@ -86,7 +86,8 @@ body += "PM - " body += "SM - " body += "FLW - " - body += "ALERT" + body += "ALERT - " + body += "OBS" if(eyeUID) body += "|EYE" body += "
" diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index cdbce0a63d8c..ba2d9b6432ea 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1613,6 +1613,17 @@ show_player_panel(H) //H.regenerate_icons() + else if(href_list["adminobserve"]) + if(!check_rights(R_ADMIN|R_MOD|R_MENTOR)) + return + var/client/C = usr.client + var/mob/M = locateUID(href_list["adminobserve"]) + + if(!ismob(M)) + to_chat(usr, "This can only be used on instances of type /mob") + return + C.admin_observe_target(M) + else if(href_list["adminplayeropts"]) var/mob/M = locateUID(href_list["adminplayeropts"]) @@ -3586,3 +3597,5 @@ var/mob/dead/observer/O = target if(O.mind && O.mind.current) . += "|[ADMIN_FLW(O.mind.current,"BDY")]" + else if(ismob(target)) + . += "|[ADMIN_OBS(target, "OBS")]" diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index f094b4d96449..f45f123f57df 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -178,6 +178,7 @@ var/ping_link = check_rights(R_ADMIN, 0, mob) ? "(PING)" : "" var/ticket_link var/alert_link = check_rights(R_ADMIN, FALSE, mob) ? "(ALERT)" : "" + var/observe_link = check_rights(R_MENTOR, FALSE, mob) ? "([ADMIN_OBS(C, "OBS")])" : "" if(ticket_id != -1) if(message_type == MESSAGE_TYPE_MENTORPM) ticket_link = "(TICKET)" @@ -190,7 +191,7 @@ receive_window_link = ticket_link else if(message_type == MESSAGE_TYPE_ADMINPM && check_rights(R_ADMIN, 0, C.mob)) receive_window_link = ticket_link - receive_message = "[type] from-[receive_pm_type] [C.holder ? key_name(src, TRUE, type, ticket_id = ticket_id) : key_name_hidden(src, TRUE, type, ticket_id = ticket_id)]:

[emoji_msg][C.holder ? "
[ping_link] [receive_window_link] [alert_link]" : ""]
" + receive_message = "[type] from-[receive_pm_type] [C.holder ? key_name(src, TRUE, type, ticket_id = ticket_id) : key_name_hidden(src, TRUE, type, ticket_id = ticket_id)]:

[emoji_msg][C.holder ? "
[ping_link] [receive_window_link] [alert_link] [observe_link]" : ""]
" if(message_type == MESSAGE_TYPE_MENTORPM) receive_message = chat_box_mhelp(receive_message) else @@ -202,7 +203,7 @@ send_window_link = ticket_link else if(message_type == MESSAGE_TYPE_ADMINPM && check_rights(R_ADMIN, 0, mob)) send_window_link = ticket_link - var/send_message = "[send_pm_type][type] to-[holder ? key_name(C, TRUE, type, ticket_id = ticket_id) : key_name_hidden(C, TRUE, type, ticket_id = ticket_id)]:

[emoji_msg]

[ping_link] [send_window_link] [alert_link]" + var/send_message = "[send_pm_type][type] to-[holder ? key_name(C, TRUE, type, ticket_id = ticket_id) : key_name_hidden(C, TRUE, type, ticket_id = ticket_id)]:

[emoji_msg]

[ping_link] [send_window_link] [alert_link] [observe_link]" if(message_type == MESSAGE_TYPE_MENTORPM) send_message = chat_box_mhelp(send_message) else @@ -211,9 +212,9 @@ var/third_party_message if(message_type == MESSAGE_TYPE_MENTORPM) - third_party_message = chat_box_mhelp("[type]: [key_name(src, TRUE, type, ticket_id = ticket_id)]->[key_name(C, TRUE, type, ticket_id = ticket_id)]:

[emoji_msg]
[ping_link] [ticket_link] [alert_link]
") + third_party_message = chat_box_mhelp("[type]: [key_name(src, TRUE, type, ticket_id = ticket_id)]->[key_name(C, TRUE, type, ticket_id = ticket_id)]:

[emoji_msg]
[ping_link] [ticket_link] [alert_link] [observe_link]
") else - third_party_message = chat_box_ahelp("[type]: [key_name(src, TRUE, type, ticket_id = ticket_id)]->[key_name(C, TRUE, type, ticket_id = ticket_id)]:

[emoji_msg]
[ping_link] [ticket_link] [alert_link]
") + third_party_message = chat_box_ahelp("[type]: [key_name(src, TRUE, type, ticket_id = ticket_id)]->[key_name(C, TRUE, type, ticket_id = ticket_id)]:

[emoji_msg]
[ping_link] [ticket_link] [alert_link] [observe_link]
") //play the recieving admin the adminhelp sound (if they have them enabled) //non-admins always hear the sound, as they cannot toggle it diff --git a/code/modules/antagonists/changeling/datum_changeling.dm b/code/modules/antagonists/changeling/datum_changeling.dm index 5822374b983f..6ebc385db762 100644 --- a/code/modules/antagonists/changeling/datum_changeling.dm +++ b/code/modules/antagonists/changeling/datum_changeling.dm @@ -81,9 +81,9 @@ RESTRICT_TYPE(/datum/antagonist/changeling) /datum/antagonist/changeling/Destroy() SSticker.mode.changelings -= owner - chosen_sting = null QDEL_LIST_CONTENTS(acquired_powers) STOP_PROCESSING(SSobj, src) + chosen_sting = null return ..() /datum/antagonist/changeling/greet() diff --git a/code/modules/antagonists/changeling/powers/contort_body.dm b/code/modules/antagonists/changeling/powers/contort_body.dm index 8d8e611ee85f..fb6fa8252d75 100644 --- a/code/modules/antagonists/changeling/powers/contort_body.dm +++ b/code/modules/antagonists/changeling/powers/contort_body.dm @@ -8,20 +8,27 @@ category = /datum/changeling_power_category/utility /datum/action/changeling/contort_body/Remove(mob/M) - REMOVE_TRAIT(M, TRAIT_CONTORTED_BODY, CHANGELING_TRAIT) + deactivate() ..() /datum/action/changeling/contort_body/sting_action(mob/living/user) if(HAS_TRAIT_FROM(user, TRAIT_CONTORTED_BODY, CHANGELING_TRAIT)) - REMOVE_TRAIT(user, TRAIT_CONTORTED_BODY, CHANGELING_TRAIT) - to_chat(user, "Our body stiffens and returns to form.") - if(IS_HORIZONTAL(user)) - user.layer = initial(user.layer) - else - ADD_TRAIT(user, TRAIT_CONTORTED_BODY, CHANGELING_TRAIT) - to_chat(user, "We contort our form to allow us to fit in and under things we normally wouldn't be able to.") - if(IS_HORIZONTAL(user)) - user.layer = TURF_LAYER + 0.2 + deactivate(user) + return TRUE + + ADD_TRAIT(user, TRAIT_CONTORTED_BODY, CHANGELING_TRAIT) + RegisterSignal(user, COMSIG_MOB_DEATH, PROC_REF(deactivate)) + to_chat(user, "We contort our form to allow us to fit in and under things we normally wouldn't be able to.") + if(IS_HORIZONTAL(user)) + user.layer = TURF_LAYER + 0.2 SSblackbox.record_feedback("nested tally", "changeling_powers", 1, list("[name]")) return TRUE + +/datum/action/changeling/contort_body/proc/deactivate(mob/living/user) + REMOVE_TRAIT(user, TRAIT_CONTORTED_BODY, CHANGELING_TRAIT) + UnregisterSignal(user, COMSIG_MOB_DEATH) + if(IS_HORIZONTAL(user)) + user.layer = initial(user.layer) + to_chat(user, "Our body stiffens and returns to form.") + SSblackbox.record_feedback("nested tally", "changeling_powers", 1, list("[name]")) diff --git a/code/modules/antagonists/changeling/powers/mutations.dm b/code/modules/antagonists/changeling/powers/mutations.dm index 56a88a97e769..a4e28372cb0e 100644 --- a/code/modules/antagonists/changeling/powers/mutations.dm +++ b/code/modules/antagonists/changeling/powers/mutations.dm @@ -583,3 +583,48 @@ armor = list(MELEE = 40, BULLET = 40, LASER = 40, ENERGY = 20, BOMB = 10, RAD = 0, FIRE = 90, ACID = 90) flags_inv = HIDEEARS flags_cover = MASKCOVERSEYES | MASKCOVERSMOUTH + +// Bone Shard +/datum/action/changeling/weapon/bones + name = "Bone Shard" + desc = "We evolve the ability to break off shards of our bone and shape them into throwing weapons which embed into our foes. Costs 15 chemicals." + helptext = "The shards of bone will dull upon hitting a target, rendering them unusable as weapons." + button_icon_state = "boneshard" + chemical_cost = 15 + dna_cost = 3 + req_human = TRUE + weapon_type = /obj/item/throwing_star/boneshard + weapon_name_simple = "bone" + power_type = CHANGELING_PURCHASABLE_POWER + category = /datum/changeling_power_category/offence + +/obj/item/throwing_star/boneshard + name = "bone shard" + desc = "A serrated shard of bone laden with vicious barbs." + icon_state = "bone_star" + throwforce = 15 + embedded_fall_chance = 5 + embedded_impact_pain_multiplier = 3 + embedded_unsafe_removal_pain_multiplier = 6 + embedded_pain_chance = 10 + w_class = WEIGHT_CLASS_NORMAL + materials = list() + +/obj/item/throwing_star/boneshard/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum) + ..() + if(isliving(hit_atom)) + name = "bone fragment" + desc = "A dull shard of fractured bone. It has little use as a weapon." + throwforce = 0 + embed_chance = 0 + +/obj/item/throwing_star/boneshard/Initialize(mapload) + . = ..() + if(!iscarbon(loc)) + return + + var/mob/living/carbon/C = loc + C.throw_mode_on() + + playsound(loc, 'sound/effects/bone_break_1.ogg', 100, TRUE) + C.visible_message("Shards of bone grow through [C.name]'s palms and fall into [C.p_their()] hands!", "We expel shards of bone into our hands.", "You hear organic matter ripping and tearing!") diff --git a/code/modules/antagonists/changeling/powers/summon_spiders.dm b/code/modules/antagonists/changeling/powers/summon_spiders.dm index abbd67db1b46..b9e0b3e48525 100644 --- a/code/modules/antagonists/changeling/powers/summon_spiders.dm +++ b/code/modules/antagonists/changeling/powers/summon_spiders.dm @@ -5,18 +5,17 @@ /datum/action/changeling/spiders name = "Spread Infestation" - desc = "Our form divides, creating an aggressive arachnid which will regard us as a friend. Costs 45 chemicals." - helptext = "The spiders are thoughtless creatures, but will not attack their creators. Requires at least 7 stored DNA. Their orders can be changed via remote hivemind (Alt+Shift click)." + desc = "Our form divides, creating an aggressive arachnid which will regard us as a friend. Costs 30 chemicals." + helptext = "The spiders are thoughtless creatures, but will not attack their creators. Their orders can be changed via remote hivemind (Alt+Shift click)." button_icon_state = "spread_infestation" - chemical_cost = 45 + chemical_cost = 30 dna_cost = 4 - req_dna = 7 /// This var keeps track of the changeling's spider count var/spider_counter = 0 /// Checks if changeling is already spawning a spider var/is_operating = FALSE power_type = CHANGELING_PURCHASABLE_POWER - category = /datum/changeling_power_category/utility + category = /datum/changeling_power_category/offence /// Makes a spider. Good for setting traps and combat. /datum/action/changeling/spiders/sting_action(mob/user) diff --git a/code/modules/antagonists/changeling/powers/tiny_prick.dm b/code/modules/antagonists/changeling/powers/tiny_prick.dm index 044805cfe399..3e780ccd85fd 100644 --- a/code/modules/antagonists/changeling/powers/tiny_prick.dm +++ b/code/modules/antagonists/changeling/powers/tiny_prick.dm @@ -12,11 +12,9 @@ click_override = new(CALLBACK(src, PROC_REF(try_to_sting))) /datum/action/changeling/sting/Destroy(force, ...) - if(cling.owner.current && cling.owner.current.middleClickOverride == click_override) // this is a very scuffed way of doing this honestly - cling.owner.current.middleClickOverride = null QDEL_NULL(click_override) if(cling.chosen_sting == src) - cling.chosen_sting = null + unset_sting() return ..() /datum/action/changeling/sting/Trigger(left_click) @@ -25,6 +23,12 @@ else unset_sting() +/datum/action/changeling/sting/Remove(mob/remove_from) + . = ..() + // Check that cling exists because in certain scenarios, it may have been deleted in Destroy() first. + if(cling?.chosen_sting == src) + unset_sting() + /datum/action/changeling/sting/proc/set_sting() var/mob/living/user = owner to_chat(user, "We prepare our sting, use alt+click or middle mouse button on a target to sting them.") diff --git a/code/modules/atmospherics/machinery/components/binary_devices/binary_atmos_base.dm b/code/modules/atmospherics/machinery/components/binary_devices/binary_atmos_base.dm index 9ea2faff551b..bff72287926f 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/binary_atmos_base.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/binary_atmos_base.dm @@ -153,7 +153,3 @@ to_release.merge(air2.remove(shared_loss)) T.assume_air(to_release) air_update_turf(1) - -/obj/machinery/atmospherics/binary/process_atmos() - ..() - return parent1 && parent2 diff --git a/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm b/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm index f485d115db3b..41f09473a33e 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm @@ -39,7 +39,6 @@ add_underlay(T, node2, dir) /obj/machinery/atmospherics/binary/passive_gate/process_atmos() - ..() if(!on) return 0 diff --git a/code/modules/atmospherics/machinery/components/binary_devices/pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/pump.dm index 3171bcf40dac..5d335eab813e 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/pump.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/pump.dm @@ -72,7 +72,6 @@ Thus, the two variables affect pump operation are set in New(): add_underlay(T, node2, dir) /obj/machinery/atmospherics/binary/pump/process_atmos() - ..() if((stat & (NOPOWER|BROKEN)) || !on) return 0 diff --git a/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm index 4dbcc32e4635..cce6166a2232 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm @@ -68,7 +68,6 @@ Thus, the two variables affect pump operation are set in New(): add_underlay(T, node2, dir) /obj/machinery/atmospherics/binary/volume_pump/process_atmos() - ..() if((stat & (NOPOWER|BROKEN)) || !on) return 0 diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm index e90edf7cb6e1..2588b232fd74 100644 --- a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm +++ b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm @@ -94,7 +94,6 @@ update_icon() /obj/machinery/atmospherics/trinary/filter/process_atmos() - ..() if(!on) return FALSE diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm b/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm index 12d84586b9ca..6a714ae8262f 100644 --- a/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm +++ b/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm @@ -79,7 +79,6 @@ air3.volume = 300 /obj/machinery/atmospherics/trinary/mixer/process_atmos() - ..() if(!on) return 0 diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/trinary_base.dm b/code/modules/atmospherics/machinery/components/trinary_devices/trinary_base.dm index f39509482c88..afb1c014e53d 100644 --- a/code/modules/atmospherics/machinery/components/trinary_devices/trinary_base.dm +++ b/code/modules/atmospherics/machinery/components/trinary_devices/trinary_base.dm @@ -210,7 +210,3 @@ to_release.merge(air3.remove(shared_loss)) T.assume_air(to_release) air_update_turf(1) - -/obj/machinery/atmospherics/trinary/process_atmos() - ..() - return parent1 && parent2 && parent3 diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm index 0fac7c4668cf..a8e75f02e4a0 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm @@ -178,7 +178,6 @@ return TRUE /obj/machinery/atmospherics/unary/cryo_cell/process_atmos() - ..() if(!node || !on) return diff --git a/code/modules/atmospherics/machinery/components/unary_devices/heat_exchanger.dm b/code/modules/atmospherics/machinery/components/unary_devices/heat_exchanger.dm index 15ef6b5437c2..865dfc0baeaa 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/heat_exchanger.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/heat_exchanger.dm @@ -29,7 +29,6 @@ ..() /obj/machinery/atmospherics/unary/heat_exchanger/process_atmos() - ..() if(!partner) return 0 diff --git a/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm b/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm index d800dc799bb8..e7c6b839bd6a 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm @@ -54,8 +54,6 @@ GLOBAL_LIST_EMPTY(air_injectors) update_icon() /obj/machinery/atmospherics/unary/outlet_injector/process_atmos() - ..() - injecting = FALSE if(!on || stat & NOPOWER) diff --git a/code/modules/atmospherics/machinery/components/unary_devices/oxygen_generator.dm b/code/modules/atmospherics/machinery/components/unary_devices/oxygen_generator.dm index c043e75ff00e..5b8b3e33ae8c 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/oxygen_generator.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/oxygen_generator.dm @@ -25,7 +25,6 @@ air_contents.volume = 50 /obj/machinery/atmospherics/unary/oxygen_generator/process_atmos() - ..() if(!on) return 0 diff --git a/code/modules/atmospherics/machinery/components/unary_devices/passive_vent.dm b/code/modules/atmospherics/machinery/components/unary_devices/passive_vent.dm index 4468f0a662fc..1381b56d71e7 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/passive_vent.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/passive_vent.dm @@ -20,7 +20,6 @@ air_contents.volume = volume /obj/machinery/atmospherics/unary/passive_vent/process_atmos() - ..() if(!node) return 0 diff --git a/code/modules/atmospherics/machinery/components/unary_devices/portables_connector.dm b/code/modules/atmospherics/machinery/components/unary_devices/portables_connector.dm index b0e22bc88748..c3cfc1990b32 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/portables_connector.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/portables_connector.dm @@ -28,7 +28,6 @@ add_underlay(T, node, dir) /obj/machinery/atmospherics/unary/portables_connector/process_atmos() - ..() if(!connected_device) return 0 parent.update = 1 diff --git a/code/modules/atmospherics/machinery/components/unary_devices/thermal_plate.dm b/code/modules/atmospherics/machinery/components/unary_devices/thermal_plate.dm index 9d145894e521..633f40704ba8 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/thermal_plate.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/thermal_plate.dm @@ -18,8 +18,6 @@ icon_state = "[prefix]off" /obj/machinery/atmospherics/unary/thermal_plate/process_atmos() - ..() - var/datum/gas_mixture/environment = loc.return_air() //Get processable air sample and thermal info from environment diff --git a/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm b/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm index f3ae2426a672..03039a7212dd 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm @@ -93,7 +93,6 @@ /obj/machinery/atmospherics/unary/thermomachine/process_atmos() - ..() if(!on) return diff --git a/code/modules/atmospherics/machinery/components/unary_devices/unary_base.dm b/code/modules/atmospherics/machinery/components/unary_devices/unary_base.dm index 785c7538e7e1..a6d766a3c474 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/unary_base.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/unary_base.dm @@ -99,7 +99,3 @@ var/datum/gas_mixture/to_release = air_contents.remove(lost) T.assume_air(to_release) air_update_turf(1) - -/obj/machinery/atmospherics/unary/process_atmos() - ..() - return parent diff --git a/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm b/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm index cfa4bc99f71a..7ec85af21526 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm @@ -110,7 +110,6 @@ update_underlays() /obj/machinery/atmospherics/unary/vent_pump/process_atmos() - ..() if(stat & (NOPOWER|BROKEN)) return FALSE var/turf/T = loc diff --git a/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm b/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm index 7a61e3e142de..bc283f68098c 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm @@ -100,8 +100,6 @@ check_turfs() /obj/machinery/atmospherics/unary/vent_scrubber/process_atmos() - ..() - if(widenet) check_turfs() diff --git a/code/modules/atmospherics/machinery/other/meter.dm b/code/modules/atmospherics/machinery/other/meter.dm index a2cef4fc3f5e..1d8b54b81111 100644 --- a/code/modules/atmospherics/machinery/other/meter.dm +++ b/code/modules/atmospherics/machinery/other/meter.dm @@ -27,15 +27,6 @@ GLOBAL_LIST_EMPTY(gas_meters) return ..() /obj/machinery/atmospherics/meter/process_atmos() - if(!target || (stat & (BROKEN|NOPOWER))) - update_icon(UPDATE_ICON_STATE) - return - - var/datum/gas_mixture/environment = target.return_air() - if(!environment) - update_icon(UPDATE_ICON_STATE) - return - update_icon(UPDATE_ICON_STATE) /obj/machinery/atmospherics/meter/update_icon_state() diff --git a/code/modules/atmospherics/machinery/pipes/manifold.dm b/code/modules/atmospherics/machinery/pipes/manifold.dm index 46f9f70323c6..c8a59b5784c3 100644 --- a/code/modules/atmospherics/machinery/pipes/manifold.dm +++ b/code/modules/atmospherics/machinery/pipes/manifold.dm @@ -70,12 +70,6 @@ /obj/machinery/atmospherics/pipe/manifold/pipeline_expansion() return list(node1, node2, node3) -/obj/machinery/atmospherics/pipe/manifold/process_atmos() - if(!parent) - ..() - else - . = PROCESS_KILL - /obj/machinery/atmospherics/pipe/manifold/Destroy() . = ..() diff --git a/code/modules/atmospherics/machinery/pipes/manifold4w.dm b/code/modules/atmospherics/machinery/pipes/manifold4w.dm index 3d547129f5f5..000a6fb21900 100644 --- a/code/modules/atmospherics/machinery/pipes/manifold4w.dm +++ b/code/modules/atmospherics/machinery/pipes/manifold4w.dm @@ -28,12 +28,6 @@ /obj/machinery/atmospherics/pipe/manifold4w/pipeline_expansion() return list(node1, node2, node3, node4) -/obj/machinery/atmospherics/pipe/manifold4w/process_atmos() - if(!parent) - ..() - else - . = PROCESS_KILL - /obj/machinery/atmospherics/pipe/manifold4w/Destroy() . = ..() diff --git a/code/modules/awaymissions/loot.dm b/code/modules/awaymissions/loot.dm index faaeff82e9a4..a0a1b472b71b 100644 --- a/code/modules/awaymissions/loot.dm +++ b/code/modules/awaymissions/loot.dm @@ -22,4 +22,5 @@ continue new loot_path(get_turf(src)) - qdel(src) + + return INITIALIZE_HINT_QDEL diff --git a/code/modules/awaymissions/map_rng.dm b/code/modules/awaymissions/map_rng.dm deleted file mode 100644 index 598b46687f8b..000000000000 --- a/code/modules/awaymissions/map_rng.dm +++ /dev/null @@ -1,51 +0,0 @@ -/obj/effect/landmark/map_loader - name = "map loader" - icon = 'icons/mob/screen_gen.dmi' - icon_state = "x2" - invisibility = 101 - anchored = TRUE - density = FALSE - opacity = FALSE - var/template_name = null - var/datum/map_template/template = null - var/centered = 1 - var/loaded = 0 - -/obj/effect/landmark/map_loader/New(turf/loc, tname) - ..() - - if(tname) - template_name = tname - if(template_name) - template = GLOB.map_templates[template_name] - -/obj/effect/landmark/map_loader/Initialize() - . = ..() - if(template) - load(template) - -/obj/effect/landmark/map_loader/set_tag() - return - -/obj/effect/landmark/map_loader/proc/load(datum/map_template/t) - if(!t) - return - if(loaded) // I wanna be super sure this loads only once - return - loaded = 1 - var/turf/pos = get_turf(src) - // Hop to nullspace so we don't get re-initialized by the map we're loading - loc = null - t.load(pos, centered = centered) - t.loaded++ - qdel(src) - -/obj/effect/landmark/map_loader/random - var/template_list = "" - -/obj/effect/landmark/map_loader/random/Initialize() - ..() - if(template_list) - template_name = safepick(splittext(template_list, ";")) - template = GLOB.map_templates[template_name] - load(template) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 64b3c5045d55..73c0d726df41 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -1172,6 +1172,14 @@ else src << link(GLOB.configuration.system.region_map[choice]) +/client/proc/set_eye(new_eye) + if(new_eye == eye) + return + eye = new_eye + +/client/proc/clear_screen() + for(var/object in screen) + screen -= object /client/verb/reload_graphics() set category = "Special Verbs" diff --git a/code/modules/client/preference/character.dm b/code/modules/client/preference/character.dm index 998f1f3e5b4d..d7922d10205a 100644 --- a/code/modules/client/preference/character.dm +++ b/code/modules/client/preference/character.dm @@ -1188,15 +1188,17 @@ if(4) clothes_s.Blend(new /icon('icons/mob/clothing/back.dmi', "satchel"), ICON_OVERLAY) if(JOB_EXPLORER) - clothes_s = new /icon('icons/mob/clothing/under/color.dmi', "orange_s") - clothes_s.Blend(new /icon('icons/mob/clothing/feet.dmi', "workboots"), ICON_UNDERLAY) + clothes_s = new /icon('icons/mob/clothing/under/cargo.dmi', "expedition_s") + clothes_s.Blend(new /icon('icons/mob/clothing/feet.dmi', "jackboots"), ICON_UNDERLAY) clothes_s.Blend(new /icon('icons/mob/clothing/hands.dmi', "bgloves"), ICON_OVERLAY) has_gloves = TRUE + if(prob(1)) + clothes_s.Blend(new /icon('icons/mob/clothing/under/syndicate.dmi', "tactifool_s"), ICON_OVERLAY) switch(backbag) if(2) - clothes_s.Blend(new /icon('icons/mob/clothing/back.dmi', "backpack"), ICON_OVERLAY) + clothes_s.Blend(new /icon('icons/mob/clothing/back.dmi', "explorerpack"), ICON_OVERLAY) if(3) - clothes_s.Blend(new /icon('icons/mob/clothing/back.dmi', "satchel-norm"), ICON_OVERLAY) + clothes_s.Blend(new /icon('icons/mob/clothing/back.dmi', "satchel-explorer"), ICON_OVERLAY) if(4) clothes_s.Blend(new /icon('icons/mob/clothing/back.dmi', "satchel"), ICON_OVERLAY) else if(job_medsci_high) diff --git a/code/modules/client/preference/link_processing.dm b/code/modules/client/preference/link_processing.dm index 79d6d5f76941..961b6394074b 100644 --- a/code/modules/client/preference/link_processing.dm +++ b/code/modules/client/preference/link_processing.dm @@ -1048,9 +1048,6 @@ if("ghost_radio") toggles ^= PREFTOGGLE_CHAT_GHOSTRADIO - if(isobserver(user)) - var/mob/dead/observer/dead_dude = user - dead_dude.update_dead_radio() if("ghost_pda") toggles ^= PREFTOGGLE_CHAT_GHOSTPDA diff --git a/code/modules/client/preference/loadout/loadout_suit.dm b/code/modules/client/preference/loadout/loadout_suit.dm index 18e885696910..7cb34bf437e2 100644 --- a/code/modules/client/preference/loadout/loadout_suit.dm +++ b/code/modules/client/preference/loadout/loadout_suit.dm @@ -106,6 +106,11 @@ path = /obj/item/clothing/suit/jacket/miningbomber allowed_roles = list("Quartermaster", "Shaft Miner") +/datum/gear/suit/bomber/job/expedition + display_name = "Bomber jacket, expedition" + path = /obj/item/clothing/suit/jacket/expeditionbomber + allowed_roles = list("Quartermaster", "Explorer") + /datum/gear/suit/bomber/job/engi display_name = "Bomber jacket, engineering" path = /obj/item/clothing/suit/jacket/engibomber diff --git a/code/modules/client/preference/loadout/loadout_uniform.dm b/code/modules/client/preference/loadout/loadout_uniform.dm index 9cb82ab68951..abc10ea7ce3c 100644 --- a/code/modules/client/preference/loadout/loadout_uniform.dm +++ b/code/modules/client/preference/loadout/loadout_uniform.dm @@ -183,6 +183,11 @@ path = /obj/item/clothing/under/rank/cargo/tech/skirt allowed_roles = list("Quartermaster","Cargo Technician") +/datum/gear/uniform/skirt/job/expedition + display_name = "Skirt, expedition" + path = /obj/item/clothing/under/rank/cargo/expedition/skirt + allowed_roles = list("Quartermaster", "Explorer") + /datum/gear/uniform/skirt/job/qm display_name = "Skirt, quartermaster" path = /obj/item/clothing/under/rank/cargo/qm/skirt diff --git a/code/modules/client/preference/preferences.dm b/code/modules/client/preference/preferences.dm index e627e2d4d3bf..bb2816be5567 100644 --- a/code/modules/client/preference/preferences.dm +++ b/code/modules/client/preference/preferences.dm @@ -410,7 +410,7 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts dat += "Donator Publicity: [(toggles & PREFTOGGLE_DONATOR_PUBLIC) ? "Public" : "Hidden"]
" dat += "FPS: [clientfps]
" dat += "Ghost Ears: [(toggles & PREFTOGGLE_CHAT_GHOSTEARS) ? "All Speech" : "Nearest Creatures"]
" - dat += "Ghost Radio: [(toggles & PREFTOGGLE_CHAT_GHOSTRADIO) ? "All Chatter" : "No Chatter"]
" + dat += "Ghost Radio: [(toggles & PREFTOGGLE_CHAT_GHOSTRADIO) ? "All Chatter" : "Nearest Speakers"]
" dat += "Ghost Sight: [(toggles & PREFTOGGLE_CHAT_GHOSTSIGHT) ? "All Emotes" : "Nearest Creatures"]
" dat += "Ghost PDA: [(toggles & PREFTOGGLE_CHAT_GHOSTPDA) ? "All PDA Messages" : "No PDA Messages"]
" if(check_rights(R_ADMIN,0)) diff --git a/code/modules/client/preference/preferences_toggles.dm b/code/modules/client/preference/preferences_toggles.dm index c90cec523f04..541e55faba35 100644 --- a/code/modules/client/preference/preferences_toggles.dm +++ b/code/modules/client/preference/preferences_toggles.dm @@ -65,20 +65,14 @@ /datum/preference_toggle/toggle_ghost_radio name = "Toggle Ghost Radio" - description = "Toggle between hearing all radio chatter, or only from nobody" + description = "Toggle between hearing all radio chatter, or only from nearby speakers" preftoggle_bitflag = PREFTOGGLE_CHAT_GHOSTRADIO preftoggle_toggle = PREFTOGGLE_TOGGLE1 preftoggle_category = PREFTOGGLE_CATEGORY_GHOST - enable_message = "As a ghost, you will now hear all radio chat in the world." - disable_message = "As a ghost, you will now hear no radio chat." + enable_message = "As a ghost, you will now only hear from nearby speakers." + disable_message = "As a ghost, you will now hear all radio chat in the world." blackbox_message = "Toggle GhostRadio" -/datum/preference_toggle/toggle_ghost_radio/set_toggles(client/user) - . = ..() - if(isobserver(user.mob)) - var/mob/dead/observer/dead_dude = user.mob - dead_dude.update_dead_radio() - /datum/preference_toggle/toggle_admin_radio name = "Admin Radio" description = "Toggle seeing radiochatter from radios and speakers" diff --git a/code/modules/clothing/head/beret.dm b/code/modules/clothing/head/beret.dm index 01e350e42298..0cf008e5d5e8 100644 --- a/code/modules/clothing/head/beret.dm +++ b/code/modules/clothing/head/beret.dm @@ -156,6 +156,19 @@ "Drask" = 'icons/mob/clothing/species/drask/head/beret.dmi' ) +/obj/item/clothing/head/beret/expedition + name = "expedition beret" + desc = "A brown beret with a blue Nanotrasen insignia emblazoned on it. Not much good for space protection, but stylish all the same." + icon_state = "beret_expedition" + item_color = "beret_expedition" + armor = list(MELEE = 25, BULLET = 20, LASER = 20, ENERGY = 5, BOMB = 0, RAD = 0, FIRE = 10, ACID = 50) + strip_delay = 6 SECONDS + sprite_sheets = list( + "Vox" = 'icons/mob/clothing/species/vox/head/beret.dmi', + "Drask" = 'icons/mob/clothing/species/drask/head/beret.dmi' + ) + + //Special Roles /obj/item/clothing/head/beret/solgov/command name = "\improper Trans-Solar Federation Lieutenant's beret" diff --git a/code/modules/clothing/head/job_hats.dm b/code/modules/clothing/head/job_hats.dm index 1a8586919f08..31afd6835b53 100644 --- a/code/modules/clothing/head/job_hats.dm +++ b/code/modules/clothing/head/job_hats.dm @@ -194,4 +194,3 @@ desc = "A cap coroners wear during autopsies. Keeps their hair from falling into the cadavers. It is as dark as the coroner's humor." icon_state = "surgcap_black" dog_fashion = /datum/dog_fashion/head/surgery - diff --git a/code/modules/clothing/head/soft_caps.dm b/code/modules/clothing/head/soft_caps.dm index 976093af075a..d8388767e593 100644 --- a/code/modules/clothing/head/soft_caps.dm +++ b/code/modules/clothing/head/soft_caps.dm @@ -117,6 +117,16 @@ "Grey" = 'icons/mob/clothing/species/grey/head/softcap.dmi' ) +/obj/item/clothing/head/soft/expedition + name = "expedition cap" + desc = "It's a baseball hat in the brown and blue markings of the expedition team." + icon_state = "expeditionsoft" + item_color = "expedition" + armor = list(MELEE = 25, BULLET = 20, LASER = 20, ENERGY = 5, BOMB = 0, RAD = 0, FIRE = 10, ACID = 50) + sprite_sheets = list( + "Vox" = 'icons/mob/clothing/species/vox/head/softcap.dmi' + ) + /obj/item/clothing/head/soft/janitorgrey name = "grey janitor's cap" desc = "It's a grey baseball hat with a purple custodial shield." diff --git a/code/modules/clothing/spacesuits/plasmamen.dm b/code/modules/clothing/spacesuits/plasmamen.dm index 4519e320e1f4..461f780e99d2 100644 --- a/code/modules/clothing/spacesuits/plasmamen.dm +++ b/code/modules/clothing/spacesuits/plasmamen.dm @@ -187,6 +187,13 @@ item_state = "explorer_envirohelm" visor_icon = "explorer_envisor" +/obj/item/clothing/head/helmet/space/plasmaman/expedition + name = "expedition plasma envirosuit helmet" + desc = "A brown and blue helmet given to plasmaman explorers operating in Space.." + icon_state = "expedition_envirohelm" + item_state = "expedition_envirohelm" + armor = list(MELEE = 25, BULLET = 20, LASER = 20, ENERGY = 5, BOMB = 15, RAD = 0, FIRE = INFINITY, ACID = 150) + /obj/item/clothing/head/helmet/space/plasmaman/chaplain name = "chaplain's plasma envirosuit helmet" desc = "An envirohelmet specially designed for only the most pious of plasmamen." diff --git a/code/modules/clothing/suits/misc_suits.dm b/code/modules/clothing/suits/misc_suits.dm index 301c4c863146..0142f5257534 100644 --- a/code/modules/clothing/suits/misc_suits.dm +++ b/code/modules/clothing/suits/misc_suits.dm @@ -305,10 +305,63 @@ icon_state = "carp_casual" body_parts_covered = HEAD cold_protection = HEAD - min_cold_protection_temperature = FIRE_SUIT_MIN_TEMP_PROTECT + min_cold_protection_temperature = FIRE_HELM_MIN_TEMP_PROTECT flags = BLOCKHAIR flags_inv = HIDEEARS +/obj/item/clothing/suit/hooded/carp_costume/dragon + name = "space carp poncho" + desc = "A poncho fashioned from the scales of a corrupted space carp, it still smells." + armor = list(MELEE = 30, BULLET = 15, LASER = 15, ENERGY = 15, BOMB = 15, RAD = 15, FIRE = INFINITY, ACID = INFINITY) + body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS|LEGS + cold_protection = UPPER_TORSO|LOWER_TORSO|ARMS|LEGS|HANDS|FEET + flags = STOPSPRESSUREDMAGE + min_cold_protection_temperature = SPACE_SUIT_MIN_TEMP_PROTECT + hoodtype = /obj/item/clothing/head/hooded/carp_hood/dragon + +/obj/item/clothing/suit/hooded/carp_costume/dragon/equipped(mob/user, slot, initial) + . = ..() + if(slot == SLOT_HUD_OUTER_SUIT) + user.faction += "carp" + to_chat(user, "You feel a something gnash in the back of your mind- the carp are your friends, not your foe.") + playsound(loc, 'sound/weapons/bite.ogg', 35, TRUE) + +/obj/item/clothing/suit/hooded/carp_costume/dragon/dropped(mob/user) + . = ..() + if(user) + user.faction -= "carp" + to_chat(user, "A sudden calm fills the gnashing void of your mind- you're alone now.") + +/mob/living/carbon/human/Process_Spacemove(movement_dir = 0) + if(..()) + return TRUE + + if(istype(wear_suit, /obj/item/clothing/suit/hooded/carp_costume/dragon)) + return TRUE + //Do we have a working jetpack? + var/obj/item/tank/jetpack/thrust + if(istype(back, /obj/item/tank/jetpack)) + thrust = back + else if(istype(wear_suit, /obj/item/clothing/suit/space/hardsuit)) + var/obj/item/clothing/suit/space/hardsuit/C = wear_suit + thrust = C.jetpack + else if(ismodcontrol(back)) + var/obj/item/mod/control/C = back + thrust = locate(/obj/item/mod/module/jetpack) in C + if(thrust) + if((movement_dir || thrust.stabilizers) && thrust.allow_thrust(0.01, src)) + return TRUE + if(dna.species.spec_Process_Spacemove(src)) + return TRUE + return FALSE + +/obj/item/clothing/head/hooded/carp_hood/dragon + name = "space carp hood" + desc = "Fashioned from the maw of a carp, this outfit makes you feel like a fish out of water." + armor = list(MELEE = 55, BULLET = 15, LASER = 15, ENERGY = 15, BOMB = 15, RAD = 15, FIRE = INFINITY, ACID = INFINITY) + flags = STOPSPRESSUREDMAGE + min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT + /obj/item/clothing/suit/hooded/salmon_costume name = "salmon suit" desc = "A costume made from authentic salmon scales, it reeks!" @@ -929,6 +982,13 @@ allowed = list(/obj/item/pickaxe, /obj/item/t_scanner/adv_mining_scanner, /obj/item/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/toy, /obj/item/storage/fancy/cigarettes, /obj/item/lighter, /obj/item/gun/energy/kinetic_accelerator, /obj/item/shovel, /obj/item/storage/bag/ore) armor = list(MELEE = 5, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, RAD = 0, FIRE = 0, ACID = 0) +/obj/item/clothing/suit/jacket/expeditionbomber + name = "expedition bomber jacket" + desc = "A stylish jacket for station-side explorers. Won't do much to protect you from space." + icon_state = "bomberexpedition" + item_state = "bomberexpedition" + allowed = list(/obj/item/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/toy, /obj/item/storage/fancy/cigarettes, /obj/item/lighter, /obj/item/gun/energy/kinetic_accelerator, /obj/item/t_scanner/adv_mining_scanner, /obj/item/shovel, /obj/item/pickaxe, /obj/item/storage/bag/ore, /obj/item/gps) + /obj/item/clothing/suit/jacket/hydrobomber name = "hydroponics bomber jacket" desc = "A stylish choice for the workers of the hydroponics lab." diff --git a/code/modules/clothing/under/jobs/cargo.dm b/code/modules/clothing/under/jobs/cargo.dm index 95830f869521..95e73e589d84 100644 --- a/code/modules/clothing/under/jobs/cargo.dm +++ b/code/modules/clothing/under/jobs/cargo.dm @@ -77,3 +77,25 @@ icon_state = "explorer" item_state = "explorer" item_color = "explorer" + +/obj/item/clothing/under/rank/cargo/expedition + name = "expedition jumpsuit" + desc = "An armored brown jumpsuit with Nanotrasen markings for identification, and a black safety harness for their space suits." + armor = list(MELEE = 5, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, RAD = 0, FIRE = 20, ACID = 20) + icon_state = "expedition" + item_state = "expedition" + item_color = "expedition" + +/obj/item/clothing/under/rank/cargo/expedition/skirt + name = "expedition jumpskirt" + desc = "An armoured brown jumpskirt with Nanotrasen markings for identification, and a black safety harness for their space suits." + icon_state = "expedition_skirt" + item_state = "expedition_skirt" + item_color = "expedition_skirt" + +/obj/item/clothing/under/rank/cargo/expedition/overalls + name = "expedition overalls" + desc = "A black set of overalls over a brown turtleneck, designed to protect the wearer from microscopic space debris. Does not protect against larger objects." + icon_state = "expedition_overalls" + item_state = "expedition_overalls" + item_color = "expedition_overalls" diff --git a/code/modules/clothing/under/jobs/plasmamen/civilian_service.dm b/code/modules/clothing/under/jobs/plasmamen/civilian_service.dm index 82b2ddf1f2ef..b1be1bbd757a 100644 --- a/code/modules/clothing/under/jobs/plasmamen/civilian_service.dm +++ b/code/modules/clothing/under/jobs/plasmamen/civilian_service.dm @@ -5,6 +5,13 @@ item_state = "cargo_envirosuit" item_color = "cargo_envirosuit" +/obj/item/clothing/under/plasmaman/expedition + name = "expedition envirosuit" + desc = "An airtight brown and blue suit designed for operations in Space by plasmamen.." + icon_state = "expedition_envirosuit" + item_state = "expedition_envirosuit" + item_color = "expedition_envirosuit" + /obj/item/clothing/under/plasmaman/mining name = "mining plasma envirosuit" desc = "An airtight khaki suit designed for operations on Lavaland by plasmamen." diff --git a/code/modules/events/anomaly_bluespace.dm b/code/modules/events/anomaly_bluespace.dm index 1543a022907a..bd66bfe41971 100644 --- a/code/modules/events/anomaly_bluespace.dm +++ b/code/modules/events/anomaly_bluespace.dm @@ -1,5 +1,5 @@ /datum/event/anomaly/anomaly_bluespace - name = "Anomaly: Bluespace" + name = "Anomaly event" startWhen = 3 announceWhen = 10 anomaly_path = /obj/effect/anomaly/bluespace diff --git a/code/modules/events/anomaly_cryo.dm b/code/modules/events/anomaly_cryo.dm index ddfbb9b4a596..892e0835c8d4 100644 --- a/code/modules/events/anomaly_cryo.dm +++ b/code/modules/events/anomaly_cryo.dm @@ -1,5 +1,5 @@ /datum/event/anomaly/anomaly_cryo - name = "Anomaly: Cryogenic" + name = "Anomaly event" startWhen = 3 announceWhen = 10 anomaly_path = /obj/effect/anomaly/cryo diff --git a/code/modules/events/anomaly_flux.dm b/code/modules/events/anomaly_flux.dm index 553f43b569df..41155a8c0867 100644 --- a/code/modules/events/anomaly_flux.dm +++ b/code/modules/events/anomaly_flux.dm @@ -1,5 +1,5 @@ /datum/event/anomaly/anomaly_flux - name = "Anomaly: Hyper-Energetic Flux" + name = "Anomaly event" startWhen = 10 announceWhen = 3 anomaly_path = /obj/effect/anomaly/flux diff --git a/code/modules/events/anomaly_grav.dm b/code/modules/events/anomaly_grav.dm index d4291d253898..e1e4aea4b182 100644 --- a/code/modules/events/anomaly_grav.dm +++ b/code/modules/events/anomaly_grav.dm @@ -1,5 +1,5 @@ /datum/event/anomaly/anomaly_grav - name = "Anomaly: Gravitational" + name = "Anomaly event" startWhen = 3 announceWhen = 20 anomaly_path = /obj/effect/anomaly/grav diff --git a/code/modules/events/anomaly_pyro.dm b/code/modules/events/anomaly_pyro.dm index f3270a8dbfbf..050195391c88 100644 --- a/code/modules/events/anomaly_pyro.dm +++ b/code/modules/events/anomaly_pyro.dm @@ -1,5 +1,5 @@ /datum/event/anomaly/anomaly_pyro - name = "Anomaly: Pyroclastic" + name = "Anomaly event" startWhen = 3 announceWhen = 10 anomaly_path = /obj/effect/anomaly/pyro diff --git a/code/modules/events/anomaly_vortex.dm b/code/modules/events/anomaly_vortex.dm index 26a26594fcf5..37e54930da6d 100644 --- a/code/modules/events/anomaly_vortex.dm +++ b/code/modules/events/anomaly_vortex.dm @@ -1,5 +1,5 @@ /datum/event/anomaly/anomaly_vortex - name = "Anomaly: Vortex" + name = "Anomaly event" startWhen = 10 announceWhen = 3 anomaly_path = /obj/effect/anomaly/bhole diff --git a/code/modules/hydroponics/compost_bin.dm b/code/modules/hydroponics/compost_bin.dm index 50ff4c918da7..ecb796857bac 100644 --- a/code/modules/hydroponics/compost_bin.dm +++ b/code/modules/hydroponics/compost_bin.dm @@ -1,6 +1,10 @@ #define SOIL_COST 25 #define DECAY 0.2 #define MIN_CONVERSION 10 +#define BIOMASS_POTASH_RATIO 6 +#define BIOMASS_POTASSIUM_RATIO 8 +#define POTASH_SALPETRE_MULT 2 + /** * # compost bin * used to make soil from plants. @@ -20,10 +24,20 @@ var/biomass = 0 /// amount of compost in the compost bin var/compost = 0 + /// amount of potassium in the compost bin + var/potassium = 0 + /// amount of potash in the compost bin + var/potash = 0 + /// amount of saltpetre in the compost bin + var/saltpetre = 0 /// The maximum amount of biomass the compost bin can store. var/biomass_capacity = 1500 /// The maximum amount of compost the compost bin can store. var/compost_capacity = 1500 + /// The maximum amount of potassium the compost bin can store. + var/potassium_capacity = 200 + /// The maximum amount of potash the compost bin can store. + var/potash_capacity = 500 /obj/machinery/compost_bin/on_deconstruction() // returns wood instead of the non-existent components @@ -39,11 +53,15 @@ // no panel either return default_deconstruction_crowbar(user, I, ignore_panel = TRUE) -// Accepts inserted plants and converts them to biomass +// Accepts inserted plants and converts them to biomass and potassium /obj/machinery/compost_bin/proc/make_biomass(obj/item/food/snacks/grown/O) // calculate biomass from plant nutriment and plant matter var/plant_biomass = O.reagents.get_reagent_amount("nutriment") + O.reagents.get_reagent_amount("plantmatter") - biomass += clamp(plant_biomass * 10, 1, biomass_capacity - biomass) + var/plant_potassium = O.reagents.get_reagent_amount("potassium") + var/plant_potash = O.reagents.get_reagent_amount("ash") + biomass += min(max(plant_biomass * 10, 1), biomass_capacity - biomass) + potassium += min(potassium_capacity - potassium, plant_potassium) + potash += min(potash_capacity - potash, plant_potash) //plant delenda est qdel(O) @@ -53,30 +71,37 @@ return ..() if(istype(O, /obj/item/storage/bag/plants)) - if(biomass >= biomass_capacity) - to_chat(user, "[src] can't hold any more biomass!") + if(biomass >= biomass_capacity && potassium >= potassium_capacity) + to_chat(user, "[src] can't hold any more biomass, and it's contents are saturated with potassium!") return var/obj/item/storage/bag/plants/PB = O for(var/obj/item/food/snacks/grown/G in PB.contents) + // if the plant contains either potassium, plantmatter and nutriment and the compost bin has space for any of those. + if((G.reagents.get_reagent_amount("potassium") && potassium <= potassium_capacity) || ((G.reagents.get_reagent_amount("plantmatter") || G.reagents.get_reagent_amount("nutriment")) && biomass <= biomass_capacity)) + PB.remove_from_storage(G, src) + make_biomass(G) - PB.remove_from_storage(G, src) - make_biomass(G) - - if(biomass >= biomass_capacity) - to_chat(user, "You fill [src] to its capacity.") + if(biomass >= biomass_capacity && potassium >= potassium_capacity) break - if(biomass < biomass_capacity) + if(biomass >= biomass_capacity) + to_chat(user, "You fill [src] to its capacity.") + else to_chat(user, "You empty [PB] into [src].") + if(potassium == potassium_capacity) + to_chat(user, "You have saturated the contents of [src] with potassium.") + else if(potassium >= potassium_capacity * 0.95) + to_chat(user, "You have very nearly saturated the contents of [src] with potassium.") + SStgui.update_uis(src) update_icon_state() return TRUE if(istype(O, /obj/item/food/snacks/grown)) - if(biomass >= biomass_capacity) - to_chat(user, "[src] can't hold any more plants!") + if(biomass >= biomass_capacity && potassium >= potassium_capacity) + to_chat(user, "[src] can't hold any more biomass, and its contents are saturated with potassium!") return if(!user.unEquip(O)) return @@ -87,20 +112,92 @@ SStgui.update_uis(src) update_icon_state() return TRUE + if(istype(O, /obj/item/reagent_containers)) + var/proportion = 0 + var/obj/item/reagent_containers/B = O + if(B.reagents.total_volume <= 0) + to_chat(user, "[B] is empty!") + return + if(potassium >= potassium_capacity && potash >= potash_capacity) + to_chat(user, "The contents of [src] are saturated with potassium and it cannot hold more potash!") + return + // Won't pour in more than the amount of potassium that can be accepted, even if the beaker is not filled with pure potassium. + proportion = min(min(B.reagents.total_volume, B.amount_per_transfer_from_this), potassium_capacity - potassium) / B.reagents.total_volume + + // Since the character may not know what's in the beaker, I'm assuming it is assuming the beaker is full of pure potassium and pours according to that. + for(var/E in B.reagents.reagent_list) + var/datum/reagent/R = E + switch(R.id) + if("potassium") + potassium += min(R.volume * proportion, potassium_capacity - potassium) + if("ash") + potash += min(R.volume * proportion, potash_capacity - potash) + if("nutriment") + biomass += min(R.volume * proportion, biomass_capacity - biomass) + if("plantmatter") + biomass += min(R.volume * proportion, biomass_capacity - biomass) + + B.reagents.remove_reagent(R.id, R.volume * proportion) + + if(proportion == 1) + to_chat(user, "You empty [B] into [src].") + else + to_chat(user, "You pour some of [B] into [src].") + if(potassium == potassium_capacity) + to_chat(user, "You have saturated the contents of [src] with potassium.") + else if(potassium >= potassium_capacity * 0.95) + to_chat(user, "You have very nearly saturated the contents of [src] with potassium.") + + if(potash == potash_capacity) + to_chat(user, "[src] has been filled with potash.") + else if(potash >= potash_capacity * 0.95) + to_chat(user, "[src] has been nearly filled with potash.") + + SStgui.update_uis(src) + update_icon_state() + + return TRUE - to_chat(user, "You cannot put this in [name]!") + to_chat(user, "You cannot put this in [src]!") //Compost compostable material if there is any /obj/machinery/compost_bin/process() - if(compost >= compost_capacity || biomass <= 0) + if((compost >= compost_capacity && potassium <= 0) || biomass <= 0) return process_counter++ if(process_counter < 5) return process_counter = 0 - //converts 20% of the biomass to compost each cycle, unless there isn't enough compost space or there is 10 or less biomass - var/conversion_amount = clamp(DECAY * biomass, min(MIN_CONVERSION, biomass), compost_capacity - compost) - biomass -= conversion_amount + //Converts up to 20% of the biomass to compost each cycle, minimum of 10 converted. + //In the presence of potassium will create saltpetre crystals instead. Using at most the amount of biomass that would've been used for compost + //And making compost from whatever part of that amount it didn't use. + var/conversion_amount = max(DECAY * biomass, min(MIN_CONVERSION, biomass)) + var/potash_saltpetre_conversion = 0 + var/potassium_saltpetre_conversion = 0 + var/used_potassium = 0 + var/used_potash = 0 + + if(potash > 0) + potash_saltpetre_conversion = min(conversion_amount, potash * BIOMASS_POTASH_RATIO) + used_potash = potash_saltpetre_conversion / BIOMASS_POTASH_RATIO + saltpetre += used_potash * POTASH_SALPETRE_MULT + conversion_amount -= potash_saltpetre_conversion + potash -= used_potash + + if(potassium > 0) + potassium_saltpetre_conversion = min(conversion_amount, potassium * BIOMASS_POTASSIUM_RATIO) + used_potassium = potassium_saltpetre_conversion / BIOMASS_POTASSIUM_RATIO + saltpetre += used_potassium + conversion_amount -= potassium_saltpetre_conversion + potassium -= used_potassium + + if(saltpetre / 4 >= 1) + new /obj/item/stack/sheet/saltpetre_crystal(loc, round(saltpetre / 4)) + saltpetre -= round(saltpetre) + + conversion_amount = min(conversion_amount, compost_capacity - compost) + + biomass -= conversion_amount + potash_saltpetre_conversion + potassium_saltpetre_conversion compost += conversion_amount update_icon_state() SStgui.update_uis(src) @@ -134,6 +231,10 @@ data["biomass_capacity"] = biomass_capacity data["compost"] = compost data["compost_capacity"] = compost_capacity + data["potassium"] = potassium + data["potassium_capacity"] = potassium_capacity + data["potash"] = potash + data["potash_capacity"] = potash_capacity return data // calls functions according to ui interaction(just making compost for now) @@ -161,3 +262,6 @@ #undef SOIL_COST #undef DECAY #undef MIN_CONVERSION +#undef BIOMASS_POTASH_RATIO +#undef BIOMASS_POTASSIUM_RATIO +#undef POTASH_SALPETRE_MULT diff --git a/code/modules/library/book.dm b/code/modules/library/book.dm index 5fb95c5811d4..02316f5a95c6 100644 --- a/code/modules/library/book.dm +++ b/code/modules/library/book.dm @@ -361,7 +361,7 @@ /obj/item/book/random/Initialize() ..() - var/list/books = GLOB.library_catalog.get_random_book(amount) + var/list/books = GLOB.library_catalog.get_random_book(amount, FALSE) for(var/datum/cachedbook/book as anything in books) new /obj/item/book(loc, book, TRUE, FALSE) return INITIALIZE_HINT_QDEL diff --git a/code/modules/library/library_catalog.dm b/code/modules/library/library_catalog.dm index 6e351833ee9c..84f097eeea82 100644 --- a/code/modules/library/library_catalog.dm +++ b/code/modules/library/library_catalog.dm @@ -309,13 +309,13 @@ * Arguments: * * datum/library_user_data/search_terms - datum with parameters for what we want to query our DB for */ -/datum/library_catalog/proc/get_total_books(datum/library_user_data/search_terms) +/datum/library_catalog/proc/get_total_books(datum/library_user_data/search_terms, async = TRUE) var/list/search_query = build_search_query(search_terms) var/sql = "SELECT COUNT(id) FROM library" + search_query[1] var/list/sql_params = search_query[2] var/datum/db_query/count_query = SSdbcore.NewQuery(sql, sql_params) - if(!count_query.warn_execute()) + if(!count_query.warn_execute(async)) qdel(count_query) return diff --git a/code/modules/library/library_computer.dm b/code/modules/library/library_computer.dm index 9e9741d1c788..02412fd6a048 100644 --- a/code/modules/library/library_computer.dm +++ b/code/modules/library/library_computer.dm @@ -558,13 +558,13 @@ book_data["categories"] += book_category.description //we're displaying the cats onlys, so we don't need the ids cached_booklist += list(book_data) - num_pages = getmaxpages() + num_pages = getmaxpages(async) archive_page_num = clamp(archive_page_num, 1, num_pages) ///Returns the amount of pages we will need to hold all the book our DB has found -/obj/machinery/computer/library/proc/getmaxpages() +/obj/machinery/computer/library/proc/getmaxpages(async = TRUE) //if get_total_books doesn't return anything, just set pages to 1 so we don't break stuff - var/book_count = max(1, GLOB.library_catalog.get_total_books(user_data)) + var/book_count = max(1, GLOB.library_catalog.get_total_books(user_data, async)) var/page_count = round(book_count / LIBRARY_BOOKS_PER_PAGE) //Since 'round' gets the floor value it's likely there will be 1 page more than //the page count amount (almost guaranteed), we check for a remainder because of this diff --git a/code/modules/mapping/access_helpers.dm b/code/modules/mapping/access_helpers.dm index 819125630bca..060f4a652611 100644 --- a/code/modules/mapping/access_helpers.dm +++ b/code/modules/mapping/access_helpers.dm @@ -40,7 +40,7 @@ /obj/effect/mapping_helpers/airlock/access/any/command/eva access = ACCESS_EVA -/obj/effect/mapping_helpers/airlock/access/any/command/expedition +/obj/effect/mapping_helpers/airlock/access/any/supply/expedition access = ACCESS_EXPEDITION /obj/effect/mapping_helpers/airlock/access/any/command/hop @@ -259,7 +259,7 @@ /obj/effect/mapping_helpers/airlock/access/all/command/eva access = ACCESS_EVA -/obj/effect/mapping_helpers/airlock/access/all/command/expedition +/obj/effect/mapping_helpers/airlock/access/all/supply/expedition access = ACCESS_EXPEDITION /obj/effect/mapping_helpers/airlock/access/all/command/hop diff --git a/code/modules/mapping/mapping_helpers.dm b/code/modules/mapping/mapping_helpers.dm index b0abf7093719..f003c6ecfc27 100644 --- a/code/modules/mapping/mapping_helpers.dm +++ b/code/modules/mapping/mapping_helpers.dm @@ -66,7 +66,7 @@ /obj/effect/mapping_helpers/Initialize(mapload) ..() - return late ? INITIALIZE_HINT_LATELOAD : qdel(src) // INITIALIZE_HINT_QDEL <-- Doesn't work + return late ? INITIALIZE_HINT_LATELOAD : INITIALIZE_HINT_QDEL /obj/effect/mapping_helpers/no_lava icon_state = "no_lava" diff --git a/code/modules/mapping/windoor_access_helpers.dm b/code/modules/mapping/windoor_access_helpers.dm index 015eebf685ef..b9db5e371006 100644 --- a/code/modules/mapping/windoor_access_helpers.dm +++ b/code/modules/mapping/windoor_access_helpers.dm @@ -53,7 +53,7 @@ /obj/effect/mapping_helpers/airlock/windoor/access/any/command/eva access = ACCESS_EVA -/obj/effect/mapping_helpers/airlock/windoor/access/any/command/expedition +/obj/effect/mapping_helpers/airlock/windoor/access/any/supply/expedition access = ACCESS_EXPEDITION /obj/effect/mapping_helpers/airlock/windoor/access/any/command/hop @@ -262,7 +262,7 @@ /obj/effect/mapping_helpers/airlock/windoor/access/all/command/eva access = ACCESS_EVA -/obj/effect/mapping_helpers/airlock/windoor/access/all/command/expedition +/obj/effect/mapping_helpers/airlock/windoor/access/all/supply/expedition access = ACCESS_EXPEDITION /obj/effect/mapping_helpers/airlock/windoor/access/all/command/hop diff --git a/code/modules/maze_generation/maze_generator.dm b/code/modules/maze_generation/maze_generator.dm index 04b72a6aca4a..447017b4aa40 100644 --- a/code/modules/maze_generation/maze_generator.dm +++ b/code/modules/maze_generation/maze_generator.dm @@ -64,7 +64,6 @@ LOG_MAZE_PROGRESS(calculate_loot_spots(), "Loot Spot Calculation") LOG_MAZE_PROGRESS(apply_loot_modules(), "Loot Modules") log_debug("\[MAZE] Generation of maze at [x],[y],[z] complete within [stop_watch(total_time)]s") - qdel(src) /obj/effect/mazegen/generator/proc/generate_path() // Setup our turf list diff --git a/code/modules/mining/equipment/survival_pod.dm b/code/modules/mining/equipment/survival_pod.dm index 49f7bbec1f1a..94afc18e880b 100644 --- a/code/modules/mining/equipment/survival_pod.dm +++ b/code/modules/mining/equipment/survival_pod.dm @@ -263,7 +263,7 @@ var/buildstackamount = 5 /obj/structure/fans/Initialize(loc) - ..() + . = ..() air_update_turf(1) /obj/structure/fans/Destroy() diff --git a/code/modules/mining/machine_vending.dm b/code/modules/mining/machine_vending.dm index ba69109c4733..3146e6f2a214 100644 --- a/code/modules/mining/machine_vending.dm +++ b/code/modules/mining/machine_vending.dm @@ -370,6 +370,103 @@ EQUIPMENT("Analyzer", /obj/item/analyzer, 50) ) +/**********************Mining Equipment Vendor (Explorer)**************************/ + +/obj/machinery/mineral/equipment_vendor/explorer + name = "explorer equipment vendor" + desc = "An equipment vendor for explorers, points collected at an ore redemption machine can be spent here." + icon_state = "explorer" + +/obj/machinery/mineral/equipment_vendor/explorer/Initialize(mapload) + . = ..() + component_parts = list() + component_parts += new /obj/item/circuitboard/mining_equipment_vendor/explorer(null) + component_parts += new /obj/item/stock_parts/matter_bin(null) + component_parts += new /obj/item/stock_parts/matter_bin(null) + component_parts += new /obj/item/stock_parts/matter_bin(null) + component_parts += new /obj/item/stack/sheet/glass(null) + RefreshParts() + +/obj/machinery/mineral/equipment_vendor/explorer/Initialize(mapload) + . = ..() + prize_list = list() + prize_list["Equipment"] = list( + EQUIPMENT("Advanced Scanner", /obj/item/t_scanner/adv_mining_scanner, 800), + EQUIPMENT("Tacticool Toolbelt", /obj/item/storage/belt/utility/expedition, 500), + EQUIPMENT("Fulton Beacon", /obj/item/fulton_core, 400), + EQUIPMENT("GPS", /obj/item/gps, 200), + EQUIPMENT("Treasure Satchel", /obj/item/storage/bag/expedition, 100), + EQUIPMENT ("Robust Treasure Satchel", /obj/item/storage/bag/expedition/robust, 300), + EQUIPMENT("Tracking Bio-chip Kit", /obj/item/storage/box/minertracker, 600), + EQUIPMENT("Telecommunications Relay Kit", /obj/item/storage/box/relay_kit, 500), + EQUIPMENT("Tracking Beacon", /obj/item/radio/beacon, 200), + ) + prize_list["Modsuits"] = list( + EQUIPMENT("Standard MODsuit", /obj/item/mod/control/pre_equipped/standard/explorer, 1000), + EQUIPMENT("Advanced Jetpack Module", /obj/item/mod/module/jetpack/advanced, 2000), + EQUIPMENT("Night Vision Module", /obj/item/mod/module/visor/night, 1500), + EQUIPMENT("Clamp Module", /obj/item/mod/module/clamp, 500), + EQUIPMENT("GPS Module", /obj/item/mod/module/gps, 500), + EQUIPMENT("Mining MODsuit", /obj/item/mod/control/pre_equipped/mining/vendor, 3500), + EQUIPMENT("Asteroid MODsuit Skin", /obj/item/mod/skin_applier/asteroid, 1000), + ) + + prize_list["Consumables"] = list( + EQUIPMENT("First-Aid Kit", /obj/item/storage/firstaid/regular, 400), + EQUIPMENT("Advanced First-Aid Kit", /obj/item/storage/firstaid/adv, 600), + EQUIPMENT("Fulton Pack", /obj/item/extraction_pack, 1000), + EQUIPMENT("Point Transfer Card", /obj/item/card/mining_point_card, 500), + EQUIPMENT("Stabilizing Serum", /obj/item/hivelordstabilizer, 400), + ) + + prize_list["Kinetic Accelerator"] = list( + EQUIPMENT("Kinetic Pistol", /obj/item/gun/energy/kinetic_accelerator/pistol, 750), + EQUIPMENT("KA Adjustable Tracer Rounds", /obj/item/borg/upgrade/modkit/tracer/adjustable, 150), + EQUIPMENT("KA AoE Damage", /obj/item/borg/upgrade/modkit/aoe/mobs, 2000), + EQUIPMENT("KA Cooldown Decrease", /obj/item/borg/upgrade/modkit/cooldown, 1000), + EQUIPMENT("KA Damage Increase", /obj/item/borg/upgrade/modkit/damage, 1000), + EQUIPMENT("KA Hyper Chassis", /obj/item/borg/upgrade/modkit/chassis_mod/orange, 300), + EQUIPMENT("KA Range Increase", /obj/item/borg/upgrade/modkit/range, 1000), + EQUIPMENT("KA Super Chassis", /obj/item/borg/upgrade/modkit/chassis_mod, 250), + EQUIPMENT("KA White Tracer Rounds", /obj/item/borg/upgrade/modkit/tracer, 100), + ) + + prize_list["Miscellaneous"] = list( + EQUIPMENT("Alien Toy", /obj/item/clothing/mask/facehugger/toy, 300), + EQUIPMENT("Toy Sword", /obj/item/toy/sword, 200), + EQUIPMENT("Cigar", /obj/item/clothing/mask/cigarette/cigar/havana, 150), + EQUIPMENT("Laser Pointer", /obj/item/laser_pointer, 300), + EQUIPMENT("Suspicious ID Sticker", /obj/item/id_decal/emag, 400), + EQUIPMENT("Syndicate Coin", /obj/item/coin/antagtoken/syndicate, 100), + EQUIPMENT("Space Cash", /obj/item/stack/spacecash/c200, 2000), + ) + +/obj/machinery/mineral/equipment_vendor/explorer/attackby(obj/item/I, mob/user, params) + if(default_deconstruction_screwdriver(user, "explorer-open", "explorer", I)) + return + if(panel_open) + if(istype(I, /obj/item/crowbar)) + remove_id() + default_deconstruction_crowbar(user, I) + return TRUE + if(istype(I, /obj/item/mining_voucher)) + if(!has_power()) + return + redeem_voucher(I, user) + return + if(istype(I, /obj/item/card/id)) + if(!has_power()) + return + var/obj/item/card/id/C = user.get_active_hand() + if(istype(C) && !istype(inserted_id)) + if(!user.drop_item()) + return + C.forceMove(src) + inserted_id = C + ui_interact(user) + return + return ..() + /**********************Mining Equipment Datum**************************/ /datum/data/mining_equipment @@ -416,4 +513,3 @@ #undef EQUIPMENT - diff --git a/code/modules/mob/dead/observer/observer_base.dm b/code/modules/mob/dead/observer/observer_base.dm index bc0624b2b861..b40637476628 100644 --- a/code/modules/mob/dead/observer/observer_base.dm +++ b/code/modules/mob/dead/observer/observer_base.dm @@ -20,6 +20,8 @@ GLOBAL_DATUM_INIT(ghost_crew_monitor, /datum/ui_module/crew_monitor/ghost, new) move_resist = INFINITY // don't get pushed around invisibility = INVISIBILITY_OBSERVER blocks_emissive = FALSE // Ghosts are transparent, duh + hud_type = /datum/hud/ghost + speaks_ooc = TRUE var/can_reenter_corpse var/bootime = FALSE var/started_as_observer //This variable is set to 1 when you enter the game as an observer. @@ -41,8 +43,8 @@ GLOBAL_DATUM_INIT(ghost_crew_monitor, /datum/ui_module/crew_monitor/ghost, new) var/datum/orbit_menu/orbit_menu /// The "color" their runechat would have had var/alive_runechat_color = "#FFFFFF" - hud_type = /datum/hud/ghost - speaks_ooc = TRUE + /// UID of the mob which we are currently observing + var/mob_observed /mob/dead/observer/New(mob/body=null, flags=1) set_invisibility(GLOB.observer_default_invisibility) @@ -120,6 +122,8 @@ GLOBAL_DATUM_INIT(ghost_crew_monitor, /datum/ui_module/crew_monitor/ghost, new) if(seerads) STOP_PROCESSING(SSobj, src) remove_observer_verbs() + if(mob_observed) + cleanup_observe() return ..() /mob/dead/observer/examine(mob/user) @@ -184,25 +188,37 @@ Works together with spawning an observer, noted above. return 1 /mob/proc/ghostize(flags = GHOST_CAN_REENTER, user_color, ghost_name) - if(key) - if(player_logged) //if they have disconnected we want to remove their SSD overlay - overlays -= image('icons/effects/effects.dmi', icon_state = "zzz_glow") - if(GLOB.non_respawnable_keys[ckey]) - flags &= ~GHOST_CAN_REENTER - var/mob/dead/observer/ghost = new(src, flags) //Transfer safety to observer spawning proc. - ghost.timeofdeath = src.timeofdeath //BS12 EDIT - if(ghost.can_reenter_corpse) - ADD_TRAIT(ghost, TRAIT_RESPAWNABLE, GHOSTED) - else - GLOB.non_respawnable_keys[ckey] = 1 - if(user_color) - add_atom_colour(user_color, ADMIN_COLOUR_PRIORITY) - ghost.color = user_color - if(ghost_name) - ghost.name = ghost_name - ghost.key = key - ghost.client?.init_verbs() - return ghost + if(!key) + return + if(player_logged) // if they have disconnected we want to remove their SSD overlay + overlays -= image('icons/effects/effects.dmi', icon_state = "zzz_glow") + if(GLOB.non_respawnable_keys[ckey]) + flags &= ~GHOST_CAN_REENTER + var/mob/dead/observer/ghost = new(src, flags) // Transfer safety to observer spawning proc. + ghost.timeofdeath = src.timeofdeath // BS12 EDIT + if(ghost.can_reenter_corpse) + ADD_TRAIT(ghost, TRAIT_RESPAWNABLE, GHOSTED) + else + GLOB.non_respawnable_keys[ckey] = 1 + + // mods, mentors, and the like will have admin observe anyway, so this is moot + if(((key in GLOB.antag_hud_users) || (key in GLOB.roundstart_observer_keys)) && !check_rights(R_MOD | R_ADMIN | R_MENTOR, FALSE, src)) + ghost.verbs |= /mob/dead/observer/proc/do_observe + ghost.verbs |= /mob/dead/observer/proc/observe + if(user_color) + add_atom_colour(user_color, ADMIN_COLOUR_PRIORITY) + ghost.color = user_color + if(ghost_name) + ghost.name = ghost_name + ghost.key = key + + ghost.client?.init_verbs() + + for(var/mob/dead/observer/obs in observers) + obs.cleanup_observe() + + + return ghost /* This is the proc mobs get to turn into a ghost. Forked from ghostize due to compatibility issues. @@ -222,7 +238,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp return if(HAS_TRAIT(M, TRAIT_RESPAWNABLE)) - ghostize(1) + if(isdrone(M))//We do not punish maint drones for leaving early, *but* we don't want them ghosting, finding damage, respawning / rentering over and over. + var/mob/dead/observer/ghost = ghostize(FALSE) // FALSE parameter stops them re-entering their body + ghost.timeofdeath = world.time // Because the living mob won't have a time of death and we want the respawn timer to work properly. + return + ghostize(TRUE) return if(P) if(TOO_EARLY_TO_GHOST) @@ -251,11 +271,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(warningmsg) // Not respawnable - var/mob/dead/observer/ghost = ghostize(0) // 0 parameter stops them re-entering their body + var/mob/dead/observer/ghost = ghostize(FALSE) // FALSE parameter stops them re-entering their body ghost.timeofdeath = world.time // Because the living mob won't have a time of death and we want the respawn timer to work properly. else // Respawnable - ghostize(1) + ghostize(TRUE) // If mob in cryopod, despawn mob if(P) @@ -492,52 +512,67 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp GLOB.ghost_crew_monitor.ui_interact(src) /mob/dead/observer/proc/add_observer_verbs() - verbs.Add(/mob/dead/observer/proc/ManualFollow) + verbs.Add( + /mob/dead/observer/proc/ManualFollow, + ) /mob/dead/observer/proc/remove_observer_verbs() - verbs.Remove(/mob/dead/observer/proc/ManualFollow) - -// This is the ghost's follow verb with an argument + verbs.Remove( + /mob/dead/observer/proc/ManualFollow, + // these might not necessarily be here, but we want to make sure they're gonezo anyway + /mob/dead/observer/proc/observe, + /mob/dead/observer/proc/do_observe + ) + +// This is the ghost's follow verb with an argument. +// We need to do the usr check on this verb itself, but the logic follows. /mob/dead/observer/proc/ManualFollow(atom/movable/target) set name = "\[Observer\] Orbit" set desc = "Orbits the specified movable atom." set category = null - if(!target || !isobserver(usr)) + // this usr check is apparently necessary for security + if(!isobserver(usr)) return + return do_manual_follow(target) + +// We need to check usr when calling the verb, but we still want this logic to be accessible elsewhere +/mob/dead/observer/proc/do_manual_follow(atom/movable/target) if(!get_turf(target)) return - if(target != src) - if(src in target.get_orbiters()) - return + if(!target || target == src) + return - var/icon/I = icon(target.icon,target.icon_state,target.dir) + if(src in target.get_orbiters()) + return - var/orbitsize = (I.Width()+I.Height())*0.5 + var/icon/I = icon(target.icon, target.icon_state, target.dir) - if(orbitsize == 0) - orbitsize = 40 + var/orbitsize = (I.Width() + I.Height())*0.5 - orbitsize -= (orbitsize/world.icon_size)*(world.icon_size*0.25) + if(orbitsize == 0) + orbitsize = 40 - var/rot_seg + orbitsize -= (orbitsize/world.icon_size)*(world.icon_size*0.25) - switch(ghost_orbit) - if(GHOST_ORBIT_TRIANGLE) - rot_seg = 3 - if(GHOST_ORBIT_SQUARE) - rot_seg = 4 - if(GHOST_ORBIT_PENTAGON) - rot_seg = 5 - if(GHOST_ORBIT_HEXAGON) - rot_seg = 6 - else //Circular - rot_seg = 36 //360/10 bby, smooth enough aproximation of a circle + var/rot_seg - to_chat(src, "Now following [target].") - orbit(target,orbitsize, FALSE, 20, rot_seg) + switch(ghost_orbit) + if(GHOST_ORBIT_TRIANGLE) + rot_seg = 3 + if(GHOST_ORBIT_SQUARE) + rot_seg = 4 + if(GHOST_ORBIT_PENTAGON) + rot_seg = 5 + if(GHOST_ORBIT_HEXAGON) + rot_seg = 6 + else // Circular + rot_seg = 36 // 360/10 bby, smooth enough aproximation of a circle + + to_chat(src, "Now following [target].") + orbit(target, orbitsize, FALSE, 20, rot_seg) /mob/dead/observer/orbit(atom/A, radius = 10, clockwise = FALSE, rotation_speed = 20, rotation_segments = 36, pre_rotation = TRUE, lock_in_orbit = FALSE, force_move = FALSE, orbit_layer = GHOST_LAYER) setDir(2)//reset dir so the right directional sprites show up @@ -825,11 +860,101 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp /mob/dead/observer/get_runechat_color() return alive_runechat_color -/mob/dead/observer/proc/update_dead_radio() - if(get_preference(PREFTOGGLE_CHAT_GHOSTRADIO)) - GLOB.deadchat_radio.listeners |= src - else - GLOB.deadchat_radio.listeners -= src +/mob/dead/observer/proc/observe() + set name = "Observe" + set desc = "Observe a mob." + set category = "Ghost" + + var/list/possible_targets = list() + for(var/mob/living/L in GLOB.player_list) + if(!L.mind) + continue + possible_targets.Add(L) + + if(!length(possible_targets)) + to_chat(src, "There's nobody for you to observe!") + return + + var/mob/target = tgui_input_list(usr, "Please, select a player!", "Observe", possible_targets) + if(!istype(target) || QDELETED(target)) + return + do_observe(target) + +/mob/dead/observer/proc/do_observe(mob/mob_eye) + set name = "\[Observer\] Observe" + set desc = "Observe the target mob." + set category = null + + if(isnewplayer(mob_eye)) + to_chat(src, "You can't observe someone in the lobby.") + return + + if(isobserver(mob_eye)) + to_chat(src, "You can't observe a ghost.") + return + + if(!mob_eye.mind) + to_chat(src, "You can only observe mobs that have been or are being inhabited by a player!") + return + + if(mob_eye == src) + to_chat(src, "You can't observe yourself!") + return + + if(mob_observed) + // clean up first + stop_orbit() + cleanup_observe() + + // Istype so we filter out points of interest that are not mobs + if(client && ismob(mob_eye)) + // follow the mob so they're technically right there for visible messages n stuff + // call the sub-proc since the base one checks for usr + do_manual_follow(mob_eye) + client.set_eye(mob_eye) + add_attack_logs(src, mob_eye, "observed", ATKLOG_ALMOSTALL) + client.perspective = EYE_PERSPECTIVE + if(mob_eye.hud_used) + client.clear_screen() + LAZYOR(mob_eye.observers, src) + mob_eye.hud_used?.show_hud(mob_eye.hud_used.hud_version, src) + mob_observed = mob_eye.UID() + + + // mentor observing grants you this trait, and provides its own signal handler for this + if(!HAS_MIND_TRAIT(src, TRAIT_MENTOR_OBSERVING)) + RegisterSignal(src, COMSIG_ATOM_ORBITER_STOP, PROC_REF(on_observer_orbit_end), override = TRUE) + else + if(!check_rights(R_MENTOR, FALSE, src)) + log_debug("[key_name(src)] has the the mobserve trait while observing, but isn't a mentor. This is likely an error, and may result in them getting stuck") + +/// Clean up observing +/mob/dead/observer/proc/cleanup_observe() + if(isnull(mob_observed)) + return + + var/mob/target = locateUID(mob_observed) + add_attack_logs(src, target, "un-observed", ATKLOG_ALL) + mob_observed = null + reset_perspective(null) + client?.perspective = initial(client.perspective) + set_sight(initial(sight)) + UnregisterSignal(src, COMSIG_ATOM_ORBITER_STOP) + + if(s_active) + var/obj/item/storage/bag = s_active + s_active = null + bag.update_viewers(src) + + if(!QDELETED(target) && istype(target)) + hide_other_mob_action_buttons(target) + target.observers -= src + +/mob/dead/observer/proc/on_observer_orbit_end(mob/follower, atom) + SIGNAL_HANDLER // COMSIG_ATOM_ORBITER_STOP + if(HAS_MIND_TRAIT(src, TRAIT_MENTOR_OBSERVING)) + log_debug("[key_name(src)] ended up in regular cleanup_observe rather than the mentor cleanup observe despite having TRAIT_MENTOR_OBSERVING. This is likely a bug and may result in them being stuck outside of their bodies.") + cleanup_observe() #undef GHOST_CAN_REENTER #undef GHOST_IS_OBSERVER diff --git a/code/modules/mob/dead/observer/observer_login.dm b/code/modules/mob/dead/observer/observer_login.dm index f92958eb7469..d9212897cc85 100644 --- a/code/modules/mob/dead/observer/observer_login.dm +++ b/code/modules/mob/dead/observer/observer_login.dm @@ -10,5 +10,3 @@ if(GLOB.non_respawnable_keys[ckey]) can_reenter_corpse = 0 REMOVE_TRAIT(src, TRAIT_RESPAWNABLE, GHOSTED) - - update_dead_radio() diff --git a/code/modules/mob/dead/observer/observer_logout.dm b/code/modules/mob/dead/observer/observer_logout.dm index 64ef90683c31..d6c1b6e96fb5 100644 --- a/code/modules/mob/dead/observer/observer_logout.dm +++ b/code/modules/mob/dead/observer/observer_logout.dm @@ -1,6 +1,9 @@ /mob/dead/observer/Logout() if(client) client.images -= GLOB.ghost_images + if(mob_observed && ismob(locateUID(mob_observed))) + cleanup_observe() + ..() spawn(0) if(src && !key) //we've transferred to another mob. This ghost should be deleted. diff --git a/code/modules/mob/living/carbon/carbon_update_icons.dm b/code/modules/mob/living/carbon/carbon_update_icons.dm index f174dd227ca8..203b7ae10d4e 100644 --- a/code/modules/mob/living/carbon/carbon_update_icons.dm +++ b/code/modules/mob/living/carbon/carbon_update_icons.dm @@ -49,6 +49,8 @@ r_hand.screen_loc = ui_rhand client.screen += r_hand + update_observer_view(r_hand) + /mob/living/carbon/update_inv_l_hand(ignore_cuffs) if(handcuffed && !ignore_cuffs) drop_l_hand() @@ -57,6 +59,7 @@ if(client && hud_used && hud_used.hud_version != HUD_STYLE_NOHUD) l_hand.screen_loc = ui_lhand client.screen += l_hand + update_observer_view(l_hand) /mob/living/carbon/update_inv_wear_mask() if(istype(wear_mask, /obj/item/clothing/mask)) @@ -86,3 +89,17 @@ /mob/living/carbon/proc/update_hud_back(obj/item/I) return +/mob/living/carbon/proc/update_observer_view(obj/item/worn_item, inventory) + if(!length(observers)) + return + for(var/mob/dead/observe as anything in observers) + if(observe.client && observe.client.eye == src) + if(observe.hud_used) + if(inventory && !observe.hud_used.inventory_shown) + continue + observe.client.screen += worn_item + else + observers -= observe + if(!length(observers)) + observers.Cut() + break diff --git a/code/modules/mob/living/carbon/human/human_inventory.dm b/code/modules/mob/living/carbon/human/human_inventory.dm index 3b39a48a1f07..1ee19379c315 100644 --- a/code/modules/mob/living/carbon/human/human_inventory.dm +++ b/code/modules/mob/living/carbon/human/human_inventory.dm @@ -186,6 +186,13 @@ update_inv_r_hand() I.screen_loc = null + if(client) + client.screen -= I + if(length(observers)) + for(var/mob/dead/observe as anything in observers) + if(observe.client) + observe.client.screen -= I + I.forceMove(src) I.equipped(src, slot, initial) I.layer = ABOVE_HUD_LAYER @@ -271,8 +278,8 @@ var/obj/item/clothing/head/hat = I if(hat.vision_flags || hat.see_in_dark || !isnull(hat.lighting_alpha)) update_sight() + // this calls update_inv_head() on its own head_update(I) - update_inv_head() if(SLOT_HUD_SHOES) shoes = I update_inv_shoes() 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 feaad4085f99..c1109e078d1f 100644 --- a/code/modules/mob/living/carbon/human/human_update_icons.dm +++ b/code/modules/mob/living/carbon/human/human_update_icons.dm @@ -567,10 +567,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) inv.update_icon() if(w_uniform && istype(w_uniform, /obj/item/clothing/under)) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - if(hud_used.inventory_shown) //if the inventory is open ... - w_uniform.screen_loc = ui_iclothing //...draw the item in the inventory screen - client.screen += w_uniform //Either way, add the item to the HUD + update_hud_uniform(w_uniform) var/t_color = w_uniform.item_color if(!t_color) @@ -644,9 +641,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) inv.update_icon() if(wear_id) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - wear_id.screen_loc = ui_id - client.screen += wear_id + update_hud_id(wear_id) if(w_uniform && w_uniform:displays_id) overlays_standing[ID_LAYER] = mutable_appearance('icons/mob/mob.dmi', "id", layer = -ID_LAYER) @@ -660,10 +655,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) inv.update_icon() if(gloves) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - if(hud_used.inventory_shown) //if the inventory is open ... - gloves.screen_loc = ui_gloves //...draw the item in the inventory screen - client.screen += gloves //Either way, add the item to the HUD + update_hud_gloves(gloves) var/t_state = gloves.item_state if(!t_state) t_state = gloves.icon_state @@ -702,10 +694,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) if(glasses) var/mutable_appearance/new_glasses var/obj/item/organ/external/head/head_organ = get_organ("head") - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - if(hud_used.inventory_shown) //if the inventory is open ... - glasses.screen_loc = ui_glasses //...draw the item in the inventory screen - client.screen += glasses //Either way, add the item to the HUD + update_hud_glasses(glasses) if(glasses.icon_override) new_glasses = mutable_appearance(glasses.icon_override, "[glasses.icon_state]", layer = -GLASSES_LAYER) @@ -744,10 +733,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) if(l_ear || r_ear) if(l_ear) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - if(hud_used.inventory_shown) //if the inventory is open ... - l_ear.screen_loc = ui_l_ear //...draw the item in the inventory screen - client.screen += l_ear //Either way, add the item to the HUD + update_hud_l_ear(l_ear) var/t_type = l_ear.item_state if(!t_type) @@ -761,10 +747,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) overlays_standing[EARS_LAYER] = mutable_appearance('icons/mob/clothing/ears.dmi', "[t_type]", layer = -EARS_LAYER) if(r_ear) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - if(hud_used.inventory_shown) //if the inventory is open ... - r_ear.screen_loc = ui_r_ear //...draw the item in the inventory screen - client.screen += r_ear //Either way, add the item to the HUD + update_hud_r_ear(r_ear) var/t_type = r_ear.item_state if(!t_type) @@ -786,10 +769,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) inv.update_icon() if(shoes) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - if(hud_used.inventory_shown) //if the inventory is open ... - shoes.screen_loc = ui_shoes //...draw the item in the inventory screen - client.screen += shoes //Either way, add the item to the HUD + update_hud_shoes(shoes) if(!wear_suit || !(wear_suit.flags_inv & HIDESHOES)) var/mutable_appearance/standing @@ -822,9 +802,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) inv.update_icon() if(s_store) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - s_store.screen_loc = ui_sstore1 - client.screen += s_store + update_hud_s_store(s_store) var/t_state = s_store.item_state if(!t_state) @@ -844,6 +822,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) inv.update_icon() if(head) + update_hud_head(head) var/mutable_appearance/standing if(head.sprite_sheets && head.sprite_sheets[dna.species.sprite_sheet_name]) standing = mutable_appearance(head.sprite_sheets[dna.species.sprite_sheet_name], "[head.icon_state]", layer = -HEAD_LAYER) @@ -877,6 +856,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) belt.screen_loc = ui_belt if(belt) + update_observer_view(belt) var/t_state = belt.item_state if(!t_state) t_state = belt.icon_state @@ -899,10 +879,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) inv.update_icon() if(wear_suit && istype(wear_suit, /obj/item/clothing/suit)) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - if(hud_used.inventory_shown) //if the inventory is open ... - wear_suit.screen_loc = ui_oclothing //TODO //...draw the item in the inventory screen - client.screen += wear_suit //Either way, add the item to the HUD + update_hud_wear_suit(wear_suit) var/mutable_appearance/standing if(wear_suit.sprite_sheets && wear_suit.sprite_sheets[dna.species.sprite_sheet_name]) @@ -950,12 +927,17 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) if(hud_used.hud_version == HUD_STYLE_STANDARD) if(l_store) - client.screen += l_store l_store.screen_loc = ui_storage1 + if(hud_used.hud_shown) + client.screen += l_store + update_observer_view(l_store) if(r_store) - client.screen += r_store r_store.screen_loc = ui_storage2 + if(hud_used.hud_shown) + client.screen += r_store + r_store.screen_loc = ui_storage2 + update_observer_view(r_store) /mob/living/carbon/human/update_inv_wear_pda() if(client && hud_used) @@ -964,8 +946,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) inv.update_icon() if(wear_pda) - client.screen += wear_pda - wear_pda.screen_loc = ui_pda + update_hud_wear_pda(wear_pda) /mob/living/carbon/human/update_inv_wear_mask() ..() @@ -975,6 +956,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) if(inv) inv.update_icon() if(wear_mask && (istype(wear_mask, /obj/item/clothing/mask) || istype(wear_mask, /obj/item/clothing/accessory))) + update_hud_wear_mask(wear_mask) if(!(SLOT_HUD_WEAR_MASK in check_obscured_slots())) var/obj/item/organ/external/head/head_organ = get_organ("head") if(!istype(head_organ)) @@ -1009,6 +991,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) ..() remove_overlay(BACK_LAYER) if(back) + update_hud_back(back) //determine the icon to use var/t_state = back.item_state if(!t_state) @@ -1045,6 +1028,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) ..() remove_overlay(R_HAND_LAYER) if(r_hand) + show_hand_to_observers(r_hand, left = FALSE) var/t_state = r_hand.item_state if(!t_state) t_state = r_hand.icon_state @@ -1064,6 +1048,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) ..() remove_overlay(L_HAND_LAYER) if(l_hand) + show_hand_to_observers(l_hand, left = TRUE) var/t_state = l_hand.item_state if(!t_state) t_state = l_hand.icon_state @@ -1080,25 +1065,105 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) //human HUD updates for items in our inventory -//update whether our head item appears on our hud. -/mob/living/carbon/human/update_hud_head(obj/item/I) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - if(hud_used.inventory_shown) - I.screen_loc = ui_head - client.screen += I - -//update whether our mask item appears on our hud. -/mob/living/carbon/human/update_hud_wear_mask(obj/item/I) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - if(hud_used.inventory_shown) - I.screen_loc = ui_mask - client.screen += I - -//update whether our back item appears on our hud. -/mob/living/carbon/human/update_hud_back(obj/item/I) - if(client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) - I.screen_loc = ui_back - client.screen += I +/mob/living/carbon/human/proc/show_hand_to_observers(obj/item/worn_item, left = TRUE) + if(client && hud_used && hud_used.hud_version != HUD_STYLE_NOHUD) + worn_item.screen_loc = ui_hand_position(left ? 1 : 2) + client.screen += worn_item + if(length(observers)) + for(var/mob/dead/observe in observers) + if(observe.client && observe.client.eye == src) + observe.client.screen += worn_item + else + observers -= observe + if(!length(observers)) + observers = null + break + + +/mob/living/carbon/human/update_hud_wear_mask(obj/item/worn_item) + worn_item.screen_loc = ui_mask + if((client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) && (hud_used.inventory_shown && hud_used.hud_shown)) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + + +/mob/living/carbon/human/proc/update_hud_uniform(obj/item/worn_item) + worn_item.screen_loc = ui_iclothing + if((client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) && (hud_used.inventory_shown && hud_used.hud_shown)) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + +/mob/living/carbon/human/proc/update_hud_id(obj/item/worn_item) + worn_item.screen_loc = ui_id + if(client && hud_used?.hud_shown && hud_used.hud_version == HUD_STYLE_STANDARD) + client.screen += worn_item + update_observer_view(worn_item) + +/mob/living/carbon/human/proc/update_hud_wear_pda(obj/item/worn_item) + worn_item.screen_loc = ui_pda + if(client && hud_used?.hud_shown && hud_used.hud_version == HUD_STYLE_STANDARD) + client.screen += worn_item + update_observer_view(worn_item) + +/mob/living/carbon/human/proc/update_hud_gloves(obj/item/worn_item) + worn_item.screen_loc = ui_gloves + if((client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) && (hud_used.inventory_shown && hud_used.hud_shown)) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + +/mob/living/carbon/human/proc/update_hud_glasses(obj/item/worn_item) + worn_item.screen_loc = ui_glasses + if((client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) && (hud_used.inventory_shown && hud_used.hud_shown)) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + +/mob/living/carbon/human/proc/update_hud_l_ear(obj/item/worn_item) + worn_item.screen_loc = ui_l_ear + if((client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) && (hud_used.inventory_shown && hud_used.hud_shown)) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + +/mob/living/carbon/human/proc/update_hud_r_ear(obj/item/worn_item) + worn_item.screen_loc = ui_r_ear + if((client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) && (hud_used.inventory_shown && hud_used.hud_shown)) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + +/mob/living/carbon/human/proc/update_hud_shoes(obj/item/worn_item) + worn_item.screen_loc = ui_shoes + if((client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) && (hud_used.inventory_shown && hud_used.hud_shown)) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + +/mob/living/carbon/human/proc/update_hud_s_store(obj/item/worn_item) + worn_item.screen_loc = ui_sstore1 + if(client && hud_used?.hud_shown && hud_used.hud_version == HUD_STYLE_STANDARD) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + +/mob/living/carbon/human/proc/update_hud_wear_suit(obj/item/worn_item) + worn_item.screen_loc = ui_oclothing + if((client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) && (hud_used.inventory_shown && hud_used.hud_shown)) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + +/mob/living/carbon/human/proc/update_hud_belt(obj/item/worn_item) + belt.screen_loc = ui_belt + if(client && hud_used?.hud_shown && hud_used.hud_version == HUD_STYLE_STANDARD) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + +/mob/living/carbon/human/update_hud_head(obj/item/worn_item) + worn_item.screen_loc = ui_head + if((client && hud_used && hud_used.hud_version == HUD_STYLE_STANDARD) && (hud_used.inventory_shown && hud_used.hud_shown)) + client.screen += worn_item + update_observer_view(worn_item, TRUE) + +/mob/living/carbon/human/update_hud_back(obj/item/worn_item) + worn_item.screen_loc = ui_back + if(client && hud_used?.hud_shown && hud_used.hud_version == HUD_STYLE_STANDARD) + client.screen += worn_item + update_observer_view(worn_item, TRUE) /mob/living/carbon/human/proc/update_wing_layer() remove_overlay(WING_UNDERLIMBS_LAYER) diff --git a/code/modules/mob/living/carbon/human/species/plasmaman.dm b/code/modules/mob/living/carbon/human/species/plasmaman.dm index bbbeff0d8b4c..b9dcaa73e102 100644 --- a/code/modules/mob/living/carbon/human/species/plasmaman.dm +++ b/code/modules/mob/living/carbon/human/species/plasmaman.dm @@ -88,6 +88,9 @@ if("Cargo Technician", "Quartermaster") O = new /datum/outfit/plasmaman/cargo + if("Explorer") + O = new /datum/outfit/plasmaman/expedition + if("Shaft Miner") O = new /datum/outfit/plasmaman/mining diff --git a/code/modules/mob/living/death.dm b/code/modules/mob/living/death.dm index 890b52093451..23e6ba4f0abc 100644 --- a/code/modules/mob/living/death.dm +++ b/code/modules/mob/living/death.dm @@ -64,7 +64,7 @@ if(mind && suiciding) mind.suicided = TRUE reset_perspective(null) - hud_used?.reload_fullscreen() + reload_fullscreen() update_sight() update_action_buttons_icon() ADD_TRAIT(src, TRAIT_FLOORED, STAT_TRAIT) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 803d724e5247..be662ecf7cd7 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -278,7 +278,7 @@ if(A.loc in src) pointed_object += " inside [A.loc]" - visible_message("[src] points to [pointed_object]") + visible_message("[src] points to [pointed_object].") return TRUE /mob/living/verb/succumb() @@ -601,9 +601,6 @@ step_count++ pull_pulled(old_loc, pullee, movetime) - if(pulledby && moving_diagonally != FIRST_DIAG_STEP && get_dist(src, pulledby) > 1) //seperated from our puller and not in the middle of a diagonal move - pulledby.stop_pulling() - if(s_active && !(s_active in contents) && get_turf(s_active) != get_turf(src)) //check !( s_active in contents) first so we hopefully don't have to call get_turf() so much. s_active.close(src) diff --git a/code/modules/mob/living/silicon/robot/robot_inventory.dm b/code/modules/mob/living/silicon/robot/robot_inventory.dm index 29cbd551747f..78bf0e04a6d1 100644 --- a/code/modules/mob/living/silicon/robot/robot_inventory.dm +++ b/code/modules/mob/living/silicon/robot/robot_inventory.dm @@ -15,6 +15,7 @@ O.mouse_opacity = MOUSE_OPACITY_OPAQUE + observer_screen_update(O, add = FALSE) if(client) client.screen -= O contents -= O @@ -78,6 +79,7 @@ set_actions(O) else to_chat(src, "You need to disable a module first!") + observer_screen_update(O, add = TRUE) check_module_damage(FALSE) update_icons() @@ -250,3 +252,25 @@ hands.icon_state = "nomod" else hands.icon_state = lowertext(module.module_type) + + +/** + * Updates the observers's screens with cyborg itemss. + * Arguments + * * item_module - the item being added or removed from the screen + * * add - whether or not the item is being added, or removed. + */ +/mob/living/silicon/robot/proc/observer_screen_update(obj/item/item_module, add = TRUE) + if(!length(observers)) + return + for(var/mob/dead/observe in observers) + if(observe.client && observe.client.eye == src) + if(add) + observe.client.screen += item_module + else + observe.client.screen -= item_module + else + observers -= observe + if(!length(observers)) + observers = null + break diff --git a/code/modules/mob/living/silicon/robot/robot_mob.dm b/code/modules/mob/living/silicon/robot/robot_mob.dm index d95d0d9d2947..bb700a8d976f 100644 --- a/code/modules/mob/living/silicon/robot/robot_mob.dm +++ b/code/modules/mob/living/silicon/robot/robot_mob.dm @@ -27,10 +27,6 @@ GLOBAL_LIST_INIT(robot_verbs_default, list( var/atom/movable/screen/lamp_button = null var/atom/movable/screen/thruster_button = null - /// Used to determine whether the robot has the module menu shown or not. - var/shown_robot_modules = FALSE - var/atom/movable/screen/robot_modules_background - // 3 Modules can be activated at any one time. var/obj/item/robot_module/module = null var/module_active = null @@ -172,11 +168,6 @@ GLOBAL_LIST_INIT(robot_verbs_default, list( wires = new(src) - robot_modules_background = new() - robot_modules_background.icon_state = "block" - robot_modules_background.layer = HUD_LAYER //Objects that appear on screen are on layer 20, UI should be just below it. - robot_modules_background.plane = HUD_PLANE - ident = rand(1, 999) rename_character(null, get_default_name()) update_icons() @@ -664,9 +655,6 @@ GLOBAL_LIST_INIT(robot_verbs_default, list( /mob/living/silicon/robot/proc/reset_module() notify_ai(2) - - shown_robot_modules = 0 - client?.screen -= robot_modules_background client?.screen -= hud_used.module_store_icon uneq_all() SStgui.close_user_uis(src) @@ -699,6 +687,8 @@ GLOBAL_LIST_INIT(robot_verbs_default, list( status_flags |= CANPUSH + hud_used.update_robot_modules_display() + //for borg hotkeys, here module refers to borg inv slot, not core module /mob/living/silicon/robot/verb/cmd_toggle_module(module as num) set name = "Toggle Module" diff --git a/code/modules/mob/living/silicon/robot/robot_modules.dm b/code/modules/mob/living/silicon/robot/robot_modules.dm index 352c05b28087..ab552133134e 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules.dm @@ -398,7 +398,7 @@ //Preload Syringes /obj/item/gun/syringemalf/Initialize(mapload) - ..() + . = ..() chambered = new /obj/item/ammo_casing/syringegun(src) process_chamber() @@ -674,7 +674,6 @@ /obj/item/shovel, /obj/item/weldingtool/mini, /obj/item/extinguisher/mini, - /obj/item/storage/bag/sheetsnatcher/borg, /obj/item/t_scanner/adv_mining_scanner/cyborg, /obj/item/gun/energy/kinetic_accelerator/cyborg, /obj/item/gps/cyborg diff --git a/code/modules/mob/living/simple_animal/bot/cleanbot.dm b/code/modules/mob/living/simple_animal/bot/cleanbot.dm index fa3ab06c3c73..70cb9eeecfbd 100644 --- a/code/modules/mob/living/simple_animal/bot/cleanbot.dm +++ b/code/modules/mob/living/simple_animal/bot/cleanbot.dm @@ -230,7 +230,7 @@ /mob/living/simple_animal/bot/cleanbot/ui_act(action, params) if(..()) return - if(topic_denied(usr)) + if(action != "area" && topic_denied(usr)) to_chat(usr, "[src]'s interface is not responding!") return add_fingerprint(usr) diff --git a/code/modules/mob/living/simple_animal/corpse.dm b/code/modules/mob/living/simple_animal/corpse.dm index 22e9ab52efa2..3afe53239e36 100644 --- a/code/modules/mob/living/simple_animal/corpse.dm +++ b/code/modules/mob/living/simple_animal/corpse.dm @@ -41,6 +41,25 @@ r_pocket = /obj/item/tank/internals/emergency_oxygen id = /obj/item/card/id +/obj/effect/mob_spawn/human/corpse/syndicatequartermaster + name = "Syndicate Quartermaster" + mob_name = "Syndicate Quartermaster" + hair_style = "bald" + facial_hair_style = "shaved" + id_job = "Operative" + id_access_list = list(ACCESS_SYNDICATE) + outfit = /datum/outfit/syndicatequartermastercorpse + +/datum/outfit/syndicatequartermastercorpse + name = "Corpse of a Syndicate Quartermaster" + uniform = /obj/item/clothing/under/syndicate + shoes = /obj/item/clothing/shoes/combat + gloves = /obj/item/clothing/gloves/combat + l_ear = /obj/item/radio/headset + mask = /obj/item/clothing/mask/gas/syndicate + back = /obj/item/mod/control/pre_equipped/traitor_elite + r_pocket = /obj/item/tank/internals/emergency_oxygen + id = /obj/item/card/id /obj/effect/mob_spawn/human/corpse/clown/corpse roundstart = TRUE @@ -60,20 +79,19 @@ /datum/outfit/piratecorpse name = "Corpse of a Pirate" uniform = /obj/item/clothing/under/costume/pirate + suit = /obj/item/clothing/suit/space/eva shoes = /obj/item/clothing/shoes/jackboots glasses = /obj/item/clothing/glasses/eyepatch - head = /obj/item/clothing/head/bandana - + head = /obj/item/clothing/head/helmet/space/eva + back = /obj/item/tank/jetpack/carbondioxide /obj/effect/mob_spawn/human/corpse/pirate/ranged name = "Pirate Gunner" mob_name = "Pirate Gunner" - outfit = /datum/outfit/piratecorpse/ranged + outfit = /datum/outfit/piratecorpse /datum/outfit/piratecorpse/ranged name = "Corpse of a Pirate Gunner" - suit = /obj/item/clothing/suit/pirate_black - head = /obj/item/clothing/head/pirate /obj/effect/mob_spawn/human/corpse/russian diff --git a/code/modules/mob/living/simple_animal/hostile/alien_types.dm b/code/modules/mob/living/simple_animal/hostile/alien_types.dm index 453bae0aee29..aacb7a71810c 100644 --- a/code/modules/mob/living/simple_animal/hostile/alien_types.dm +++ b/code/modules/mob/living/simple_animal/hostile/alien_types.dm @@ -35,6 +35,15 @@ death_sound = 'sound/voice/hiss6.ogg' deathmessage = "lets out a waning guttural screech, green blood bubbling from its maw..." footstep_type = FOOTSTEP_MOB_CLAW + loot = list(/obj/effect/decal/cleanable/blood/gibs/xeno/limb, /obj/effect/decal/cleanable/blood/gibs/xeno/core, /obj/effect/decal/cleanable/blood/xeno/splatter, /obj/effect/decal/cleanable/blood/gibs/xeno/body, /obj/effect/decal/cleanable/blood/gibs/xeno/down) + +/mob/living/simple_animal/hostile/alien/ListTargetsLazy() + return ListTargets() + +/mob/living/simple_animal/hostile/alien/Aggro() + . = ..() + if(target) + playsound(loc, 'sound/voice/hiss4.ogg', 70, TRUE) /mob/living/simple_animal/hostile/alien/drone name = "alien drone" diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm index 9036a7298c6e..ec3eeb697b69 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm @@ -596,9 +596,9 @@ Difficulty: Medium /mob/living/simple_animal/hostile/megafauna/dragon/space_dragon name = "space dragon" - maxHealth = 250 - health = 250 - faction = list("neutral") + maxHealth = 1000 + health = 1000 + faction = list("carp") desc = "A space carp turned dragon by vile magic. Has the same ferocity of a space carp, but also a much more enabling body." icon = 'icons/mob/spacedragon.dmi' icon_state = "spacedragon" @@ -609,14 +609,18 @@ Difficulty: Medium melee_damage_lower = 35 speed = 0 mouse_opacity = MOUSE_OPACITY_ICON - loot = list() + move_to_delay = 3 + rapid = 2 crusher_loot = list() - butcher_results = list(/obj/item/stack/ore/diamond = 5, /obj/item/stack/sheet/sinew = 5, /obj/item/stack/sheet/bone = 30) + loot = list(/obj/effect/temp_visual/bsg_kaboom, /obj/effect/temp_visual/emp/cult, /obj/item/clothing/suit/hooded/carp_costume/dragon, /obj/item/gun/energy/kinetic_accelerator/experimental, /obj/effect/temp_visual/cult/portal) + butcher_results = list(/obj/item/stack/ore/diamond = 10, /obj/item/stack/sheet/bone = 30) move_force = MOVE_FORCE_NORMAL move_resist = MOVE_FORCE_NORMAL pull_force = MOVE_FORCE_NORMAL deathmessage = "screeches as its wings turn to dust and it collapses on the floor, life extinguished." attack_action_types = list() + internal_gps = /obj/item/gps/internal/carp + death_sound = 'sound/creatures/spacedragondeath.ogg' /mob/living/simple_animal/hostile/megafauna/dragon/space_dragon/Initialize(mapload) var/datum/spell/aoe/repulse/spacedragon/repulse_action = new /datum/spell/aoe/repulse/spacedragon(src) @@ -625,7 +629,7 @@ Difficulty: Medium . = ..() /mob/living/simple_animal/hostile/megafauna/dragon/space_dragon/proc/fire_stream(atom/at = target) - playsound(get_turf(src),'sound/magic/fireball.ogg', 200, TRUE) + playsound(get_turf(src),'sound/magic/magic_missile.ogg', 200, TRUE) SLEEP_CHECK_DEATH(0) var/range = 20 var/list/turfs = list() @@ -661,6 +665,12 @@ Difficulty: Medium /mob/living/simple_animal/hostile/megafauna/dragon/space_dragon/AltClickOn(atom/movable/A) return +/obj/item/gps/internal/carp + icon_state = null + gpstag = "Corrupted Signal" + desc = "Fish and chips." + invisibility = 100 + #undef DRAKE_SWOOP_HEIGHT #undef DRAKE_SWOOP_DIRECTION_CHANGE_RANGE #undef SWOOP_DAMAGEABLE diff --git a/code/modules/mob/living/simple_animal/hostile/mining/hivelord.dm b/code/modules/mob/living/simple_animal/hostile/mining/hivelord.dm index 9bfeb1725a2f..932d718e908c 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/hivelord.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/hivelord.dm @@ -1,6 +1,6 @@ /mob/living/simple_animal/hostile/asteroid/hivelord name = "hivelord" - desc = "A truly alien creature, it is a mass of unknown organic material, constantly fluctuating. When attacking, pieces of it split off and attack in tandem with the original." + desc = "A levitating swarm of tiny creatures which act as a single individual. When threatened or hunting they rapidly replicate additional short-lived bodies." icon = 'icons/mob/lavaland/lavaland_monsters.dmi' icon_state = "Hivelord" icon_living = "Hivelord" diff --git a/code/modules/mob/living/simple_animal/hostile/pirate.dm b/code/modules/mob/living/simple_animal/hostile/pirate.dm index 281167e55233..3e61c8e6a03e 100644 --- a/code/modules/mob/living/simple_animal/hostile/pirate.dm +++ b/code/modules/mob/living/simple_animal/hostile/pirate.dm @@ -2,15 +2,16 @@ name = "Pirate" desc = "Does what he wants cause a pirate is free." icon = 'icons/mob/simple_human.dmi' - icon_state = "piratemelee" - icon_living = "piratemelee" + icon_state = "piratespace" + icon_living = "piratespace" icon_dead = "piratemelee_dead" // Does not actually exist. del_on_death. mob_biotypes = MOB_ORGANIC | MOB_HUMANOID - speak_chance = 0 - turns_per_move = 5 + speak_chance = 1 + turns_per_move = 3 + death_sound = 'sound/creatures/piratedeath.ogg' response_help = "pushes the" response_disarm = "shoves" - response_harm = "hits the" + response_harm = "slashes" speed = 0 maxHealth = 100 health = 100 @@ -20,28 +21,72 @@ melee_damage_lower = 30 melee_damage_upper = 30 attacktext = "slashes" - attack_sound = 'sound/weapons/bladeslice.ogg' + attack_sound = 'sound/weapons/blade1.ogg' + minbodytemp = 0 - atmos_requirements = list("min_oxy" = 5, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 1, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0) - unsuitable_atmos_damage = 15 + atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0) speak_emote = list("yarrs") - loot = list(/obj/effect/mob_spawn/human/corpse/pirate, - /obj/item/melee/energy/sword/pirate) + loot = list(/obj/item/melee/energy/sword/pirate, + /obj/item/clothing/head/helmet/space/pirate, + /obj/effect/mob_spawn/human/corpse/pirate, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) del_on_death = TRUE faction = list("pirate") sentience_type = SENTIENCE_OTHER footstep_type = FOOTSTEP_MOB_SHOE +/mob/living/simple_animal/hostile/pirate/Initialize(mapload) + . = ..() + if(prob(50)) + loot = list(/obj/item/clothing/head/helmet/space/pirate, + /obj/item/salvage/loot/pirate, + /obj/effect/mob_spawn/human/corpse/pirate, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) + +/mob/living/simple_animal/hostile/pirate/Process_Spacemove(movement_dir = 0) + return TRUE + +/mob/living/simple_animal/hostile/pirate/ListTargetsLazy() + return ListTargets() + +/mob/living/simple_animal/hostile/pirate/Aggro() + . = ..() + if(target) + playsound(loc, 'sound/creatures/pirateengage.ogg', 70, TRUE) + /mob/living/simple_animal/hostile/pirate/ranged name = "Pirate Gunner" - icon_state = "pirateranged" - icon_living = "pirateranged" + icon_state = "piratespaceranged" + icon_living = "piratespaceranged" icon_dead = "piratemelee_dead" // Does not actually exist. del_on_death. projectilesound = 'sound/weapons/laser.ogg' ranged = TRUE rapid = 2 + turns_per_move = 5 retreat_distance = 5 minimum_distance = 5 projectiletype = /obj/item/projectile/beam - loot = list(/obj/effect/mob_spawn/human/corpse/pirate/ranged, - /obj/item/gun/energy/laser) + loot = list(/obj/effect/mob_spawn/human/corpse/pirate, + /obj/item/gun/energy/laser, + /obj/item/clothing/head/helmet/space/pirate, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) + +/mob/living/simple_animal/hostile/pirate/ranged/Initialize(mapload) + . = ..() + if(prob(50)) + loot = list(/obj/item/clothing/head/helmet/space/pirate, + /obj/item/salvage/loot/pirate, + /obj/effect/mob_spawn/human/corpse/pirate, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) diff --git a/code/modules/mob/living/simple_animal/hostile/russian.dm b/code/modules/mob/living/simple_animal/hostile/russian.dm index 02b6886b6ef0..36d810921332 100644 --- a/code/modules/mob/living/simple_animal/hostile/russian.dm +++ b/code/modules/mob/living/simple_animal/hostile/russian.dm @@ -25,7 +25,8 @@ faction = list("russian") status_flags = CANPUSH loot = list(/obj/effect/mob_spawn/human/corpse/russian, - /obj/item/kitchen/knife) + /obj/item/kitchen/knife, + /obj/item/salvage/loot/russian) del_on_death = TRUE sentience_type = SENTIENCE_OTHER footstep_type = FOOTSTEP_MOB_SHOE @@ -42,5 +43,6 @@ /mob/living/simple_animal/hostile/russian/ranged/mosin loot = list(/obj/effect/mob_spawn/human/corpse/russian/ranged, - /obj/item/gun/projectile/shotgun/boltaction) + /obj/item/gun/projectile/shotgun/boltaction, + /obj/item/salvage/loot/russian) casingtype = /obj/item/ammo_casing/a762 diff --git a/code/modules/mob/living/simple_animal/hostile/syndicate_mobs.dm b/code/modules/mob/living/simple_animal/hostile/syndicate_mobs.dm index 36ffb309a1d0..b85c5b463ce5 100644 --- a/code/modules/mob/living/simple_animal/hostile/syndicate_mobs.dm +++ b/code/modules/mob/living/simple_animal/hostile/syndicate_mobs.dm @@ -13,11 +13,11 @@ response_disarm = "shoves the" response_harm = "hits the" speed = 0 - maxHealth = 100 - health = 100 + maxHealth = 150 + health = 150 harm_intent_damage = 5 - melee_damage_lower = 10 - melee_damage_upper = 10 + melee_damage_lower = 15 + melee_damage_upper = 15 attacktext = "punches" attack_sound = 'sound/weapons/punch1.ogg' a_intent = INTENT_HARM @@ -25,24 +25,43 @@ faction = list("syndicate") check_friendly_fire = TRUE status_flags = CANPUSH - loot = list(/obj/effect/mob_spawn/human/corpse/syndicatesoldier) + loot = list(/obj/effect/mob_spawn/human/corpse/syndicatesoldier, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) del_on_death = TRUE sentience_type = SENTIENCE_OTHER footstep_type = FOOTSTEP_MOB_SHOE + robust_searching = TRUE + +/mob/living/simple_animal/hostile/syndicate/Initialize(mapload) + . = ..() + if(prob(50)) + loot = list(/obj/effect/mob_spawn/human/corpse/syndicatesoldier, + /obj/item/salvage/loot/syndicate, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) + +/mob/living/simple_animal/hostile/syndicate/Aggro() + . = ..() + if(target) + playsound(loc, 'sound/misc/for_the_syndicate.ogg', 70, TRUE) ///////////////Sword and shield//////////// /mob/living/simple_animal/hostile/syndicate/melee - melee_damage_lower = 20 + melee_damage_lower = 30 melee_damage_upper = 25 icon_state = "syndicate_sword" icon_living = "syndicate_sword" attacktext = "slashes" - attack_sound = 'sound/weapons/bladeslice.ogg' + attack_sound = 'sound/weapons/blade1.ogg' armour_penetration_percentage = 40 armour_penetration_flat = 10 status_flags = 0 - loot = list(/obj/effect/mob_spawn/human/corpse/syndicatesoldier, /obj/item/melee/energy/sword/saber/red, /obj/item/shield/energy) var/melee_block_chance = 20 var/ranged_block_chance = 35 @@ -61,7 +80,7 @@ return adjustHealth(damage) visible_message("[src] has been attacked with [O] by [user].") - playsound(loc, O.hitsound, 25, 1, -1) + playsound(loc, O.hitsound, 25, TRUE, -1) else to_chat(usr, "This weapon is ineffective, it does no damage.") visible_message("[user] gently taps [src] with [O].") @@ -78,7 +97,12 @@ return 0 /mob/living/simple_animal/hostile/syndicate/melee/autogib - loot = list()//no loot, its gonna delete and gib. + loot = list(/obj/effect/mob_spawn/human/corpse/syndicatesoldier, + /obj/item/salvage/loot/syndicate, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot name = "Syndicate Operative" @@ -124,7 +148,7 @@ if(!seen_enemy) seen_enemy = TRUE if(!ranged) - playsound(loc, 'sound/weapons/saberon.ogg', 35, 1) + playsound(loc, 'sound/weapons/saberon.ogg', 35, TRUE) if(alert_on_shield_breach) if(length(depotarea.shield_list)) raise_alert("[name] reports that [target] is trying to breach the armory shield!") @@ -186,7 +210,7 @@ scan_cycles++ /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/AIShouldSleep(list/possible_targets) - FindTarget(possible_targets, 1) + FindTarget(possible_targets, TRUE) return FALSE /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/proc/raise_alert(reason) @@ -195,6 +219,14 @@ say("Intruder!") depotarea.increase_alert(reason) +/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/drop_loot() + // If a depot syndicate dies after the depot has been destroyed, assume it + // was gibbed as part of the destruction and don't drop its loot. + if(istype(depotarea) && depotarea.destroyed) + return + + return ..() + /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/death() if(!istype(depotarea)) return ..() @@ -230,22 +262,20 @@ . = ..() if(prob(50)) // 50% chance of switching to ranged variant. - // Designed to counter players taking cover behind reinforced plasmasglass. - // Does almost no danage in melee, but decent damage at range, and its shots go through glass. - melee_damage_lower = 10 - melee_damage_upper = 10 + melee_damage_lower = 30 + melee_damage_upper = 25 attacktext = "punches" - attack_sound = 'sound/weapons/punch1.ogg' + attack_sound = 'sound/weapons/cqchit1.ogg' ranged = TRUE rapid = 3 - retreat_distance = 3 + retreat_distance = 5 minimum_distance = 3 melee_block_chance = 0 ranged_block_chance = 0 icon_state = "syndicate_pistol" icon_living = "syndicate_pistol" - projectiletype = /obj/item/projectile/beam/laser - projectilesound = 'sound/weapons/laser.ogg' + projectiletype = /obj/item/projectile/bullet/armourpiercing + projectilesound = 'sound/weapons/gunshots/gunshot_pistol.ogg' /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/armory name = "Syndicate Quartermaster" @@ -257,6 +287,8 @@ health = 200 melee_block_chance = 40 alert_on_shield_breach = TRUE + death_sound = 'sound/mecha/mechmove03.ogg' + loot = list(/obj/effect/mob_spawn/human/corpse/syndicatequartermaster, /obj/effect/decal/cleanable/blood/innards, /obj/effect/decal/cleanable/blood, /obj/effect/gibspawner/generic, /obj/effect/gibspawner/generic) /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/armory/Initialize(mapload) . = ..() @@ -267,14 +299,21 @@ attacktext = "punches" attack_sound = 'sound/weapons/punch1.ogg' ranged = TRUE - retreat_distance = 3 - minimum_distance = 3 + retreat_distance = 2 + minimum_distance = 2 melee_block_chance = 0 ranged_block_chance = 0 icon_state = "syndicate_stormtrooper_shotgun" icon_living = "syndicate_stormtrooper_shotgun" + speed = 2 projectiletype = /obj/item/projectile/bullet/sniper/penetrator // Ignores cover. projectilesound = 'sound/weapons/gunshots/gunshot_sniper.ogg' + loot = list(/obj/effect/mob_spawn/human/corpse/syndicatequartermaster, + /obj/item/salvage/loot/syndicate, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) return INITIALIZE_HINT_LATELOAD /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/armory/LateInitialize() @@ -297,11 +336,17 @@ speed = 1 wander = FALSE alert_on_spacing = FALSE + death_sound = 'sound/mecha/mechmove03.ogg' + loot = list() // Explodes, doesn't drop loot. /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/space/Process_Spacemove(movement_dir = 0) return TRUE - +/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/space/death() + visible_message("[src] explodes!") + playsound(loc, 'sound/items/timer.ogg', 30, FALSE) + explosion(src, 0, 4, 4, flame_range = 2, adminlog = FALSE) + qdel(src) /mob/living/simple_animal/hostile/syndicate/melee/space name = "Syndicate Commando" @@ -309,12 +354,26 @@ minbodytemp = 0 icon_state = "syndicate_space_sword" icon_living = "syndicate_space_sword" - speed = 1 - loot = list(/obj/effect/mob_spawn/human/corpse/syndicatecommando, /obj/item/melee/energy/sword/saber/red, /obj/item/shield/energy) + speed = 1.5 + death_sound = 'sound/mecha/mechmove03.ogg' + loot = list(/obj/effect/mob_spawn/human/corpse/syndicatecommando, + /obj/item/salvage/loot/syndicate, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) /mob/living/simple_animal/hostile/syndicate/melee/space/Process_Spacemove(movement_dir = 0) return TRUE +/mob/living/simple_animal/hostile/syndicate/melee/space/Initialize(mapload) + . = ..() + if(prob(50)) + loot = list(/obj/effect/mob_spawn/human/corpse/syndicatecommando, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) /mob/living/simple_animal/hostile/syndicate/ranged ranged = TRUE @@ -325,22 +384,41 @@ icon_living = "syndicate_smg" projectilesound = 'sound/weapons/gunshots/gunshot.ogg' casingtype = /obj/item/ammo_casing/c45 - loot = list(/obj/effect/mob_spawn/human/corpse/syndicatesoldier, /obj/item/gun/projectile/automatic/c20r) - /mob/living/simple_animal/hostile/syndicate/ranged/space icon_state = "syndicate_space_smg" icon_living = "syndicate_space_smg" name = "Syndicate Commando" atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0) minbodytemp = 0 - speed = 1 - loot = list(/obj/effect/mob_spawn/human/corpse/syndicatecommando, /obj/item/gun/projectile/automatic/c20r) + speed = 1.5 + death_sound = 'sound/mecha/mechmove03.ogg' + loot = list(/obj/effect/mob_spawn/human/corpse/syndicatecommando, + /obj/item/salvage/loot/syndicate, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) + +/mob/living/simple_animal/hostile/syndicate/ranged/space/Initialize(mapload) + . = ..() + if(prob(50)) + loot = list(/obj/effect/mob_spawn/human/corpse/syndicatecommando, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) + /mob/living/simple_animal/hostile/syndicate/ranged/space/Process_Spacemove(movement_dir = 0) return TRUE /mob/living/simple_animal/hostile/syndicate/ranged/space/autogib - loot = list()//gonna gibe, no loot. + loot = list(/obj/item/salvage/loot/syndicate, + /obj/effect/mob_spawn/human/corpse/syndicatecommando, + /obj/effect/decal/cleanable/blood/innards, + /obj/effect/decal/cleanable/blood, + /obj/effect/gibspawner/generic, + /obj/effect/gibspawner/generic) /mob/living/simple_animal/hostile/viscerator name = "viscerator" diff --git a/code/modules/mob/living/stat_states.dm b/code/modules/mob/living/stat_states.dm index 551eac92d1dc..0698dd7bf790 100644 --- a/code/modules/mob/living/stat_states.dm +++ b/code/modules/mob/living/stat_states.dm @@ -75,7 +75,7 @@ update_blind_effects() update_sight() updatehealth("update revive") - hud_used?.reload_fullscreen() + reload_fullscreen() SEND_SIGNAL(src, COMSIG_LIVING_REVIVE, updating) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index b89bb7ec75a5..489d8edacafc 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -27,6 +27,10 @@ viewing_alternate_appearances = null LAssailant = null runechat_msg_location = null + if(length(observers)) + for(var/mob/dead/observe as anything in observers) + observe.reset_perspective(null) + return ..() /mob/Initialize(mapload) @@ -600,7 +604,7 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \ if(.) // Allows sharing HUDs with ghosts if(hud_used) - client.screen = list() + client.clear_screen() hud_used.show_hud(hud_used.hud_version) //mob verbs are faster than object verbs. See http://www.byond.com/forum/?post=1326139&page=2#comment8198716 for why this isn't atom/verb/examine() diff --git a/code/modules/mob/mob_vars.dm b/code/modules/mob/mob_vars.dm index 9f71bc02cfe8..b46a1d29f4e0 100644 --- a/code/modules/mob/mob_vars.dm +++ b/code/modules/mob/mob_vars.dm @@ -207,7 +207,7 @@ var/datum/input_focus = null /// Is our mob currently suiciding? Used for suicide code along with many different revival checks var/suiciding = FALSE - /// Used for some screen objects, such as + /// Used for some screen objects var/list/screens = list() /// lazy list. contains /atom/movable/screen/alert only, On /mob so clientless mobs will throw alerts properly var/list/alerts @@ -246,7 +246,8 @@ var/next_click_modifier = 1 /// Tracks the open UIs that a mob has, used in TGUI for various things, such as updating UIs var/list/open_uis = list() - + /// List of observers currently observing us. + var/list/mob/dead/observer/observers = list() /// Does this mob speak OOC? /// Controls whether they can say some symbols. var/speaks_ooc = FALSE diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 9e354111a889..ecd4db10155c 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -182,7 +182,10 @@ var/period_human_readable = "within [GLOB.configuration.general.roundstart_observer_period] minute\s" if(GLOB.configuration.general.roundstart_observer_period == 0) period_human_readable = "before the round started" - to_chat(src, "As you observed [period_human_readable], you can freely toggle antag-hud without losing respawnability.") + to_chat(src, "As you observed [period_human_readable], you can freely toggle antag-hud without losing respawnability, and can freely observe what other players see.") + if(!check_rights(R_MOD | R_ADMIN | R_MENTOR, FALSE, src)) + // admins always get aobserve + add_verb(observer, list(/mob/dead/observer/proc/do_observe, /mob/dead/observer/proc/observe)) observer.started_as_observer = 1 close_spawn_windows() var/obj/spawn_point diff --git a/code/modules/mod/mod_types.dm b/code/modules/mod/mod_types.dm index 370a5b29bcea..d3a1ffa188e2 100644 --- a/code/modules/mod/mod_types.dm +++ b/code/modules/mod/mod_types.dm @@ -45,6 +45,14 @@ /obj/item/mod/module/flashlight, ) +/obj/item/mod/control/pre_equipped/standard/explorer + applied_modules = list( + /obj/item/mod/module/storage/large_capacity, + /obj/item/mod/module/welding, + /obj/item/mod/module/flashlight, + /obj/item/mod/module/jetpack + ) + /obj/item/mod/control/pre_equipped/engineering theme = /datum/mod_theme/engineering applied_modules = list( diff --git a/code/modules/paperwork/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm index ad8101088b0e..215803c13d01 100644 --- a/code/modules/paperwork/filingcabinet.dm +++ b/code/modules/paperwork/filingcabinet.dm @@ -38,7 +38,7 @@ /obj/structure/filingcabinet/Initialize(mapload) - ..() + . = ..() for(var/obj/item/I in loc) if(istype(I, /obj/item/paper) || istype(I, /obj/item/folder) || istype(I, /obj/item/photo)) I.loc = src diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm index 6a3d492555a9..f55701150fdb 100644 --- a/code/modules/paperwork/pen.dm +++ b/code/modules/paperwork/pen.dm @@ -64,7 +64,7 @@ var/pen_colour_iconstate = "pencolor" /obj/item/pen/multi/Initialize(mapload) - ..() + . = ..() update_icon() /obj/item/pen/multi/proc/select_colour(mob/user as mob) diff --git a/code/modules/pda/messenger_plugins.dm b/code/modules/pda/messenger_plugins.dm index 74f4f3a51ca0..2c64ad4b98ba 100644 --- a/code/modules/pda/messenger_plugins.dm +++ b/code/modules/pda/messenger_plugins.dm @@ -4,7 +4,6 @@ /datum/data/pda/messenger_plugin/proc/user_act(mob/user as mob, obj/item/pda/P) return - /datum/data/pda/messenger_plugin/virus name = "*Send Virus*" diff --git a/code/modules/pda/pdas.dm b/code/modules/pda/pdas.dm index 9d290e709cbe..5bce65c3339b 100644 --- a/code/modules/pda/pdas.dm +++ b/code/modules/pda/pdas.dm @@ -133,6 +133,9 @@ /obj/item/pda/shaftminer icon_state = "pda-miner" +/obj/item/pda/explorer + icon_state = "pda-exp" + /obj/item/pda/syndicate default_cartridge = /obj/item/cartridge/syndicate/nuclear icon_state = "pda-syndi" diff --git a/code/modules/power/generators/turbine.dm b/code/modules/power/generators/turbine.dm index cd8a10789221..e81f4337882e 100644 --- a/code/modules/power/generators/turbine.dm +++ b/code/modules/power/generators/turbine.dm @@ -18,7 +18,7 @@ // S CT * T - Turbine // * ^ * * V * D - Doors with firedoor // **|***D**|** ^ - Fuel feed (Not vent, but a gas outlet) -// | | V - Suction vent (Like the ones in atmos +// | | V - Suction vent (Like the ones in atmos) // #define OVERDRIVE 4 @@ -407,8 +407,10 @@ /obj/machinery/computer/turbine_computer/Initialize() ..() - spawn(10) - locate_machinery() + return INITIALIZE_HINT_LATELOAD + +/obj/machinery/computer/turbine_computer/LateInitialize() + locate_machinery() /obj/machinery/computer/turbine_computer/proc/disconnect() //this disconnects the computer from the turbine, good for resets. diff --git a/code/modules/projectiles/ammunition/energy_lens.dm b/code/modules/projectiles/ammunition/energy_lens.dm index f1b453ec833e..dc73c017b47c 100644 --- a/code/modules/projectiles/ammunition/energy_lens.dm +++ b/code/modules/projectiles/ammunition/energy_lens.dm @@ -179,7 +179,7 @@ click_cooldown_override = 2 variance = 15 randomspread = 1 - delay = 2 + delay = 0 /// seperate balancing for cyborg, again /obj/item/ammo_casing/energy/disabler/cyborg diff --git a/code/modules/projectiles/guns/energy/kinetic_accelerator.dm b/code/modules/projectiles/guns/energy/kinetic_accelerator.dm index 4c2220793e6d..70869766e3b8 100644 --- a/code/modules/projectiles/guns/energy/kinetic_accelerator.dm +++ b/code/modules/projectiles/guns/energy/kinetic_accelerator.dm @@ -269,6 +269,18 @@ K.color = color +/obj/item/gun/energy/kinetic_accelerator/pistol + name = "proto-kinetic pistol" + desc = "A lightweight mining tool, sacrificing upgrade capacity for convenience." + icon_state = "kineticgun_p" + item_state = "gun" + w_class = WEIGHT_CLASS_SMALL + max_mod_capacity = 65 + can_bayonet = FALSE + can_flashlight = FALSE + can_holster = TRUE + + //Modkits /obj/item/borg/upgrade/modkit name = "kinetic accelerator modification kit" diff --git a/code/modules/projectiles/guns/energy/stun.dm b/code/modules/projectiles/guns/energy/stun.dm index 77f5b742d2cb..0c98f70adf6f 100644 --- a/code/modules/projectiles/guns/energy/stun.dm +++ b/code/modules/projectiles/guns/energy/stun.dm @@ -76,6 +76,7 @@ ammo_type = list(/obj/item/ammo_casing/energy/disabler/smg) shaded_charge = TRUE can_holster = FALSE + fire_delay = 0 /obj/item/gun/energy/disabler/smg/Initialize(mapload) . = ..() diff --git a/code/modules/projectiles/guns/projectile/automatic.dm b/code/modules/projectiles/guns/projectile/automatic.dm index c1d5716c5366..2199b87e1b2f 100644 --- a/code/modules/projectiles/guns/projectile/automatic.dm +++ b/code/modules/projectiles/guns/projectile/automatic.dm @@ -336,6 +336,7 @@ can_suppress = FALSE burst_size = 1 execution_speed = 5 SECONDS + fire_delay = 0 /obj/item/gun/projectile/automatic/lasercarbine/Initialize(mapload) . = ..() diff --git a/code/modules/projectiles/guns/projectile/saw.dm b/code/modules/projectiles/guns/projectile/saw.dm index 587e65bf0837..91a9eb677bd8 100644 --- a/code/modules/projectiles/guns/projectile/saw.dm +++ b/code/modules/projectiles/guns/projectile/saw.dm @@ -16,6 +16,7 @@ can_suppress = FALSE burst_size = 1 spread = 7 + fire_delay = 0 /obj/item/gun/projectile/automatic/l6_saw/Initialize(mapload) . = ..() diff --git a/code/modules/projectiles/guns/syringe_gun.dm b/code/modules/projectiles/guns/syringe_gun.dm index c930fb9efa2e..091b37dd56b9 100644 --- a/code/modules/projectiles/guns/syringe_gun.dm +++ b/code/modules/projectiles/guns/syringe_gun.dm @@ -15,7 +15,7 @@ var/max_syringes = 1 /obj/item/gun/syringe/Initialize() - ..() + . = ..() chambered = new /obj/item/ammo_casing/syringegun(src) /obj/item/gun/syringe/process_chamber() diff --git a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm index c20c2c4cdaa4..dc628655580e 100644 --- a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm +++ b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm @@ -423,7 +423,7 @@ var/recharge_rate = 1 // Keep this as an integer /obj/item/handheld_chem_dispenser/Initialize() - ..() + . = ..() cell = new(src) dispensable_reagents = sortList(dispensable_reagents) current_reagent = pick(dispensable_reagents) diff --git a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm index 645ed9f05243..195ee442f91e 100644 --- a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm +++ b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm @@ -29,6 +29,7 @@ /obj/item/stack/sheet/mineral/tranquillite = list("nothing" = 20), /obj/item/stack/sheet/mineral/silver = list("silver" = 20), /obj/item/stack/sheet/mineral/gold = list("gold" = 20), + /obj/item/stack/sheet/saltpetre_crystal = list("saltpetre" = 8), // Blender Stuff /obj/item/food/snacks/grown/tomato = list("ketchup" = 0), diff --git a/code/modules/reagents/chemistry/reagents/medicine.dm b/code/modules/reagents/chemistry/reagents/medicine.dm index d41ff2532afe..962320c4628d 100644 --- a/code/modules/reagents/chemistry/reagents/medicine.dm +++ b/code/modules/reagents/chemistry/reagents/medicine.dm @@ -467,6 +467,13 @@ M.Weaken(6 SECONDS) return list(effect, update_flags) +/datum/reagent/medicine/omnizine/no_addict + id = "omnizine_no_addiction" + overdose_threshold = 0 + addiction_chance = 0 + addiction_chance_additional = 100 + addiction_threshold = 0 + /datum/reagent/medicine/calomel name = "Calomel" id = "calomel" diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index 5745bbb95428..be196f847af3 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -98,9 +98,9 @@ . = ..() if(get_dist(user, src) && user == loc) . += "[round(reagents.total_volume)] units left." - . += "Alt-Click to empty it." + . += "Alt-Shift-Click to empty it." -/obj/item/reagent_containers/spray/AltClick(mob/user) +/obj/item/reagent_containers/spray/AltShiftClick(mob/user) if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user)) return if(tgui_alert(user, "Are you sure you want to empty that?", "Empty Bottle", list("Yes", "No")) != "Yes") diff --git a/code/modules/research/designs/machine_designs.dm b/code/modules/research/designs/machine_designs.dm index e75dc5db0327..d1d5e984bf5b 100644 --- a/code/modules/research/designs/machine_designs.dm +++ b/code/modules/research/designs/machine_designs.dm @@ -518,7 +518,7 @@ id = "ore_redemption" req_tech = list("programming" = 2, "engineering" = 2, "plasmatech" = 3) build_type = IMPRINTER - materials = list(MAT_GLASS=1000) + materials = list(MAT_GLASS = 1000) build_path = /obj/item/circuitboard/ore_redemption category = list ("Misc. Machinery") @@ -528,17 +528,27 @@ id = "mining_equipment_vendor" req_tech = list("engineering" = 3) build_type = IMPRINTER - materials = list(MAT_GLASS=1000) + materials = list(MAT_GLASS = 1000) build_path = /obj/item/circuitboard/mining_equipment_vendor category = list ("Misc. Machinery") +/datum/design/explorer_equipment_vendor + name = "Machine Design (Explorer Rewards Vendor Board)" + desc = "The circuit board for an Explorer Rewards Vendor." + id = "explorer_equipment_vendor" + req_tech = list("engineering" = 3) + build_type = IMPRINTER + materials = list(MAT_GLASS = 1000) + build_path = /obj/item/circuitboard/mining_equipment_vendor/explorer + category = list ("Misc. Machinery") + /datum/design/clawgame name = "Machine Design (Claw Game Board)" desc = "The circuit board for a Claw Game." id = "clawgame" req_tech = list("programming" = 1) build_type = IMPRINTER - materials = list(MAT_GLASS=1000) + materials = list(MAT_GLASS = 1000) build_path = /obj/item/circuitboard/clawgame category = list ("Misc. Machinery") @@ -548,7 +558,7 @@ id = "prize_counter" req_tech = list("programming" = 2, "materials" = 2) build_type = IMPRINTER - materials = list(MAT_GLASS=1000) + materials = list(MAT_GLASS = 1000) build_path = /obj/item/circuitboard/prize_counter category = list("Misc. Machinery") @@ -558,7 +568,7 @@ id = "gameboard" req_tech = list("programming" = 2) build_type = IMPRINTER - materials = list(MAT_GLASS=1000) + materials = list(MAT_GLASS = 1000) build_path = /obj/item/circuitboard/gameboard category = list("Misc. Machinery") @@ -568,7 +578,7 @@ id = "plantgenes" req_tech = list("programming" = 4, "biotech" = 3) build_type = IMPRINTER - materials = list(MAT_GLASS=1000) + materials = list(MAT_GLASS = 1000) build_path = /obj/item/circuitboard/plantgenes category = list("Hydroponics Machinery") @@ -578,7 +588,7 @@ id = "slotmachine" req_tech = list("programming" = 2) build_type = IMPRINTER - materials = list(MAT_GLASS=1000) + materials = list(MAT_GLASS = 1000) build_path = /obj/item/circuitboard/slot_machine category = list("Misc. Machinery") @@ -588,6 +598,6 @@ id = "bottlers" req_tech = list("programming" = 2) build_type = IMPRINTER - materials = list(MAT_GLASS=1000) + materials = list(MAT_GLASS = 1000) build_path = /obj/item/circuitboard/bottler category = list("Misc. Machinery") diff --git a/code/modules/research/designs/weapon_designs.dm b/code/modules/research/designs/weapon_designs.dm index 5e08df463b27..1a94f7a7f872 100644 --- a/code/modules/research/designs/weapon_designs.dm +++ b/code/modules/research/designs/weapon_designs.dm @@ -196,6 +196,7 @@ name = "WT-550 PDW Uranium Ammo Box (4.6x30mm TX)" desc = "A box of 20 uranium tipped rounds for the WT-550 PDW." id = "box_oldsmg_tx" + req_tech = list("combat" = 3, "materials" = 2, "syndicate" = 3) materials = list(MAT_METAL = 6000, MAT_SILVER = 600, MAT_URANIUM = 2000) build_path = /obj/item/ammo_box/wt550/wttx category = list("Weapons") diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm index ce515e4ffe2b..04d8ee6a358e 100644 --- a/code/modules/research/experimentor.dm +++ b/code/modules/research/experimentor.dm @@ -68,8 +68,8 @@ if(initial(tempCheck.icon_state) != null) critical_items += I -/obj/machinery/r_n_d/experimentor/Initialize(mapload) - ..() +/obj/machinery/r_n_d/experimentor/Initialize(mapload) // DIEEEEEEEEEEEEEEEEEEEEEEE + . = ..() component_parts = list() component_parts += new /obj/item/circuitboard/experimentor(src) component_parts += new /obj/item/stock_parts/scanning_module(src) diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm index cceda0d9ae6e..0eb7290c88d4 100644 --- a/code/modules/research/server.dm +++ b/code/modules/research/server.dm @@ -161,7 +161,7 @@ server_id = -1 /obj/machinery/r_n_d/server/centcom/Initialize() - ..() + . = ..() var/list/no_id_servers = list() var/list/server_ids = list() for(var/obj/machinery/r_n_d/server/S in GLOB.machines) diff --git a/code/modules/response_team/ert_outfits.dm b/code/modules/response_team/ert_outfits.dm index 8f3e792afc94..0f9d6727ed3f 100644 --- a/code/modules/response_team/ert_outfits.dm +++ b/code/modules/response_team/ert_outfits.dm @@ -447,6 +447,13 @@ r_pocket = /obj/item/nullrod/ert glasses = /obj/item/clothing/glasses/sunglasses + backpack_contents = list( + /obj/item/clothing/shoes/magboots = 1, + /obj/item/storage/box/zipties = 1, + /obj/item/flashlight/seclite = 1, + /obj/item/storage/bible = 1 + ) + cybernetic_implants = list( /obj/item/organ/internal/cyberimp/eyes/hud/security, /obj/item/organ/internal/cyberimp/chest/nutriment/hardened diff --git a/code/modules/shuttle/emergency.dm b/code/modules/shuttle/emergency.dm index 36343d811fa2..1a7dd0f29bab 100644 --- a/code/modules/shuttle/emergency.dm +++ b/code/modules/shuttle/emergency.dm @@ -532,7 +532,7 @@ var/target_area = /area/mine/unexplored /obj/docking_port/stationary/random/Initialize() - ..() + . = ..() var/list/turfs = get_area_turfs(target_area) var/turf/T = pick(turfs) src.loc = T diff --git a/code/modules/shuttle/lance_docking_targeter.dm b/code/modules/shuttle/lance_docking_targeter.dm index f758267d20b2..9b89bc51916b 100644 --- a/code/modules/shuttle/lance_docking_targeter.dm +++ b/code/modules/shuttle/lance_docking_targeter.dm @@ -27,7 +27,7 @@ to_chat(user, "You'll want this to dock on the station.") return var/list/dir_choices = list("North" = NORTH, "East" = EAST, "South" = SOUTH, "West" = WEST) - var/dir_choice = tgui_input_list(user, "Select the new docking area orientation.", "Dock Orientation", dir_choices) + var/dir_choice = tgui_input_list(user, "Which direction should the shuttle approach from?", "Dock Orientation", dir_choices) if(!dir_choice) return diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm index 12776a8cceaf..1f4a3af6c0b9 100644 --- a/code/modules/shuttle/shuttle.dm +++ b/code/modules/shuttle/shuttle.dm @@ -638,6 +638,8 @@ M.buckled.unbuckle_mob(M, force = TRUE) if(isliving(AM)) var/mob/living/L = AM + if(L.incorporeal_move || L.status_flags & GODMODE) + continue L.stop_pulling() L.visible_message("[L] is hit by \ a hyperspace ripple!", @@ -808,6 +810,8 @@ var/admin_controlled var/max_connect_range = 7 var/moved = FALSE //workaround for nukie shuttle, hope I find a better way to do this... + /// Do we want to search for shuttle destinations as part of Initialize (fixed) or LateInitialize (variable) + var/find_destinations_in_late_init = FALSE /obj/machinery/computer/shuttle/New(location, obj/item/circuitboard/shuttle/C) ..() @@ -817,6 +821,12 @@ /obj/machinery/computer/shuttle/Initialize(mapload) . = ..() + if(find_destinations_in_late_init && mapload) // We only care about this in mapload, if its mid round its fine + return INITIALIZE_HINT_LATELOAD + + connect() + +/obj/machinery/computer/shuttle/LateInitialize() connect() /obj/machinery/computer/shuttle/proc/connect() @@ -952,27 +962,7 @@ circuit = /obj/item/circuitboard/white_ship shuttleId = "whiteship" possible_destinations = null // Set at runtime - -/obj/machinery/computer/shuttle/white_ship/Initialize(mapload) - if(mapload) - return INITIALIZE_HINT_LATELOAD - return ..() - -// Yes. This is disgusting, but the console needs to be loaded AFTER the docking ports load. -/obj/machinery/computer/shuttle/white_ship/LateInitialize() - Initialize() - -/obj/machinery/computer/shuttle/engineering - name = "Engineering Shuttle Console" - desc = "Used to call and send the engineering shuttle." - shuttleId = "engineering" - possible_destinations = "engineering_home;engineering_away" - -/obj/machinery/computer/shuttle/science - name = "Science Shuttle Console" - desc = "Used to call and send the science shuttle." - shuttleId = "science" - possible_destinations = "science_home;science_away" + find_destinations_in_late_init = TRUE /obj/machinery/computer/shuttle/admin name = "admin shuttle console" @@ -997,6 +987,7 @@ /obj/machinery/computer/shuttle/trade name = "Freighter Console" resistance_flags = INDESTRUCTIBLE + flags = NODECONSTRUCT /obj/machinery/computer/shuttle/trade/sol req_access = list(ACCESS_TRADE_SOL) diff --git a/code/modules/shuttle/supply.dm b/code/modules/shuttle/supply.dm index 9853fc4e78bc..76206d22cdfe 100644 --- a/code/modules/shuttle/supply.dm +++ b/code/modules/shuttle/supply.dm @@ -53,7 +53,7 @@ var/blocking_item = "ERR_UNKNOWN" /obj/docking_port/mobile/supply/Initialize() - ..() + . = ..() for(var/T in subtypesof(/datum/economy/simple_seller)) var/datum/economy/simple_seller/seller = new T simple_sellers += seller @@ -808,6 +808,34 @@ if(istype(AM.loc, /obj/mecha/working)) return COMSIG_CARGO_SELL_SKIP +/datum/economy/simple_seller/explorer_salvage + var/list/salvage_counts = list() + +/datum/economy/simple_seller/explorer_salvage/begin_sell(obj/docking_port/mobile/supply/S) + LAZYCLEARLIST(salvage_counts) + +/datum/economy/simple_seller/explorer_salvage/check_sell(obj/docking_port/mobile/supply/S, atom/movable/AM) + if(istype(AM, /obj/item/salvage)) + return COMSIG_CARGO_SELL_NORMAL + +/datum/economy/simple_seller/explorer_salvage/sell_normal(obj/docking_port/mobile/supply/S, atom/movable/AM, datum/economy/cargo_shuttle_manifest/manifest) + if(!..()) + return + + salvage_counts[AM.name]++ + +/datum/economy/simple_seller/explorer_salvage/end_sell(obj/docking_port/mobile/supply/S, datum/economy/cargo_shuttle_manifest/manifest) + if(!salvage_counts) + return + for(var/salvage_name in salvage_counts) + var/datum/economy/line_item/item = new + item.account = SSeconomy.cargo_account + var/count = salvage_counts[salvage_name] + item.credits = count * SSeconomy.credits_per_salvage + item.reason = "Received [count] haul(s) of [salvage_name]." + manifest.line_items += item + SSblackbox.record_feedback("nested tally", "cargo salvage sold", count, list(salvage_name, "count")) + SSblackbox.record_feedback("nested tally", "cargo salvage sold", item.credits, list(salvage_name, "credits")) /datum/economy/cargo_shuttle_manifest var/list/items_to_sell = list() diff --git a/code/modules/space_management/space_level.dm b/code/modules/space_management/space_level.dm index 5512447e3464..a595a626d152 100644 --- a/code/modules/space_management/space_level.dm +++ b/code/modules/space_management/space_level.dm @@ -145,7 +145,6 @@ GLOBAL_LIST_INIT(atmos_machine_typecache, typecacheof(/obj/machinery/atmospherics)) GLOBAL_LIST_INIT(cable_typecache, typecacheof(/obj/structure/cable)) -GLOBAL_LIST_INIT(maploader_typecache, typecacheof(/obj/effect/landmark/map_loader)) /datum/space_level/proc/resume_init() if(dirt_count > 0) @@ -156,12 +155,8 @@ GLOBAL_LIST_INIT(maploader_typecache, typecacheof(/obj/effect/landmark/map_loade init_list = list() var/watch = start_watch() listclearnulls(our_atoms) - var/list/late_maps = typecache_filter_list(our_atoms, GLOB.maploader_typecache) var/list/pipes = typecache_filter_list(our_atoms, GLOB.atmos_machine_typecache) var/list/cables = typecache_filter_list(our_atoms, GLOB.cable_typecache) - // If we don't carefully add dirt around the map templates, bad stuff happens - // so we separate them out here - our_atoms -= late_maps SSatoms.InitializeAtoms(our_atoms, FALSE) log_debug("Primary initialization finished in [stop_watch(watch)]s.") our_atoms.Cut() @@ -169,8 +164,6 @@ GLOBAL_LIST_INIT(maploader_typecache, typecacheof(/obj/effect/landmark/map_loade do_pipes(pipes) if(length(cables)) do_cables(cables) - if(length(late_maps)) - do_late_maps(late_maps) /datum/space_level/proc/do_pipes(list/pipes) var/watch = start_watch() @@ -189,13 +182,3 @@ GLOBAL_LIST_INIT(maploader_typecache, typecacheof(/obj/effect/landmark/map_loade SSmachines.setup_template_powernets(cables) cables.Cut() log_debug("Took [stop_watch(watch)]s") - -/datum/space_level/proc/do_late_maps(list/late_maps) - var/watch = start_watch() - log_debug("Loading map templates on z-level '[zpos]'!") - GLOB.space_manager.add_dirt(zpos) // Let's not repeatedly resume init for each template - for(var/atom/movable/AM in late_maps) - AM.Initialize() - late_maps.Cut() - GLOB.space_manager.remove_dirt(zpos) - log_debug("Took [stop_watch(watch)]s") diff --git a/code/modules/station_goals/bsa.dm b/code/modules/station_goals/bsa.dm index 92923a597ccf..569f121d9a8a 100644 --- a/code/modules/station_goals/bsa.dm +++ b/code/modules/station_goals/bsa.dm @@ -293,7 +293,7 @@ target_all_areas = TRUE /obj/machinery/computer/bsa_control/admin/Initialize() - ..() + . = ..() if(!cannon) cannon = deploy() diff --git a/code/modules/supply/supply_packs/pack_miscellaneous.dm b/code/modules/supply/supply_packs/pack_miscellaneous.dm index 66b1ef894d69..b0722805439b 100644 --- a/code/modules/supply/supply_packs/pack_miscellaneous.dm +++ b/code/modules/supply/supply_packs/pack_miscellaneous.dm @@ -522,7 +522,8 @@ /datum/supply_packs/misc/vending/clothingvendor/cargo name = "Cargo Clothing Vendors Crate" cost = 50 - contains = list(/obj/item/vending_refill/cargodrobe) + contains = list(/obj/item/vending_refill/cargodrobe, + /obj/item/vending_refill/exploredrobe) containername = "cargo clothing vendor crate" ///////////// Station Goals diff --git a/code/modules/supply/supply_packs/pack_science.dm b/code/modules/supply/supply_packs/pack_science.dm index 51bc785d0406..97be6d8a40d9 100644 --- a/code/modules/supply/supply_packs/pack_science.dm +++ b/code/modules/supply/supply_packs/pack_science.dm @@ -41,19 +41,28 @@ access = ACCESS_RD /datum/supply_packs/science/robotics/mecha_ripley - name = "Circuit Crate (Ripley APLU)" + name = "Construction Crate (Ripley APLU)" contains = list(/obj/item/book/manual/ripley_build_and_repair, - /obj/item/circuitboard/mecha/ripley/main, //TEMPORARY due to lack of circuitboard printer - /obj/item/circuitboard/mecha/ripley/peripherals) //TEMPORARY due to lack of circuitboard printer - cost = 500 - containername = "\improper APLU \"Ripley\" circuit crate" + /obj/item/circuitboard/mecha/ripley/main, + /obj/item/circuitboard/mecha/ripley/peripherals, + /obj/item/clothing/suit/fire/firefighter, + /obj/item/stack/sheet/plasteel = 15) + cost = 350 + containertype = /obj/structure/closet/crate/sci/robo + containername = "\improper APLU \"Ripley\" construction crate" + announce_beacons = list("Research Division" = list("Robotics")) + department_restrictions = list(DEPARTMENT_ENGINEERING, DEPARTMENT_SCIENCE) // depending on module combinations, this is miner or engi mech /datum/supply_packs/science/robotics/mecha_odysseus - name = "Circuit Crate (Odysseus)" - contains = list(/obj/item/circuitboard/mecha/odysseus/peripherals, //TEMPORARY due to lack of circuitboard printer - /obj/item/circuitboard/mecha/odysseus/main) //TEMPORARY due to lack of circuitboard printer - cost = 450 - containername = "\improper \"Odysseus\" circuit crate" + name = "Construction Crate (Odysseus)" + contains = list(/obj/item/circuitboard/mecha/odysseus/peripherals, + /obj/item/circuitboard/mecha/odysseus/main, + /obj/item/mecha_parts/mecha_equipment/medical/sleeper, + /obj/item/stack/sheet/plasteel = 5) + cost = 350 + containertype = /obj/structure/closet/crate/sci/robo + containername = "\improper \"Odysseus\" construction crate" + department_restrictions = list(DEPARTMENT_MEDICAL, DEPARTMENT_SCIENCE) // medical mech for medical shenanigans /datum/supply_packs/science/plasma name = "Plasma Assembly Crate" diff --git a/code/modules/surgery/encased.dm b/code/modules/surgery/encased.dm index acf72adcf957..9651704951d2 100644 --- a/code/modules/surgery/encased.dm +++ b/code/modules/surgery/encased.dm @@ -11,7 +11,9 @@ allowed_tools = list( TOOL_SAW = 100, /obj/item/hatchet = 90, - /obj/item/wirecutters = 35 // silly goose + /obj/item/chainsaw = 90, // Chainsaws were actually invented to replace manual bonesaws. Obvously *these* chainsaws aren't exactly designed for that, but then again, neither is a hatchet or a set of wirecutters. + /obj/item/butcher_chainsaw = 90, + TOOL_WIRECUTTER = 35 // Silly goose! ) time = 5.4 SECONDS diff --git a/code/modules/surgery/generic.dm b/code/modules/surgery/generic.dm index 244eed752412..286535d4df96 100644 --- a/code/modules/surgery/generic.dm +++ b/code/modules/surgery/generic.dm @@ -14,11 +14,13 @@ /obj/item/kitchen/knife = 90, /obj/item/kitchen/knife/shiv = 70, /obj/item/shard = 60, + TOOL_WIRECUTTER = 35, /obj/item/scissors = 12, - /obj/item/butcher_chainsaw = 1, /obj/item/claymore = 6, /obj/item/melee/energy = 6, /obj/item/pen/edagger = 6, + /obj/item/chainsaw = 1, + /obj/item/butcher_chainsaw = 1 ) time = 1.6 SECONDS @@ -162,7 +164,8 @@ TOOL_CAUTERY = 100, /obj/item/clothing/mask/cigarette = 90, /obj/item/lighter = 60, - TOOL_WELDER = 30 + TOOL_WELDER = 30, + /obj/item/flamethrower = 1 // You make do with what ya got... ) time = 2.4 SECONDS @@ -251,11 +254,14 @@ /datum/surgery_step/generic/amputate name = "amputate limb" - allowed_tools = list( TOOL_SAW = 100, + /obj/item/chainsaw = 100, // It's pretty good at doing this outside of surgery tbh... + /obj/item/butcher_chainsaw = 100, /obj/item/hatchet = 90, - /obj/item/melee/arm_blade = 75 + /obj/item/melee/arm_blade = 75, + /obj/item/claymore = 75, + /obj/item/melee/energy = 75 ) time = 10 SECONDS diff --git a/code/modules/surgery/organs/augments_arms.dm b/code/modules/surgery/organs/augments_arms.dm index ec626a19ba64..14faed1c8ac6 100644 --- a/code/modules/surgery/organs/augments_arms.dm +++ b/code/modules/surgery/organs/augments_arms.dm @@ -489,7 +489,7 @@ icon = 'icons/obj/weapons/energy_melee.dmi' righthand_file = 'icons/mob/inhands/implants_righthand.dmi' lefthand_file = 'icons/mob/inhands/implants_lefthand.dmi' - icon_state = "razorwire_weapon" + icon_state = "razorwire" item_state = "razorwire" w_class = WEIGHT_CLASS_BULKY sharp = TRUE @@ -498,6 +498,24 @@ reach = 2 hitsound = 'sound/weapons/whip.ogg' attack_verb = list("slashes", "whips", "lashes", "lacerates") + ///List of skins for the razorwire. + var/list/razorwire_skin_options = list() + +/obj/item/melee/razorwire/Initialize(mapload) + . = ..() + var/random_colour = pick("razorwire", "razorwire_teal", "razorwire_yellow", "razorwire_purple", "razorwire_green") + icon_state = random_colour + item_state = random_colour + update_icon() + razorwire_skin_options["Reliable Red"] = "razorwire" + razorwire_skin_options["Troubling Teal"] = "razorwire_teal" + razorwire_skin_options["Yearning Yellow"] = "razorwire_yellow" + razorwire_skin_options["Plasma Purple"] = "razorwire_purple" + razorwire_skin_options["Great Green"] = "razorwire_green" + +/obj/item/melee/razorwire/examine(mob/user) + . = ..() + . += "Alt-click it to reskin it." /obj/item/melee/razorwire/examine_more(mob/user) . = ..() @@ -512,6 +530,35 @@ . += "Favored by assassins for their stealth and efficiency, Cybersun exercises discretion in its distribution, favoring clients in their good graces. \ It falls behind other energy weapons due to its thinner and more loose pressure, however it is praised more as a side-arm for unarmored soft targets." +/obj/item/melee/razorwire/AltClick(mob/user) + ..() + if(user.incapacitated()) + to_chat(user, "You can't do that right now!") + return + if(loc == user) + reskin(user) + +/obj/item/melee/razorwire/proc/reskin(mob/M) + var/list/skins = list() + for(var/I in razorwire_skin_options) + skins[I] = image(icon, icon_state = razorwire_skin_options[I]) + var/choice = show_radial_menu(M, src, skins, radius = 40, custom_check = CALLBACK(src, PROC_REF(reskin_radial_check), M), require_near = TRUE) + + if(choice && reskin_radial_check(M)) + icon_state = razorwire_skin_options[choice] + item_state = razorwire_skin_options[choice] + update_icon() + M.update_inv_r_hand() + M.update_inv_l_hand() + +/obj/item/melee/razorwire/proc/reskin_radial_check(mob/user) + if(!ishuman(user)) + return FALSE + var/mob/living/carbon/human/H = user + if(!src || !H.is_in_hands(src) || HAS_TRAIT(H, TRAIT_HANDS_BLOCKED)) + return FALSE + return TRUE + /obj/item/organ/internal/cyberimp/arm/razorwire name = "razorwire spool implant" desc = "An integrated spool of razorwire, capable of being used as a weapon when whipped at your foes. \ diff --git a/code/modules/surgery/organs_internal.dm b/code/modules/surgery/organs_internal.dm index aa542a8e91ae..4f07e8a71c4d 100644 --- a/code/modules/surgery/organs_internal.dm +++ b/code/modules/surgery/organs_internal.dm @@ -702,7 +702,10 @@ allowed_tools = list( TOOL_SAW = 100, /obj/item/melee/energy/sword/cyborg/saw = 100, - /obj/item/hatchet = 90 + /obj/item/hatchet = 90, + /obj/item/chainsaw/ = 90, + /obj/item/butcher_chainsaw = 90, + TOOL_WIRECUTTER = 35 ) time = 5.4 SECONDS @@ -737,12 +740,15 @@ allowed_tools = list( TOOL_SCALPEL = 100, /obj/item/kitchen/knife = 90, + /obj/item/kitchen/knife/shiv = 70, /obj/item/shard = 60, + TOOL_WIRECUTTER = 35, /obj/item/scissors = 12, - /obj/item/butcher_chainsaw = 1, /obj/item/claymore = 6, /obj/item/melee/energy = 6, - /obj/item/pen/edagger = 6 + /obj/item/pen/edagger = 6, + /obj/item/chainsaw = 1, + /obj/item/butcher_chainsaw = 1 ) time = 1.6 SECONDS @@ -829,7 +835,8 @@ TOOL_CAUTERY = 100, /obj/item/clothing/mask/cigarette = 90, /obj/item/lighter = 60, - TOOL_WELDER = 30 + TOOL_WELDER = 30, + /obj/item/flamethrower = 1 ) time = 2.4 SECONDS diff --git a/code/modules/surgery/other.dm b/code/modules/surgery/other.dm index 6743fce0a658..22da9cad8767 100644 --- a/code/modules/surgery/other.dm +++ b/code/modules/surgery/other.dm @@ -186,6 +186,7 @@ allowed_tools = list( TOOL_SCALPEL = 100, /obj/item/kitchen/knife = 90, + /obj/item/kitchen/knife/shiv = 70, /obj/item/shard = 60 ) diff --git a/code/modules/tgui/modules/ghost_hud_panel.dm b/code/modules/tgui/modules/ghost_hud_panel.dm index cff690613947..2e6a6b8d58d9 100644 --- a/code/modules/tgui/modules/ghost_hud_panel.dm +++ b/code/modules/tgui/modules/ghost_hud_panel.dm @@ -81,6 +81,9 @@ GLOBAL_DATUM_INIT(ghost_hud_panel, /datum/ui_module/ghost_hud_panel, new) GLOB.antag_hud_users |= ghost.ckey + if(!check_rights(R_MOD | R_ADMIN | R_MENTOR, FALSE)) + // admins always get aobserve + add_verb(ghost, list(/mob/dead/observer/proc/do_observe, /mob/dead/observer/proc/observe)) ghost.antagHUD = TRUE for(var/datum/atom_hud/antag/H in GLOB.huds) diff --git a/code/modules/unit_tests/_unit_tests.dm b/code/modules/unit_tests/_unit_tests.dm index f1e1b6c8300d..cbaa4b3043f3 100644 --- a/code/modules/unit_tests/_unit_tests.dm +++ b/code/modules/unit_tests/_unit_tests.dm @@ -12,6 +12,7 @@ #include "config_sanity.dm" #include "crafting_lists.dm" #include "emotes.dm" +#include "init_sanity.dm" #include "log_format.dm" #include "map_templates.dm" #include "map_tests.dm" diff --git a/code/modules/unit_tests/init_sanity.dm b/code/modules/unit_tests/init_sanity.dm new file mode 100644 index 000000000000..1584179cbe71 --- /dev/null +++ b/code/modules/unit_tests/init_sanity.dm @@ -0,0 +1,11 @@ +/datum/unit_test/initialize_sanity/Run() + if(length(SSatoms.BadInitializeCalls)) + Fail("Bad Initialize() calls detected. Please read logs.") + var/list/init_failures_to_text = list( + "[BAD_INIT_QDEL_BEFORE]" = "Qdeleted Before Initialized", + "[BAD_INIT_DIDNT_INIT]" = "Did Not Initialize", + "[BAD_INIT_SLEPT]" = "Initialize() Slept", + "[BAD_INIT_NO_HINT]" = "No Initialize() Hint Returned", + ) + for(var/failure in SSatoms.BadInitializeCalls) + Fail("[failure]: [init_failures_to_text["[SSatoms.BadInitializeCalls[failure]]"]]") // You like stacked brackets? diff --git a/code/modules/world_topic/adminmsg.dm b/code/modules/world_topic/adminmsg.dm index fdbfba8a4d34..a8cfb57101d9 100644 --- a/code/modules/world_topic/adminmsg.dm +++ b/code/modules/world_topic/adminmsg.dm @@ -28,12 +28,12 @@ C.last_discord_pm_time = 0 SEND_SOUND(C, sound('sound/effects/adminhelp.ogg')) - to_chat(C, message, , MESSAGE_TYPE_ADMINPM) + to_chat(C, message, MESSAGE_TYPE_ADMINPM) for(var/client/A in GLOB.admins) // GLOB.admins includes anyone with a holder datum (mentors too). This makes sure only admins see ahelps if(check_rights(R_ADMIN, FALSE, A.mob)) if(A != C) - to_chat(A, amessage, , MESSAGE_TYPE_ADMINPM) + to_chat(A, amessage, MESSAGE_TYPE_ADMINPM) return json_encode(list("success" = "Message Successful")) diff --git a/icons/_nanomaps/Cyberiad_nanomap_z1.png b/icons/_nanomaps/Cyberiad_nanomap_z1.png index c7d9da2ba13a..54df4bdf4c20 100644 Binary files a/icons/_nanomaps/Cyberiad_nanomap_z1.png and b/icons/_nanomaps/Cyberiad_nanomap_z1.png differ diff --git a/icons/mob/actions/actions.dmi b/icons/mob/actions/actions.dmi index ed1b9f9f312c..567b10475582 100644 Binary files a/icons/mob/actions/actions.dmi and b/icons/mob/actions/actions.dmi differ diff --git a/icons/mob/clothing/head.dmi b/icons/mob/clothing/head.dmi index 855399da0d0d..b501667f6612 100644 Binary files a/icons/mob/clothing/head.dmi and b/icons/mob/clothing/head.dmi differ diff --git a/icons/mob/clothing/head/beret.dmi b/icons/mob/clothing/head/beret.dmi index 90d95e4b408b..70b98484b479 100644 Binary files a/icons/mob/clothing/head/beret.dmi and b/icons/mob/clothing/head/beret.dmi differ diff --git a/icons/mob/clothing/head/softcap.dmi b/icons/mob/clothing/head/softcap.dmi index b810e9904b0a..679d6da46029 100644 Binary files a/icons/mob/clothing/head/softcap.dmi and b/icons/mob/clothing/head/softcap.dmi differ diff --git a/icons/mob/clothing/species/drask/head/beret.dmi b/icons/mob/clothing/species/drask/head/beret.dmi index 4466a4bb6b7c..2103275d92c2 100644 Binary files a/icons/mob/clothing/species/drask/head/beret.dmi and b/icons/mob/clothing/species/drask/head/beret.dmi differ diff --git a/icons/mob/clothing/species/drask/suit.dmi b/icons/mob/clothing/species/drask/suit.dmi index d321eca14ede..a386bd8186ce 100644 Binary files a/icons/mob/clothing/species/drask/suit.dmi and b/icons/mob/clothing/species/drask/suit.dmi differ diff --git a/icons/mob/clothing/species/drask/under/cargo.dmi b/icons/mob/clothing/species/drask/under/cargo.dmi index 382e2d6e825c..79a977b93ac9 100644 Binary files a/icons/mob/clothing/species/drask/under/cargo.dmi and b/icons/mob/clothing/species/drask/under/cargo.dmi differ diff --git a/icons/mob/clothing/species/grey/suit.dmi b/icons/mob/clothing/species/grey/suit.dmi index 2b2c0fd99915..541c0b645cd2 100644 Binary files a/icons/mob/clothing/species/grey/suit.dmi and b/icons/mob/clothing/species/grey/suit.dmi differ diff --git a/icons/mob/clothing/species/grey/under/cargo.dmi b/icons/mob/clothing/species/grey/under/cargo.dmi index 4ed5cc61bd40..3c1dd10876b0 100644 Binary files a/icons/mob/clothing/species/grey/under/cargo.dmi and b/icons/mob/clothing/species/grey/under/cargo.dmi differ diff --git a/icons/mob/clothing/species/kidan/suit.dmi b/icons/mob/clothing/species/kidan/suit.dmi index e63c4014d0d7..b13cac11f91b 100644 Binary files a/icons/mob/clothing/species/kidan/suit.dmi and b/icons/mob/clothing/species/kidan/suit.dmi differ diff --git a/icons/mob/clothing/species/kidan/under/cargo.dmi b/icons/mob/clothing/species/kidan/under/cargo.dmi index 5aea23d076ac..de0bba7d66ce 100644 Binary files a/icons/mob/clothing/species/kidan/under/cargo.dmi and b/icons/mob/clothing/species/kidan/under/cargo.dmi differ diff --git a/icons/mob/clothing/species/plasmaman/helmet.dmi b/icons/mob/clothing/species/plasmaman/helmet.dmi index 0c50caa58a42..25eb75c13e75 100644 Binary files a/icons/mob/clothing/species/plasmaman/helmet.dmi and b/icons/mob/clothing/species/plasmaman/helmet.dmi differ diff --git a/icons/mob/clothing/species/plasmaman/uniform.dmi b/icons/mob/clothing/species/plasmaman/uniform.dmi index 4b7af92aacb5..deb8d52fd469 100644 Binary files a/icons/mob/clothing/species/plasmaman/uniform.dmi and b/icons/mob/clothing/species/plasmaman/uniform.dmi differ diff --git a/icons/mob/clothing/species/vox/head/beret.dmi b/icons/mob/clothing/species/vox/head/beret.dmi index 05f9b1547181..f2544b868d10 100644 Binary files a/icons/mob/clothing/species/vox/head/beret.dmi and b/icons/mob/clothing/species/vox/head/beret.dmi differ diff --git a/icons/mob/clothing/species/vox/head/softcap.dmi b/icons/mob/clothing/species/vox/head/softcap.dmi index fb576bdbe61f..0f9259e27357 100644 Binary files a/icons/mob/clothing/species/vox/head/softcap.dmi and b/icons/mob/clothing/species/vox/head/softcap.dmi differ diff --git a/icons/mob/clothing/species/vox/suit.dmi b/icons/mob/clothing/species/vox/suit.dmi index 70f6748d3f0c..715385686576 100644 Binary files a/icons/mob/clothing/species/vox/suit.dmi and b/icons/mob/clothing/species/vox/suit.dmi differ diff --git a/icons/mob/clothing/species/vox/under/cargo.dmi b/icons/mob/clothing/species/vox/under/cargo.dmi index 8771279567b0..5d94ed9a428b 100644 Binary files a/icons/mob/clothing/species/vox/under/cargo.dmi and b/icons/mob/clothing/species/vox/under/cargo.dmi differ diff --git a/icons/mob/clothing/suit.dmi b/icons/mob/clothing/suit.dmi index 2d4bec4c9c62..4d0ccf481df4 100644 Binary files a/icons/mob/clothing/suit.dmi and b/icons/mob/clothing/suit.dmi differ diff --git a/icons/mob/clothing/under/cargo.dmi b/icons/mob/clothing/under/cargo.dmi index 6fcc309e9c45..37b367cfc680 100644 Binary files a/icons/mob/clothing/under/cargo.dmi and b/icons/mob/clothing/under/cargo.dmi differ diff --git a/icons/mob/hud/job_assets.dmi b/icons/mob/hud/job_assets.dmi index 38d6fa4f0486..1a8f95de3cfe 100644 Binary files a/icons/mob/hud/job_assets.dmi and b/icons/mob/hud/job_assets.dmi differ diff --git a/icons/mob/hud/sechud.dmi b/icons/mob/hud/sechud.dmi index 193e3b323456..c1fa305d1b22 100644 Binary files a/icons/mob/hud/sechud.dmi and b/icons/mob/hud/sechud.dmi differ diff --git a/icons/mob/inhands/implants_lefthand.dmi b/icons/mob/inhands/implants_lefthand.dmi index ceb1066064b8..da5342fb4f64 100644 Binary files a/icons/mob/inhands/implants_lefthand.dmi and b/icons/mob/inhands/implants_lefthand.dmi differ diff --git a/icons/mob/inhands/implants_righthand.dmi b/icons/mob/inhands/implants_righthand.dmi index 1d546792b8cc..48f8faee677a 100644 Binary files a/icons/mob/inhands/implants_righthand.dmi and b/icons/mob/inhands/implants_righthand.dmi differ diff --git a/icons/mob/lavaland/lavaland_monsters.dmi b/icons/mob/lavaland/lavaland_monsters.dmi index 5c89b0d2f82e..4a46793e3f18 100644 Binary files a/icons/mob/lavaland/lavaland_monsters.dmi and b/icons/mob/lavaland/lavaland_monsters.dmi differ diff --git a/icons/mob/spacedragon.dmi b/icons/mob/spacedragon.dmi index 8dbd57613fdc..e5ee23c64e03 100644 Binary files a/icons/mob/spacedragon.dmi and b/icons/mob/spacedragon.dmi differ diff --git a/icons/obj/card.dmi b/icons/obj/card.dmi index 3818dd761e92..7f44f6a4f87b 100644 Binary files a/icons/obj/card.dmi and b/icons/obj/card.dmi differ diff --git a/icons/obj/closet.dmi b/icons/obj/closet.dmi index 813f7735294c..59622230cc42 100644 Binary files a/icons/obj/closet.dmi and b/icons/obj/closet.dmi differ diff --git a/icons/obj/clothing/head/beret.dmi b/icons/obj/clothing/head/beret.dmi index 8f5af74a6df7..35900a326ede 100644 Binary files a/icons/obj/clothing/head/beret.dmi and b/icons/obj/clothing/head/beret.dmi differ diff --git a/icons/obj/clothing/head/softcap.dmi b/icons/obj/clothing/head/softcap.dmi index e013f42b353d..1a518b644453 100644 Binary files a/icons/obj/clothing/head/softcap.dmi and b/icons/obj/clothing/head/softcap.dmi differ diff --git a/icons/obj/clothing/species/plasmaman/hats.dmi b/icons/obj/clothing/species/plasmaman/hats.dmi index 504c6fa190f1..17c37bedaf84 100644 Binary files a/icons/obj/clothing/species/plasmaman/hats.dmi and b/icons/obj/clothing/species/plasmaman/hats.dmi differ diff --git a/icons/obj/clothing/species/plasmaman/uniform.dmi b/icons/obj/clothing/species/plasmaman/uniform.dmi index 830d26bab5bc..be5bde4999ad 100644 Binary files a/icons/obj/clothing/species/plasmaman/uniform.dmi and b/icons/obj/clothing/species/plasmaman/uniform.dmi differ diff --git a/icons/obj/clothing/suits.dmi b/icons/obj/clothing/suits.dmi index e229ed6a2ffe..f1781a9e17a9 100644 Binary files a/icons/obj/clothing/suits.dmi and b/icons/obj/clothing/suits.dmi differ diff --git a/icons/obj/clothing/under/cargo.dmi b/icons/obj/clothing/under/cargo.dmi index 0a2f20406884..7d4723fc3f1f 100644 Binary files a/icons/obj/clothing/under/cargo.dmi and b/icons/obj/clothing/under/cargo.dmi differ diff --git a/icons/obj/crates.dmi b/icons/obj/crates.dmi index 10d0b26c7e42..73b3af8ee833 100644 Binary files a/icons/obj/crates.dmi and b/icons/obj/crates.dmi differ diff --git a/icons/obj/grenade.dmi b/icons/obj/grenade.dmi index e175f79dc9f8..b72f34688417 100644 Binary files a/icons/obj/grenade.dmi and b/icons/obj/grenade.dmi differ diff --git a/icons/obj/guns/energy.dmi b/icons/obj/guns/energy.dmi index f40e9ec0aea9..74a9fe777cec 100644 Binary files a/icons/obj/guns/energy.dmi and b/icons/obj/guns/energy.dmi differ diff --git a/icons/obj/machines/mining_machines.dmi b/icons/obj/machines/mining_machines.dmi index d6fc1afd7168..935be58fe224 100644 Binary files a/icons/obj/machines/mining_machines.dmi and b/icons/obj/machines/mining_machines.dmi differ diff --git a/icons/obj/mining.dmi b/icons/obj/mining.dmi index 4ca486bcfb7b..2457a57e8a92 100644 Binary files a/icons/obj/mining.dmi and b/icons/obj/mining.dmi differ diff --git a/icons/obj/pda.dmi b/icons/obj/pda.dmi index 89717abc7428..612cf6c127d3 100644 Binary files a/icons/obj/pda.dmi and b/icons/obj/pda.dmi differ diff --git a/icons/obj/projectiles.dmi b/icons/obj/projectiles.dmi index 7df80247c191..8164d961ab5f 100644 Binary files a/icons/obj/projectiles.dmi and b/icons/obj/projectiles.dmi differ diff --git a/icons/obj/radio.dmi b/icons/obj/radio.dmi index af0cf5eb2529..fa6f4ee1c149 100644 Binary files a/icons/obj/radio.dmi and b/icons/obj/radio.dmi differ diff --git a/icons/obj/sellable.dmi b/icons/obj/sellable.dmi new file mode 100644 index 000000000000..8fca837209ed Binary files /dev/null and b/icons/obj/sellable.dmi differ diff --git a/icons/obj/stacks/organic.dmi b/icons/obj/stacks/organic.dmi index d9b0ab06924d..503dae72de5a 100644 Binary files a/icons/obj/stacks/organic.dmi and b/icons/obj/stacks/organic.dmi differ diff --git a/icons/obj/toy.dmi b/icons/obj/toy.dmi index e21855df14ad..0d4cb70893a1 100644 Binary files a/icons/obj/toy.dmi and b/icons/obj/toy.dmi differ diff --git a/icons/obj/vending.dmi b/icons/obj/vending.dmi index 75a3237ae7cb..12b2031f1d99 100755 Binary files a/icons/obj/vending.dmi and b/icons/obj/vending.dmi differ diff --git a/icons/obj/weapons/energy_melee.dmi b/icons/obj/weapons/energy_melee.dmi index c073c664e493..1e6345503ecf 100644 Binary files a/icons/obj/weapons/energy_melee.dmi and b/icons/obj/weapons/energy_melee.dmi differ diff --git a/icons/obj/weapons/melee.dmi b/icons/obj/weapons/melee.dmi index cd8a40ec805d..041abdf63184 100644 Binary files a/icons/obj/weapons/melee.dmi and b/icons/obj/weapons/melee.dmi differ diff --git a/paradise.dme b/paradise.dme index e307ba51e9bc..fb060798f4fa 100644 --- a/paradise.dme +++ b/paradise.dme @@ -37,6 +37,7 @@ #include "code\__DEFINES\armour.dm" #include "code\__DEFINES\asset_defines.dm" #include "code\__DEFINES\atmospherics_defines.dm" +#include "code\__DEFINES\atom_states.dm" #include "code\__DEFINES\bio_chip_defines.dm" #include "code\__DEFINES\bitfields_defines.dm" #include "code\__DEFINES\bots.dm" @@ -1020,6 +1021,7 @@ #include "code\game\objects\items\mixing_bowl.dm" #include "code\game\objects\items\random_items.dm" #include "code\game\objects\items\roulette.dm" +#include "code\game\objects\items\salvage.dm" #include "code\game\objects\items\scratch_card.dm" #include "code\game\objects\items\shooting_range.dm" #include "code\game\objects\items\sport.dm" @@ -1579,7 +1581,6 @@ #include "code\modules\atmospherics\machinery\portable\portable_pump.dm" #include "code\modules\atmospherics\machinery\portable\scrubber.dm" #include "code\modules\awaymissions\loot.dm" -#include "code\modules\awaymissions\map_rng.dm" #include "code\modules\awaymissions\mob_spawn.dm" #include "code\modules\awaymissions\zlevel_helpers.dm" #include "code\modules\awaymissions\maploader\dmm_suite.dm" diff --git a/sound/ambience/ambiexp.ogg b/sound/ambience/ambiexp.ogg new file mode 100644 index 000000000000..cf02aa18f6fc Binary files /dev/null and b/sound/ambience/ambiexp.ogg differ diff --git a/sound/creatures/piratedeath.ogg b/sound/creatures/piratedeath.ogg new file mode 100644 index 000000000000..c36a45a79bac Binary files /dev/null and b/sound/creatures/piratedeath.ogg differ diff --git a/sound/creatures/pirateengage.ogg b/sound/creatures/pirateengage.ogg new file mode 100644 index 000000000000..5e6b3fa4f508 Binary files /dev/null and b/sound/creatures/pirateengage.ogg differ diff --git a/sound/creatures/spacedragondeath.ogg b/sound/creatures/spacedragondeath.ogg new file mode 100644 index 000000000000..08073e512caf Binary files /dev/null and b/sound/creatures/spacedragondeath.ogg differ diff --git a/sound/items/handling/salvagedrop.ogg b/sound/items/handling/salvagedrop.ogg new file mode 100644 index 000000000000..1a018cf3777d Binary files /dev/null and b/sound/items/handling/salvagedrop.ogg differ diff --git a/sound/items/handling/salvagepickup.ogg b/sound/items/handling/salvagepickup.ogg new file mode 100644 index 000000000000..0e9a3d0ea92e Binary files /dev/null and b/sound/items/handling/salvagepickup.ogg differ diff --git a/tgui/packages/tgui/interfaces/CompostBin.js b/tgui/packages/tgui/interfaces/CompostBin.js index 639226edad42..6bcc466dbb7c 100644 --- a/tgui/packages/tgui/interfaces/CompostBin.js +++ b/tgui/packages/tgui/interfaces/CompostBin.js @@ -12,12 +12,21 @@ import { Window } from '../layouts'; export const CompostBin = (props, context) => { const { act, data } = useBackend(context); - const { biomass, compost, biomass_capacity, compost_capacity } = data; + const { + biomass, + compost, + biomass_capacity, + compost_capacity, + potassium, + potassium_capacity, + potash, + potash_capacity, + } = data; let [vendAmount, setVendAmount] = useSharedState(context, 'vendAmount', 1); return ( - +
@@ -25,8 +34,9 @@ export const CompostBin = (props, context) => { { {biomass} / {biomass_capacity} Units - - - - { {compost} / {compost_capacity} Units + + + {potassium} / {potassium_capacity} Units + + + + + {potash} / {potash_capacity} Units + +
diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 5910e8645bcf..b490248cab01 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,4 +1,4 @@ -(function(){(function(){var Gt={66641:function(L,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=p(n(8823)),a=p(n(19820)),t=p(n(54826)),o=p(n(43243)),f=p(n(17859)),V=p(n(80798)),k=p(n(46343)),S=p(n(31584));r.detectOverflow=S.default;var y=n(72600);function p(u){return u&&u.__esModule?u:{default:u}}var d={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var u=arguments.length,s=new Array(u),i=0;i0&&(0,a.round)(p.width)/k.offsetWidth||1,c=k.offsetHeight>0&&(0,a.round)(p.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,l=m.visualViewport,u=!(0,o.default)()&&y,s=(p.left+(u&&l?l.offsetLeft:0))/d,i=(p.top+(u&&l?l.offsetTop:0))/c,v=p.width/d,g=p.height/c;return{width:v,height:g,top:i,right:s+v,bottom:i+g,left:s,x:s,y:i}}},86380:function(L,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(41521),a=u(n(2868)),t=u(n(39799)),o=u(n(54826)),f=u(n(43243)),V=u(n(33733)),k=u(n(14522)),S=n(72600),y=u(n(32125)),p=u(n(34972)),d=u(n(96343)),c=u(n(13203)),m=u(n(31855)),l=n(69031);function u(C){return C&&C.__esModule?C:{default:C}}function s(C,h){var N=(0,y.default)(C,!1,h==="fixed");return N.top=N.top+C.clientTop,N.left=N.left+C.clientLeft,N.bottom=N.top+C.clientHeight,N.right=N.left+C.clientWidth,N.width=C.clientWidth,N.height=C.clientHeight,N.x=N.left,N.y=N.top,N}function i(C,h,N){return h===e.viewport?(0,m.default)((0,a.default)(C,N)):(0,S.isElement)(h)?s(h,N):(0,m.default)((0,t.default)((0,V.default)(C)))}function v(C){var h=(0,o.default)((0,p.default)(C)),N=["absolute","fixed"].indexOf((0,k.default)(C).position)>=0,b=N&&(0,S.isHTMLElement)(C)?(0,f.default)(C):C;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,d.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function g(C,h,N,b){var B=h==="clippingParents"?v(C):[].concat(h),I=[].concat(B,[N]),w=I[0],T=I.reduce(function(A,x){var E=i(C,x,b);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},i(C,w,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},8823:function(L,r,n){"use strict";r.__esModule=!0,r.default=d;var e=y(n(32125)),a=y(n(45401)),t=y(n(13203)),o=n(72600),f=y(n(85750)),V=y(n(33733)),k=y(n(44011)),S=n(69031);function y(c){return c&&c.__esModule?c:{default:c}}function p(c){var m=c.getBoundingClientRect(),l=(0,S.round)(m.width)/c.offsetWidth||1,u=(0,S.round)(m.height)/c.offsetHeight||1;return l!==1||u!==1}function d(c,m,l){l===void 0&&(l=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&p(m),i=(0,V.default)(m),v=(0,e.default)(c,s,l),g={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(u||!u&&!l)&&(((0,t.default)(m)!=="body"||(0,k.default)(i))&&(g=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(C=(0,e.default)(m,!0),C.x+=m.clientLeft,C.y+=m.clientTop):i&&(C.x=(0,f.default)(i))),{x:v.left+g.scrollLeft-C.x,y:v.top+g.scrollTop-C.y,width:v.width,height:v.height}}},14522:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},33733:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(72600);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},39799:function(L,r,n){"use strict";r.__esModule=!0,r.default=k;var e=V(n(33733)),a=V(n(14522)),t=V(n(85750)),o=V(n(79569)),f=n(69031);function V(S){return S&&S.__esModule?S:{default:S}}function k(S){var y,p=(0,e.default)(S),d=(0,o.default)(S),c=(y=S.ownerDocument)==null?void 0:y.body,m=(0,f.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,f.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-d.scrollLeft+(0,t.default)(S),s=-d.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(u+=(0,f.max)(p.clientWidth,c?c.clientWidth:0)-m),{width:m,height:l,x:u,y:s}}},75680:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},19820:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(32125));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=o.offsetWidth,k=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:k}}},13203:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},45401:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(79569)),a=f(n(81020)),t=n(72600),o=f(n(75680));function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},43243:function(L,r,n){"use strict";r.__esModule=!0,r.default=d;var e=S(n(81020)),a=S(n(13203)),t=S(n(14522)),o=n(72600),f=S(n(25658)),V=S(n(34972)),k=S(n(97353));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var m=/firefox/i.test((0,k.default)()),l=/Trident/i.test((0,k.default)());if(l&&(0,o.isHTMLElement)(c)){var u=(0,t.default)(c);if(u.position==="fixed")return null}var s=(0,V.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var i=(0,t.default)(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||m&&i.willChange==="filter"||m&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function d(c){for(var m=(0,e.default)(c),l=y(c);l&&(0,f.default)(l)&&(0,t.default)(l).position==="static";)l=y(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?m:l||p(c)||m}},34972:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(13203)),a=o(n(33733)),t=n(72600);function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},65329:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(34972)),a=f(n(44011)),t=f(n(13203)),o=n(72600);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:V((0,e.default)(k))}},2868:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(81020)),a=f(n(33733)),t=f(n(85750)),o=f(n(14894));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var y=(0,e.default)(k),p=(0,a.default)(k),d=y.visualViewport,c=p.clientWidth,m=p.clientHeight,l=0,u=0;if(d){c=d.width,m=d.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(l=d.offsetLeft,u=d.offsetTop)}return{width:c,height:m,x:l+(0,t.default)(k),y:u}}},81020:function(L,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}},79569:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.pageXOffset,k=f.pageYOffset;return{scrollLeft:V,scrollTop:k}}},85750:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(32125)),a=o(n(33733)),t=o(n(79569));function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},72600:function(L,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(81020));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var k=(0,e.default)(V).Element;return V instanceof k||V instanceof Element}function o(V){var k=(0,e.default)(V).HTMLElement;return V instanceof k||V instanceof HTMLElement}function f(V){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(V).ShadowRoot;return V instanceof k||V instanceof ShadowRoot}},14894:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(97353));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},44011:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(14522));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.overflow,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+k)}},25658:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(13203));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},54826:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(65329)),a=f(n(34972)),t=f(n(81020)),o=f(n(44011));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var y;S===void 0&&(S=[]);var p=(0,e.default)(k),d=p===((y=k.ownerDocument)==null?void 0:y.body),c=(0,t.default)(p),m=d?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,l=S.concat(m);return d?l:l.concat(V((0,a.default)(m)))}},41521:function(L,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],V=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",y=r.viewport="viewport",p=r.popper="popper",d=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+V,I+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+V,I+"-"+k])},[]),l=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",i=r.beforeMain="beforeMain",v=r.main="main",g=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",h=r.write="write",N=r.afterWrite="afterWrite",b=r.modifierPhases=[l,u,s,i,v,g,C,h,N]},60023:function(L,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(41521);Object.keys(a).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(91078);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(66641);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(7925);r.createPopper=f.createPopper;var V=n(62642);r.createPopperLite=V.createPopper},56304:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(13203)),a=n(72600);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(y){var p=S.styles[y]||{},d=S.attributes[y]||{},c=S.elements[y];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(d).forEach(function(m){var l=d[m];l===!1?c.removeAttribute(m):c.setAttribute(m,l===!0?"":l)}))})}function f(k){var S=k.state,y={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,y.popper),S.styles=y,S.elements.arrow&&Object.assign(S.elements.arrow.style,y.arrow),function(){Object.keys(S.elements).forEach(function(p){var d=S.elements[p],c=S.attributes[p]||{},m=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:y[p]),l=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(d)||!(0,e.default)(d)||(Object.assign(d.style,l),Object.keys(c).forEach(function(u){d.removeAttribute(u)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},57243:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(38141)),a=p(n(19820)),t=p(n(96343)),o=p(n(43243)),f=p(n(7770)),V=n(76770),k=p(n(77631)),S=p(n(54824)),y=n(41521);function p(u){return u&&u.__esModule?u:{default:u}}var d=function(){function u(s,i){return s=typeof s=="function"?s(Object.assign({},i.rects,{placement:i.placement})):s,(0,k.default)(typeof s!="number"?s:(0,S.default)(s,y.basePlacements))}return u}();function c(u){var s,i=u.state,v=u.name,g=u.options,C=i.elements.arrow,h=i.modifiersData.popperOffsets,N=(0,e.default)(i.placement),b=(0,f.default)(N),B=[y.left,y.right].indexOf(N)>=0,I=B?"height":"width";if(!(!C||!h)){var w=d(g.padding,i),T=(0,a.default)(C),A=b==="y"?y.top:y.left,x=b==="y"?y.bottom:y.right,E=i.rects.reference[I]+i.rects.reference[b]-h[b]-i.rects.popper[I],M=h[b]-i.rects.reference[b],D=(0,o.default)(C),O=D?b==="y"?D.clientHeight||0:D.clientWidth||0:0,R=E/2-M/2,j=w[A],F=O-T[I]-w[x],U=O/2-T[I]/2+R,K=(0,V.within)(j,U,F),z=b;i.modifiersData[v]=(s={},s[z]=K,s.centerOffset=K-U,s)}}function m(u){var s=u.state,i=u.options,v=i.element,g=v===void 0?"[data-popper-arrow]":v;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"]}},60421:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(41521),a=y(n(43243)),t=y(n(81020)),o=y(n(33733)),f=y(n(14522)),V=y(n(38141)),k=y(n(14380)),S=n(69031);function y(u){return u&&u.__esModule?u:{default:u}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d(u,s){var i=u.x,v=u.y,g=s.devicePixelRatio||1;return{x:(0,S.round)(i*g)/g||0,y:(0,S.round)(v*g)/g||0}}function c(u){var s,i=u.popper,v=u.popperRect,g=u.placement,C=u.variation,h=u.offsets,N=u.position,b=u.gpuAcceleration,B=u.adaptive,I=u.roundOffsets,w=u.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,M=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=M.x,E=M.y;var D=h.hasOwnProperty("x"),O=h.hasOwnProperty("y"),R=e.left,j=e.top,F=window;if(B){var U=(0,a.default)(i),K="clientHeight",z="clientWidth";if(U===(0,t.default)(i)&&(U=(0,o.default)(i),(0,f.default)(U).position!=="static"&&N==="absolute"&&(K="scrollHeight",z="scrollWidth")),U=U,g===e.top||(g===e.left||g===e.right)&&C===e.end){j=e.bottom;var $=w&&U===F&&F.visualViewport?F.visualViewport.height:U[K];E-=$-v.height,E*=b?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&C===e.end){R=e.right;var Y=w&&U===F&&F.visualViewport?F.visualViewport.width:U[z];A-=Y-v.width,A*=b?1:-1}}var X=Object.assign({position:N},B&&p),J=I===!0?d({x:A,y:E},(0,t.default)(i)):{x:A,y:E};if(A=J.x,E=J.y,b){var le;return Object.assign({},X,(le={},le[j]=O?"0":"",le[R]=D?"0":"",le.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",le))}return Object.assign({},X,(s={},s[j]=O?E+"px":"",s[R]=D?A+"px":"",s.transform="",s))}function m(u){var s=u.state,i=u.options,v=i.gpuAcceleration,g=v===void 0?!0:v,C=i.adaptive,h=C===void 0?!0:C,N=i.roundOffsets,b=N===void 0?!0:N,B={placement:(0,V.default)(s.placement),variation:(0,k.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:h,roundOffsets:b})))),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:b})))),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:{}}},84601:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(81020));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var k=V.state,S=V.instance,y=V.options,p=y.scroll,d=p===void 0?!0:p,c=y.resize,m=c===void 0?!0:c,l=(0,e.default)(k.elements.popper),u=[].concat(k.scrollParents.reference,k.scrollParents.popper);return d&&u.forEach(function(s){s.addEventListener("scroll",S.update,t)}),m&&l.addEventListener("resize",S.update,t),function(){d&&u.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),m&&l.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},17267:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(79641)),a=S(n(38141)),t=S(n(71976)),o=S(n(31584)),f=S(n(44744)),V=n(41521),k=S(n(14380));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){if((0,a.default)(c)===V.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function p(c){var m=c.state,l=c.options,u=c.name;if(!m.modifiersData[u]._skip){for(var s=l.mainAxis,i=s===void 0?!0:s,v=l.altAxis,g=v===void 0?!0:v,C=l.fallbackPlacements,h=l.padding,N=l.boundary,b=l.rootBoundary,B=l.altBoundary,I=l.flipVariations,w=I===void 0?!0:I,T=l.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,M=C||(E||!w?[(0,e.default)(A)]:y(A)),D=[A].concat(M).reduce(function(me,ae){return me.concat((0,a.default)(ae)===V.auto?(0,f.default)(m,{placement:ae,boundary:N,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:T}):ae)},[]),O=m.rects.reference,R=m.rects.popper,j=new Map,F=!0,U=D[0],K=0;K=0,J=X?"width":"height",le=(0,o.default)(m,{placement:z,boundary:N,rootBoundary:b,altBoundary:B,padding:h}),ce=X?Y?V.right:V.left:Y?V.bottom:V.top;O[J]>R[J]&&(ce=(0,e.default)(ce));var fe=(0,e.default)(ce),pe=[];if(i&&pe.push(le[$]<=0),g&&pe.push(le[ce]<=0,le[fe]<=0),pe.every(function(me){return me})){U=z,F=!1;break}j.set(z,pe)}if(F)for(var be=w?3:1,te=function(){function me(ae){var ue=D.find(function(oe){var ke=j.get(oe);if(ke)return ke.slice(0,ae).every(function(Be){return Be})});if(ue)return U=ue,"break"}return me}(),Q=be;Q>0;Q--){var ne=te(Q);if(ne==="break")break}m.placement!==U&&(m.modifiersData[u]._skip=!0,m.placement=U,m.reset=!0)}}var d=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},88476:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=t(n(31584));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,y,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-y.height-p.y,right:S.right-y.width+p.x,bottom:S.bottom-y.height+p.y,left:S.left-y.width-p.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(y){return S[y]>=0})}function V(S){var y=S.state,p=S.name,d=y.rects.reference,c=y.rects.popper,m=y.modifiersData.preventOverflow,l=(0,a.default)(y,{elementContext:"reference"}),u=(0,a.default)(y,{altBoundary:!0}),s=o(l,d),i=o(u,c,m),v=f(s),g=f(i);y.modifiersData[p]={referenceClippingOffsets:s,popperEscapeOffsets:i,isReferenceHidden:v,hasPopperEscaped:g},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":g})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},91078:function(L,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=p(n(56304));r.applyStyles=e.default;var a=p(n(57243));r.arrow=a.default;var t=p(n(60421));r.computeStyles=t.default;var o=p(n(84601));r.eventListeners=o.default;var f=p(n(17267));r.flip=f.default;var V=p(n(88476));r.hide=V.default;var k=p(n(36707));r.offset=k.default;var S=p(n(98916));r.popperOffsets=S.default;var y=p(n(44454));r.preventOverflow=y.default;function p(d){return d&&d.__esModule?d:{default:d}}},36707:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(38141)),a=n(41521);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,y){var p=(0,e.default)(k),d=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof y=="function"?y(Object.assign({},S,{placement:k})):y,m=c[0],l=c[1];return m=m||0,l=(l||0)*d,[a.left,a.right].indexOf(p)>=0?{x:l,y:m}:{x:m,y:l}}function f(k){var S=k.state,y=k.options,p=k.name,d=y.offset,c=d===void 0?[0,0]:d,m=a.placements.reduce(function(i,v){return i[v]=o(v,S.rects,c),i},{}),l=m[S.placement],u=l.x,s=l.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=u,S.modifiersData.popperOffsets.y+=s),S.modifiersData[p]=m}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},98916:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(47566));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var V=f.state,k=f.name;V.modifiersData[k]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},44454:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=c(n(38141)),t=c(n(7770)),o=c(n(39571)),f=n(76770),V=c(n(19820)),k=c(n(43243)),S=c(n(31584)),y=c(n(14380)),p=c(n(92385)),d=n(69031);function c(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,i=u.options,v=u.name,g=i.mainAxis,C=g===void 0?!0:g,h=i.altAxis,N=h===void 0?!1:h,b=i.boundary,B=i.rootBoundary,I=i.altBoundary,w=i.padding,T=i.tether,A=T===void 0?!0:T,x=i.tetherOffset,E=x===void 0?0:x,M=(0,S.default)(s,{boundary:b,rootBoundary:B,padding:w,altBoundary:I}),D=(0,a.default)(s.placement),O=(0,y.default)(s.placement),R=!O,j=(0,t.default)(D),F=(0,o.default)(j),U=s.modifiersData.popperOffsets,K=s.rects.reference,z=s.rects.popper,$=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,Y=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),X=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(U){if(C){var le,ce=j==="y"?e.top:e.left,fe=j==="y"?e.bottom:e.right,pe=j==="y"?"height":"width",be=U[j],te=be+M[ce],Q=be-M[fe],ne=A?-z[pe]/2:0,me=O===e.start?K[pe]:z[pe],ae=O===e.start?-z[pe]:-K[pe],ue=s.elements.arrow,oe=A&&ue?(0,V.default)(ue):{width:0,height:0},ke=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,p.default)(),Be=ke[ce],ve=ke[fe],ge=(0,f.within)(0,K[pe],oe[pe]),ye=R?K[pe]/2-ne-ge-Be-Y.mainAxis:me-ge-Be-Y.mainAxis,Ve=R?-K[pe]/2+ne+ge+ve+Y.mainAxis:ae+ge+ve+Y.mainAxis,Ie=s.elements.arrow&&(0,k.default)(s.elements.arrow),we=Ie?j==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,xe=(le=X==null?void 0:X[j])!=null?le:0,Pe=be+ye-xe-we,We=be+Ve-xe,Ne=(0,f.within)(A?(0,d.min)(te,Pe):te,be,A?(0,d.max)(Q,We):Q);U[j]=Ne,J[j]=Ne-be}if(N){var re,de=j==="x"?e.top:e.left,he=j==="x"?e.bottom:e.right,se=U[F],Ce=F==="y"?"height":"width",Ae=se+M[de],De=se-M[he],je=[e.top,e.left].indexOf(D)!==-1,Ke=(re=X==null?void 0:X[F])!=null?re:0,Ue=je?Ae:se-K[Ce]-z[Ce]-Ke+Y.altAxis,_e=je?se+K[Ce]+z[Ce]-Ke-Y.altAxis:De,$e=A&&je?(0,f.withinMaxClamp)(Ue,se,_e):(0,f.within)(A?Ue:Ae,se,A?_e:De);U[F]=$e,J[F]=$e-se}s.modifiersData[v]=J}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},62642:function(L,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(66641);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=V(n(84601)),t=V(n(98916)),o=V(n(60421)),f=V(n(56304));function V(y){return y&&y.__esModule?y:{default:y}}var k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},7925:function(L,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(66641);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(84601)),o=l(n(98916)),f=l(n(60421)),V=l(n(56304)),k=l(n(36707)),S=l(n(17267)),y=l(n(44454)),p=l(n(57243)),d=l(n(88476)),c=n(62642);r.createPopperLite=c.createPopper;var m=n(91078);Object.keys(m).forEach(function(i){i==="default"||i==="__esModule"||Object.prototype.hasOwnProperty.call(e,i)||i in r&&r[i]===m[i]||(r[i]=m[i])});function l(i){return i&&i.__esModule?i:{default:i}}var u=r.defaultModifiers=[t.default,o.default,f.default,V.default,k.default,S.default,y.default,p.default,d.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},44744:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(14380)),a=n(41521),t=f(n(31584)),o=f(n(38141));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){S===void 0&&(S={});var y=S,p=y.placement,d=y.boundary,c=y.rootBoundary,m=y.padding,l=y.flipVariations,u=y.allowedAutoPlacements,s=u===void 0?a.placements:u,i=(0,e.default)(p),v=i?l?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===i}):a.basePlacements,g=v.filter(function(h){return s.indexOf(h)>=0});g.length===0&&(g=v);var C=g.reduce(function(h,N){return h[N]=(0,t.default)(k,{placement:N,boundary:d,rootBoundary:c,padding:m})[(0,o.default)(N)],h},{});return Object.keys(C).sort(function(h,N){return C[h]-C[N]})}},47566:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(38141)),a=f(n(14380)),t=f(n(7770)),o=n(41521);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){var S=k.reference,y=k.element,p=k.placement,d=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,m=S.x+S.width/2-y.width/2,l=S.y+S.height/2-y.height/2,u;switch(d){case o.top:u={x:m,y:S.y-y.height};break;case o.bottom:u={x:m,y:S.y+S.height};break;case o.right:u={x:S.x+S.width,y:l};break;case o.left:u={x:S.x-y.width,y:l};break;default:u={x:S.x,y:S.y}}var s=d?(0,t.default)(d):null;if(s!=null){var i=s==="y"?"height":"width";switch(c){case o.start:u[s]=u[s]-(S[i]/2-y[i]/2);break;case o.end:u[s]=u[s]+(S[i]/2-y[i]/2);break;default:}}return u}},80798:function(L,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}}},31584:function(L,r,n){"use strict";r.__esModule=!0,r.default=d;var e=p(n(86380)),a=p(n(33733)),t=p(n(32125)),o=p(n(47566)),f=p(n(31855)),V=n(41521),k=n(72600),S=p(n(77631)),y=p(n(54824));function p(c){return c&&c.__esModule?c:{default:c}}function d(c,m){m===void 0&&(m={});var l=m,u=l.placement,s=u===void 0?c.placement:u,i=l.strategy,v=i===void 0?c.strategy:i,g=l.boundary,C=g===void 0?V.clippingParents:g,h=l.rootBoundary,N=h===void 0?V.viewport:h,b=l.elementContext,B=b===void 0?V.popper:b,I=l.altBoundary,w=I===void 0?!1:I,T=l.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,y.default)(A,V.basePlacements)),E=B===V.popper?V.reference:V.popper,M=c.rects.popper,D=c.elements[w?E:B],O=(0,e.default)((0,k.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),C,N,v),R=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:R,element:M,strategy:"absolute",placement:s}),F=(0,f.default)(Object.assign({},M,j)),U=B===V.popper?F:R,K={top:O.top-U.top+x.top,bottom:U.bottom-O.bottom+x.bottom,left:O.left-U.left+x.left,right:U.right-O.right+x.right},z=c.modifiersData.offset;if(B===V.popper&&z){var $=z[s];Object.keys(K).forEach(function(Y){var X=[V.right,V.bottom].indexOf(Y)>=0?1:-1,J=[V.top,V.bottom].indexOf(Y)>=0?"y":"x";K[Y]+=$[J]*X})}return K}},54824:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},39571:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},38141:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(41521);function a(t){return t.split("-")[0]}},92385:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},7770:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},79641:function(L,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]})}},71976:function(L,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]})}},14380:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},69031:function(L,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},46343:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},77631:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(92385));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},17859:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(41521);function a(o){var f=new Map,V=new Set,k=[];o.forEach(function(y){f.set(y.name,y)});function S(y){V.add(y.name);var p=[].concat(y.requires||[],y.requiresIfExists||[]);p.forEach(function(d){if(!V.has(d)){var c=f.get(d);c&&S(c)}}),k.push(y)}return o.forEach(function(y){V.has(y.name)||S(y)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,k){return V.concat(f.filter(function(S){return S.phase===k}))},[])}},31855:function(L,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})}},97353:function(L,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}},76770:function(L,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(69031);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var k=a(o,f,V);return k>V?V:k}},63935:function(L,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=te,r._M=ze,r._MCCC=Pt,r._ME=Ot,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=vt,r.__render=Ft,r.createComponentVNode=K,r.createFragment=$,r.createPortal=ce,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=z,r.createVNode=R,r.directClone=J,r.findDOMfromVNode=N,r.forwardRef=Xt,r.getFlagsForElementVnode=pe,r.linkEvent=p,r.normalizeProps=Y,r.options=void 0,r.render=Wt,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(P){var W=typeof P;return W==="string"||W==="number"}function a(P){return P==null}function t(P){return P===null||P===!1||P===!0||P===void 0}function o(P){return typeof P=="function"}function f(P){return typeof P=="string"}function V(P){return typeof P=="number"}function k(P){return P===null}function S(P){return P===void 0}function y(P,W){var _={};if(P)for(var H in P)_[H]=P[H];if(W)for(var Z in W)_[Z]=W[Z];return _}function p(P,W){return o(W)?{data:P,event:W}:null}function d(P){return!k(P)&&typeof P=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function l(P){return P.substr(2).toLowerCase()}function u(P,W){P.appendChild(W)}function s(P,W,_){k(_)?u(P,W):P.insertBefore(W,_)}function i(P,W){return W?document.createElementNS("http://www.w3.org/2000/svg",P):document.createElement(P)}function v(P,W,_){P.replaceChild(W,_)}function g(P,W){P.removeChild(W)}function C(P){for(var W=0;W0,Se=k(ie),Le=f(ie)&&ie[0]===D;Te||Se||Le?(_=_||W.slice(0,q),(Te||Le)&&(ee=J(ee)),(Se||Le)&&(ee.key=D+q),_.push(ee)):_&&_.push(ee),ee.flags|=65536}}_=_||W,_.length===0?H=1:H=8}else _=W,_.flags|=65536,W.flags&81920&&(_=J(W)),H=2;return P.children=_,P.childFlags=H,P}function te(P){return t(P)||e(P)?z(P,null):n(P)?$(P,0,null):P.flags&16384?J(P):P}var Q="http://www.w3.org/1999/xlink",ne="http://www.w3.org/XML/1998/namespace",me={"xlink:actuate":Q,"xlink:arcrole":Q,"xlink:href":Q,"xlink:role":Q,"xlink:show":Q,"xlink:title":Q,"xlink:type":Q,"xml:base":ne,"xml:lang":ne,"xml:space":ne};function ae(P){return{onClick:P,onDblClick:P,onFocusIn:P,onFocusOut:P,onKeyDown:P,onKeyPress:P,onKeyUp:P,onMouseDown:P,onMouseMove:P,onMouseUp:P,onTouchEnd:P,onTouchMove:P,onTouchStart:P}}var ue=ae(0),oe=ae(null),ke=ae(!0);function Be(P,W){var _=W.$EV;return _||(_=W.$EV=ae(null)),_[P]||++ue[P]===1&&(oe[P]=re(P)),_}function ve(P,W){var _=W.$EV;_&&_[P]&&(--ue[P]===0&&(document.removeEventListener(l(P),oe[P]),oe[P]=null),_[P]=null)}function ge(P,W,_,H){if(o(_))Be(P,H)[P]=_;else if(d(_)){if(x(W,_))return;Be(P,H)[P]=_}else ve(P,H)}function ye(P){return o(P.composedPath)?P.composedPath()[0]:P.target}function Ve(P,W,_,H){var Z=ye(P);do{if(W&&Z.disabled)return;var q=Z.$EV;if(q){var ee=q[_];if(ee&&(H.dom=Z,ee.event?ee.event(ee.data,P):ee(P),P.cancelBubble))return}Z=Z.parentNode}while(!k(Z))}function Ie(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Pe(P){var W={dom:document};return P.isDefaultPrevented=we,P.isPropagationStopped=xe,P.stopPropagation=Ie,Object.defineProperty(P,"currentTarget",{configurable:!0,get:function(){function _(){return W.dom}return _}()}),W}function We(P){return function(W){if(W.button!==0){W.stopPropagation();return}Ve(W,!0,P,Pe(W))}}function Ne(P){return function(W){Ve(W,!1,P,Pe(W))}}function re(P){var W=P==="onClick"||P==="onDblClick"?We(P):Ne(P);return document.addEventListener(l(P),W),W}function de(P,W){var _=document.createElement("i");return _.innerHTML=W,_.innerHTML===P.innerHTML}function he(P,W,_){if(P[W]){var H=P[W];H.event?H.event(H.data,_):H(_)}else{var Z=W.toLowerCase();P[Z]&&P[Z](_)}}function se(P,W){var _=function(Z){var q=this.$V;if(q){var ee=q.props||c,ie=q.dom;if(f(P))he(ee,P,Z);else for(var Te=0;Te-1&&W.options[q]&&(ie=W.options[q].value),_&&a(ie)&&(ie=P.defaultValue),$e(H,ie)}}var Bt=se("onInput",pt),It=se("onChange");function Lt(P,W){Ce(P,"input",Bt),W.onChange&&Ce(P,"change",It)}function pt(P,W,_){var H=P.value,Z=W.value;if(a(H)){if(_){var q=P.defaultValue;!a(q)&&q!==Z&&(W.defaultValue=q,W.value=q)}}else Z!==H&&(W.defaultValue=H,W.value=H)}function wt(P,W,_,H,Z,q){P&64?_e(H,_):P&256?ft(H,_,Z,W):P&128&&pt(H,_,Z),q&&(_.$V=W)}function $t(P,W,_){P&64?Ue(W,_):P&256?St(W):P&128&&Lt(W,_)}function Tt(P){return P.type&&Ae(P.type)?!a(P.checked):!a(P.value)}function Yt(){return{current:null}}function Xt(P){return{render:P}}function lt(P){P&&!M(P,null)&&P.current&&(P.current=null)}function ot(P,W,_){P&&(o(P)||P.current!==void 0)&&_.push(function(){!M(P,W)&&P.current!==void 0&&(P.current=W)})}function Xe(P,W){Qe(P),b(P,W)}function Qe(P){var W=P.flags,_=P.children,H;if(W&481){H=P.ref;var Z=P.props;lt(H);var q=P.childFlags;if(!k(Z))for(var ee=Object.keys(Z),ie=0,Te=ee.length;ie0;ee&&(q=Tt(_),q&&$t(W,H,_));for(var ie in _)ht(ie,null,_[ie],H,Z,q,null);ee&&wt(W,P,H,_,!0,q)}function At(P,W,_){var H=te(P.render(W,P.state,_)),Z=_;return o(P.getChildContext)&&(Z=y(_,P.getChildContext())),P.$CX=Z,H}function Et(P,W,_,H,Z,q){var ee=new W(_,H),ie=ee.$N=!!(W.getDerivedStateFromProps||ee.getSnapshotBeforeUpdate);if(ee.$SVG=Z,ee.$L=q,P.children=ee,ee.$BS=!1,ee.context=H,ee.props===c&&(ee.props=_),ie)ee.state=I(ee,_,ee.state);else if(o(ee.componentWillMount)){ee.$BR=!0,ee.componentWillMount();var Te=ee.$PS;if(!k(Te)){var Se=ee.state;if(k(Se))ee.state=Te;else for(var Le in Te)Se[Le]=Te[Le];ee.$PS=null}ee.$BR=!1}return ee.$LI=At(ee,_,H),ee}function vt(P,W){var _=P.props||c;return P.flags&32768?P.type.render(_,P.ref,W):P.type(_,W)}function ze(P,W,_,H,Z,q){var ee=P.flags|=16384;ee&481?Ot(P,W,_,H,Z,q):ee&4?nn(P,W,_,H,Z,q):ee&8?(on(P,W,_,H,Z,q),Rt(P,q)):ee&512||ee&16?Mt(P,W,Z):ee&8192?tn(P,_,W,H,Z,q):ee&1024&&en(P,_,W,Z,q)}function en(P,W,_,H,Z){ze(P.children,P.ref,W,!1,null,Z);var q=le();Mt(q,_,H),P.dom=q.dom}function tn(P,W,_,H,Z,q){var ee=P.children,ie=P.childFlags;ie&12&&ee.length===0&&(ie=P.childFlags=2,ee=P.children=le()),ie===2?ze(ee,_,W,H,Z,q):nt(ee,_,W,H,Z,q)}function Mt(P,W,_){var H=P.dom=document.createTextNode(P.children);k(W)||s(W,H,_)}function Ot(P,W,_,H,Z,q){var ee=P.flags,ie=P.props,Te=P.className,Se=P.childFlags,Le=P.dom=i(P.type,H=H||(ee&32)>0),Ee=P.children;if(!a(Te)&&Te!==""&&(H?Le.setAttribute("class",Te):Le.className=Te),Se===16)A(Le,Ee);else if(Se!==1){var Oe=H&&P.type!=="foreignObject";Se===2?(Ee.flags&16384&&(P.children=Ee=J(Ee)),ze(Ee,Le,_,Oe,null,q)):(Se===8||Se===4)&&nt(Ee,Le,_,Oe,null,q)}k(W)||s(W,Le,Z),k(ie)||xt(P,ee,ie,Le,H),ot(P.ref,Le,q)}function nt(P,W,_,H,Z,q){for(var ee=0;eeOe)&&(Le=N(ee[Oe-1],!1).nextSibling)}Ct(Te,Se,ee,ie,_,H,Z,Le,P,q)}function sn(P,W,_,H){var Z=P.ref,q=W.ref,ee=W.children;if(Ct(P.childFlags,W.childFlags,P.children,ee,Z,_,!1,null,P,H),W.dom=P.dom,Z!==q&&!t(ee)){var ie=ee.dom;g(Z,ie),u(q,ie)}}function mn(P,W,_,H,Z,q){var ee=W.dom=P.dom,ie=P.props,Te=W.props,Se=!1,Le=!1,Ee;if(H=H||(Z&32)>0,ie!==Te){var Oe=ie||c;if(Ee=Te||c,Ee!==c){Se=(Z&448)>0,Se&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Oe[Fe],He=Ee[Fe];Me!==He&&ht(Fe,Me,He,ee,H,Le,P)}}if(Oe!==c)for(var Re in Oe)a(Ee[Re])&&!a(Oe[Re])&&ht(Re,Oe[Re],null,ee,H,Le,P)}var et=W.children,Ye=W.className;P.className!==Ye&&(a(Ye)?ee.removeAttribute("class"):H?ee.setAttribute("class",Ye):ee.className=Ye),Z&4096?dn(ee,et):Ct(P.childFlags,W.childFlags,P.children,et,ee,_,H&&W.type!=="foreignObject",null,P,q),Se&&wt(Z,W,ee,Ee,!1,Le);var at=W.ref,Je=P.ref;Je!==at&&(lt(Je),ot(at,ee,q))}function fn(P,W,_,H,Z,q){Qe(P),nt(W,_,H,Z,N(P,!0),q),b(P,_)}function Ct(P,W,_,H,Z,q,ee,ie,Te,Se){switch(P){case 2:switch(W){case 2:Ze(_,H,Z,q,ee,ie,Se);break;case 1:Xe(_,Z);break;case 16:Qe(_),A(Z,H);break;default:fn(_,H,Z,q,ee,Se);break}break;case 1:switch(W){case 2:ze(H,Z,q,ee,ie,Se);break;case 1:break;case 16:A(Z,H);break;default:nt(H,Z,q,ee,ie,Se);break}break;case 16:switch(W){case 16:ln(_,H,Z);break;case 2:dt(Z),ze(H,Z,q,ee,ie,Se);break;case 1:dt(Z);break;default:dt(Z),nt(H,Z,q,ee,ie,Se);break}break;default:switch(W){case 16:rt(_),A(Z,H);break;case 2:ut(Z,Te,_),ze(H,Z,q,ee,ie,Se);break;case 1:ut(Z,Te,_);break;default:var Le=_.length|0,Ee=H.length|0;Le===0?Ee>0&&nt(H,Z,q,ee,ie,Se):Ee===0?ut(Z,Te,_):W===8&&P===8?Nn(_,H,Z,q,ee,Le,Ee,ie,Te,Se):gn(_,H,Z,q,ee,Le,Ee,ie,Se);break}break}}function pn(P,W,_,H,Z){Z.push(function(){P.componentDidUpdate(W,_,H)})}function Dt(P,W,_,H,Z,q,ee,ie,Te){var Se=P.state,Le=P.props,Ee=!!P.$N,Oe=o(P.shouldComponentUpdate);if(Ee&&(W=I(P,_,W!==Se?y(Se,W):W)),ee||!Oe||Oe&&P.shouldComponentUpdate(_,W,Z)){!Ee&&o(P.componentWillUpdate)&&P.componentWillUpdate(_,W,Z),P.props=_,P.state=W,P.context=Z;var Fe=null,Me=At(P,_,Z);Ee&&o(P.getSnapshotBeforeUpdate)&&(Fe=P.getSnapshotBeforeUpdate(Le,Se)),Ze(P.$LI,Me,H,P.$CX,q,ie,Te),P.$LI=Me,o(P.componentDidUpdate)&&pn(P,Le,Se,Fe,Te)}else P.props=_,P.state=W,P.context=Z}function hn(P,W,_,H,Z,q,ee){var ie=W.children=P.children;if(!k(ie)){ie.$L=ee;var Te=W.props||c,Se=W.ref,Le=P.ref,Ee=ie.state;if(!ie.$N){if(o(ie.componentWillReceiveProps)){if(ie.$BR=!0,ie.componentWillReceiveProps(Te,H),ie.$UN)return;ie.$BR=!1}k(ie.$PS)||(Ee=y(Ee,ie.$PS),ie.$PS=null)}Dt(ie,Ee,Te,_,H,Z,!1,q,ee),Le!==Se&&(lt(Le),ot(Se,ie,ee))}}function vn(P,W,_,H,Z,q,ee){var ie=!0,Te=W.props||c,Se=W.ref,Le=P.props,Ee=!a(Se),Oe=P.children;if(Ee&&o(Se.onComponentShouldUpdate)&&(ie=Se.onComponentShouldUpdate(Le,Te)),ie!==!1){Ee&&o(Se.onComponentWillUpdate)&&Se.onComponentWillUpdate(Le,Te);var Fe=te(vt(W,H));Ze(Oe,Fe,_,H,Z,q,ee),W.children=Fe,Ee&&o(Se.onComponentDidUpdate)&&Se.onComponentDidUpdate(Le,Te)}else W.children=Oe}function Cn(P,W){var _=W.children,H=W.dom=P.dom;_!==P.children&&(H.nodeValue=_)}function gn(P,W,_,H,Z,q,ee,ie,Te){for(var Se=q>ee?ee:q,Le=0,Ee,Oe;Leee)for(Le=Se;LeLe||Oe>Ee)break e;Fe=P[Oe],Me=W[Oe]}for(Fe=P[Le],Me=W[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(W[Ee]=Me=J(Me)),Ze(Fe,Me,_,H,Z,ie,Se),P[Le]=Me,Le--,Ee--,Oe>Le||Oe>Ee)break e;Fe=P[Le],Me=W[Ee]}}if(Oe>Le){if(Oe<=Ee)for(He=Ee+1,Re=HeEe)for(;Oe<=Le;)Xe(P[Oe++],_);else Vn(P,W,H,q,ee,Le,Ee,Oe,_,Z,ie,Te,Se)}function Vn(P,W,_,H,Z,q,ee,ie,Te,Se,Le,Ee,Oe){var Fe,Me,He,Re=0,et=ie,Ye=ie,at=q-ie+1,Je=ee-ie+1,ct=new Int32Array(Je+1),tt=at===H,Vt=!1,Ge=0,it=0;if(Z<4||(at|Je)<32)for(Re=et;Re<=q;++Re)if(Fe=P[Re],itie?Vt=!0:Ge=ie,Me.flags&16384&&(W[ie]=Me=J(Me)),Ze(Fe,Me,Te,_,Se,Le,Oe),++it;break}!tt&&ie>ee&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var zt={};for(Re=Ye;Re<=ee;++Re)zt[W[Re].key]=Re;for(Re=et;Re<=q;++Re)if(Fe=P[Re],itet;)Xe(P[et++],Te);ct[ie-Ye]=Re+1,Ge>ie?Vt=!0:Ge=ie,Me=W[ie],Me.flags&16384&&(W[ie]=Me=J(Me)),Ze(Fe,Me,Te,_,Se,Le,Oe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)ut(Te,Ee,P),nt(W,Te,_,Se,Le,Oe);else if(Vt){var Ht=bn(ct);for(ie=Ht.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?(Ge=Re+Ye,Me=W[Ge],Me.flags&16384&&(W[Ge]=Me=J(Me)),He=Ge+1,ze(Me,Te,_,Se,He=0;Re--)ct[Re]===0&&(Ge=Re+Ye,Me=W[Ge],Me.flags&16384&&(W[Ge]=Me=J(Me)),He=Ge+1,ze(Me,Te,_,Se,Hejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));_>1,P[qe[ie]]0&&(st[_]=qe[q-1]),qe[q]=_)}q=Z+1;var Se=new Int32Array(q);for(ee=qe[q-1];q-- >0;)Se[q]=ee,ee=st[ee],qe[q]=0;return Se}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(P,W,_,H){var Z=[],q=W.$V;w.v=!0,a(q)?a(P)||(P.flags&16384&&(P=J(P)),ze(P,W,H,!1,null,Z),W.$V=P,q=P):a(P)?(Xe(q,W),W.$V=null):(P.flags&16384&&(P=J(P)),Ze(q,P,W,H,!1,null,Z),q=W.$V=P),C(Z),w.v=!1,o(_)&&_(),o(T.renderComplete)&&T.renderComplete(q,W)}function Wt(P,W,_,H){_===void 0&&(_=null),H===void 0&&(H=c),Ft(P,W,_,H)}function kn(P){return function(){function W(_,H,Z,q){P||(P=_),Wt(H,P,Z,q)}return W}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(P){window.setTimeout(P,0)},gt=!1;function Ut(P,W,_,H){var Z=P.$PS;if(o(W)&&(W=W(Z?y(P.state,Z):P.state,P.props,P.context)),a(Z))P.$PS=W;else for(var q in W)Z[q]=W[q];if(P.$BR)o(_)&&P.$L.push(_.bind(P));else{if(!w.v&&mt.length===0){_t(P,H),o(_)&&_.call(P);return}if(mt.indexOf(P)===-1&&mt.push(P),H&&(P.$F=!0),gt||(gt=!0,Sn(Kt)),o(_)){var ee=P.$QU;ee||(ee=P.$QU=[]),ee.push(_)}}}function Bn(P){for(var W=P.$QU,_=0;_=0;--U){var K=this.tryEntries[U],z=K.completion;if(K.tryLoc==="root")return F("end");if(K.tryLoc<=this.prev){var $=a.call(K,"catchLoc"),Y=a.call(K,"finallyLoc");if($&&Y){if(this.prev=0;--F){var U=this.tryEntries[F];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===R)return this.complete(F.completion,F.afterLoc),x(F),s}}return O}(),catch:function(){function O(R){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===R){var U=F.completion;if(U.type==="throw"){var K=U.arg;x(F)}return K}}throw new Error("illegal catch attempt")}return O}(),delegateYield:function(){function O(R,j,F){return this.delegate={iterator:M(R),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=o),s}return O}()},n}(L.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},16666:function(){"use strict";self.fetch||(self.fetch=function(L,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:k,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(y){return[y,a.getResponseHeader(y)]})}return S}(),get:function(){function S(y){return a.getResponseHeader(y)}return S}(),has:function(){function S(y){return a.getResponseHeader(y)!=null}return S}()}}}return k}();for(var V in a.open(r.method||"get",L,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(V,r.headers[V]);a.send(r.body||null)})})},50640:function(L,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(i,v){var g=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(g)return(g=g.call(i)).next.bind(g);if(Array.isArray(i)||(g=e(i))||v&&i&&typeof i.length=="number"){g&&(i=g);var C=0;return function(){return C>=i.length?{done:!0}:{done:!1,value:i[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(i,v){if(i){if(typeof i=="string")return a(i,v);var g=Object.prototype.toString.call(i).slice(8,-1);if(g==="Object"&&i.constructor&&(g=i.constructor.name),g==="Map"||g==="Set")return Array.from(i);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(i,v)}}function a(i,v){(v==null||v>i.length)&&(v=i.length);for(var g=0,C=new Array(v);g0&&(0,a.round)(p.width)/k.offsetWidth||1,c=k.offsetHeight>0&&(0,a.round)(p.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,l=m.visualViewport,u=!(0,o.default)()&&y,s=(p.left+(u&&l?l.offsetLeft:0))/d,i=(p.top+(u&&l?l.offsetTop:0))/c,v=p.width/d,g=p.height/c;return{width:v,height:g,top:i,right:s+v,bottom:i+g,left:s,x:s,y:i}}},86380:function(L,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(41521),a=u(n(2868)),t=u(n(39799)),o=u(n(54826)),f=u(n(43243)),V=u(n(33733)),k=u(n(14522)),S=n(72600),y=u(n(32125)),p=u(n(34972)),d=u(n(96343)),c=u(n(13203)),m=u(n(31855)),l=n(69031);function u(C){return C&&C.__esModule?C:{default:C}}function s(C,h){var N=(0,y.default)(C,!1,h==="fixed");return N.top=N.top+C.clientTop,N.left=N.left+C.clientLeft,N.bottom=N.top+C.clientHeight,N.right=N.left+C.clientWidth,N.width=C.clientWidth,N.height=C.clientHeight,N.x=N.left,N.y=N.top,N}function i(C,h,N){return h===e.viewport?(0,m.default)((0,a.default)(C,N)):(0,S.isElement)(h)?s(h,N):(0,m.default)((0,t.default)((0,V.default)(C)))}function v(C){var h=(0,o.default)((0,p.default)(C)),N=["absolute","fixed"].indexOf((0,k.default)(C).position)>=0,b=N&&(0,S.isHTMLElement)(C)?(0,f.default)(C):C;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,d.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function g(C,h,N,b){var B=h==="clippingParents"?v(C):[].concat(h),I=[].concat(B,[N]),w=I[0],T=I.reduce(function(A,x){var E=i(C,x,b);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},i(C,w,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},8823:function(L,r,n){"use strict";r.__esModule=!0,r.default=d;var e=y(n(32125)),a=y(n(45401)),t=y(n(13203)),o=n(72600),f=y(n(85750)),V=y(n(33733)),k=y(n(44011)),S=n(69031);function y(c){return c&&c.__esModule?c:{default:c}}function p(c){var m=c.getBoundingClientRect(),l=(0,S.round)(m.width)/c.offsetWidth||1,u=(0,S.round)(m.height)/c.offsetHeight||1;return l!==1||u!==1}function d(c,m,l){l===void 0&&(l=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&p(m),i=(0,V.default)(m),v=(0,e.default)(c,s,l),g={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(u||!u&&!l)&&(((0,t.default)(m)!=="body"||(0,k.default)(i))&&(g=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(C=(0,e.default)(m,!0),C.x+=m.clientLeft,C.y+=m.clientTop):i&&(C.x=(0,f.default)(i))),{x:v.left+g.scrollLeft-C.x,y:v.top+g.scrollTop-C.y,width:v.width,height:v.height}}},14522:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},33733:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(72600);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},39799:function(L,r,n){"use strict";r.__esModule=!0,r.default=k;var e=V(n(33733)),a=V(n(14522)),t=V(n(85750)),o=V(n(79569)),f=n(69031);function V(S){return S&&S.__esModule?S:{default:S}}function k(S){var y,p=(0,e.default)(S),d=(0,o.default)(S),c=(y=S.ownerDocument)==null?void 0:y.body,m=(0,f.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,f.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-d.scrollLeft+(0,t.default)(S),s=-d.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(u+=(0,f.max)(p.clientWidth,c?c.clientWidth:0)-m),{width:m,height:l,x:u,y:s}}},75680:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},19820:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(32125));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=o.offsetWidth,k=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:k}}},13203:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},45401:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(79569)),a=f(n(81020)),t=n(72600),o=f(n(75680));function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},43243:function(L,r,n){"use strict";r.__esModule=!0,r.default=d;var e=S(n(81020)),a=S(n(13203)),t=S(n(14522)),o=n(72600),f=S(n(25658)),V=S(n(34972)),k=S(n(97353));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var m=/firefox/i.test((0,k.default)()),l=/Trident/i.test((0,k.default)());if(l&&(0,o.isHTMLElement)(c)){var u=(0,t.default)(c);if(u.position==="fixed")return null}var s=(0,V.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var i=(0,t.default)(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||m&&i.willChange==="filter"||m&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function d(c){for(var m=(0,e.default)(c),l=y(c);l&&(0,f.default)(l)&&(0,t.default)(l).position==="static";)l=y(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?m:l||p(c)||m}},34972:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(13203)),a=o(n(33733)),t=n(72600);function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},65329:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(34972)),a=f(n(44011)),t=f(n(13203)),o=n(72600);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:V((0,e.default)(k))}},2868:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(81020)),a=f(n(33733)),t=f(n(85750)),o=f(n(14894));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var y=(0,e.default)(k),p=(0,a.default)(k),d=y.visualViewport,c=p.clientWidth,m=p.clientHeight,l=0,u=0;if(d){c=d.width,m=d.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(l=d.offsetLeft,u=d.offsetTop)}return{width:c,height:m,x:l+(0,t.default)(k),y:u}}},81020:function(L,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}},79569:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.pageXOffset,k=f.pageYOffset;return{scrollLeft:V,scrollTop:k}}},85750:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(32125)),a=o(n(33733)),t=o(n(79569));function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},72600:function(L,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(81020));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var k=(0,e.default)(V).Element;return V instanceof k||V instanceof Element}function o(V){var k=(0,e.default)(V).HTMLElement;return V instanceof k||V instanceof HTMLElement}function f(V){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(V).ShadowRoot;return V instanceof k||V instanceof ShadowRoot}},14894:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(97353));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},44011:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(14522));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.overflow,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+k)}},25658:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(13203));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},54826:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(65329)),a=f(n(34972)),t=f(n(81020)),o=f(n(44011));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var y;S===void 0&&(S=[]);var p=(0,e.default)(k),d=p===((y=k.ownerDocument)==null?void 0:y.body),c=(0,t.default)(p),m=d?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,l=S.concat(m);return d?l:l.concat(V((0,a.default)(m)))}},41521:function(L,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],V=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",y=r.viewport="viewport",p=r.popper="popper",d=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+V,I+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+V,I+"-"+k])},[]),l=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",i=r.beforeMain="beforeMain",v=r.main="main",g=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",h=r.write="write",N=r.afterWrite="afterWrite",b=r.modifierPhases=[l,u,s,i,v,g,C,h,N]},60023:function(L,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(41521);Object.keys(a).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(91078);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(66641);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(7925);r.createPopper=f.createPopper;var V=n(62642);r.createPopperLite=V.createPopper},56304:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(13203)),a=n(72600);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(y){var p=S.styles[y]||{},d=S.attributes[y]||{},c=S.elements[y];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(d).forEach(function(m){var l=d[m];l===!1?c.removeAttribute(m):c.setAttribute(m,l===!0?"":l)}))})}function f(k){var S=k.state,y={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,y.popper),S.styles=y,S.elements.arrow&&Object.assign(S.elements.arrow.style,y.arrow),function(){Object.keys(S.elements).forEach(function(p){var d=S.elements[p],c=S.attributes[p]||{},m=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:y[p]),l=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(d)||!(0,e.default)(d)||(Object.assign(d.style,l),Object.keys(c).forEach(function(u){d.removeAttribute(u)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},57243:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(38141)),a=p(n(19820)),t=p(n(96343)),o=p(n(43243)),f=p(n(7770)),V=n(76770),k=p(n(77631)),S=p(n(54824)),y=n(41521);function p(u){return u&&u.__esModule?u:{default:u}}var d=function(){function u(s,i){return s=typeof s=="function"?s(Object.assign({},i.rects,{placement:i.placement})):s,(0,k.default)(typeof s!="number"?s:(0,S.default)(s,y.basePlacements))}return u}();function c(u){var s,i=u.state,v=u.name,g=u.options,C=i.elements.arrow,h=i.modifiersData.popperOffsets,N=(0,e.default)(i.placement),b=(0,f.default)(N),B=[y.left,y.right].indexOf(N)>=0,I=B?"height":"width";if(!(!C||!h)){var w=d(g.padding,i),T=(0,a.default)(C),A=b==="y"?y.top:y.left,x=b==="y"?y.bottom:y.right,E=i.rects.reference[I]+i.rects.reference[b]-h[b]-i.rects.popper[I],M=h[b]-i.rects.reference[b],D=(0,o.default)(C),O=D?b==="y"?D.clientHeight||0:D.clientWidth||0:0,R=E/2-M/2,j=w[A],F=O-T[I]-w[x],W=O/2-T[I]/2+R,K=(0,V.within)(j,W,F),z=b;i.modifiersData[v]=(s={},s[z]=K,s.centerOffset=K-W,s)}}function m(u){var s=u.state,i=u.options,v=i.element,g=v===void 0?"[data-popper-arrow]":v;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"]}},60421:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(41521),a=y(n(43243)),t=y(n(81020)),o=y(n(33733)),f=y(n(14522)),V=y(n(38141)),k=y(n(14380)),S=n(69031);function y(u){return u&&u.__esModule?u:{default:u}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d(u,s){var i=u.x,v=u.y,g=s.devicePixelRatio||1;return{x:(0,S.round)(i*g)/g||0,y:(0,S.round)(v*g)/g||0}}function c(u){var s,i=u.popper,v=u.popperRect,g=u.placement,C=u.variation,h=u.offsets,N=u.position,b=u.gpuAcceleration,B=u.adaptive,I=u.roundOffsets,w=u.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,M=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=M.x,E=M.y;var D=h.hasOwnProperty("x"),O=h.hasOwnProperty("y"),R=e.left,j=e.top,F=window;if(B){var W=(0,a.default)(i),K="clientHeight",z="clientWidth";if(W===(0,t.default)(i)&&(W=(0,o.default)(i),(0,f.default)(W).position!=="static"&&N==="absolute"&&(K="scrollHeight",z="scrollWidth")),W=W,g===e.top||(g===e.left||g===e.right)&&C===e.end){j=e.bottom;var $=w&&W===F&&F.visualViewport?F.visualViewport.height:W[K];E-=$-v.height,E*=b?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&C===e.end){R=e.right;var Y=w&&W===F&&F.visualViewport?F.visualViewport.width:W[z];A-=Y-v.width,A*=b?1:-1}}var X=Object.assign({position:N},B&&p),J=I===!0?d({x:A,y:E},(0,t.default)(i)):{x:A,y:E};if(A=J.x,E=J.y,b){var le;return Object.assign({},X,(le={},le[j]=O?"0":"",le[R]=D?"0":"",le.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",le))}return Object.assign({},X,(s={},s[j]=O?E+"px":"",s[R]=D?A+"px":"",s.transform="",s))}function m(u){var s=u.state,i=u.options,v=i.gpuAcceleration,g=v===void 0?!0:v,C=i.adaptive,h=C===void 0?!0:C,N=i.roundOffsets,b=N===void 0?!0:N,B={placement:(0,V.default)(s.placement),variation:(0,k.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:h,roundOffsets:b})))),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:b})))),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:{}}},84601:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(81020));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var k=V.state,S=V.instance,y=V.options,p=y.scroll,d=p===void 0?!0:p,c=y.resize,m=c===void 0?!0:c,l=(0,e.default)(k.elements.popper),u=[].concat(k.scrollParents.reference,k.scrollParents.popper);return d&&u.forEach(function(s){s.addEventListener("scroll",S.update,t)}),m&&l.addEventListener("resize",S.update,t),function(){d&&u.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),m&&l.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},17267:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(79641)),a=S(n(38141)),t=S(n(71976)),o=S(n(31584)),f=S(n(44744)),V=n(41521),k=S(n(14380));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){if((0,a.default)(c)===V.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function p(c){var m=c.state,l=c.options,u=c.name;if(!m.modifiersData[u]._skip){for(var s=l.mainAxis,i=s===void 0?!0:s,v=l.altAxis,g=v===void 0?!0:v,C=l.fallbackPlacements,h=l.padding,N=l.boundary,b=l.rootBoundary,B=l.altBoundary,I=l.flipVariations,w=I===void 0?!0:I,T=l.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,M=C||(E||!w?[(0,e.default)(A)]:y(A)),D=[A].concat(M).reduce(function(me,ae){return me.concat((0,a.default)(ae)===V.auto?(0,f.default)(m,{placement:ae,boundary:N,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:T}):ae)},[]),O=m.rects.reference,R=m.rects.popper,j=new Map,F=!0,W=D[0],K=0;K=0,J=X?"width":"height",le=(0,o.default)(m,{placement:z,boundary:N,rootBoundary:b,altBoundary:B,padding:h}),ce=X?Y?V.right:V.left:Y?V.bottom:V.top;O[J]>R[J]&&(ce=(0,e.default)(ce));var fe=(0,e.default)(ce),pe=[];if(i&&pe.push(le[$]<=0),g&&pe.push(le[ce]<=0,le[fe]<=0),pe.every(function(me){return me})){W=z,F=!1;break}j.set(z,pe)}if(F)for(var be=w?3:1,te=function(){function me(ae){var ue=D.find(function(oe){var ke=j.get(oe);if(ke)return ke.slice(0,ae).every(function(Be){return Be})});if(ue)return W=ue,"break"}return me}(),Q=be;Q>0;Q--){var ne=te(Q);if(ne==="break")break}m.placement!==W&&(m.modifiersData[u]._skip=!0,m.placement=W,m.reset=!0)}}var d=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},88476:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=t(n(31584));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,y,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-y.height-p.y,right:S.right-y.width+p.x,bottom:S.bottom-y.height+p.y,left:S.left-y.width-p.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(y){return S[y]>=0})}function V(S){var y=S.state,p=S.name,d=y.rects.reference,c=y.rects.popper,m=y.modifiersData.preventOverflow,l=(0,a.default)(y,{elementContext:"reference"}),u=(0,a.default)(y,{altBoundary:!0}),s=o(l,d),i=o(u,c,m),v=f(s),g=f(i);y.modifiersData[p]={referenceClippingOffsets:s,popperEscapeOffsets:i,isReferenceHidden:v,hasPopperEscaped:g},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":g})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},91078:function(L,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=p(n(56304));r.applyStyles=e.default;var a=p(n(57243));r.arrow=a.default;var t=p(n(60421));r.computeStyles=t.default;var o=p(n(84601));r.eventListeners=o.default;var f=p(n(17267));r.flip=f.default;var V=p(n(88476));r.hide=V.default;var k=p(n(36707));r.offset=k.default;var S=p(n(98916));r.popperOffsets=S.default;var y=p(n(44454));r.preventOverflow=y.default;function p(d){return d&&d.__esModule?d:{default:d}}},36707:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(38141)),a=n(41521);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,y){var p=(0,e.default)(k),d=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof y=="function"?y(Object.assign({},S,{placement:k})):y,m=c[0],l=c[1];return m=m||0,l=(l||0)*d,[a.left,a.right].indexOf(p)>=0?{x:l,y:m}:{x:m,y:l}}function f(k){var S=k.state,y=k.options,p=k.name,d=y.offset,c=d===void 0?[0,0]:d,m=a.placements.reduce(function(i,v){return i[v]=o(v,S.rects,c),i},{}),l=m[S.placement],u=l.x,s=l.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=u,S.modifiersData.popperOffsets.y+=s),S.modifiersData[p]=m}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},98916:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(47566));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var V=f.state,k=f.name;V.modifiersData[k]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},44454:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=c(n(38141)),t=c(n(7770)),o=c(n(39571)),f=n(76770),V=c(n(19820)),k=c(n(43243)),S=c(n(31584)),y=c(n(14380)),p=c(n(92385)),d=n(69031);function c(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,i=u.options,v=u.name,g=i.mainAxis,C=g===void 0?!0:g,h=i.altAxis,N=h===void 0?!1:h,b=i.boundary,B=i.rootBoundary,I=i.altBoundary,w=i.padding,T=i.tether,A=T===void 0?!0:T,x=i.tetherOffset,E=x===void 0?0:x,M=(0,S.default)(s,{boundary:b,rootBoundary:B,padding:w,altBoundary:I}),D=(0,a.default)(s.placement),O=(0,y.default)(s.placement),R=!O,j=(0,t.default)(D),F=(0,o.default)(j),W=s.modifiersData.popperOffsets,K=s.rects.reference,z=s.rects.popper,$=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,Y=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),X=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(W){if(C){var le,ce=j==="y"?e.top:e.left,fe=j==="y"?e.bottom:e.right,pe=j==="y"?"height":"width",be=W[j],te=be+M[ce],Q=be-M[fe],ne=A?-z[pe]/2:0,me=O===e.start?K[pe]:z[pe],ae=O===e.start?-z[pe]:-K[pe],ue=s.elements.arrow,oe=A&&ue?(0,V.default)(ue):{width:0,height:0},ke=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,p.default)(),Be=ke[ce],ve=ke[fe],ge=(0,f.within)(0,K[pe],oe[pe]),ye=R?K[pe]/2-ne-ge-Be-Y.mainAxis:me-ge-Be-Y.mainAxis,Ve=R?-K[pe]/2+ne+ge+ve+Y.mainAxis:ae+ge+ve+Y.mainAxis,Ie=s.elements.arrow&&(0,k.default)(s.elements.arrow),we=Ie?j==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,xe=(le=X==null?void 0:X[j])!=null?le:0,Pe=be+ye-xe-we,Ue=be+Ve-xe,Ne=(0,f.within)(A?(0,d.min)(te,Pe):te,be,A?(0,d.max)(Q,Ue):Q);W[j]=Ne,J[j]=Ne-be}if(N){var re,de=j==="x"?e.top:e.left,he=j==="x"?e.bottom:e.right,se=W[F],Ce=F==="y"?"height":"width",Ae=se+M[de],De=se-M[he],je=[e.top,e.left].indexOf(D)!==-1,Ke=(re=X==null?void 0:X[F])!=null?re:0,We=je?Ae:se-K[Ce]-z[Ce]-Ke+Y.altAxis,_e=je?se+K[Ce]+z[Ce]-Ke-Y.altAxis:De,$e=A&&je?(0,f.withinMaxClamp)(We,se,_e):(0,f.within)(A?We:Ae,se,A?_e:De);W[F]=$e,J[F]=$e-se}s.modifiersData[v]=J}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},62642:function(L,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(66641);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=V(n(84601)),t=V(n(98916)),o=V(n(60421)),f=V(n(56304));function V(y){return y&&y.__esModule?y:{default:y}}var k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},7925:function(L,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(66641);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(84601)),o=l(n(98916)),f=l(n(60421)),V=l(n(56304)),k=l(n(36707)),S=l(n(17267)),y=l(n(44454)),p=l(n(57243)),d=l(n(88476)),c=n(62642);r.createPopperLite=c.createPopper;var m=n(91078);Object.keys(m).forEach(function(i){i==="default"||i==="__esModule"||Object.prototype.hasOwnProperty.call(e,i)||i in r&&r[i]===m[i]||(r[i]=m[i])});function l(i){return i&&i.__esModule?i:{default:i}}var u=r.defaultModifiers=[t.default,o.default,f.default,V.default,k.default,S.default,y.default,p.default,d.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},44744:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(14380)),a=n(41521),t=f(n(31584)),o=f(n(38141));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){S===void 0&&(S={});var y=S,p=y.placement,d=y.boundary,c=y.rootBoundary,m=y.padding,l=y.flipVariations,u=y.allowedAutoPlacements,s=u===void 0?a.placements:u,i=(0,e.default)(p),v=i?l?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===i}):a.basePlacements,g=v.filter(function(h){return s.indexOf(h)>=0});g.length===0&&(g=v);var C=g.reduce(function(h,N){return h[N]=(0,t.default)(k,{placement:N,boundary:d,rootBoundary:c,padding:m})[(0,o.default)(N)],h},{});return Object.keys(C).sort(function(h,N){return C[h]-C[N]})}},47566:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(38141)),a=f(n(14380)),t=f(n(7770)),o=n(41521);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){var S=k.reference,y=k.element,p=k.placement,d=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,m=S.x+S.width/2-y.width/2,l=S.y+S.height/2-y.height/2,u;switch(d){case o.top:u={x:m,y:S.y-y.height};break;case o.bottom:u={x:m,y:S.y+S.height};break;case o.right:u={x:S.x+S.width,y:l};break;case o.left:u={x:S.x-y.width,y:l};break;default:u={x:S.x,y:S.y}}var s=d?(0,t.default)(d):null;if(s!=null){var i=s==="y"?"height":"width";switch(c){case o.start:u[s]=u[s]-(S[i]/2-y[i]/2);break;case o.end:u[s]=u[s]+(S[i]/2-y[i]/2);break;default:}}return u}},80798:function(L,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}}},31584:function(L,r,n){"use strict";r.__esModule=!0,r.default=d;var e=p(n(86380)),a=p(n(33733)),t=p(n(32125)),o=p(n(47566)),f=p(n(31855)),V=n(41521),k=n(72600),S=p(n(77631)),y=p(n(54824));function p(c){return c&&c.__esModule?c:{default:c}}function d(c,m){m===void 0&&(m={});var l=m,u=l.placement,s=u===void 0?c.placement:u,i=l.strategy,v=i===void 0?c.strategy:i,g=l.boundary,C=g===void 0?V.clippingParents:g,h=l.rootBoundary,N=h===void 0?V.viewport:h,b=l.elementContext,B=b===void 0?V.popper:b,I=l.altBoundary,w=I===void 0?!1:I,T=l.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,y.default)(A,V.basePlacements)),E=B===V.popper?V.reference:V.popper,M=c.rects.popper,D=c.elements[w?E:B],O=(0,e.default)((0,k.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),C,N,v),R=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:R,element:M,strategy:"absolute",placement:s}),F=(0,f.default)(Object.assign({},M,j)),W=B===V.popper?F:R,K={top:O.top-W.top+x.top,bottom:W.bottom-O.bottom+x.bottom,left:O.left-W.left+x.left,right:W.right-O.right+x.right},z=c.modifiersData.offset;if(B===V.popper&&z){var $=z[s];Object.keys(K).forEach(function(Y){var X=[V.right,V.bottom].indexOf(Y)>=0?1:-1,J=[V.top,V.bottom].indexOf(Y)>=0?"y":"x";K[Y]+=$[J]*X})}return K}},54824:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},39571:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},38141:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(41521);function a(t){return t.split("-")[0]}},92385:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},7770:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},79641:function(L,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]})}},71976:function(L,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]})}},14380:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},69031:function(L,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},46343:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},77631:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(92385));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},17859:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(41521);function a(o){var f=new Map,V=new Set,k=[];o.forEach(function(y){f.set(y.name,y)});function S(y){V.add(y.name);var p=[].concat(y.requires||[],y.requiresIfExists||[]);p.forEach(function(d){if(!V.has(d)){var c=f.get(d);c&&S(c)}}),k.push(y)}return o.forEach(function(y){V.has(y.name)||S(y)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,k){return V.concat(f.filter(function(S){return S.phase===k}))},[])}},31855:function(L,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})}},97353:function(L,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}},76770:function(L,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(69031);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var k=a(o,f,V);return k>V?V:k}},63935:function(L,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=te,r._M=ze,r._MCCC=Pt,r._ME=Ot,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=vt,r.__render=Ft,r.createComponentVNode=K,r.createFragment=$,r.createPortal=ce,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=z,r.createVNode=R,r.directClone=J,r.findDOMfromVNode=N,r.forwardRef=Xt,r.getFlagsForElementVnode=pe,r.linkEvent=p,r.normalizeProps=Y,r.options=void 0,r.render=Ut,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(P){var U=typeof P;return U==="string"||U==="number"}function a(P){return P==null}function t(P){return P===null||P===!1||P===!0||P===void 0}function o(P){return typeof P=="function"}function f(P){return typeof P=="string"}function V(P){return typeof P=="number"}function k(P){return P===null}function S(P){return P===void 0}function y(P,U){var _={};if(P)for(var H in P)_[H]=P[H];if(U)for(var Z in U)_[Z]=U[Z];return _}function p(P,U){return o(U)?{data:P,event:U}:null}function d(P){return!k(P)&&typeof P=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function l(P){return P.substr(2).toLowerCase()}function u(P,U){P.appendChild(U)}function s(P,U,_){k(_)?u(P,U):P.insertBefore(U,_)}function i(P,U){return U?document.createElementNS("http://www.w3.org/2000/svg",P):document.createElement(P)}function v(P,U,_){P.replaceChild(U,_)}function g(P,U){P.removeChild(U)}function C(P){for(var U=0;U0,Se=k(ie),Le=f(ie)&&ie[0]===D;Te||Se||Le?(_=_||U.slice(0,q),(Te||Le)&&(ee=J(ee)),(Se||Le)&&(ee.key=D+q),_.push(ee)):_&&_.push(ee),ee.flags|=65536}}_=_||U,_.length===0?H=1:H=8}else _=U,_.flags|=65536,U.flags&81920&&(_=J(U)),H=2;return P.children=_,P.childFlags=H,P}function te(P){return t(P)||e(P)?z(P,null):n(P)?$(P,0,null):P.flags&16384?J(P):P}var Q="http://www.w3.org/1999/xlink",ne="http://www.w3.org/XML/1998/namespace",me={"xlink:actuate":Q,"xlink:arcrole":Q,"xlink:href":Q,"xlink:role":Q,"xlink:show":Q,"xlink:title":Q,"xlink:type":Q,"xml:base":ne,"xml:lang":ne,"xml:space":ne};function ae(P){return{onClick:P,onDblClick:P,onFocusIn:P,onFocusOut:P,onKeyDown:P,onKeyPress:P,onKeyUp:P,onMouseDown:P,onMouseMove:P,onMouseUp:P,onTouchEnd:P,onTouchMove:P,onTouchStart:P}}var ue=ae(0),oe=ae(null),ke=ae(!0);function Be(P,U){var _=U.$EV;return _||(_=U.$EV=ae(null)),_[P]||++ue[P]===1&&(oe[P]=re(P)),_}function ve(P,U){var _=U.$EV;_&&_[P]&&(--ue[P]===0&&(document.removeEventListener(l(P),oe[P]),oe[P]=null),_[P]=null)}function ge(P,U,_,H){if(o(_))Be(P,H)[P]=_;else if(d(_)){if(x(U,_))return;Be(P,H)[P]=_}else ve(P,H)}function ye(P){return o(P.composedPath)?P.composedPath()[0]:P.target}function Ve(P,U,_,H){var Z=ye(P);do{if(U&&Z.disabled)return;var q=Z.$EV;if(q){var ee=q[_];if(ee&&(H.dom=Z,ee.event?ee.event(ee.data,P):ee(P),P.cancelBubble))return}Z=Z.parentNode}while(!k(Z))}function Ie(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Pe(P){var U={dom:document};return P.isDefaultPrevented=we,P.isPropagationStopped=xe,P.stopPropagation=Ie,Object.defineProperty(P,"currentTarget",{configurable:!0,get:function(){function _(){return U.dom}return _}()}),U}function Ue(P){return function(U){if(U.button!==0){U.stopPropagation();return}Ve(U,!0,P,Pe(U))}}function Ne(P){return function(U){Ve(U,!1,P,Pe(U))}}function re(P){var U=P==="onClick"||P==="onDblClick"?Ue(P):Ne(P);return document.addEventListener(l(P),U),U}function de(P,U){var _=document.createElement("i");return _.innerHTML=U,_.innerHTML===P.innerHTML}function he(P,U,_){if(P[U]){var H=P[U];H.event?H.event(H.data,_):H(_)}else{var Z=U.toLowerCase();P[Z]&&P[Z](_)}}function se(P,U){var _=function(Z){var q=this.$V;if(q){var ee=q.props||c,ie=q.dom;if(f(P))he(ee,P,Z);else for(var Te=0;Te-1&&U.options[q]&&(ie=U.options[q].value),_&&a(ie)&&(ie=P.defaultValue),$e(H,ie)}}var Bt=se("onInput",pt),It=se("onChange");function Lt(P,U){Ce(P,"input",Bt),U.onChange&&Ce(P,"change",It)}function pt(P,U,_){var H=P.value,Z=U.value;if(a(H)){if(_){var q=P.defaultValue;!a(q)&&q!==Z&&(U.defaultValue=q,U.value=q)}}else Z!==H&&(U.defaultValue=H,U.value=H)}function wt(P,U,_,H,Z,q){P&64?_e(H,_):P&256?ft(H,_,Z,U):P&128&&pt(H,_,Z),q&&(_.$V=U)}function $t(P,U,_){P&64?We(U,_):P&256?St(U):P&128&&Lt(U,_)}function Tt(P){return P.type&&Ae(P.type)?!a(P.checked):!a(P.value)}function Yt(){return{current:null}}function Xt(P){return{render:P}}function lt(P){P&&!M(P,null)&&P.current&&(P.current=null)}function ot(P,U,_){P&&(o(P)||P.current!==void 0)&&_.push(function(){!M(P,U)&&P.current!==void 0&&(P.current=U)})}function Xe(P,U){Qe(P),b(P,U)}function Qe(P){var U=P.flags,_=P.children,H;if(U&481){H=P.ref;var Z=P.props;lt(H);var q=P.childFlags;if(!k(Z))for(var ee=Object.keys(Z),ie=0,Te=ee.length;ie0;ee&&(q=Tt(_),q&&$t(U,H,_));for(var ie in _)ht(ie,null,_[ie],H,Z,q,null);ee&&wt(U,P,H,_,!0,q)}function At(P,U,_){var H=te(P.render(U,P.state,_)),Z=_;return o(P.getChildContext)&&(Z=y(_,P.getChildContext())),P.$CX=Z,H}function Et(P,U,_,H,Z,q){var ee=new U(_,H),ie=ee.$N=!!(U.getDerivedStateFromProps||ee.getSnapshotBeforeUpdate);if(ee.$SVG=Z,ee.$L=q,P.children=ee,ee.$BS=!1,ee.context=H,ee.props===c&&(ee.props=_),ie)ee.state=I(ee,_,ee.state);else if(o(ee.componentWillMount)){ee.$BR=!0,ee.componentWillMount();var Te=ee.$PS;if(!k(Te)){var Se=ee.state;if(k(Se))ee.state=Te;else for(var Le in Te)Se[Le]=Te[Le];ee.$PS=null}ee.$BR=!1}return ee.$LI=At(ee,_,H),ee}function vt(P,U){var _=P.props||c;return P.flags&32768?P.type.render(_,P.ref,U):P.type(_,U)}function ze(P,U,_,H,Z,q){var ee=P.flags|=16384;ee&481?Ot(P,U,_,H,Z,q):ee&4?nn(P,U,_,H,Z,q):ee&8?(on(P,U,_,H,Z,q),Rt(P,q)):ee&512||ee&16?Mt(P,U,Z):ee&8192?tn(P,_,U,H,Z,q):ee&1024&&en(P,_,U,Z,q)}function en(P,U,_,H,Z){ze(P.children,P.ref,U,!1,null,Z);var q=le();Mt(q,_,H),P.dom=q.dom}function tn(P,U,_,H,Z,q){var ee=P.children,ie=P.childFlags;ie&12&&ee.length===0&&(ie=P.childFlags=2,ee=P.children=le()),ie===2?ze(ee,_,U,H,Z,q):nt(ee,_,U,H,Z,q)}function Mt(P,U,_){var H=P.dom=document.createTextNode(P.children);k(U)||s(U,H,_)}function Ot(P,U,_,H,Z,q){var ee=P.flags,ie=P.props,Te=P.className,Se=P.childFlags,Le=P.dom=i(P.type,H=H||(ee&32)>0),Ee=P.children;if(!a(Te)&&Te!==""&&(H?Le.setAttribute("class",Te):Le.className=Te),Se===16)A(Le,Ee);else if(Se!==1){var Oe=H&&P.type!=="foreignObject";Se===2?(Ee.flags&16384&&(P.children=Ee=J(Ee)),ze(Ee,Le,_,Oe,null,q)):(Se===8||Se===4)&&nt(Ee,Le,_,Oe,null,q)}k(U)||s(U,Le,Z),k(ie)||xt(P,ee,ie,Le,H),ot(P.ref,Le,q)}function nt(P,U,_,H,Z,q){for(var ee=0;eeOe)&&(Le=N(ee[Oe-1],!1).nextSibling)}Ct(Te,Se,ee,ie,_,H,Z,Le,P,q)}function sn(P,U,_,H){var Z=P.ref,q=U.ref,ee=U.children;if(Ct(P.childFlags,U.childFlags,P.children,ee,Z,_,!1,null,P,H),U.dom=P.dom,Z!==q&&!t(ee)){var ie=ee.dom;g(Z,ie),u(q,ie)}}function mn(P,U,_,H,Z,q){var ee=U.dom=P.dom,ie=P.props,Te=U.props,Se=!1,Le=!1,Ee;if(H=H||(Z&32)>0,ie!==Te){var Oe=ie||c;if(Ee=Te||c,Ee!==c){Se=(Z&448)>0,Se&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Oe[Fe],He=Ee[Fe];Me!==He&&ht(Fe,Me,He,ee,H,Le,P)}}if(Oe!==c)for(var Re in Oe)a(Ee[Re])&&!a(Oe[Re])&&ht(Re,Oe[Re],null,ee,H,Le,P)}var et=U.children,Ye=U.className;P.className!==Ye&&(a(Ye)?ee.removeAttribute("class"):H?ee.setAttribute("class",Ye):ee.className=Ye),Z&4096?dn(ee,et):Ct(P.childFlags,U.childFlags,P.children,et,ee,_,H&&U.type!=="foreignObject",null,P,q),Se&&wt(Z,U,ee,Ee,!1,Le);var at=U.ref,Je=P.ref;Je!==at&&(lt(Je),ot(at,ee,q))}function fn(P,U,_,H,Z,q){Qe(P),nt(U,_,H,Z,N(P,!0),q),b(P,_)}function Ct(P,U,_,H,Z,q,ee,ie,Te,Se){switch(P){case 2:switch(U){case 2:Ze(_,H,Z,q,ee,ie,Se);break;case 1:Xe(_,Z);break;case 16:Qe(_),A(Z,H);break;default:fn(_,H,Z,q,ee,Se);break}break;case 1:switch(U){case 2:ze(H,Z,q,ee,ie,Se);break;case 1:break;case 16:A(Z,H);break;default:nt(H,Z,q,ee,ie,Se);break}break;case 16:switch(U){case 16:ln(_,H,Z);break;case 2:dt(Z),ze(H,Z,q,ee,ie,Se);break;case 1:dt(Z);break;default:dt(Z),nt(H,Z,q,ee,ie,Se);break}break;default:switch(U){case 16:rt(_),A(Z,H);break;case 2:ut(Z,Te,_),ze(H,Z,q,ee,ie,Se);break;case 1:ut(Z,Te,_);break;default:var Le=_.length|0,Ee=H.length|0;Le===0?Ee>0&&nt(H,Z,q,ee,ie,Se):Ee===0?ut(Z,Te,_):U===8&&P===8?Nn(_,H,Z,q,ee,Le,Ee,ie,Te,Se):gn(_,H,Z,q,ee,Le,Ee,ie,Se);break}break}}function pn(P,U,_,H,Z){Z.push(function(){P.componentDidUpdate(U,_,H)})}function Dt(P,U,_,H,Z,q,ee,ie,Te){var Se=P.state,Le=P.props,Ee=!!P.$N,Oe=o(P.shouldComponentUpdate);if(Ee&&(U=I(P,_,U!==Se?y(Se,U):U)),ee||!Oe||Oe&&P.shouldComponentUpdate(_,U,Z)){!Ee&&o(P.componentWillUpdate)&&P.componentWillUpdate(_,U,Z),P.props=_,P.state=U,P.context=Z;var Fe=null,Me=At(P,_,Z);Ee&&o(P.getSnapshotBeforeUpdate)&&(Fe=P.getSnapshotBeforeUpdate(Le,Se)),Ze(P.$LI,Me,H,P.$CX,q,ie,Te),P.$LI=Me,o(P.componentDidUpdate)&&pn(P,Le,Se,Fe,Te)}else P.props=_,P.state=U,P.context=Z}function hn(P,U,_,H,Z,q,ee){var ie=U.children=P.children;if(!k(ie)){ie.$L=ee;var Te=U.props||c,Se=U.ref,Le=P.ref,Ee=ie.state;if(!ie.$N){if(o(ie.componentWillReceiveProps)){if(ie.$BR=!0,ie.componentWillReceiveProps(Te,H),ie.$UN)return;ie.$BR=!1}k(ie.$PS)||(Ee=y(Ee,ie.$PS),ie.$PS=null)}Dt(ie,Ee,Te,_,H,Z,!1,q,ee),Le!==Se&&(lt(Le),ot(Se,ie,ee))}}function vn(P,U,_,H,Z,q,ee){var ie=!0,Te=U.props||c,Se=U.ref,Le=P.props,Ee=!a(Se),Oe=P.children;if(Ee&&o(Se.onComponentShouldUpdate)&&(ie=Se.onComponentShouldUpdate(Le,Te)),ie!==!1){Ee&&o(Se.onComponentWillUpdate)&&Se.onComponentWillUpdate(Le,Te);var Fe=te(vt(U,H));Ze(Oe,Fe,_,H,Z,q,ee),U.children=Fe,Ee&&o(Se.onComponentDidUpdate)&&Se.onComponentDidUpdate(Le,Te)}else U.children=Oe}function Cn(P,U){var _=U.children,H=U.dom=P.dom;_!==P.children&&(H.nodeValue=_)}function gn(P,U,_,H,Z,q,ee,ie,Te){for(var Se=q>ee?ee:q,Le=0,Ee,Oe;Leee)for(Le=Se;LeLe||Oe>Ee)break e;Fe=P[Oe],Me=U[Oe]}for(Fe=P[Le],Me=U[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(U[Ee]=Me=J(Me)),Ze(Fe,Me,_,H,Z,ie,Se),P[Le]=Me,Le--,Ee--,Oe>Le||Oe>Ee)break e;Fe=P[Le],Me=U[Ee]}}if(Oe>Le){if(Oe<=Ee)for(He=Ee+1,Re=HeEe)for(;Oe<=Le;)Xe(P[Oe++],_);else Vn(P,U,H,q,ee,Le,Ee,Oe,_,Z,ie,Te,Se)}function Vn(P,U,_,H,Z,q,ee,ie,Te,Se,Le,Ee,Oe){var Fe,Me,He,Re=0,et=ie,Ye=ie,at=q-ie+1,Je=ee-ie+1,ct=new Int32Array(Je+1),tt=at===H,Vt=!1,Ge=0,it=0;if(Z<4||(at|Je)<32)for(Re=et;Re<=q;++Re)if(Fe=P[Re],itie?Vt=!0:Ge=ie,Me.flags&16384&&(U[ie]=Me=J(Me)),Ze(Fe,Me,Te,_,Se,Le,Oe),++it;break}!tt&&ie>ee&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var zt={};for(Re=Ye;Re<=ee;++Re)zt[U[Re].key]=Re;for(Re=et;Re<=q;++Re)if(Fe=P[Re],itet;)Xe(P[et++],Te);ct[ie-Ye]=Re+1,Ge>ie?Vt=!0:Ge=ie,Me=U[ie],Me.flags&16384&&(U[ie]=Me=J(Me)),Ze(Fe,Me,Te,_,Se,Le,Oe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)ut(Te,Ee,P),nt(U,Te,_,Se,Le,Oe);else if(Vt){var Ht=bn(ct);for(ie=Ht.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?(Ge=Re+Ye,Me=U[Ge],Me.flags&16384&&(U[Ge]=Me=J(Me)),He=Ge+1,ze(Me,Te,_,Se,He=0;Re--)ct[Re]===0&&(Ge=Re+Ye,Me=U[Ge],Me.flags&16384&&(U[Ge]=Me=J(Me)),He=Ge+1,ze(Me,Te,_,Se,Hejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));_>1,P[qe[ie]]0&&(st[_]=qe[q-1]),qe[q]=_)}q=Z+1;var Se=new Int32Array(q);for(ee=qe[q-1];q-- >0;)Se[q]=ee,ee=st[ee],qe[q]=0;return Se}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(P,U,_,H){var Z=[],q=U.$V;w.v=!0,a(q)?a(P)||(P.flags&16384&&(P=J(P)),ze(P,U,H,!1,null,Z),U.$V=P,q=P):a(P)?(Xe(q,U),U.$V=null):(P.flags&16384&&(P=J(P)),Ze(q,P,U,H,!1,null,Z),q=U.$V=P),C(Z),w.v=!1,o(_)&&_(),o(T.renderComplete)&&T.renderComplete(q,U)}function Ut(P,U,_,H){_===void 0&&(_=null),H===void 0&&(H=c),Ft(P,U,_,H)}function kn(P){return function(){function U(_,H,Z,q){P||(P=_),Ut(H,P,Z,q)}return U}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(P){window.setTimeout(P,0)},gt=!1;function Wt(P,U,_,H){var Z=P.$PS;if(o(U)&&(U=U(Z?y(P.state,Z):P.state,P.props,P.context)),a(Z))P.$PS=U;else for(var q in U)Z[q]=U[q];if(P.$BR)o(_)&&P.$L.push(_.bind(P));else{if(!w.v&&mt.length===0){_t(P,H),o(_)&&_.call(P);return}if(mt.indexOf(P)===-1&&mt.push(P),H&&(P.$F=!0),gt||(gt=!0,Sn(Kt)),o(_)){var ee=P.$QU;ee||(ee=P.$QU=[]),ee.push(_)}}}function Bn(P){for(var U=P.$QU,_=0;_=0;--W){var K=this.tryEntries[W],z=K.completion;if(K.tryLoc==="root")return F("end");if(K.tryLoc<=this.prev){var $=a.call(K,"catchLoc"),Y=a.call(K,"finallyLoc");if($&&Y){if(this.prev=0;--F){var W=this.tryEntries[F];if(W.tryLoc<=this.prev&&a.call(W,"finallyLoc")&&this.prev=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===R)return this.complete(F.completion,F.afterLoc),x(F),s}}return O}(),catch:function(){function O(R){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===R){var W=F.completion;if(W.type==="throw"){var K=W.arg;x(F)}return K}}throw new Error("illegal catch attempt")}return O}(),delegateYield:function(){function O(R,j,F){return this.delegate={iterator:M(R),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=o),s}return O}()},n}(L.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},16666:function(){"use strict";self.fetch||(self.fetch=function(L,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:k,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(y){return[y,a.getResponseHeader(y)]})}return S}(),get:function(){function S(y){return a.getResponseHeader(y)}return S}(),has:function(){function S(y){return a.getResponseHeader(y)!=null}return S}()}}}return k}();for(var V in a.open(r.method||"get",L,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(V,r.headers[V]);a.send(r.body||null)})})},50640:function(L,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(i,v){var g=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(g)return(g=g.call(i)).next.bind(g);if(Array.isArray(i)||(g=e(i))||v&&i&&typeof i.length=="number"){g&&(i=g);var C=0;return function(){return C>=i.length?{done:!0}:{done:!1,value:i[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(i,v){if(i){if(typeof i=="string")return a(i,v);var g=Object.prototype.toString.call(i).slice(8,-1);if(g==="Object"&&i.constructor&&(g=i.constructor.name),g==="Map"||g==="Set")return Array.from(i);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(i,v)}}function a(i,v){(v==null||v>i.length)&&(v=i.length);for(var g=0,C=new Array(v);g1?l-1:0),s=1;s1?b-1:0),I=1;I=0;--ae){var ue=this.tryEntries[ae],oe=ue.completion;if(ue.tryLoc==="root")return me("end");if(ue.tryLoc<=this.prev){var ke=C.call(ue,"catchLoc"),Be=C.call(ue,"finallyLoc");if(ke&&Be){if(this.prev=0;--me){var ae=this.tryEntries[me];if(ae.tryLoc<=this.prev&&C.call(ae,"finallyLoc")&&this.prev=0;--ne){var me=this.tryEntries[ne];if(me.finallyLoc===Q)return this.complete(me.completion,me.afterLoc),fe(me),O}}return te}(),catch:function(){function te(Q){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var me=this.tryEntries[ne];if(me.tryLoc===Q){var ae=me.completion;if(ae.type==="throw"){var ue=ae.arg;fe(me)}return ue}}throw Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(Q,ne,me){return this.delegate={iterator:be(Q),resultName:ne,nextLoc:me},this.method==="next"&&(this.arg=i),O}return te}()},v}function e(i,v,g,C,h,N,b){try{var B=i[N](b),I=B.value}catch(w){g(w);return}B.done?v(I):Promise.resolve(I).then(C,h)}function a(i){return function(){var v=this,g=arguments;return new Promise(function(C,h){var N=i.apply(v,g);function b(I){e(N,C,h,b,B,"next",I)}function B(I){e(N,C,h,b,B,"throw",I)}b(void 0)})}}/** + */var a=r.createStore=function(){function S(y,p){if(p)return p(S)(y);var d,c=[],m=function(){function s(){return d}return s}(),l=function(){function s(i){c.push(i)}return s}(),u=function(){function s(i){d=y(d,i);for(var v=0;v1?l-1:0),s=1;s1?b-1:0),I=1;I=0;--ae){var ue=this.tryEntries[ae],oe=ue.completion;if(ue.tryLoc==="root")return me("end");if(ue.tryLoc<=this.prev){var ke=C.call(ue,"catchLoc"),Be=C.call(ue,"finallyLoc");if(ke&&Be){if(this.prev=0;--me){var ae=this.tryEntries[me];if(ae.tryLoc<=this.prev&&C.call(ae,"finallyLoc")&&this.prev=0;--ne){var me=this.tryEntries[ne];if(me.finallyLoc===Q)return this.complete(me.completion,me.afterLoc),fe(me),O}}return te}(),catch:function(){function te(Q){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var me=this.tryEntries[ne];if(me.tryLoc===Q){var ae=me.completion;if(ae.type==="throw"){var ue=ae.arg;fe(me)}return ue}}throw Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(Q,ne,me){return this.delegate={iterator:be(Q),resultName:ne,nextLoc:me},this.method==="next"&&(this.arg=i),O}return te}()},v}function e(i,v,g,C,h,N,b){try{var B=i[N](b),I=B.value}catch(w){g(w);return}B.done?v(I):Promise.resolve(I).then(C,h)}function a(i){return function(){var v=this,g=arguments;return new Promise(function(C,h){var N=i.apply(v,g);function b(I){e(N,C,h,b,B,"next",I)}function B(I){e(N,C,h,b,B,"throw",I)}b(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file @@ -85,11 +85,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(C,h){if(C==null)return{};var N={},b=Object.keys(C),B,I;for(I=0;I=0)&&(N[B]=C[B]);return N}var k=r.unit=function(){function C(h){if(typeof h=="string")return h.endsWith("px")?parseFloat(h)/12+"rem":h;if(typeof h=="number")return h+"rem"}return C}(),S=r.halfUnit=function(){function C(h){if(typeof h=="string")return k(h);if(typeof h=="number")return k(h*.5)}return C}(),y=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},d=function(h){return function(N,b){(typeof b=="number"||typeof b=="string")&&(N[h]=b)}},c=function(h,N){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=N(B))}},m=function(h,N){return function(b,B){B&&(b[h]=N)}},l=function(h,N,b){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var w=0;w0&&(N.style=x),N}return C}(),v=r.computeBoxClassName=function(){function C(h){var N=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([p(N)&&"color-"+N,p(b)&&"color-bg-"+b])}return C}(),g=r.Box=function(){function C(h){var N=h.as,b=N===void 0?"div":N,B=h.className,I=h.children,w=V(h,f);if(typeof I=="function")return I(i(h));var T=typeof B=="string"?B+" "+v(w):v(w),A=i(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,I,t.ChildFlags.UnknownChildren,A)}return C}();g.defaultHooks=e.pureComponentHooks},91688:function(L,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(96524),a=n(28234),t=n(68100),o=n(81856),f=n(3051),V=n(11253),k=n(58749),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],y=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],d=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function V(C,h){if(C==null)return{};var N={},b=Object.keys(C),B,I;for(I=0;I=0)&&(N[B]=C[B]);return N}var k=r.unit=function(){function C(h){if(typeof h=="string")return h.endsWith("px")?parseFloat(h)/12+"rem":h;if(typeof h=="number")return h+"rem"}return C}(),S=r.halfUnit=function(){function C(h){if(typeof h=="string")return k(h);if(typeof h=="number")return k(h*.5)}return C}(),y=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},d=function(h){return function(N,b){(typeof b=="number"||typeof b=="string")&&(N[h]=b)}},c=function(h,N){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=N(B))}},m=function(h,N){return function(b,B){B&&(b[h]=N)}},l=function(h,N,b){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var w=0;w0&&(N.style=x),N}return C}(),v=r.computeBoxClassName=function(){function C(h){var N=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([p(N)&&"color-"+N,p(b)&&"color-bg-"+b])}return C}(),g=r.Box=function(){function C(h){var N=h.as,b=N===void 0?"div":N,B=h.className,I=h.children,w=V(h,f);if(typeof I=="function")return I(i(h));var T=typeof B=="string"?B+" "+v(w):v(w),A=i(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,I,t.ChildFlags.UnknownChildren,A)}return C}();g.defaultHooks=e.pureComponentHooks},91688:function(L,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(96524),a=n(28234),t=n(68100),o=n(81856),f=n(3051),V=n(11253),k=n(58749),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],y=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],d=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,m(C,h)}function m(C,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(b,B){return b.__proto__=B,b}return N}(),m(C,h)}function l(C,h){if(C==null)return{};var N={},b=Object.keys(C),B,I;for(I=0;I=0)&&(N[B]=C[B]);return N}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function C(h){var N=h.className,b=h.fluid,B=h.icon,I=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,M=h.tooltip,D=h.tooltipPosition,O=h.ellipsis,R=h.compact,j=h.circular,F=h.content,U=h.iconColor,K=h.iconRight,z=h.iconStyle,$=h.children,Y=h.onclick,X=h.onClick,J=h.multiLine,le=l(h,S),ce=!!(F||$);Y&&u.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),le.onClick=function(pe){!x&&X&&X(pe)};var fe=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ce&&"Button--hasContent",O&&"Button--ellipsis",j&&"Button--circular",R&&"Button--compact",K&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",N]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function pe(be){var te=window.event?be.which:be.keyCode;if(te===t.KEY_SPACE||te===t.KEY_ENTER){be.preventDefault(),!x&&X&&X(be);return}if(te===t.KEY_ESCAPE){be.preventDefault();return}}return pe}()},le,{children:[B&&!K&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:U,rotation:I,spin:w,style:z}),F,$,B&&K&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:U,rotation:I,spin:w,style:z})]})));return M&&(fe=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:D,children:fe})),fe}return C}();s.defaultHooks=a.pureComponentHooks;var i=r.ButtonCheckbox=function(){function C(h){var N=h.checked,b=l(h,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},b)))}return C}();s.Checkbox=i;var v=r.ButtonConfirm=function(C){function h(){var b;return b=C.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}c(h,C);var N=h.prototype;return N.setClickedOnce=function(){function b(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),N.render=function(){function b(){var B=this,I=this.props,w=I.confirmContent,T=w===void 0?"Confirm?":w,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,M=I.icon,D=I.color,O=I.content,R=I.onClick,j=l(I,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?T:O,icon:this.state.clickedOnce?E:M,color:this.state.clickedOnce?x:D,onClick:function(){function F(){return B.state.clickedOnce?R():B.setClickedOnce(!0)}return F}()},j)))}return b}(),h}(e.Component);s.Confirm=v;var g=r.ButtonInput=function(C){function h(){var b;return b=C.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}c(h,C);var N=h.prototype;return N.setInInput=function(){function b(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return b}(),N.commitResult=function(){function b(B){if(this.inputRef){var I=this.inputRef.current,w=I.value!=="";if(w){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),N.render=function(){function b(){var B=this,I=this.props,w=I.fluid,T=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,M=I.tooltip,D=I.tooltipPosition,O=I.color,R=O===void 0?"default":O,j=I.disabled,F=I.placeholder,U=I.maxLength,K=I.multiLine,z=l(I,d),$=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+R,K+"Button--multiLine"])},z,{onClick:function(){function Y(){return B.setInInput(!0)}return Y}(),children:[A&&(0,e.createComponentVNode)(2,V.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function Y(X){B.state.inInput&&(B.setInInput(!1),B.commitResult(X))}return Y}(),onKeyDown:function(){function Y(X){if(X.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(X);return}X.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return Y}()},null,this.inputRef)]})));return M&&($=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:D,children:$})),$}return b}(),h}(e.Component);s.Input=g},42204:function(L,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(96524),a=n(28234),t=n(56052),o=n(81856),f=n(3051),V=["params"],k=["params"],S=["parent","params"];function y(v,g){if(v==null)return{};var C={},h=Object.keys(v),N,b;for(b=0;b=0)&&(C[N]=v[N]);return C}function p(v,g){v.prototype=Object.create(g.prototype),v.prototype.constructor=v,d(v,g)}function d(v,g){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(h,N){return h.__proto__=N,h}return C}(),d(v,g)}/** + */function c(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,m(C,h)}function m(C,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(b,B){return b.__proto__=B,b}return N}(),m(C,h)}function l(C,h){if(C==null)return{};var N={},b=Object.keys(C),B,I;for(I=0;I=0)&&(N[B]=C[B]);return N}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function C(h){var N=h.className,b=h.fluid,B=h.icon,I=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,M=h.tooltip,D=h.tooltipPosition,O=h.ellipsis,R=h.compact,j=h.circular,F=h.content,W=h.iconColor,K=h.iconRight,z=h.iconStyle,$=h.children,Y=h.onclick,X=h.onClick,J=h.multiLine,le=l(h,S),ce=!!(F||$);Y&&u.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),le.onClick=function(pe){!x&&X&&X(pe)};var fe=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ce&&"Button--hasContent",O&&"Button--ellipsis",j&&"Button--circular",R&&"Button--compact",K&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",N]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function pe(be){var te=window.event?be.which:be.keyCode;if(te===t.KEY_SPACE||te===t.KEY_ENTER){be.preventDefault(),!x&&X&&X(be);return}if(te===t.KEY_ESCAPE){be.preventDefault();return}}return pe}()},le,{children:[B&&!K&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:I,spin:w,style:z}),F,$,B&&K&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:I,spin:w,style:z})]})));return M&&(fe=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:D,children:fe})),fe}return C}();s.defaultHooks=a.pureComponentHooks;var i=r.ButtonCheckbox=function(){function C(h){var N=h.checked,b=l(h,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},b)))}return C}();s.Checkbox=i;var v=r.ButtonConfirm=function(C){function h(){var b;return b=C.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}c(h,C);var N=h.prototype;return N.setClickedOnce=function(){function b(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),N.render=function(){function b(){var B=this,I=this.props,w=I.confirmContent,T=w===void 0?"Confirm?":w,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,M=I.icon,D=I.color,O=I.content,R=I.onClick,j=l(I,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?T:O,icon:this.state.clickedOnce?E:M,color:this.state.clickedOnce?x:D,onClick:function(){function F(){return B.state.clickedOnce?R():B.setClickedOnce(!0)}return F}()},j)))}return b}(),h}(e.Component);s.Confirm=v;var g=r.ButtonInput=function(C){function h(){var b;return b=C.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}c(h,C);var N=h.prototype;return N.setInInput=function(){function b(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return b}(),N.commitResult=function(){function b(B){if(this.inputRef){var I=this.inputRef.current,w=I.value!=="";if(w){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),N.render=function(){function b(){var B=this,I=this.props,w=I.fluid,T=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,M=I.tooltip,D=I.tooltipPosition,O=I.color,R=O===void 0?"default":O,j=I.disabled,F=I.placeholder,W=I.maxLength,K=I.multiLine,z=l(I,d),$=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+R,K+"Button--multiLine"])},z,{onClick:function(){function Y(){return B.setInInput(!0)}return Y}(),children:[A&&(0,e.createComponentVNode)(2,V.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function Y(X){B.state.inInput&&(B.setInInput(!1),B.commitResult(X))}return Y}(),onKeyDown:function(){function Y(X){if(X.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(X);return}X.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return Y}()},null,this.inputRef)]})));return M&&($=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:D,children:$})),$}return b}(),h}(e.Component);s.Input=g},42204:function(L,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(96524),a=n(28234),t=n(56052),o=n(81856),f=n(3051),V=["params"],k=["params"],S=["parent","params"];function y(v,g){if(v==null)return{};var C={},h=Object.keys(v),N,b;for(b=0;b=0)&&(C[N]=v[N]);return C}function p(v,g){v.prototype=Object.create(g.prototype),v.prototype.constructor=v,d(v,g)}function d(v,g){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(h,N){return h.__proto__=N,h}return C}(),d(v,g)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -97,7 +97,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=function(u,s,i,v){if(u.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,u),C=(0,a.zipWith)(Math.max).apply(void 0,u);i!==void 0&&(g[0]=i[0],C[0]=i[1]),v!==void 0&&(g[1]=v[0],C[1]=v[1]);var h=(0,a.map)(function(N){return(0,a.zipWith)(function(b,B,I,w){return(b-B)/(I-B)*w})(N,g,C,s)})(u);return h},p=function(u){for(var s="",i=0;i0){var O=D[0],R=D[D.length-1];D.push([M[0]+x,R[1]]),D.push([M[0]+x,-x]),D.push([-x,-x]),D.push([-x,O[1]])}var j=p(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(U){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, -"+M[1]+")",fill:I,stroke:T,"stroke-width":x,points:j}),2,{viewBox:"0 0 "+M[0]+" "+M[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,v.ref))}return F}()})))}return i}(),u}(e.Component);d.defaultHooks=t.pureComponentHooks;var c=function(u){return null},m=r.Chart={Line:d}},83974:function(L,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(96524),a=n(3051),t=n(91688),o=["children","color","title","buttons"];function f(y,p){if(y==null)return{};var d={},c=Object.keys(y),m,l;for(l=0;l=0)&&(d[m]=y[m]);return d}function V(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,k(y,p)}function k(y,p){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(c,m){return c.__proto__=m,c}return d}(),k(y,p)}/** +*/var y=function(u,s,i,v){if(u.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,u),C=(0,a.zipWith)(Math.max).apply(void 0,u);i!==void 0&&(g[0]=i[0],C[0]=i[1]),v!==void 0&&(g[1]=v[0],C[1]=v[1]);var h=(0,a.map)(function(N){return(0,a.zipWith)(function(b,B,I,w){return(b-B)/(I-B)*w})(N,g,C,s)})(u);return h},p=function(u){for(var s="",i=0;i0){var O=D[0],R=D[D.length-1];D.push([M[0]+x,R[1]]),D.push([M[0]+x,-x]),D.push([-x,-x]),D.push([-x,O[1]])}var j=p(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(W){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+M[1]+")",fill:I,stroke:T,"stroke-width":x,points:j}),2,{viewBox:"0 0 "+M[0]+" "+M[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},W),null,v.ref))}return F}()})))}return i}(),u}(e.Component);d.defaultHooks=t.pureComponentHooks;var c=function(u){return null},m=r.Chart={Line:d}},83974:function(L,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(96524),a=n(3051),t=n(91688),o=["children","color","title","buttons"];function f(y,p){if(y==null)return{};var d={},c=Object.keys(y),m,l;for(l=0;l=0)&&(d[m]=y[m]);return d}function V(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,k(y,p)}function k(y,p){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(c,m){return c.__proto__=m,c}return d}(),k(y,p)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -113,7 +113,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(f){var V=f.vertical,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},27648:function(L,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416);function f(p,d){p.prototype=Object.create(d.prototype),p.prototype.constructor=p,V(p,d)}function V(p,d){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,l){return m.__proto__=l,m}return c}(),V(p,d)}var k=400,S=function(d,c){return d.screenX*c[0]+d.screenY*c[1]},y=r.DraggableControl=function(p){function d(m){var l;return l=p.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 u=l.props.suppressFlicker;u>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},u))},l.handleDragStart=function(u){var s=l.props,i=s.value,v=s.dragMatrix,g=s.disabled,C=l.state.editing;C||g||(document.body.style["pointer-events"]="none",l.ref=u.currentTarget,l.setState({originalValue:i,dragging:!1,value:i,origin:S(u,v)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var h=l.state,N=h.dragging,b=h.value,B=l.props.onDrag;N&&B&&B(u,b)},l.props.updateRate||k),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(u){var s,i=l.props,v=i.minValue,g=i.maxValue,C=i.step,h=i.dragMatrix,N=i.disabled;if(!N){var b=l.ref.offsetWidth/((g-v)/C),B=(s=l.props.stepPixelSize)!=null?s:b;typeof B=="function"&&(B=B(b)),l.setState(function(I){var w=Object.assign({},I),T=I.origin,A=S(u,h)-T;if(I.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/C)*C+x*C,v,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},l.handleDragEnd=function(u){var s=l.props,i=s.onChange,v=s.onDrag,g=l.state,C=g.dragging,h=g.value;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({originalValue:null,dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),C)l.suppressFlicker(),i&&i(u,h),v&&v(u,h);else if(l.inputRef){var N=l.inputRef.current;N.value=h;try{N.focus(),N.select()}catch(b){}}},l}f(d,p);var c=d.prototype;return c.render=function(){function m(){var l=this,u=this.state,s=u.dragging,i=u.editing,v=u.value,g=u.suppressingFlicker,C=this.props,h=C.animated,N=C.value,b=C.unit,B=C.minValue,I=C.maxValue,w=C.format,T=C.onChange,A=C.onDrag,x=C.children,E=C.height,M=C.lineHeight,D=C.fontSize,O=C.disabled,R=N;(s||g)&&(R=v);var j=function(){function K(z){return z+(b?" "+b:"")}return K}(),F=h&&!s&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:w,children:j})||j(w?w(R):R),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!i||O?"none":void 0,height:E,"line-height":M,"font-size":D},onBlur:function(){function K(z){if(i){var $=(0,a.clamp)(parseFloat(z.target.value),B,I);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),T&&T(z,$),A&&A(z,$)}}return K}(),onKeyDown:function(){function K(z){if(z.keyCode===13){var $=(0,a.clamp)(parseFloat(z.target.value),B,I);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),T&&T(z,$),A&&A(z,$);return}if(z.keyCode===27){l.setState({editing:!1});return}}return K}(),disabled:O},null,this.inputRef);return x({dragging:s,editing:i,value:N,displayValue:R,displayElement:F,inputElement:U,handleDragStart:this.handleDragStart})}return m}(),d}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},45293:function(L,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(96524),a=n(60023),t=n(28234),o=n(3051),f=n(11253),V=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],k=["className"],S;function y(i,v){if(i==null)return{};var g={},C=Object.keys(i),h,N;for(N=0;N=0)&&(g[h]=i[h]);return g}function p(i,v){i.prototype=Object.create(v.prototype),i.prototype.constructor=i,d(i,v)}function d(i,v){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(C,h){return C.__proto__=h,C}return g}(),d(i,v)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function i(){return null}return i}()},l="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",s=r.Dropdown=function(i){function v(C){var h;return h=i.call(this,C)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}p(v,i);var g=v.prototype;return g.getDOMNode=function(){function C(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return C}(),g.componentDidMount=function(){function C(){var h=this.getDOMNode()}return C}(),g.openMenu=function(){function C(){var h=v.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=l,document.body.appendChild(h),v.renderedMenu=h);var N=this.getDOMNode();v.currentOpenMenu=N,h.scrollTop=0,h.style.width=this.props.menuWidth||N.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=v.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return C}(),g.closeMenu=function(){function C(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return C}(),g.componentWillUnmount=function(){function C(){this.closeMenu(),this.setOpen(!1)}return C}(),g.renderMenuContent=function(){function C(){var h=this,N=v.renderedMenu;if(N){N.offsetHeight>200?N.className=u:N.className=l;var b=this.props.options,B=b===void 0?[]:b,I=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),N,function(){var T=v.singletonPopper;T===void 0?(T=(0,a.createPopper)(v.virtualElement,N,Object.assign({},c,{placement:"bottom-start"})),v.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return C}(),g.setOpen=function(){function C(h){var N=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){N.openMenu(),window.addEventListener("click",N.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return C}(),g.setSelected=function(){function C(h){this.setState(function(N){return Object.assign({},N,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return C}(),g.render=function(){function C(){var h=this,N=this.props,b=N.icon,B=N.iconRotation,I=N.iconSpin,w=N.clipSelectedText,T=w===void 0?!0:w,A=N.color,x=A===void 0?"default":A,E=N.dropdownStyle,M=N.over,D=N.nochevron,O=N.width,R=N.onClick,j=N.onSelected,F=N.selected,U=N.disabled,K=N.displayText,z=y(N,V),$=z.className,Y=y(z,k),X=M?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:O,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,U&&"Button--disabled",$]),onClick:function(){function J(le){U&&!h.state.open||(h.setOpen(!h.state.open),R&&R(le))}return J}()},Y,{children:[b&&(0,e.createComponentVNode)(2,f.Icon,{name:b,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),D||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:X?"chevron-up":"chevron-down"}),2)]})))}return C}(),v}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function i(){var v,g;return(v=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?v:m}return i}()}},18963:function(L,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],V=["className","style","grow","order","shrink","basis","align"],k=["className"];/** + */var t=r.Divider=function(){function o(f){var V=f.vertical,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},27648:function(L,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416);function f(p,d){p.prototype=Object.create(d.prototype),p.prototype.constructor=p,V(p,d)}function V(p,d){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,l){return m.__proto__=l,m}return c}(),V(p,d)}var k=400,S=function(d,c){return d.screenX*c[0]+d.screenY*c[1]},y=r.DraggableControl=function(p){function d(m){var l;return l=p.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 u=l.props.suppressFlicker;u>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},u))},l.handleDragStart=function(u){var s=l.props,i=s.value,v=s.dragMatrix,g=s.disabled,C=l.state.editing;C||g||(document.body.style["pointer-events"]="none",l.ref=u.currentTarget,l.setState({originalValue:i,dragging:!1,value:i,origin:S(u,v)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var h=l.state,N=h.dragging,b=h.value,B=l.props.onDrag;N&&B&&B(u,b)},l.props.updateRate||k),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(u){var s,i=l.props,v=i.minValue,g=i.maxValue,C=i.step,h=i.dragMatrix,N=i.disabled;if(!N){var b=l.ref.offsetWidth/((g-v)/C),B=(s=l.props.stepPixelSize)!=null?s:b;typeof B=="function"&&(B=B(b)),l.setState(function(I){var w=Object.assign({},I),T=I.origin,A=S(u,h)-T;if(I.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/C)*C+x*C,v,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},l.handleDragEnd=function(u){var s=l.props,i=s.onChange,v=s.onDrag,g=l.state,C=g.dragging,h=g.value;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({originalValue:null,dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),C)l.suppressFlicker(),i&&i(u,h),v&&v(u,h);else if(l.inputRef){var N=l.inputRef.current;N.value=h;try{N.focus(),N.select()}catch(b){}}},l}f(d,p);var c=d.prototype;return c.render=function(){function m(){var l=this,u=this.state,s=u.dragging,i=u.editing,v=u.value,g=u.suppressingFlicker,C=this.props,h=C.animated,N=C.value,b=C.unit,B=C.minValue,I=C.maxValue,w=C.format,T=C.onChange,A=C.onDrag,x=C.children,E=C.height,M=C.lineHeight,D=C.fontSize,O=C.disabled,R=N;(s||g)&&(R=v);var j=function(){function K(z){return z+(b?" "+b:"")}return K}(),F=h&&!s&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:w,children:j})||j(w?w(R):R),W=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!i||O?"none":void 0,height:E,"line-height":M,"font-size":D},onBlur:function(){function K(z){if(i){var $=(0,a.clamp)(parseFloat(z.target.value),B,I);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),T&&T(z,$),A&&A(z,$)}}return K}(),onKeyDown:function(){function K(z){if(z.keyCode===13){var $=(0,a.clamp)(parseFloat(z.target.value),B,I);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),T&&T(z,$),A&&A(z,$);return}if(z.keyCode===27){l.setState({editing:!1});return}}return K}(),disabled:O},null,this.inputRef);return x({dragging:s,editing:i,value:N,displayValue:R,displayElement:F,inputElement:W,handleDragStart:this.handleDragStart})}return m}(),d}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},45293:function(L,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(96524),a=n(60023),t=n(28234),o=n(3051),f=n(11253),V=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],k=["className"],S;function y(i,v){if(i==null)return{};var g={},C=Object.keys(i),h,N;for(N=0;N=0)&&(g[h]=i[h]);return g}function p(i,v){i.prototype=Object.create(v.prototype),i.prototype.constructor=i,d(i,v)}function d(i,v){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(C,h){return C.__proto__=h,C}return g}(),d(i,v)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function i(){return null}return i}()},l="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",s=r.Dropdown=function(i){function v(C){var h;return h=i.call(this,C)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}p(v,i);var g=v.prototype;return g.getDOMNode=function(){function C(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return C}(),g.componentDidMount=function(){function C(){var h=this.getDOMNode()}return C}(),g.openMenu=function(){function C(){var h=v.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=l,document.body.appendChild(h),v.renderedMenu=h);var N=this.getDOMNode();v.currentOpenMenu=N,h.scrollTop=0,h.style.width=this.props.menuWidth||N.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=v.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return C}(),g.closeMenu=function(){function C(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return C}(),g.componentWillUnmount=function(){function C(){this.closeMenu(),this.setOpen(!1)}return C}(),g.renderMenuContent=function(){function C(){var h=this,N=v.renderedMenu;if(N){N.offsetHeight>200?N.className=u:N.className=l;var b=this.props.options,B=b===void 0?[]:b,I=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),N,function(){var T=v.singletonPopper;T===void 0?(T=(0,a.createPopper)(v.virtualElement,N,Object.assign({},c,{placement:"bottom-start"})),v.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return C}(),g.setOpen=function(){function C(h){var N=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){N.openMenu(),window.addEventListener("click",N.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return C}(),g.setSelected=function(){function C(h){this.setState(function(N){return Object.assign({},N,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return C}(),g.render=function(){function C(){var h=this,N=this.props,b=N.icon,B=N.iconRotation,I=N.iconSpin,w=N.clipSelectedText,T=w===void 0?!0:w,A=N.color,x=A===void 0?"default":A,E=N.dropdownStyle,M=N.over,D=N.nochevron,O=N.width,R=N.onClick,j=N.onSelected,F=N.selected,W=N.disabled,K=N.displayText,z=y(N,V),$=z.className,Y=y(z,k),X=M?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:O,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,W&&"Button--disabled",$]),onClick:function(){function J(le){W&&!h.state.open||(h.setOpen(!h.state.open),R&&R(le))}return J}()},Y,{children:[b&&(0,e.createComponentVNode)(2,f.Icon,{name:b,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),D||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:X?"chevron-up":"chevron-down"}),2)]})))}return C}(),v}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function i(){var v,g;return(v=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?v:m}return i}()}},18963:function(L,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],V=["className","style","grow","order","shrink","basis","align"],k=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -137,7 +137,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(p,d){if(p==null)return{};var c={},m=Object.keys(p),l,u;for(u=0;u=0)&&(c[l]=p[l]);return c}var y=r.Knob=function(){function p(d){var c=d.animated,m=d.format,l=d.maxValue,u=d.minValue,s=d.onChange,i=d.onDrag,v=d.step,g=d.stepPixelSize,C=d.suppressFlicker,h=d.unit,N=d.value,b=d.className,B=d.style,I=d.fillValue,w=d.color,T=d.ranges,A=T===void 0?{}:T,x=d.size,E=x===void 0?1:x,M=d.bipolar,D=d.children,O=d.popUpPosition,R=S(d,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:l,minValue:u,onChange:s,onDrag:i,step:v,stepPixelSize:g,suppressFlicker:C,unit:h,value:N},{children:function(){function j(F){var U=F.dragging,K=F.editing,z=F.value,$=F.displayValue,Y=F.displayElement,X=F.inputElement,J=F.handleDragStart,le=(0,a.scale)(I!=null?I:$,u,l),ce=(0,a.scale)($,u,l),fe=w||(0,a.keyOfMatchingRange)(I!=null?I:z,A)||"default",pe=(ce-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+fe,M&&"Knob--bipolar",b,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+pe+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",O&&"Knob__popupValue--"+O]),Y,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":((M?2.75:2)-le*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return j}()})))}return p}()},86259:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(96524),a=n(18963),t=["children"],o=["label","children"];/** + */function S(p,d){if(p==null)return{};var c={},m=Object.keys(p),l,u;for(u=0;u=0)&&(c[l]=p[l]);return c}var y=r.Knob=function(){function p(d){var c=d.animated,m=d.format,l=d.maxValue,u=d.minValue,s=d.onChange,i=d.onDrag,v=d.step,g=d.stepPixelSize,C=d.suppressFlicker,h=d.unit,N=d.value,b=d.className,B=d.style,I=d.fillValue,w=d.color,T=d.ranges,A=T===void 0?{}:T,x=d.size,E=x===void 0?1:x,M=d.bipolar,D=d.children,O=d.popUpPosition,R=S(d,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:l,minValue:u,onChange:s,onDrag:i,step:v,stepPixelSize:g,suppressFlicker:C,unit:h,value:N},{children:function(){function j(F){var W=F.dragging,K=F.editing,z=F.value,$=F.displayValue,Y=F.displayElement,X=F.inputElement,J=F.handleDragStart,le=(0,a.scale)(I!=null?I:$,u,l),ce=(0,a.scale)($,u,l),fe=w||(0,a.keyOfMatchingRange)(I!=null?I:z,A)||"default",pe=(ce-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+fe,M&&"Knob--bipolar",b,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+pe+"deg)"}}),2),W&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",O&&"Knob__popupValue--"+O]),Y,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":((M?2.75:2)-le*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return j}()})))}return p}()},86259:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(96524),a=n(18963),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -157,7 +157,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=400,y=r.NumberInput=function(p){function d(m){var l;l=p.call(this,m)||this;var u=m.value;return l.inputRef=(0,e.createRef)(),l.state={value:u,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var s=l.props.suppressFlicker;s>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},s))},l.handleDragStart=function(s){var i=l.props.value,v=l.state.editing;v||(document.body.style["pointer-events"]="none",l.ref=s.target,l.setState({dragging:!1,origin:s.screenY,value:i,internalValue:i}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var g=l.state,C=g.dragging,h=g.value,N=l.props.onDrag;C&&N&&N(s,h)},l.props.updateRate||S),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(s){var i=l.props,v=i.minValue,g=i.maxValue,C=i.step,h=i.stepPixelSize;l.setState(function(N){var b=Object.assign({},N),B=b.origin-s.screenY;if(N.dragging){var I=Number.isFinite(v)?v%C:0;b.internalValue=(0,a.clamp)(b.internalValue+B*C/h,v-C,g+C),b.value=(0,a.clamp)(b.internalValue-b.internalValue%C+I,v,g),b.origin=s.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},l.handleDragEnd=function(s){var i=l.props,v=i.onChange,g=i.onDrag,C=l.state,h=C.dragging,N=C.value,b=C.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),h)l.suppressFlicker(),v&&v(s,N),g&&g(s,N);else if(l.inputRef){var B=l.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(I){}}},l}V(d,p);var c=d.prototype;return c.render=function(){function m(){var l=this,u=this.state,s=u.dragging,i=u.editing,v=u.value,g=u.suppressingFlicker,C=this.props,h=C.className,N=C.fluid,b=C.animated,B=C.value,I=C.unit,w=C.minValue,T=C.maxValue,A=C.height,x=C.width,E=C.lineHeight,M=C.fontSize,D=C.format,O=C.onChange,R=C.onDrag,j=B;(s||g)&&(j=v);var F=(0,e.createVNode)(1,"div","NumberInput__content",[b&&!s&&!g?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:D}):D?D(j):j,I?" "+I:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",h]),minWidth:x,minHeight:A,lineHeight:E,fontSize:M,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)((j-w)/(T-w)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?void 0:"none",height:A,"line-height":E,"font-size":M},onBlur:function(){function U(K){if(i){var z=(0,a.clamp)(parseFloat(K.target.value),w,T);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),O&&O(K,z),R&&R(K,z)}}return U}(),onKeyDown:function(){function U(K){if(K.keyCode===13){var z=(0,a.clamp)(parseFloat(K.target.value),w,T);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),O&&O(K,z),R&&R(K,z);return}if(K.keyCode===27){l.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return m}(),d}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},37056:function(L,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60023),a=n(96524);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(y,p){return y.__proto__=p,y}return S}(),o(V,k)}var f=r.Popper=function(V){function k(){var y;return y=V.call(this)||this,y.renderedContent=void 0,y.popperInstance=void 0,k.id+=1,y}t(k,V);var S=k.prototype;return S.componentDidMount=function(){function y(){var p=this,d=this.props,c=d.additionalStyles,m=d.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,u=Object.entries(c);l0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},s))},l.handleDragStart=function(s){var i=l.props.value,v=l.state.editing;v||(document.body.style["pointer-events"]="none",l.ref=s.target,l.setState({dragging:!1,origin:s.screenY,value:i,internalValue:i}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var g=l.state,C=g.dragging,h=g.value,N=l.props.onDrag;C&&N&&N(s,h)},l.props.updateRate||S),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(s){var i=l.props,v=i.minValue,g=i.maxValue,C=i.step,h=i.stepPixelSize;l.setState(function(N){var b=Object.assign({},N),B=b.origin-s.screenY;if(N.dragging){var I=Number.isFinite(v)?v%C:0;b.internalValue=(0,a.clamp)(b.internalValue+B*C/h,v-C,g+C),b.value=(0,a.clamp)(b.internalValue-b.internalValue%C+I,v,g),b.origin=s.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},l.handleDragEnd=function(s){var i=l.props,v=i.onChange,g=i.onDrag,C=l.state,h=C.dragging,N=C.value,b=C.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),h)l.suppressFlicker(),v&&v(s,N),g&&g(s,N);else if(l.inputRef){var B=l.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(I){}}},l}V(d,p);var c=d.prototype;return c.render=function(){function m(){var l=this,u=this.state,s=u.dragging,i=u.editing,v=u.value,g=u.suppressingFlicker,C=this.props,h=C.className,N=C.fluid,b=C.animated,B=C.value,I=C.unit,w=C.minValue,T=C.maxValue,A=C.height,x=C.width,E=C.lineHeight,M=C.fontSize,D=C.format,O=C.onChange,R=C.onDrag,j=B;(s||g)&&(j=v);var F=(0,e.createVNode)(1,"div","NumberInput__content",[b&&!s&&!g?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:D}):D?D(j):j,I?" "+I:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",h]),minWidth:x,minHeight:A,lineHeight:E,fontSize:M,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)((j-w)/(T-w)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?void 0:"none",height:A,"line-height":E,"font-size":M},onBlur:function(){function W(K){if(i){var z=(0,a.clamp)(parseFloat(K.target.value),w,T);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),O&&O(K,z),R&&R(K,z)}}return W}(),onKeyDown:function(){function W(K){if(K.keyCode===13){var z=(0,a.clamp)(parseFloat(K.target.value),w,T);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),O&&O(K,z),R&&R(K,z);return}if(K.keyCode===27){l.setState({editing:!1});return}}return W}()},null,this.inputRef)]})}return m}(),d}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},37056:function(L,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60023),a=n(96524);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(y,p){return y.__proto__=p,y}return S}(),o(V,k)}var f=r.Popper=function(V){function k(){var y;return y=V.call(this)||this,y.renderedContent=void 0,y.popperInstance=void 0,k.id+=1,y}t(k,V);var S=k.prototype;return S.componentDidMount=function(){function y(){var p=this,d=this.props,c=d.additionalStyles,m=d.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,u=Object.entries(c);l=0)&&(c[l]=p[l]);return c}var y=r.Slider=function(){function p(d){var c=d.animated,m=d.format,l=d.maxValue,u=d.minValue,s=d.onChange,i=d.onDrag,v=d.step,g=d.stepPixelSize,C=d.suppressFlicker,h=d.unit,N=d.value,b=d.className,B=d.fillValue,I=d.color,w=d.ranges,T=w===void 0?{}:w,A=d.children,x=d.disabled,E=S(d,k),M=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:l,minValue:u,onChange:s,onDrag:i,step:v,stepPixelSize:g,suppressFlicker:C,unit:h,value:N,disabled:x},{children:function(){function D(O){var R=O.dragging,j=O.editing,F=O.value,U=O.displayValue,K=O.displayElement,z=O.inputElement,$=O.handleDragStart,Y=B!=null,X=(0,a.scale)(F,u,l),J=(0,a.scale)(B!=null?B:U,u,l),le=(0,a.scale)(U,u,l),ce=I||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+ce,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",Y&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(J)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(J,le))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),R&&(0,e.createVNode)(1,"div","Slider__popupValue",K,0)],0,{style:{width:(0,a.clamp01)(le)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",M?A:K,0),z],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:$})))}return D}()})))}return p}()},24800:function(L,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(96524),a=n(28234),t=n(18963),o=["className","vertical","fill"],f=["className","innerRef"],V=["className","hidden"];/** + */function S(p,d){if(p==null)return{};var c={},m=Object.keys(p),l,u;for(u=0;u=0)&&(c[l]=p[l]);return c}var y=r.Slider=function(){function p(d){var c=d.animated,m=d.format,l=d.maxValue,u=d.minValue,s=d.onChange,i=d.onDrag,v=d.step,g=d.stepPixelSize,C=d.suppressFlicker,h=d.unit,N=d.value,b=d.className,B=d.fillValue,I=d.color,w=d.ranges,T=w===void 0?{}:w,A=d.children,x=d.disabled,E=S(d,k),M=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:l,minValue:u,onChange:s,onDrag:i,step:v,stepPixelSize:g,suppressFlicker:C,unit:h,value:N,disabled:x},{children:function(){function D(O){var R=O.dragging,j=O.editing,F=O.value,W=O.displayValue,K=O.displayElement,z=O.inputElement,$=O.handleDragStart,Y=B!=null,X=(0,a.scale)(F,u,l),J=(0,a.scale)(B!=null?B:W,u,l),le=(0,a.scale)(W,u,l),ce=I||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+ce,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",Y&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(J)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(J,le))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),R&&(0,e.createVNode)(1,"div","Slider__popupValue",K,0)],0,{style:{width:(0,a.clamp01)(le)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",M?A:K,0),z],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:$})))}return D}()})))}return p}()},24800:function(L,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(96524),a=n(28234),t=n(18963),o=["className","vertical","fill"],f=["className","innerRef"],V=["className","hidden"];/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -190,7 +190,7 @@ * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT -*/var d=r.TextArea=function(c){function m(u,s){var i;i=c.call(this,u,s)||this,i.textareaRef=u.innerRef||(0,e.createRef)(),i.fillerRef=(0,e.createRef)(),i.state={editing:!1};var v=u.dontUseTabForIndent,g=v===void 0?!1:v;return i.handleOnInput=function(C){var h=i.state.editing,N=i.props.onInput;h||i.setEditing(!0),N&&N(C,C.target.value)},i.handleOnChange=function(C){var h=i.state.editing,N=i.props.onChange;h&&i.setEditing(!1),N&&N(C,C.target.value)},i.handleKeyPress=function(C){var h=i.state.editing,N=i.props.onKeyPress;h||i.setEditing(!0),N&&N(C,C.target.value)},i.handleKeyDown=function(C){var h=i.state.editing,N=i.props,b=N.onChange,B=N.onInput,I=N.onEnter,w=N.onKeyDown;if(C.keyCode===f.KEY_ENTER){i.setEditing(!1),b&&b(C,C.target.value),B&&B(C,C.target.value),I&&I(C,C.target.value),i.props.selfClear&&(C.target.value="",C.target.blur());return}if(C.keyCode===f.KEY_ESCAPE){i.props.onEscape&&i.props.onEscape(C),i.setEditing(!1),i.props.selfClear?C.target.value="":(C.target.value=(0,o.toInputValue)(i.props.value),C.target.blur());return}if(h||i.setEditing(!0),w&&w(C,C.target.value),!g){var T=C.keyCode||C.which;if(T===f.KEY_TAB){C.preventDefault();var A=C.target,x=A.value,E=A.selectionStart,M=A.selectionEnd;C.target.value=x.substring(0,E)+" "+x.substring(M),C.target.selectionEnd=E+1}}},i.handleFocus=function(C){var h=i.state.editing;h||i.setEditing(!0)},i.handleBlur=function(C){var h=i.state.editing,N=i.props.onChange;h&&(i.setEditing(!1),N&&N(C,C.target.value))},i}y(m,c);var l=m.prototype;return l.componentDidMount=function(){function u(){var s=this,i=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(i)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),l.componentDidUpdate=function(){function u(s,i){var v=s.value,g=this.props.value,C=this.textareaRef.current;C&&typeof g=="string"&&v!==g&&(C.value=(0,o.toInputValue)(g))}return u}(),l.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),l.getValue=function(){function u(){return this.textareaRef.current&&this.textareaRef.current.value}return u}(),l.render=function(){function u(){var s=this.props,i=s.onChange,v=s.onKeyDown,g=s.onKeyPress,C=s.onInput,h=s.onFocus,N=s.onBlur,b=s.onEnter,B=s.value,I=s.maxLength,w=s.placeholder,T=S(s,V),A=T.className,x=T.fluid,E=S(T,k);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:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return u}(),m}(e.Component)},6303:function(L,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(V){return V.length<2?"0"+V:V}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},58749:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(96524),a=n(60023),t;function o(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,f(y,p)}function f(y,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(c,m){return c.__proto__=m,c}return d}(),f(y,p)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},k={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function y(){return null}return y}()},S=r.Tooltip=function(y){function p(){return y.apply(this,arguments)||this}o(p,y);var d=p.prototype;return d.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),d.componentDidMount=function(){function c(){var m=this,l=this.getDOMNode();l&&(l.addEventListener("mouseenter",function(){var u=p.renderedTooltip;u===void 0&&(u=document.createElement("div"),u.className="Tooltip",document.body.appendChild(u),p.renderedTooltip=u),p.currentHoveredElement=l,u.style.opacity="1",m.renderPopperContent()}),l.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),d.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),d.renderPopperContent=function(){function c(){var m=this,l=p.renderedTooltip;l&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),l,function(){var u=p.singletonPopper;u===void 0?(u=(0,a.createPopper)(p.virtualElement,l,Object.assign({},V,{placement:m.props.position||"auto"})),p.singletonPopper=u):(u.setOptions(Object.assign({},V,{placement:m.props.position||"auto"})),u.update())},this.context)}return c}(),d.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),d.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),d.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function y(){var p,d;return(p=(d=t.currentHoveredElement)==null?void 0:d.getBoundingClientRect())!=null?p:k}return y}()}},24674:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.ImageButton=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(65416);r.AnimatedNumber=e.AnimatedNumber;var a=n(11735);r.Autofocus=a.Autofocus;var t=n(35436);r.Blink=t.Blink;var o=n(55239);r.BlockQuote=o.BlockQuote;var f=n(3051);r.Box=f.Box;var V=n(91688);r.Button=V.Button;var k=n(42204);r.ByondUi=k.ByondUi;var S=n(41886);r.Chart=S.Chart;var y=n(83974);r.Collapsible=y.Collapsible;var p=n(26236);r.ColorBox=p.ColorBox;var d=n(99509);r.Countdown=d.Countdown;var c=n(72358);r.Dimmer=c.Dimmer;var m=n(31647);r.Divider=m.Divider;var l=n(27648);r.DraggableControl=l.DraggableControl;var u=n(45293);r.Dropdown=u.Dropdown;var s=n(18963);r.Flex=s.Flex;var i=n(17956);r.Grid=i.Grid;var v=n(11253);r.Icon=v.Icon;var g=n(36587);r.ImageButton=g.ImageButton;var C=n(49034);r.Input=C.Input;var h=n(9836);r.Knob=h.Knob;var N=n(86259);r.LabeledControls=N.LabeledControls;var b=n(91097);r.LabeledList=b.LabeledList;var B=n(97539);r.Modal=B.Modal;var I=n(55830);r.NanoMap=I.NanoMap;var w=n(14899);r.NoticeBox=w.NoticeBox;var T=n(5985);r.NumberInput=T.NumberInput;var A=n(37056);r.Popper=A.Popper;var x=n(36146);r.ProgressBar=x.ProgressBar;var E=n(49977);r.RestrictedInput=E.RestrictedInput;var M=n(2083);r.RoundGauge=M.RoundGauge;var D=n(5201);r.Section=D.Section;var O=n(66397);r.Slider=O.Slider;var R=n(24800);r.Stack=R.Stack;var j=n(5126);r.Table=j.Table;var F=n(26104);r.Tabs=F.Tabs;var U=n(67606);r.TextArea=U.TextArea;var K=n(6303);r.TimeDisplay=K.TimeDisplay;var z=n(58749);r.Tooltip=z.Tooltip},38424:function(L,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],V=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"}],k=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function d(c,m){var l=String(c).toLowerCase(),u=k.find(function(s){return s.id===l||s.name.toLowerCase()===l});return u&&u.label||m||c}return d}(),y=r.getGasColor=function(){function d(c){var m=String(c).toLowerCase(),l=k.find(function(u){return u.id===m||u.name.toLowerCase()===m});return l&&l.color}return d}(),p=r.timeAgo=function(){function d(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var l=m-c;if(l>3600){var u=Math.round(l/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(l>60){var s=Math.round(l/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var i=Math.round(l);return i+" second"+(i===1?"":"s")+" ago"}return"just now"}return d}()},27598:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493);/** +*/var d=r.TextArea=function(c){function m(u,s){var i;i=c.call(this,u,s)||this,i.textareaRef=u.innerRef||(0,e.createRef)(),i.fillerRef=(0,e.createRef)(),i.state={editing:!1};var v=u.dontUseTabForIndent,g=v===void 0?!1:v;return i.handleOnInput=function(C){var h=i.state.editing,N=i.props.onInput;h||i.setEditing(!0),N&&N(C,C.target.value)},i.handleOnChange=function(C){var h=i.state.editing,N=i.props.onChange;h&&i.setEditing(!1),N&&N(C,C.target.value)},i.handleKeyPress=function(C){var h=i.state.editing,N=i.props.onKeyPress;h||i.setEditing(!0),N&&N(C,C.target.value)},i.handleKeyDown=function(C){var h=i.state.editing,N=i.props,b=N.onChange,B=N.onInput,I=N.onEnter,w=N.onKeyDown;if(C.keyCode===f.KEY_ENTER){i.setEditing(!1),b&&b(C,C.target.value),B&&B(C,C.target.value),I&&I(C,C.target.value),i.props.selfClear&&(C.target.value="",C.target.blur());return}if(C.keyCode===f.KEY_ESCAPE){i.props.onEscape&&i.props.onEscape(C),i.setEditing(!1),i.props.selfClear?C.target.value="":(C.target.value=(0,o.toInputValue)(i.props.value),C.target.blur());return}if(h||i.setEditing(!0),w&&w(C,C.target.value),!g){var T=C.keyCode||C.which;if(T===f.KEY_TAB){C.preventDefault();var A=C.target,x=A.value,E=A.selectionStart,M=A.selectionEnd;C.target.value=x.substring(0,E)+" "+x.substring(M),C.target.selectionEnd=E+1}}},i.handleFocus=function(C){var h=i.state.editing;h||i.setEditing(!0)},i.handleBlur=function(C){var h=i.state.editing,N=i.props.onChange;h&&(i.setEditing(!1),N&&N(C,C.target.value))},i}y(m,c);var l=m.prototype;return l.componentDidMount=function(){function u(){var s=this,i=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(i)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),l.componentDidUpdate=function(){function u(s,i){var v=s.value,g=this.props.value,C=this.textareaRef.current;C&&typeof g=="string"&&v!==g&&(C.value=(0,o.toInputValue)(g))}return u}(),l.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),l.getValue=function(){function u(){return this.textareaRef.current&&this.textareaRef.current.value}return u}(),l.render=function(){function u(){var s=this.props,i=s.onChange,v=s.onKeyDown,g=s.onKeyPress,C=s.onInput,h=s.onFocus,N=s.onBlur,b=s.onEnter,B=s.value,I=s.maxLength,w=s.placeholder,T=S(s,V),A=T.className,x=T.fluid,E=S(T,k);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:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return u}(),m}(e.Component)},6303:function(L,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(V){return V.length<2?"0"+V:V}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},58749:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(96524),a=n(60023),t;function o(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,f(y,p)}function f(y,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(c,m){return c.__proto__=m,c}return d}(),f(y,p)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},k={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function y(){return null}return y}()},S=r.Tooltip=function(y){function p(){return y.apply(this,arguments)||this}o(p,y);var d=p.prototype;return d.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),d.componentDidMount=function(){function c(){var m=this,l=this.getDOMNode();l&&(l.addEventListener("mouseenter",function(){var u=p.renderedTooltip;u===void 0&&(u=document.createElement("div"),u.className="Tooltip",document.body.appendChild(u),p.renderedTooltip=u),p.currentHoveredElement=l,u.style.opacity="1",m.renderPopperContent()}),l.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),d.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),d.renderPopperContent=function(){function c(){var m=this,l=p.renderedTooltip;l&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),l,function(){var u=p.singletonPopper;u===void 0?(u=(0,a.createPopper)(p.virtualElement,l,Object.assign({},V,{placement:m.props.position||"auto"})),p.singletonPopper=u):(u.setOptions(Object.assign({},V,{placement:m.props.position||"auto"})),u.update())},this.context)}return c}(),d.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),d.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),d.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function y(){var p,d;return(p=(d=t.currentHoveredElement)==null?void 0:d.getBoundingClientRect())!=null?p:k}return y}()}},24674:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.ImageButton=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(65416);r.AnimatedNumber=e.AnimatedNumber;var a=n(11735);r.Autofocus=a.Autofocus;var t=n(35436);r.Blink=t.Blink;var o=n(55239);r.BlockQuote=o.BlockQuote;var f=n(3051);r.Box=f.Box;var V=n(91688);r.Button=V.Button;var k=n(42204);r.ByondUi=k.ByondUi;var S=n(41886);r.Chart=S.Chart;var y=n(83974);r.Collapsible=y.Collapsible;var p=n(26236);r.ColorBox=p.ColorBox;var d=n(99509);r.Countdown=d.Countdown;var c=n(72358);r.Dimmer=c.Dimmer;var m=n(31647);r.Divider=m.Divider;var l=n(27648);r.DraggableControl=l.DraggableControl;var u=n(45293);r.Dropdown=u.Dropdown;var s=n(18963);r.Flex=s.Flex;var i=n(17956);r.Grid=i.Grid;var v=n(11253);r.Icon=v.Icon;var g=n(36587);r.ImageButton=g.ImageButton;var C=n(49034);r.Input=C.Input;var h=n(9836);r.Knob=h.Knob;var N=n(86259);r.LabeledControls=N.LabeledControls;var b=n(91097);r.LabeledList=b.LabeledList;var B=n(97539);r.Modal=B.Modal;var I=n(55830);r.NanoMap=I.NanoMap;var w=n(14899);r.NoticeBox=w.NoticeBox;var T=n(5985);r.NumberInput=T.NumberInput;var A=n(37056);r.Popper=A.Popper;var x=n(36146);r.ProgressBar=x.ProgressBar;var E=n(49977);r.RestrictedInput=E.RestrictedInput;var M=n(2083);r.RoundGauge=M.RoundGauge;var D=n(5201);r.Section=D.Section;var O=n(66397);r.Slider=O.Slider;var R=n(24800);r.Stack=R.Stack;var j=n(5126);r.Table=j.Table;var F=n(26104);r.Tabs=F.Tabs;var W=n(67606);r.TextArea=W.TextArea;var K=n(6303);r.TimeDisplay=K.TimeDisplay;var z=n(58749);r.Tooltip=z.Tooltip},38424:function(L,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],V=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"}],k=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function d(c,m){var l=String(c).toLowerCase(),u=k.find(function(s){return s.id===l||s.name.toLowerCase()===l});return u&&u.label||m||c}return d}(),y=r.getGasColor=function(){function d(c){var m=String(c).toLowerCase(),l=k.find(function(u){return u.id===m||u.name.toLowerCase()===m});return l&&l.color}return d}(),p=r.timeAgo=function(){function d(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var l=m-c;if(l>3600){var u=Math.round(l/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(l>60){var s=Math.round(l/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var i=Math.round(l);return i+" second"+(i===1?"":"s")+" ago"}return"just now"}return d}()},27598:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -214,11 +214,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},83987:function(L,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(66450),a=n(73564),t=n(81856);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 F};var j,F={},U=Object.prototype,K=U.hasOwnProperty,z=Object.defineProperty||function(Ne,re,de){Ne[re]=de.value},$=typeof Symbol=="function"?Symbol:{},Y=$.iterator||"@@iterator",X=$.asyncIterator||"@@asyncIterator",J=$.toStringTag||"@@toStringTag";function le(Ne,re,de){return Object.defineProperty(Ne,re,{value:de,enumerable:!0,configurable:!0,writable:!0}),Ne[re]}try{le({},"")}catch(Ne){le=function(de,he,se){return de[he]=se}}function ce(Ne,re,de,he){var se=re&&re.prototype instanceof me?re:me,Ce=Object.create(se.prototype),Ae=new Pe(he||[]);return z(Ce,"_invoke",{value:Ve(Ne,de,Ae)}),Ce}function fe(Ne,re,de){try{return{type:"normal",arg:Ne.call(re,de)}}catch(he){return{type:"throw",arg:he}}}F.wrap=ce;var pe="suspendedStart",be="suspendedYield",te="executing",Q="completed",ne={};function me(){}function ae(){}function ue(){}var oe={};le(oe,Y,function(){return this});var ke=Object.getPrototypeOf,Be=ke&&ke(ke(We([])));Be&&Be!==U&&K.call(Be,Y)&&(oe=Be);var ve=ue.prototype=me.prototype=Object.create(oe);function ge(Ne){["next","throw","return"].forEach(function(re){le(Ne,re,function(de){return this._invoke(re,de)})})}function ye(Ne,re){function de(se,Ce,Ae,De){var je=fe(Ne[se],Ne,Ce);if(je.type!=="throw"){var Ke=je.arg,Ue=Ke.value;return Ue&&typeof Ue=="object"&&K.call(Ue,"__await")?re.resolve(Ue.__await).then(function(_e){de("next",_e,Ae,De)},function(_e){de("throw",_e,Ae,De)}):re.resolve(Ue).then(function(_e){Ke.value=_e,Ae(Ke)},function(_e){return de("throw",_e,Ae,De)})}De(je.arg)}var he;z(this,"_invoke",{value:function(){function se(Ce,Ae){function De(){return new re(function(je,Ke){de(Ce,Ae,je,Ke)})}return he=he?he.then(De,De):De()}return se}()})}function Ve(Ne,re,de){var he=pe;return function(se,Ce){if(he===te)throw Error("Generator is already running");if(he===Q){if(se==="throw")throw Ce;return{value:j,done:!0}}for(de.method=se,de.arg=Ce;;){var Ae=de.delegate;if(Ae){var De=Ie(Ae,de);if(De){if(De===ne)continue;return De}}if(de.method==="next")de.sent=de._sent=de.arg;else if(de.method==="throw"){if(he===pe)throw he=Q,de.arg;de.dispatchException(de.arg)}else de.method==="return"&&de.abrupt("return",de.arg);he=te;var je=fe(Ne,re,de);if(je.type==="normal"){if(he=de.done?Q:be,je.arg===ne)continue;return{value:je.arg,done:de.done}}je.type==="throw"&&(he=Q,de.method="throw",de.arg=je.arg)}}}function Ie(Ne,re){var de=re.method,he=Ne.iterator[de];if(he===j)return re.delegate=null,de==="throw"&&Ne.iterator.return&&(re.method="return",re.arg=j,Ie(Ne,re),re.method==="throw")||de!=="return"&&(re.method="throw",re.arg=new TypeError("The iterator does not provide a '"+de+"' method")),ne;var se=fe(he,Ne.iterator,re.arg);if(se.type==="throw")return re.method="throw",re.arg=se.arg,re.delegate=null,ne;var Ce=se.arg;return Ce?Ce.done?(re[Ne.resultName]=Ce.value,re.next=Ne.nextLoc,re.method!=="return"&&(re.method="next",re.arg=j),re.delegate=null,ne):Ce:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,ne)}function we(Ne){var re={tryLoc:Ne[0]};1 in Ne&&(re.catchLoc=Ne[1]),2 in Ne&&(re.finallyLoc=Ne[2],re.afterLoc=Ne[3]),this.tryEntries.push(re)}function xe(Ne){var re=Ne.completion||{};re.type="normal",delete re.arg,Ne.completion=re}function Pe(Ne){this.tryEntries=[{tryLoc:"root"}],Ne.forEach(we,this),this.reset(!0)}function We(Ne){if(Ne||Ne===""){var re=Ne[Y];if(re)return re.call(Ne);if(typeof Ne.next=="function")return Ne;if(!isNaN(Ne.length)){var de=-1,he=function(){function se(){for(;++de=0;--se){var Ce=this.tryEntries[se],Ae=Ce.completion;if(Ce.tryLoc==="root")return he("end");if(Ce.tryLoc<=this.prev){var De=K.call(Ce,"catchLoc"),je=K.call(Ce,"finallyLoc");if(De&&je){if(this.prev=0;--he){var se=this.tryEntries[he];if(se.tryLoc<=this.prev&&K.call(se,"finallyLoc")&&this.prev=0;--de){var he=this.tryEntries[de];if(he.finallyLoc===re)return this.complete(he.completion,he.afterLoc),xe(he),ne}}return Ne}(),catch:function(){function Ne(re){for(var de=this.tryEntries.length-1;de>=0;--de){var he=this.tryEntries[de];if(he.tryLoc===re){var se=he.completion;if(se.type==="throw"){var Ce=se.arg;xe(he)}return Ce}}throw Error("illegal catch attempt")}return Ne}(),delegateYield:function(){function Ne(re,de,he){return this.delegate={iterator:We(re),resultName:de,nextLoc:he},this.method==="next"&&(this.arg=j),ne}return Ne}()},F}function f(j,F,U,K,z,$,Y){try{var X=j[$](Y),J=X.value}catch(le){U(le);return}X.done?F(J):Promise.resolve(J).then(K,z)}function V(j){return function(){var F=this,U=arguments;return new Promise(function(K,z){var $=j.apply(F,U);function Y(J){f($,K,z,Y,X,"next",J)}function X(J){f($,K,z,Y,X,"throw",J)}Y(void 0)})}}/** + */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},83987:function(L,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(66450),a=n(73564),t=n(81856);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 F};var j,F={},W=Object.prototype,K=W.hasOwnProperty,z=Object.defineProperty||function(Ne,re,de){Ne[re]=de.value},$=typeof Symbol=="function"?Symbol:{},Y=$.iterator||"@@iterator",X=$.asyncIterator||"@@asyncIterator",J=$.toStringTag||"@@toStringTag";function le(Ne,re,de){return Object.defineProperty(Ne,re,{value:de,enumerable:!0,configurable:!0,writable:!0}),Ne[re]}try{le({},"")}catch(Ne){le=function(de,he,se){return de[he]=se}}function ce(Ne,re,de,he){var se=re&&re.prototype instanceof me?re:me,Ce=Object.create(se.prototype),Ae=new Pe(he||[]);return z(Ce,"_invoke",{value:Ve(Ne,de,Ae)}),Ce}function fe(Ne,re,de){try{return{type:"normal",arg:Ne.call(re,de)}}catch(he){return{type:"throw",arg:he}}}F.wrap=ce;var pe="suspendedStart",be="suspendedYield",te="executing",Q="completed",ne={};function me(){}function ae(){}function ue(){}var oe={};le(oe,Y,function(){return this});var ke=Object.getPrototypeOf,Be=ke&&ke(ke(Ue([])));Be&&Be!==W&&K.call(Be,Y)&&(oe=Be);var ve=ue.prototype=me.prototype=Object.create(oe);function ge(Ne){["next","throw","return"].forEach(function(re){le(Ne,re,function(de){return this._invoke(re,de)})})}function ye(Ne,re){function de(se,Ce,Ae,De){var je=fe(Ne[se],Ne,Ce);if(je.type!=="throw"){var Ke=je.arg,We=Ke.value;return We&&typeof We=="object"&&K.call(We,"__await")?re.resolve(We.__await).then(function(_e){de("next",_e,Ae,De)},function(_e){de("throw",_e,Ae,De)}):re.resolve(We).then(function(_e){Ke.value=_e,Ae(Ke)},function(_e){return de("throw",_e,Ae,De)})}De(je.arg)}var he;z(this,"_invoke",{value:function(){function se(Ce,Ae){function De(){return new re(function(je,Ke){de(Ce,Ae,je,Ke)})}return he=he?he.then(De,De):De()}return se}()})}function Ve(Ne,re,de){var he=pe;return function(se,Ce){if(he===te)throw Error("Generator is already running");if(he===Q){if(se==="throw")throw Ce;return{value:j,done:!0}}for(de.method=se,de.arg=Ce;;){var Ae=de.delegate;if(Ae){var De=Ie(Ae,de);if(De){if(De===ne)continue;return De}}if(de.method==="next")de.sent=de._sent=de.arg;else if(de.method==="throw"){if(he===pe)throw he=Q,de.arg;de.dispatchException(de.arg)}else de.method==="return"&&de.abrupt("return",de.arg);he=te;var je=fe(Ne,re,de);if(je.type==="normal"){if(he=de.done?Q:be,je.arg===ne)continue;return{value:je.arg,done:de.done}}je.type==="throw"&&(he=Q,de.method="throw",de.arg=je.arg)}}}function Ie(Ne,re){var de=re.method,he=Ne.iterator[de];if(he===j)return re.delegate=null,de==="throw"&&Ne.iterator.return&&(re.method="return",re.arg=j,Ie(Ne,re),re.method==="throw")||de!=="return"&&(re.method="throw",re.arg=new TypeError("The iterator does not provide a '"+de+"' method")),ne;var se=fe(he,Ne.iterator,re.arg);if(se.type==="throw")return re.method="throw",re.arg=se.arg,re.delegate=null,ne;var Ce=se.arg;return Ce?Ce.done?(re[Ne.resultName]=Ce.value,re.next=Ne.nextLoc,re.method!=="return"&&(re.method="next",re.arg=j),re.delegate=null,ne):Ce:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,ne)}function we(Ne){var re={tryLoc:Ne[0]};1 in Ne&&(re.catchLoc=Ne[1]),2 in Ne&&(re.finallyLoc=Ne[2],re.afterLoc=Ne[3]),this.tryEntries.push(re)}function xe(Ne){var re=Ne.completion||{};re.type="normal",delete re.arg,Ne.completion=re}function Pe(Ne){this.tryEntries=[{tryLoc:"root"}],Ne.forEach(we,this),this.reset(!0)}function Ue(Ne){if(Ne||Ne===""){var re=Ne[Y];if(re)return re.call(Ne);if(typeof Ne.next=="function")return Ne;if(!isNaN(Ne.length)){var de=-1,he=function(){function se(){for(;++de=0;--se){var Ce=this.tryEntries[se],Ae=Ce.completion;if(Ce.tryLoc==="root")return he("end");if(Ce.tryLoc<=this.prev){var De=K.call(Ce,"catchLoc"),je=K.call(Ce,"finallyLoc");if(De&&je){if(this.prev=0;--he){var se=this.tryEntries[he];if(se.tryLoc<=this.prev&&K.call(se,"finallyLoc")&&this.prev=0;--de){var he=this.tryEntries[de];if(he.finallyLoc===re)return this.complete(he.completion,he.afterLoc),xe(he),ne}}return Ne}(),catch:function(){function Ne(re){for(var de=this.tryEntries.length-1;de>=0;--de){var he=this.tryEntries[de];if(he.tryLoc===re){var se=he.completion;if(se.type==="throw"){var Ce=se.arg;xe(he)}return Ce}}throw Error("illegal catch attempt")}return Ne}(),delegateYield:function(){function Ne(re,de,he){return this.delegate={iterator:Ue(re),resultName:de,nextLoc:he},this.method==="next"&&(this.arg=j),ne}return Ne}()},F}function f(j,F,W,K,z,$,Y){try{var X=j[$](Y),J=X.value}catch(le){W(le);return}X.done?F(J):Promise.resolve(J).then(K,z)}function V(j){return function(){var F=this,W=arguments;return new Promise(function(K,z){var $=j.apply(F,W);function Y(J){f($,K,z,Y,X,"next",J)}function X(J){f($,K,z,Y,X,"throw",J)}Y(void 0)})}}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=(0,t.createLogger)("drag"),S=Byond.windowId,y=!1,p=!1,d=[0,0],c,m,l,u,s,i=r.setWindowKey=function(){function j(F){S=F}return j}(),v=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),g=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),C=r.setWindowPosition=function(){function j(F){var U=(0,a.vecAdd)(F,d);return Byond.winset(Byond.windowId,{pos:U[0]+","+U[1]})}return j}(),h=r.setWindowSize=function(){function j(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return j}(),N=r.getScreenPosition=function(){function j(){return[0-d[0],0-d[1]]}return j}(),b=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(F,U,K){K===void 0&&(K=50);for(var z=[U],$,Y=0;Yle&&($[X]=le-U[X],Y=!0)}return[Y,$]},x=r.dragStartHandler=function(){function j(F){k.log("drag start"),y=!0,m=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",M),document.addEventListener("mouseup",E),M(F)}return j}(),E=function j(F){k.log("drag end"),M(F),document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",j),y=!1,I()},M=function(F){y&&(F.preventDefault(),C((0,a.vecAdd)([F.screenX,F.screenY],m)))},D=r.resizeStartHandler=function(){function j(F,U){return function(K){l=[F,U],k.log("resize start",l),p=!0,m=[window.screenLeft-K.screenX,window.screenTop-K.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",O),R(K)}}return j}(),O=function j(F){k.log("resize end",s),R(F),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",j),p=!1,I()},R=function(F){p&&(F.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(l,(0,a.vecAdd)([F.screenX,F.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),h(s))}},92700:function(L,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(22594),a=n(68100);/** +*/var k=(0,t.createLogger)("drag"),S=Byond.windowId,y=!1,p=!1,d=[0,0],c,m,l,u,s,i=r.setWindowKey=function(){function j(F){S=F}return j}(),v=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),g=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),C=r.setWindowPosition=function(){function j(F){var W=(0,a.vecAdd)(F,d);return Byond.winset(Byond.windowId,{pos:W[0]+","+W[1]})}return j}(),h=r.setWindowSize=function(){function j(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return j}(),N=r.getScreenPosition=function(){function j(){return[0-d[0],0-d[1]]}return j}(),b=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(F,W,K){K===void 0&&(K=50);for(var z=[W],$,Y=0;Yle&&($[X]=le-W[X],Y=!0)}return[Y,$]},x=r.dragStartHandler=function(){function j(F){k.log("drag start"),y=!0,m=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",M),document.addEventListener("mouseup",E),M(F)}return j}(),E=function j(F){k.log("drag end"),M(F),document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",j),y=!1,I()},M=function(F){y&&(F.preventDefault(),C((0,a.vecAdd)([F.screenX,F.screenY],m)))},D=r.resizeStartHandler=function(){function j(F,W){return function(K){l=[F,W],k.log("resize start",l),p=!0,m=[window.screenLeft-K.screenX,window.screenTop-K.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",O),R(K)}}return j}(),O=function j(F){k.log("resize end",s),R(F),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",j),p=!1,I()},R=function(F){p&&(F.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(l,(0,a.vecAdd)([F.screenX,F.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),h(s))}},92700:function(L,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(22594),a=n(68100);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file @@ -238,7 +238,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var V=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],y={},p=function(i){if(i===16)return"Shift";if(i===17)return"Ctrl";if(i===18)return"Alt";if(i===33)return"Northeast";if(i===34)return"Southeast";if(i===35)return"Southwest";if(i===36)return"Northwest";if(i===37)return"West";if(i===38)return"North";if(i===39)return"East";if(i===40)return"South";if(i===45)return"Insert";if(i===46)return"Delete";if(i>=48&&i<=57||i>=65&&i<=90)return String.fromCharCode(i);if(i>=96&&i<=105)return"Numpad"+(i-96);if(i>=112&&i<=123)return"F"+(i-111);if(i===188)return",";if(i===189)return"-";if(i===190)return"."},d=function(i){var v=String(i);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(i.event.defaultPrevented||i.isModifierKey()||S.includes(i.code))){v==="F5"&&(i.event.preventDefault(),i.event.returnValue=!1);var g=p(i.code);if(g){var C=k[g];if(C)return V.debug("macro",C),Byond.command(C);if(i.isDown()&&!y[g]){y[g]=!0;var h='Key_Down "'+g+'"';return V.debug(h),Byond.command(h)}if(i.isUp()&&y[g]){y[g]=!1;var N='Key_Up "'+g+'"';return V.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(i){S.push(i)}return s}(),m=r.releaseHotKey=function(){function s(i){var v=S.indexOf(i);v>=0&&S.splice(v,1)}return s}(),l=r.releaseHeldKeys=function(){function s(){for(var i=0,v=Object.keys(y);i=75?c="green":d.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:d.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:d.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,d.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:!!d.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:d.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:d.wireless?"check":"times",content:d.wireless?"Enabled":"Disabled",color:d.wireless?"green":"red",onClick:function(){function m(){return p("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:d.radio?"check":"times",content:d.radio?"Enabled":"Disabled",color:d.radio?"green":"red",onClick:function(){function m(){return p("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:d.flushing||d.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return p("wipe")}return m}()})})]})})})]})})})}return V}()},78468:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AIFixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;if(d.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;(d.stat===2||d.stat===null)&&(c=!1);var m=null;d.integrity>=75?m="green":d.integrity>=25?m="yellow":m="red";var l=!0;return d.integrity>=100&&d.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:d.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:d.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:!!d.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:d.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.wireless?"times":"check",content:d.wireless?"Disabled":"Enabled",color:d.wireless?"red":"green",onClick:function(){function u(){return p("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.radio?"times":"check",content:d.radio?"Disabled":"Enabled",color:d.radio?"red":"green",onClick:function(){function u(){return p("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||d.active,content:!l||d.active?"Already Repaired":"Repair",onClick:function(){function u(){return p("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:d.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},73544:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.APC=function(){function p(d,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,y)})})}return p}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.locked&&!u.siliconUser,i=u.normallyLocked,v=k[u.externalPower]||k[0],g=k[u.chargingStatus]||k[0],C=u.powerChannels||[],h=S[u.malfStatus]||S[0],N=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function b(){return l("breaker")}return b}()}),children:["[ ",v.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:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function b(){return l("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(b.status===1||b.status===3),disabled:s,onClick:function(){function I(){return l("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&b.status===2,disabled:s,onClick:function(){function I(){return l("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&b.status===0,disabled:s,onClick:function(){function I(){return l("channel",B.off)}return I}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return l(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return l("overload")}return b}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function b(){return l("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function b(){return l("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return l("toggle_nightshift")}return b}()})})]})})],4)}},79098:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ATM=function(){function m(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.view_screen,C=v.authenticated_account,h=v.ticks_left_locked_down,N=v.linked_db,b;if(h>0)b=(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)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(C)switch(g){case 1:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,d);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);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,V),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return m}(),V=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.machine_id,C=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"eject",onClick:function(){function h(){return i("insert_card")}return h}()})})})]})},k=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:g===0,onClick:function(){function C(){return i("change_security_level",{new_security_level:1})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:g===2,onClick:function(){function C(){return i("change_security_level",{new_security_level:2})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=(0,a.useLocalState)(u,"targetAccNumber",0),C=g[0],h=g[1],N=(0,a.useLocalState)(u,"fundsAmount",0),b=N[0],B=N[1],I=(0,a.useLocalState)(u,"purpose",0),w=I[0],T=I[1],A=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,M){return h(M)}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,M){return B(M)}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,M){return T(M)}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 i("transfer",{target_acc_number:C,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=(0,a.useLocalState)(u,"fundsAmount",0),C=g[0],h=g[1],N=v.owner_name,b=v.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 i("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return h(w)}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 i("withdrawal",{funds_amount:C})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return i("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 i("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 i("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 i("balance_statement")}return B}()})})]})],4)},p=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=(0,a.useLocalState)(u,"accountID",null),C=g[0],h=g[1],N=(0,a.useLocalState)(u,"accountPin",null),b=N[0],B=N[1],I=v.machine_id,w=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return i("attempt_auth",{account_num:C,account_pin:b})}return T}()})})]})})},d=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:C.is_deposit?"green":"red",children:["$",C.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.target_name})]},C)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return i("view_screen",{view_screen:0})}return g}()})}},64613:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(5126),V=n(45493),k=n(68159),S=n(27527),y=r.AccountsUplinkTerminal=function(){function v(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.loginState,I=b.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,d):I===2?w=(0,e.createComponentVNode)(2,s):I===3&&(w=(0,e.createComponentVNode)(2,i));else return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return v}(),p=function(g,C){var h=(0,t.useBackend)(C),N=h.data,b=(0,t.useLocalState)(C,"tabIndex",0),B=b[0],I=b[1],w=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 T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},d=function(g,C){var h=(0,t.useLocalState)(C,"tabIndex",0),N=h[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,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.accounts,I=(0,t.useLocalState)(C,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(C,"sortId","owner_name"),x=A[0],E=A[1],M=(0,t.useLocalState)(C,"sortOrder",!0),D=M[0],O=M[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,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)(w,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,j){var F=D?1:-1;return R[x].localeCompare(j[x])*F}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function j(){return N("view_account_detail",{account_num:R.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},m=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return N("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},l=function(g,C){var h=(0,t.useLocalState)(C,"sortId","name"),N=h[0],b=h[1],B=(0,t.useLocalState)(C,"sortOrder",!0),I=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==T&&"transparent",width:"100%",onClick:function(){function x(){N===T?w(!I):(b(T),w(!0))}return x}(),children:[A,N===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.is_printing,I=(0,t.useLocalState)(C,"searchText",""),w=I[0],T=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function 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 T(E)}return A}()})})]})},s=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.account_number,I=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return N("back")}return M}()}),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 M(){return N("set_account_pin",{account_number:B})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function M(){return N("toggle_suspension")}return M}()})]})]})})}),(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(M){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:M.is_deposit?"green":"red",children:["$",M.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.target_name})]},M)})]})})})]})},i=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=(0,t.useLocalState)(C,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(C,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return 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(M,D){return w(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(M,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:I,starting_funds:A})}return E}()})]})}},56839:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=f[c.power.main]||f[0],l=f[c.power.backup]||f[0],u=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return d("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 d("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:u.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 d("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 d("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 d("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 d("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 d("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 d("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 d("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 d("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 d("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 d("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 k}()},5565:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.AirAlarm=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return u}(),k=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.air,N=C.mode,b=C.atmos_alarm,B=C.locked,I=C.alarmActivated,w=C.rcon,T=C.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.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:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.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:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return g(I?"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:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===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!"})})},y=function(s,i){var v=(0,a.useLocalState)(i,"tabIndex",0),g=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return C(0)}return h}(),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 h(){return C(1)}return h}(),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 h(){return C(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return C(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(s,i){var v=(0,a.useLocalState)(i,"tabIndex",0),g=v[0],C=v[1];switch(g){case 0:return(0,e.createComponentVNode)(2,d);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!"}},d=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.vents;return h.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 b(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},c=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.scrubbers;return h.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 b(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return b}()})}),(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 b(){return g("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.modes,N=C.presets,b=C.emagged,B=C.mode,I=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(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:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.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(w){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:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},l=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.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(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},N.name)})]})})}},82915:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AirlockAccessController=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.exterior_status,m=d.interior_status,l=d.processing,u,s;return c==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function i(){return p("force_ext")}return i}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function i(){return p("cycle_ext_door")}return i}()}),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 i(){return p("force_int")}return i}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function i(){return p("cycle_int_door")}return i}()}),(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:[u,s]})})]})})}return V}()},14962:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=1,k=2,S=4,y=8,p=r.AirlockElectronics=function(){function m(l,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})})}return m}(),d=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&S?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:S})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&k?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:k})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&y?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:y})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&V?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:V})}return C}()})})]})]})})},c=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.selected_accesses,C=v.one_access,h=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function N(){return i("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function N(){return i("set_one_access",{access:"all"})}return N}()})],4),accesses:h,selectedList:g,accessMod:function(){function N(b){return i("set",{access:b})}return N}(),grantAll:function(){function N(){return i("grant_all")}return N}(),denyAll:function(){function N(){return i("clear_all")}return N}(),grantDep:function(){function N(b){return i("grant_region",{region:b})}return N}(),denyDep:function(){function N(b){return i("deny_region",{region:b})}return N}()})}},99327:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),f=n(24674),V=n(45493),k=-1,S=1,y=r.AlertModal=function(){function c(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,v=i.autofocus,g=i.buttons,C=g===void 0?[]:g,h=i.large_buttons,N=i.message,b=N===void 0?"":N,B=i.timeout,I=i.title,w=(0,t.useLocalState)(l,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(C.length>2?100:0),M=function(){function D(O){T===0&&O===k?A(C.length-1):T===C.length-1&&O===S?A(0):A(T+O)}return D}();return(0,e.createComponentVNode)(2,V.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function D(O){var R=window.event?O.which:O.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:C[T]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(O.preventDefault(),M(k)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(O.preventDefault(),M(S))}return D}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,l){var u=(0,t.useBackend)(l),s=u.data,i=s.buttons,v=i===void 0?[]:i,g=s.large_buttons,C=s.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(N,b){return g&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d,{button:N,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,d,{button:N,id:b.toString(),selected:h===b})},b)})})},d=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,v=i.large_buttons,g=m.button,C=m.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:g,fluid:!!v,onClick:function(){function N(){return s("choose",{choice:g})}return N}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&h})}},88642:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AppearanceChanger=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.change_race,l=c.species,u=c.specimen,s=c.change_gender,i=c.gender,v=c.change_eye_color,g=c.change_skin_tone,C=c.change_skin_color,h=c.change_head_accessory_color,N=c.change_hair_color,b=c.change_secondary_hair_color,B=c.change_facial_hair_color,I=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,T=c.change_body_marking_color,A=c.change_tail_marking_color,x=c.change_head_accessory,E=c.head_accessory_styles,M=c.head_accessory_style,D=c.change_hair,O=c.hair_styles,R=c.hair_style,j=c.change_hair_gradient,F=c.change_facial_hair,U=c.facial_hair_styles,K=c.facial_hair_style,z=c.change_head_markings,$=c.head_marking_styles,Y=c.head_marking_style,X=c.change_body_markings,J=c.body_marking_styles,le=c.body_marking_style,ce=c.change_tail_markings,fe=c.tail_marking_styles,pe=c.tail_marking_style,be=c.change_body_accessory,te=c.body_accessory_styles,Q=c.body_accessory_style,ne=c.change_alt_head,me=c.alt_head_styles,ae=c.alt_head_style,ue=!1;return(v||g||C||h||N||b||B||I||w||T||A)&&(ue=!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(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.specimen,selected:oe.specimen===u,onClick:function(){function ke(){return d("race",{race:oe.specimen})}return ke}()},oe.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:i==="male",onClick:function(){function oe(){return d("gender",{gender:"male"})}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:i==="female",onClick:function(){function oe(){return d("gender",{gender:"female"})}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:i==="plural",onClick:function(){function oe(){return d("gender",{gender:"plural"})}return oe}()})]}),!!ue&&(0,e.createComponentVNode)(2,V),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:E.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.headaccessorystyle,selected:oe.headaccessorystyle===M,onClick:function(){function ke(){return d("head_accessory",{head_accessory:oe.headaccessorystyle})}return ke}()},oe.headaccessorystyle)})}),!!D&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:O.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.hairstyle,selected:oe.hairstyle===R,onClick:function(){function ke(){return d("hair",{hair:oe.hairstyle})}return ke}()},oe.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 oe(){return d("hair_gradient")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function oe(){return d("hair_gradient_offset")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function oe(){return d("hair_gradient_colour")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function oe(){return d("hair_gradient_alpha")}return oe}()})]}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:U.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.facialhairstyle,selected:oe.facialhairstyle===K,onClick:function(){function ke(){return d("facial_hair",{facial_hair:oe.facialhairstyle})}return ke}()},oe.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:$.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.headmarkingstyle,selected:oe.headmarkingstyle===Y,onClick:function(){function ke(){return d("head_marking",{head_marking:oe.headmarkingstyle})}return ke}()},oe.headmarkingstyle)})}),!!X&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:J.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.bodymarkingstyle,selected:oe.bodymarkingstyle===le,onClick:function(){function ke(){return d("body_marking",{body_marking:oe.bodymarkingstyle})}return ke}()},oe.bodymarkingstyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:fe.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.tailmarkingstyle,selected:oe.tailmarkingstyle===pe,onClick:function(){function ke(){return d("tail_marking",{tail_marking:oe.tailmarkingstyle})}return ke}()},oe.tailmarkingstyle)})}),!!be&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:te.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.bodyaccessorystyle,selected:oe.bodyaccessorystyle===Q,onClick:function(){function ke(){return d("body_accessory",{body_accessory:oe.bodyaccessorystyle})}return ke}()},oe.bodyaccessorystyle)})}),!!ne&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:me.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.altheadstyle,selected:oe.altheadstyle===ae,onClick:function(){function ke(){return d("alt_head",{alt_head:oe.altheadstyle})}return ke}()},oe.altheadstyle)})})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.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_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 u(){return d(l.action)}return u}()},l.key)})})}},51731:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosAlertConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.priority||[],m=d.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 V}()},57467:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),f=n(45493),V=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"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function d(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=(0,a.useLocalState)(m,"tabIndex",0),v=i[0],g=i[1],C=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return d}(),y=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=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"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return u("open_alarm",{aref:v.ref})}return g}()})})]},v.name)})]})})},p=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=(0,a.useLocalState)(m,"zoom",1),i=s[0],v=s[1],g=u.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function C(h){return v(h)}return C}(),children:g.filter(function(C){return C.z===2}).map(function(C){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:C.x,y:C.y,zoom:i,icon:"circle",tooltip:C.name,color:k(C.danger)},C.ref)})})})}},41550:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosFilter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.on,m=d.pressure,l=d.max_pressure,u=d.filter_type,s=d.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 i(){return p("power")}return i}()})}),(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 i(){return p("min_pressure")}return i}()}),(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 i(v,g){return p("custom_pressure",{pressure:g})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function i(){return p("max_pressure")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{selected:i.gas_type===u,content:i.label,onClick:function(){function v(){return p("set_filter",{filter:i.gas_type})}return v}()},i.label)})})]})})})})}return V}()},70151:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosMixer=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.on,l=c.pressure,u=c.max_pressure,s=c.node1_concentration,i=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 v(){return d("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function v(){return d("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:l,onDrag:function(){function v(g,C){return d("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===u,width:2.2,onClick:function(){function v(){return d("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:i})]})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=S.node_name,l=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function u(){return d("set_node",{node_name:m,concentration:(l-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function u(s,i){return d("set_node",{node_name:m,concentration:i/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function u(){return d("set_node",{node_name:m,concentration:(l+10)/100})}return u}()})]})}},54090:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosPump=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.on,m=d.rate,l=d.max_rate,u=d.gas_unit,s=d.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 i(){return p("power")}return i}()})}),(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 i(){return p("min_rate")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:l,value:m,onDrag:function(){function i(v,g){return p("custom_rate",{rate:g})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function i(){return p("max_rate")}return i}()})]})]})})})})}return V}()},31335:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(36121),f=n(38424),V=n(45493),k=r.AtmosTankControl=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.sensors||{};return(0,e.createComponentVNode)(2,V.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[Object.keys(l).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(l[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[l[u].pressure," kpa"]}):"",Object.keys(l[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[l[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(l[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:l[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(l[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,i){return c("set_pressure",{dev:"inlet",val:i})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,i){return c("set_pressure",{dev:"outlet",val:i})}return u}()})})]})}):""]})})}return S}()},85909:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),k=n(78234),S=function(d,c,m,l){return d.requirements===null?!0:!(d.requirements.metal*l>c||d.requirements.glass*l>m)},y=r.Autolathe=function(){function p(d,c){var m=(0,o.useBackend)(c),l=m.act,u=m.data,s=u.total_amount,i=u.max_amount,v=u.metal_amount,g=u.glass_amount,C=u.busyname,h=u.busyamt,N=u.showhacked,b=u.buildQueue,B=u.buildQueueLen,I=u.recipes,w=u.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=(0,o.useSharedState)(c,"search_text",""),R=O[0],j=O[1],F=(0,k.createSearch)(R,function($){return $.name}),U="";B>0&&(U=b.map(function($,Y){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[Y][0],onClick:function(){function X(){return l("remove_from_queue",{remove_from_queue:b.indexOf($)+1})}return X}()},$)},Y)}));var K=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||R)&&(u.showhacked||!$.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(I),z="Build";return R?z="Results for: '"+R+"':":A&&(z="Build ("+A+")"),(0,e.createComponentVNode)(2,V.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function $(Y){return x(Y)}return $}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(Y,X){return j(X)}return $}(),mb:1}),K.map(function($){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+$.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===1,disabled:!S($,u.metal_amount,u.glass_amount,1),onClick:function(){function Y(){return l("make",{make:$.uid,multiplier:1})}return Y}(),children:(0,k.toTitleCase)($.name)}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===10,disabled:!S($,u.metal_amount,u.glass_amount,10),onClick:function(){function Y(){return l("make",{make:$.uid,multiplier:10})}return Y}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===25,disabled:!S($,u.metal_amount,u.glass_amount,25),onClick:function(){function Y(){return l("make",{make:$.uid,multiplier:25})}return Y}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===$.max_multiplier,disabled:!S($,u.metal_amount,u.glass_amount,$.max_multiplier),onClick:function(){function Y(){return l("make",{make:$.uid,multiplier:$.max_multiplier})}return Y}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(Y){return(0,k.toTitleCase)(Y)+": "+$.requirements[Y]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},$.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:M}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function $(){return l("clear_queue")}return $}()})]})]})]})})})}return p}()},81617:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BioChipPad=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.implant,m=d.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",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})]})],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!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function l(){return p("eject_case")}return l}()})]})})})}return V}()},26215:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.Biogenerator=function(){function d(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.config,i=u.container,v=u.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,f.Operating,{operating:v,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),i?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=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."]})})})},S=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.biomass,v=s.container,g=s.container_curr_reagents,C=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:i}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:C,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+C+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.has_plants,v=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!i,tooltip:i?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return u("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:!v,tooltip:v?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return u("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:!i,tooltip:i?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return u("eject_plants")}return g}()})})]})})},p=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.biomass,v=s.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),C=g[0],h=g[1],N=Object.entries(v).map(function(b,B){var I=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:I.map(function(w){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:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*C,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:iu&&"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:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),u>N&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(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.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===0,tooltip:"Set to 0",onClick:function(){function I(){return d("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function I(){return d("set",{set_level:u})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function I(){return d("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:u,minValue:0,color:B,maxValue:C,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return d("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===C,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return d("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===C,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return d("set",{set_level:C})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(g)})]})})}),(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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:i})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=s,onClick:function(){function w(){return d("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return k}()},71736:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),f=n(24674),V=n(45493),k=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],y=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],p={average:[.25,.5],bad:[.5,1/0]},d=function(B,I){for(var w=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:w},w)],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 b(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,M=A?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,V.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:M})})}return b}(),u=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,i,{occupant:I}),(0,e.createComponentVNode)(2,v,{occupant:I}),(0,e.createComponentVNode)(2,C,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:I.intOrgan})]})},s=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:k[x.stat][0],children:k[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},i=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,f.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},v=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:d(y,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:I[w[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},h=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:p,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},N=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},99449:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(18963),k=r.BookBinder=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.selectedbook,u=m.book_categories,s=[];return u.map(function(i){return s[i.description]=i.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function i(){return c("print_book")}return i}()}),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 i(){return(0,f.modalOpen)(p,"edit_selected_title")}return i}()})}),(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 i(){return(0,f.modalOpen)(p,"edit_selected_author")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(i){return i.description}),onSelected:function(){function i(v){return c("toggle_binder_category",{category_id:s[v]})}return i}()})})}),(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 i(){return(0,f.modalOpen)(p,"edit_selected_summary")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:l.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(i){return l.categories.includes(i.category_id)}).map(function(i){return(0,e.createComponentVNode)(2,t.Button,{content:i.description,selected:!0,icon:"unlink",onClick:function(){function v(){return c("toggle_binder_category",{category_id:i.category_id})}return v}()},i.category_id)})]})})]})})})]})}return S}()},85951:function(L,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(d){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",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,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(l){return l.modes.includes(d)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},V=r.BotCall=function(){function p(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),i=s[0],v=s[1],g={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},C=function(){function h(N){return g[N]?(0,e.createComponentVNode)(2,k,{model:g[N]}):"This should not happen. Report on Paradise Github"}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:i===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(h,N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:i===N,onClick:function(){function b(){return v(N)}return b}(),children:g[N]},N)})})}),C(i)]})})})}return p}(),k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.bots;return s[d.model]!==void 0?(0,e.createComponentVNode)(2,y,{model:[d.model]}):(0,e.createComponentVNode)(2,S,{model:[d.model]})},S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[d.model]," detected"]})})},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[d.model].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.on?f(i.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function v(){return l("interface",{botref:i.UID})}return v}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function v(){return l("call",{botref:i.UID})}return v}()})})]},i.UID)})]})})})}},43506:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.locked,l=c.noaccess,u=c.maintpanel,s=c.on,i=c.autopatrol,v=c.canhack,g=c.emagged,C=c.remote_disabled,h=c.painame,N=c.cleanblood,b=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,f.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 d("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:b?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return d("area")}return B}()}),b!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:b})})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function B(){return d("ejectpai")}return B}()})})]})})}return k}()},89593:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.noaccess,l=c.painame,u=c.hullplating,s=c.replace,i=c.eat,v=c.make,g=c.fixfloor,C=c.nag_empty,h=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,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:N})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function b(){return d("autotile")}return b}()}),(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 b(){return d("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return d("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Finds tiles",disabled:m,onClick:function(){function b(){return d("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return d("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return d("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return d("anchored")}return b}()})]}),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 b(){return d("ejectpai")}return b}()})})]})})}return k}()},89513:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return k}()},19297:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.locked,l=c.noaccess,u=c.maintpanel,s=c.on,i=c.autopatrol,v=c.canhack,g=c.emagged,C=c.remote_disabled,h=c.painame,N=c.shut_up,b=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=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,f.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 d("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:l,onClick:function(){function E(){return d("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:l,onChange:function(){function E(M,D){return d("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:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(M){return M+"u"}return E}(),disabled:l,onChange:function(){function E(M,D){return d("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:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:l,onClick:function(){function E(){return d("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 d("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 d("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 d("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function E(){return d("ejectpai")}return E}()})})]})})})}return k}()},4249:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.noaccess,l=c.painame,u=c.check_id,s=c.check_weapons,i=c.check_warrant,v=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,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function C(){return d("authid")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function C(){return d("authweapon")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Wanted Criminals",disabled:m,onClick:function(){function C(){return d("authwarrant")}return C}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function C(){return d("arrtype")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function C(){return d("arrdeclare")}return C}()})]}),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 C(){return d("ejectpai")}return C}()})})]})})}return k}()},27267:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),f=function(y,p){var d=y.cell,c=(0,o.useBackend)(p),m=c.act,l=d.cell_id,u=d.occupant,s=d.crimes,i=d.brigged_by,v=d.time_left_seconds,g=d.time_set_seconds,C=d.ref,h="";v>0&&(h+=" BrigCells__listRow--active");var N=function(){m("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(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:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},V=function(y){var p=y.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(d){return(0,e.createComponentVNode)(2,f,{cell:d},d.ref)})]})},k=r.BrigCells=function(){function S(y,p){var d=(0,o.useBackend)(p),c=d.act,m=d.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,V,{cells:l})})})})})}return S}()},26623:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BrigTimer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;d.nameText=d.occupant,d.timing&&(d.prisoner_hasrec?d.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:d.occupant}):d.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d.occupant}));var c="pencil-alt";d.prisoner_name&&(d.prisoner_hasrec||(c="exclamation-triangle"));var m=[],l=0;for(l=0;lm?this.substring(0,m)+"...":this};var y=function(l,u){var s,i;if(!u)return[];var v=l.findIndex(function(g){return g.name===u.name});return[(s=l[v-1])==null?void 0:s.name,(i=l[v+1])==null?void 0:i.name]},p=function(l,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(i){return i.name});return(0,t.flow)([(0,a.filter)(function(i){return i==null?void 0:i.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(i){return i.name})])(l)},d=r.CameraConsole=function(){function m(l,u){var s=(0,V.useBackend)(u),i=s.act,v=s.data,g=s.config,C=v.mapRef,h=v.activeCamera,N=p(v.cameras),b=y(N,h),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return i("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return i("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(l,u){var s=(0,V.useBackend)(u),i=s.act,v=s.data,g=(0,V.useLocalState)(u,"searchText",""),C=g[0],h=g[1],N=v.activeCamera,b=p(v.cameras,C);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.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 I(){return i("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},95513:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(92986),V=n(45493),k=r.Canister=function(){function S(y,p){var d=(0,t.useBackend)(p),c=d.act,m=d.data,l=m.portConnected,u=m.tankPressure,s=m.releasePressure,i=m.defaultReleasePressure,v=m.minReleasePressure,g=m.maxReleasePressure,C=m.valveOpen,h=m.name,N=m.canLabel,b=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var M=[],D=[],O=[],R=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.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:i.cooldown_time||!h.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:i.cooldown_time||!h.can_open,onClick:function(){function N(){return s("make_job_available",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:i.cooldown_time||!h.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:h.title})}return N}()})})]},h.title)})]})})]}):C=(0,e.createComponentVNode)(2,S);break;case 2:!i.authenticated||!i.scan_name?C=(0,e.createComponentVNode)(2,S):i.modify_name?C=(0,e.createComponentVNode)(2,f.AccessList,{accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function h(N){return s("set",{access:N})}return h}(),grantAll:function(){function h(){return s("grant_all")}return h}(),denyAll:function(){function h(){return s("clear_all")}return h}(),grantDep:function(){function h(N){return s("grant_region",{region:N})}return h}(),denyDep:function(){function h(N){return s("deny_region",{region:N})}return h}()}):C=(0,e.createComponentVNode)(2,y);break;case 3:i.authenticated?i.records.length?C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!i.authenticated||i.records.length===0||i.target_dept,onClick:function(){function h(){return s("wipe_all_logs")}return h}()}),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"}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),i.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!i.authenticated||i.records.length===0,onClick:function(){function h(){return s("wipe_my_logs")}return h}()})})]}):C=(0,e.createComponentVNode)(2,p):C=(0,e.createComponentVNode)(2,S);break;case 4:!i.authenticated||!i.scan_name?C=(0,e.createComponentVNode)(2,S):C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),i.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:h.name})}return N}()})})]},h.title)})]})});break;default:C=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return c}()},16377:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),k=n(78234),S=r.CargoConsole=function(){function u(s,i){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return u}(),y=function(s,i){var v=(0,o.useLocalState)(i,"contentsModal",null),g=v[0],C=v[1],h=(0,o.useLocalState)(i,"contentsModalTitle",null),N=h[0],b=h[1];if(g!==null&&N!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){C(null),b(null)}return B}()})})]})},p=function(s,i){var v=(0,o.useBackend)(i),g=v.act,C=v.data,h=C.is_public,N=C.timeleft,b=C.moving,B=C.at_station,I,w;return!b&&!B?(I="Docked off-station",w="Call Shuttle"):!b&&B?(I="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",N!==1?I="Shuttle is en route (ETA: "+N+" minutes)":I="Shuttle is en route (ETA: "+N+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:b,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},d=function(s,i){var v,g=(0,o.useBackend)(i),C=g.act,h=g.data,N=h.accounts,b=(0,o.useLocalState)(i,"selectedAccount"),B=b[0],I=b[1],w=[];return N.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(T){return T.name}),selected:(v=N.filter(function(T){return T.account_UID===B})[0])==null?void 0:v.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),N.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,i){var v=(0,o.useBackend)(i),g=v.act,C=v.data,h=C.requests,N=C.categories,b=C.supply_packs,B=(0,o.useSharedState)(i,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(i,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(i,"contentsModal",null),M=E[0],D=E[1],O=(0,o.useLocalState)(i,"contentsModalTitle",null),R=O[0],j=O[1],F=(0,k.createSearch)(A,function(X){return X.name}),U=(0,o.useLocalState)(i,"selectedAccount"),K=U[0],z=U[1],$=(0,a.flow)([(0,t.filter)(function(X){return X.cat===N.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(X){return X.name.toLowerCase()})])(b),Y="Crate Catalogue";return A?Y="Results for '"+A+"':":I&&(Y="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:Y,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(X){return X.name}),selected:I,onSelected:function(){function X(J){return w(J)}return X}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function X(J,le){return x(le)}return X}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:$.map(function(X){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[X.name," (",X.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!K,onClick:function(){function J(){return g("order",{crate:X.ref,multiple:!1,account:K})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!K||X.singleton,onClick:function(){function J(){return g("order",{crate:X.ref,multiple:!0,account:K})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){D(X.contents),j(X.name)}return J}()})]})]},X.name)})})})]})})},m=function(s,i){var v=s.request,g,C;switch(v.department){case"Engineering":C="CE",g="orange";break;case"Medical":C="CMO",g="teal";break;case"Science":C="RD",g="purple";break;case"Supply":C="CT",g="brown";break;case"Service":C="HOP",g="olive";break;case"Security":C="HOS",g="red";break;case"Command":C="CAP",g="blue";break;case"Assistant":C="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!v.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!v.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:g,content:C,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+C+" can approve it":"This Order requires approval from the "+C+" still"})})]})},l=function(s,i){var v=(0,o.useBackend)(i),g=v.act,C=v.data,h=C.requests,N=C.orders,b=C.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return g("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return g("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},89917:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ChangelogView=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],l=c[1],u=d.cl_data,s=d.last_cl,i={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},v=function(){function g(C){return C in i?i[C]:(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:u.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 C(){return p("open_pr",{pr_number:g.num})}return C}()}),children:g.entries.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(C.etype)," ",C.etext]},C)})},g)})})})})}return V}()},71254:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),f=n(45493),V=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=i.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+v.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,d)]})})})}return c}(),y=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=i.amount,g=i.energy,C=i.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:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[g," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:V.map(function(h,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:v===h,content:h,onClick:function(){function b(){return s("amount",{amount:h})}return b}()})},N)})})})]})})})},p=function(m,l){for(var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=i.chemicals,g=v===void 0?[]:v,C=[],h=0;h<(g.length+1)%3;h++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:i.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(N,b){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}()},b)}),C.map(function(N,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},d=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=i.isBeakerLoaded,g=i.beakerCurrentVolume,C=i.beakerMaxVolume,h=i.beakerContents,N=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:i.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function b(){return s("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:N,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),k.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return b}()})})})}},27004:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(1496),V=n(45493),k=r.ChemHeater=function(){function p(d,c){return(0,e.createComponentVNode)(2,V.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(d,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.targetTemp,i=u.targetTempReached,v=u.autoEject,g=u.isActive,C=u.currentTemp,h=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function N(){return l("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,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(b,B){return l("adjust_temperature",{target:B})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:i?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function N(b){return(0,a.toFixed)(b)+" K"}return N}()})||"\u2014"})]})})})},y=function(d,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.isBeakerLoaded,i=u.beakerCurrentVolume,v=u.beakerMaxVolume,g=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[i," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return l("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:g})})})}},41099:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(1496),V=n(99665),k=n(28234),S=["icon"];function y(I,w){if(I==null)return{};var T={},A=Object.keys(I),x,E;for(E=0;E=0)&&(T[x]=I[x]);return T}function p(I,w){I.prototype=Object.create(w.prototype),I.prototype.constructor=I,d(I,w)}function d(I,w){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function T(A,x){return A.__proto__=x,A}return T}(),d(I,w)}var c=[1,5,10],m=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=w.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:M.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(M.desc||"").length>0?M.desc:"N/A"}),M.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:M.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:M.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:M.idx,beaker:w.args.beaker})}return D}()})]})})})})},l=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(l||{}),u=r.ChemMaster=function(){function I(w,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,V.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,i),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,B)]})})]})}return I}(),s=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.beaker,D=E.beaker_reagents,O=E.buffer_reagents,R=O.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function j(){return x("eject")}return j}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function j(){return x("eject")}return j}()}),children:M?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function j(F,U){return(0,e.createComponentVNode)(2,t.Box,{mb:U0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function O(R,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0&&(R=O.map(function(j){var F=j.id,U=j.sprite;return(0,e.createComponentVNode)(2,N,{icon:U,color:"translucent",onClick:function(){function K(){return x("set_sprite_style",{production_mode:M,style:F})}return K}(),selected:D===F},F)})),(0,e.createComponentVNode)(2,h,{productionData:w.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},B=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.loaded_pill_bottle_style,D=E.containerstyles,O=E.loaded_pill_bottle,R={width:"20px",height:"20px"},j=D.map(function(F){var U=F.color,K=F.name,z=M===U;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function $(){return x("set_container_style",{style:U})}return $}(),icon:z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:K,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:R.width,height:R.height,"background-color":U,opacity:.6,filter:"alpha(opacity=60)"}})]},U)});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:!O,content:"Eject Container",onClick:function(){function F(){return x("ejectp")}return F}()}),children:O?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function F(){return x("clear_container_style")}return F}(),selected:!M,tooltip:"Default",tooltipPosition:"top"}),j]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,V.modalRegisterBodyOverride)("analyze",m)},51327:function(L,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(17442),V=1,k=32,S=128,y=r.CloningConsole=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.tab,N=C.has_scanner,b=C.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:N?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:b})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===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:h===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,p)})]})})}return u}(),p=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.tab,h;return C===1?h=(0,e.createComponentVNode)(2,d):C===2&&(h=(0,e.createComponentVNode)(2,c)),h},d=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.pods,N=C.pod_amount,b=C.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&&h.map(function(B,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:b===B.uid,onClick:function(){function w(){return g("select_pod",{uid:B.uid})}return w}(),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,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.selected_pod_data,N=C.has_scanned,b=C.scanner_has_patient,B=C.feedback,I=C.scan_successful,w=C.cloning_cost,T=C.has_scanner;return(0,e.createComponentVNode)(2,t.Box,{children:[!T&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!T&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function A(){return g("scan")}return A}(),children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function A(){return g("eject")}return A}(),children:"Eject Patient"})]}),children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:b?"No scan detected for current patient.":"No patient is in the scanner."}),!!N&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!N)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!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 A(){return g("fix_all")}return A}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return g("fix_none")}return A}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return g("clone")}return A}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[0],maxValue:h.biomass_storage_capacity,ranges:{bad:[2*h.biomass_storage_capacity/3,h.biomass_storage_capacity],average:[h.biomass_storage_capacity/3,2*h.biomass_storage_capacity/3],good:[0,h.biomass_storage_capacity/3]},color:w[0]>h.biomass?"bad":null,children:["Biomass: ",w[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)]})]})})]})]})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.patient_limb_data,N=C.limb_list,b=C.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:N.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0]+b[B][1],maxValue:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+b[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+b[B][1]]})}),h[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 ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&V),checked:!(b[B][2]&V),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&k),checked:!(b[B][2]&k),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},l=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.patient_organ_data,N=C.organ_list,b=C.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:N.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!b[B][0],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),h[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:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},66373:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CloningPod=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.biomass,m=d.biomass_storage_capacity,l=d.sanguine_reagent,u=d.osseous_reagent,s=d.organs,i=d.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 v(g,C){return p("remove_reagent",{reagent:"sanguine_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return p("purge_reagent",{reagent:"sanguine_reagent"})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function v(g,C){return p("remove_reagent",{reagent:"osseous_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return p("purge_reagent",{reagent:"osseous_reagent"})}return v}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!i&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(v){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function g(){return p("eject_organ",{organ_ref:v.ref})}return g}()})})]},v)})]}),!!i&&(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 V}()},38781:function(L,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.CoinMint=function(){function k(S,y){var p=(0,t.useBackend)(y),d=p.act,c=p.data,m=c.materials,l=c.moneyBag,u=c.moneyBagContent,s=c.moneyBagMaxContent,i=(l?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:i,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",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 v(){return d("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue: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 v(){return d("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:v.id===c.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function g(){return d("selectMaterial",{material:v.id})}return g}()},v.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 v(){return d("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return k}()},11866:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ColourMatrixTester=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.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(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(i,v){return p("setvalue",{idx:u.idx+1,value:v})}return s}()})]},u.name)})},l)})})})})})}return V}()},22420:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,d);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."}},V=r.CommunicationsComputer=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),f(h)]})})})}return u}(),k=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.authenticated,N=C.noauthbutton,b=C.esc_section,B=C.esc_callable,I=C.esc_recallable,w=C.esc_status,T=C.authhead,A=C.is_ai,x=C.lastCallLoc,E=!1,M;return h?h===1?M="Command":h===2?M="Captain":h===3?M="CentComm Officer":h===4?(M="CentComm Secure Connection",E=!0):M="ERROR: Report This Bug!":M="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:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:N,content:h?"Log Out ("+M+")":"Log In",onClick:function(){function D(){return g("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function D(){return g("callshuttle")}return D}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function D(){return g("cancelshuttle")}return D}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.is_admin,N=C.gamma_armory_location,b=C.admin_levels,B=C.authenticated,I=C.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:b,required_access:h,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:!h,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),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:!h,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(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:!h,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.msg_cooldown,N=C.emagged,b=C.cc_cooldown,B=C.security_level_color,I=C.str_security_level,w=C.levels,T=C.authcapt,A=C.authhead,x=C.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var M=N?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return b>0&&(M+=" ("+b+"s)",D+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function O(){return g("announce")}return O}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!T||b>0,onClick:function(){function O(){return g("MessageSyndicate")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function O(){return g("RestoreBackup")}return O}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!T||b>0,onClick:function(){function O(){return g("MessageCentcomm")}return O}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!T||b>0,onClick:function(){function O(){return g("nukerequest")}return O}()})})]})})}),(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 O(){return g("status")}return O}()})}),(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 O(){return g("messagelist")}return O}()})})]})})})],4)},d=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.stat_display,N=C.authhead,b=C.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!N,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),I=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!N,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.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 w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!N,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!N,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.authhead,N=C.current_message_title,b=C.current_message,B=C.messages,I=C.security_level,w;if(N)w=(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:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=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:!h||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:!h,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(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:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=s.levels,N=s.required_access,b=s.use_confirm,B=C.security_level;return b?h.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)}):h.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)})},l=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.is_admin,N=C.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(i,"subtitle",""),B=b[0],I=b[1],w=(0,a.useLocalState)(i,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(i,"classified",0),E=x[0],M=x[1],D=(0,a.useLocalState)(i,"beepsound","Beep"),O=D[0],R=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 j(){return g("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(F,U){return I(U)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(F,U){return A(U)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:O})}return j}()}),(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:O,onSelected:function(){function j(F){return R(F)}return j}(),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 j(){return g("test_sound",{sound:O})}return j}()})}),(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 j(){return M(!E)}return j}()})})]})]})})}},46868:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CompostBin=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.biomass,m=d.compost,l=d.biomass_capacity,u=d.compost_capacity,s=(0,a.useSharedState)(S,"vendAmount",1),i=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,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:1,width:17,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.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.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:i,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function g(C,h){return v(h)}return g}()})],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*i,icon:"arrow-circle-down",onClick:function(){function g(){return p("create",{amount:i})}return g}()})})})]})})})}return V}()},64707:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(99509),V=n(45493);function k(g,C){g.prototype=Object.create(C.prototype),g.prototype.constructor=g,S(g,C)}function S(g,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(N,b){return N.__proto__=b,N}return h}(),S(g,C)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["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"],d=r.Contractor=function(){function g(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(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):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return g}(),c=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.tc_available,w=B.tc_paid_out,T=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"]})},C,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(O){return O.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),M=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:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function O(R,j){return" ("+j.substr(3)+")"}return O}()})],onClick:function(){function O(){return b("extract")}return O}()})},C,{children:I.slice().sort(function(O,R){return O.status===1?-1:R.status===1?1:O.status-R.status}).map(function(O){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:O.status===1&&"good",children:O.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:O.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return D("target_photo_"+O.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[O.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[O.status][1],inline:!0,mt:O.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[O.status][0]}),O.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return b("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[O.fluff_message,!!O.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 ",O.completed_time]}),!!O.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."]}),!!O.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: ",O.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(O)]}),(R=O.difficulties)==null?void 0:R.map(function(j,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function U(){return b("activate",{uid:O.uid,difficulty:F+1})}return U}()},F)}),!!O.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[O.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(O.objective.rewards.tc||0)+" TC",",\xA0",(O.objective.rewards.credits||0)+" Credits",")"]})]})]})},O.uid)})})))},u=function(C){if(!(!C.objective||C.status>1)){var h=C.objective.locs.user_area_id,N=C.objective.locs.user_coords,b=C.objective.locs.target_area_id,B=C.objective.locs.target_coords,I=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-N[1],B[0]-N[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},i=function(g){function C(N){var b;return b=g.call(this,N)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}k(C,g);var h=C.prototype;return h.tick=function(){function N(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return N}(),h.componentDidMount=function(){function N(){var b=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/I)}return N}(),h.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),h.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return N}(),C}(e.Component),v=function(C,h){var N=(0,t.useLocalState)(h,"viewingPhoto",""),b=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:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},52141:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ConveyorSwitch=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.slowFactor,m=d.oneWay,l=d.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 u(){return p("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return p("slowFactor",{value:c-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return p("slowFactor",{value:c-1})}return u}()})," "]}),(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 u(s){return s+"x"}return u}(),onChange:function(){function u(s,i){return p("slowFactor",{value:i})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return p("slowFactor",{value:c+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return p("slowFactor",{value:c+5})}return u}()})," "]})]})})]})})})})}return V}()},94187:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),f=n(24674),V=n(5126),k=n(38424),S=n(45493),y=function(u,s){return u.dead?"Deceased":parseInt(u.health,10)<=s?"Critical":parseInt(u.stat,10)===1?"Unconscious":"Living"},p=function(u,s){return u.dead?"red":parseInt(u.health,10)<=s?"orange":parseInt(u.stat,10)===1?"blue":"green"},d=r.CrewMonitor=function(){function l(u,s){var i=(0,o.useBackend)(s),v=i.act,g=i.data,C=(0,o.useLocalState)(s,"tabIndex",0),h=C[0],N=C[1],b=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return N(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return N(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return l}(),c=function(u,s){var i=(0,o.useBackend)(s),v=i.act,g=i.data,C=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,N=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(s,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:N,onSelected:function(){function A(x){return v("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),C.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(A,g.critThreshold),children:y(A,g.critThreshold)}),A.sensor_type>=2||g.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:A.sensor_type===3||g.ignoreSensors?g.isAI||g.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return v("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(u,s){var i=(0,o.useBackend)(s),v=i.act,g=i.data,C=(0,o.useLocalState)(s,"zoom",1),h=C[0],N=C[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function b(B){return N(B)}return b}(),children:g.crewmembers.filter(function(b){return b.sensor_type===3||g.ignoreSensors}).map(function(b){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:b.x,y:b.y,zoom:h,icon:"circle",tooltip:b.name+" ("+b.assignment+")",color:p(b,g.critThreshold),onClick:function(){function B(){return g.isObserver?v("track",{track:b.ref}):null}return B}()},b.ref)})})})}},60561:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(d,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,S)})})})}return p}(),S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.isOperating,i=u.hasOccupant,v=u.occupant,g=v===void 0?[]:v,C=u.cellTemperature,h=u.cellTemperatureStatus,N=u.isBeakerLoaded,b=u.cooldownProgress,B=u.auto_eject_healthy,I=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return l("ejectOccupant")}return w}(),disabled:!i,children:"Eject"}),children:i?(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:V[g.stat][0],children:V[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),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.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 w(){return l("ejectBeaker")}return w}(),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 w(){return l(s?"switchOff":"switchOn")}return w}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!N&&"average",value:b,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 w(){return l(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return l(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.isBeakerLoaded,i=u.beakerLabel,v=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!i&&"average",children:[i||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!v&&"bad",ml:1,children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function g(C){return Math.round(C)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},27889:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=r.CryopodConsole=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.data,l=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!u&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,d){var c=(0,a.useBackend)(d),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(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.frozen_items,s=function(v){var g=v.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,f.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(i.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:i.uid})}return v}()})},i)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function i(){return m("all_items")}return i}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function h(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)})]})})]})}return h}(),p=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("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:V[x.stat][0],children:V[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.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:w.occupant.uniqueEnzymes?w.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."})})},d=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,u):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(M,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:M[2],selected:T===M[0],onClick:function(){function O(){return I("selectMenuKey",{key:M[0]})}return O}(),children:M[1]},D)})}),E]})},c=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.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 M(D){return D.toString(16).toUpperCase()}return M}(),ml:"0",onChange:function(){function M(D,O){return I("changeUITarget",{value:O})}return M}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function M(){return I("pulseUIRadiation")}return M}()})]})},m=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},l=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationIntensity",{value:M})}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,M){return I("radiationDuration",{value:M})}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 I("pulseRadiation")}return x}()})]})},u=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,i)})]})},s=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=N.id,A=N.name,x=N.buffer,E=w.isInjectorReady,M=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:M,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 I("bufferOption",{option:"clear",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function D(){return I("bufferOption",{option:"changeLabel",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return I("bufferOption",{option:"saveDisk",id:T})}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 I("bufferOption",{option:"saveUI",id:T})}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 I("bufferOption",{option:"saveUIAndUE",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveSE",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"loadDisk",id:T})}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 I("bufferOption",{option:"createInjector",id:T})}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 I("bufferOption",{option:"createInjector",id:T,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"transfer",id:T})}return D}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},i=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,M){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function D(){return I("injectRejuvenators",{amount:E})}return D}()},M)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("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,b){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)})]})},C=function(N,b){for(var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,M=N.action,D=T.split(""),O=0,R=[],j=function(){for(var K=F/E+1,z=[],$=function(){var J=Y+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===J,content:D[F+Y],mb:"0",onClick:function(){function le(){return I(M,{block:K,subblock:J})}return le}()}))},Y=0;Yi.spawnpoints?"red":"green",children:[i.total," total, versus ",i.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:C})}return N}()})})]})})})},p=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=i.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:v&&v.length?v.map(function(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 C(){return s("view_player_panel",{uid:g.sender_uid})}return C}(),tooltip:"View player panel"}),children:g.message},(0,f.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."]})})})})},d=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=(0,a.useLocalState)(l,"text",""),g=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function h(N,b){return C(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return s("deny_ert",{reason:g})}return h}()})]})})}},24503:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.EconomyManager=function(){function S(y,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.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 u(){return c("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return c("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return c("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return c("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},15543:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),d=p.act,c=p.data,m=c.power,l=c.code,u=c.frequency,s=c.minFrequency,i=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function v(){return d("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return d("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:i/10,value:u/10,format:function(){function v(g){return(0,a.toFixed)(g,1)}return v}(),width:"80px",onChange:function(){function v(g,C){return d("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return d("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function v(g,C){return d("code",{code:C})}return v}()})})]})})})})}return k}()},57013:function(L,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.Emojipedia=function(){function S(y,p){var d=(0,t.useBackend)(p),c=d.data,m=c.emoji_list,l=(0,t.useLocalState)(p,"searchText",""),u=l[0],s=l[1],i=m.filter(function(v){return v.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function v(g,C){return s(C)}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:i.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+v.name]),style:{transform:"scale(1.5)"},tooltip:v.name,onClick:function(){function g(){k(v.name)}return g}()},v.name)})})})})}return S}(),k=function(y){var p=document.createElement("input"),d=":"+y+":";p.value=d,document.body.appendChild(p),p.select(),document.execCommand("copy"),document.body.removeChild(p)}},99012:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(74041),k=n(50640),S=r.EvolutionMenu=function(){function d(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)]})})})}return d}(),y=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.evo_points,v=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:i}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!v,content:"Readapt",icon:"sync",onClick:function(){function g(){return u("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"})]})]})})})},p=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.evo_points,v=s.ability_tabs,g=s.purchased_abilities,C=s.view_mode,h=(0,t.useLocalState)(m,"selectedTab",v[0]),N=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),A=T[0],x=T[1],E=function(R,j){if(j===void 0&&(j=""),!R||R.length===0)return[];var F=(0,a.createSearch)(j,function(U){return U.name+"|"+U.description});return(0,V.flow)([(0,k.filter)(function(U){return U==null?void 0:U.name}),(0,k.filter)(F),(0,k.sortBy)(function(U){return U==null?void 0:U.name})])(R)},M=function(R){if(w(R),R==="")return x(N.abilities);x(E(v.map(function(j){return j.abilities}).flat(),R))},D=function(R){b(R),x(R.abilities),w("")};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 O(R,j){M(j)}return O}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"square-o":"check-square-o",selected:!C,content:"Compact",onClick:function(){function O(){return u("set_view_mode",{mode:0})}return O}()}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"check-square-o":"square-o",selected:C,content:"Expanded",onClick:function(){function O(){return u("set_view_mode",{mode:1})}return O}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:v.map(function(O){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&N===O,onClick:function(){function R(){D(O)}return R}(),children:O.category},O)})}),A.map(function(O,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:O.name}),g.includes(O.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:O.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:O.cost>i||g.includes(O.power_path),content:"Evolve",onClick:function(){function j(){return u("purchase",{power_path:O.power_path})}return j}()})})]}),!!C&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:O.description+" "+O.helptext})]},R)})]})})}},37504:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),f=n(24674),V=n(99509),k=n(45493),S=["id","amount","lineDisplay","onClick"];function y(g,C){if(g==null)return{};var h={},N=Object.keys(g),b,B;for(B=0;B=0)&&(h[b]=g[b]);return h}var p=2e3,d={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),I&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return g}(),m=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,i,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},l=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],M=x[1],D=(0,t.createSearch)(E,function(R){return R.name}),O=T.filter(D);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function R(j){return b("category",{cat:j})}return R}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return b("queueall")}return R}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return b("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(j,F){return M(F)}return R}()}),O.map(function(R){return(0,e.createComponentVNode)(2,v,{design:R},R.id)}),O.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},s=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return b("queueswap",{from:E+1,to:E})}return M}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},i=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=C.id,w=C.amount,T=C.lineDisplay,A=C.onClick,x=y(C,S),E=B.materials[I]||0,M=w||E;if(!(M<=0&&!(I==="metal"||I==="glass"))){var D=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:D&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/p*10)/10," ","sheets)"]})]})],4)})))}},v=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=C.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return b("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},9466:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),V=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.open,u=m.feedback,s=m.occupant,i=m.occupant_name,v=m.occupant_status,g=function(){function h(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function B(){return f.get(v)}return B}(),b=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.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:V.get(B).icon,content:V.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return h}(),C=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:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function h(){return c("door")}return h}()}),children:C})]})})}return S}()},77284:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=0,V=1013,k=function(p){var d="good",c=80,m=95,l=110,u=120;return pl?d="average":p>u&&(d="bad"),d},S=r.ExternalAirlockController=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.chamber_pressure,s=l.exterior_status,i=l.interior_status,v=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:k(u),value:u,minValue:f,maxValue:V,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function 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:v,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:v,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:i==="open"?"red":v?"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:i==="open"?"red":v?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return y}()},52516:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FaxMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.scan_name?"eject":"id-card",selected:d.scan_name,content:d.scan_name?d.scan_name:"-----",tooltip:d.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.authenticated?"sign-out-alt":"id-card",selected:d.authenticated,disabled:d.nologin,content:d.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("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:d.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d.paper?"eject":"paperclip",disabled:!d.authenticated&&!d.paper,content:d.paper?d.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!d.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:d.destination?d.destination:"-----",disabled:!d.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:d.sendError?d.sendError:"Send",disabled:!d.paper||!d.destination||!d.authenticated||d.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return V}()},24777:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FilingCabinet=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=y.config,m=d.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(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return p("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return V}()},88361:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=S.image,l=S.isSelected,u=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":l&&"solid"||"none","border-width":"2px","border-color":"orange",padding:l&&"2px"||"4px"},onClick:u})},V=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.availableStyles,l=c.selectedStyle,u=c.selectedDir,s=c.directionsPreview,i=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return d("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:l,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(g){return d("select_style",{style:g})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return d("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:i[v],isSelected:l===v,onSelect:function(){function g(){return d("select_style",{style:v})}return g}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:s[g],isSelected:g===u,onSelect:function(){function C(){return d("select_direction",{direction:g})}return C}()})},g)})},v)})})})})]})})})}return k}()},70078:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=function(l){return l?"("+l.join(", ")+")":"ERROR"},k=function(l,u){if(!(!l||!u)){if(l[2]!==u[2])return null;var s=Math.atan2(u[1]-l[1],u[0]-l[0]),i=Math.sqrt(Math.pow(u[1]-l[1],2)+Math.pow(u[0]-l[0],2));return{angle:(0,a.rad2deg)(s),distance:i}}},S=r.GPS=function(){function m(l,u){var s=(0,t.useBackend)(u),i=s.data,v=i.emped,g=i.active,C=i.area,h=i.position,N=i.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:v?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{area:C,position:h})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{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,y)],0)})})})}return m}(),y=function(l,u){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."]})})})})},p=function(l,u){var s=(0,t.useBackend)(u),i=s.act,v=s.data,g=v.active,C=v.tag,h=v.same_z,N=(0,t.useLocalState)(u,"newTag",C),b=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 I(){return i("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:C,onEnter:function(){function I(){return i("tag",{newtag:b})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return i("tag",{newtag:b})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function I(){return i("same_z")}return I}()})})]})})},d=function(l,u){var s=l.title,i=l.area,v=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[i&&(0,e.createFragment)([i,(0,e.createVNode)(1,"br")],0),V(v)]})})},c=function(l,u){var s=(0,t.useBackend)(u),i=s.data,v=i.position,g=i.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(C){return Object.assign({},C,k(v,C.position))}).map(function(C,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:C.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:C.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:C.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(C.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:C.distance>0?"arrow-right":"circle",rotation:-C.angle}),"\xA0",Math.floor(C.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:V(C.position)})]},h)})})})))}},92246:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(99665),f=n(45493),V=r.GeneModder=function(){function l(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!C||!C.can_insert||C.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return v("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})},S=function(u,s){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},y=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.has_seed,h=g.seed,N=g.has_disk,b=g.disk,B,I;return C?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return v("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return v("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return v("eject_seed")}return w}()})}),N?I=b.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return v("eject_disk")}return w}()})})})]})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[h.map(function(N){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(C!=null&&C.can_extract),icon:"save",onClick:function(){function b(){return v("extract",{id:N.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!N.is_type||!C.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return v("replace",{id:N.id})}return b}()})})]},N)})," ",(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:!(C!=null&&C.can_extract),icon:"save",onClick:function(){function N(){return v("bulk_extract_core")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",disabled:!(C!=null&&C.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return v("bulk_replace_core")}return N}()})})]})]},"Core Genes")},d=function(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.reagent_genes,C=v.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:C})},c=function(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.trait_genes,C=v.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:C})},m=function(u,s){var i=u.title,v=u.gene_set,g=u.do_we_show,C=(0,a.useBackend)(s),h=C.act,N=C.data,b=N.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:i,open:!0,children:g?v.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function I(){return h("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return h("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},i)}},27163:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),f=r.GenericCrewManifest=function(){function V(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return V}()},53808:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GhostHudPanel=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.data,c=d.security,m=d.medical,l=d.diagnostic,u=d.radioactivity,s=d.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,V,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,V,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,V,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Radioactivity",type:"radioactivity",is_active:u,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=S.label,m=S.type,l=m===void 0?null:m,u=S.is_active,s=S.act_on,i=s===void 0?"hud_on":s,v=S.act_off,g=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function C(){return d(u?g:i,{hud_type:l})}return C}()})})]})}},32035:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GlandDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.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 u(){return p("dispense",{gland_id:l.id})}return u}()},l.id)})})})})}return V}()},33004:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GravityGen=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.charging_state,m=d.charge_count,l=d.breaker,u=d.ext_power,s=function(){function v(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:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return v}(),i=function(){function v(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 v}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[i(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 v(){return p("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(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 V}()},39775:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.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 d("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 d("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 d("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 d("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 d("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 d("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return d("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(l){return d("access",{access:l})}return m}(),grantAll:function(){function m(){return d("grant_all")}return m}(),denyAll:function(){function m(){return d("clear_all")}return m}(),grantDep:function(){function m(l){return d("grant_region",{region:l})}return m}(),denyDep:function(){function m(l){return d("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 d("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 k}()},22480:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[1,5,10,20,30,50],V=null,k=r.HandheldChemDispenser=function(){function p(d,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,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.amount,i=u.energy,v=u.maxEnergy,g=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[i," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(C,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===C,content:C,onClick:function(){function N(){return l("amount",{amount:C})}return N}()})},h)})})}),(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 C(){return l("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return l("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return l("mode",{mode:"isolate"})}return C}()})]})})]})})})},y=function(d,c){for(var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.chemicals,i=s===void 0?[]:s,v=u.current_reagent,g=[],C=0;C<(i.length+1)%3;C++)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:u.glass?"Drink Selector":"Chemical Selector",children:[i.map(function(h,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return l("dispense",{reagent:h.id})}return b}()},N)}),g.map(function(h,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},22616:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.HealthSensor=function(){function S(y,p){var d=(0,t.useBackend)(p),c=d.act,m=d.data,l=m.on,u=m.user_health,s=m.minHealth,i=m.maxHealth,v=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content: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:i,value:v,format:function(){function g(C){return(0,a.toFixed)(C,1)}return g}(),width:"80px",onDrag:function(){function g(C,h){return c("alarm_health",{alarm_health:h})}return g}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},76861:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Holodeck=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=(0,a.useLocalState)(y,"currentDeck",""),l=m[0],u=m[1],s=(0,a.useLocalState)(y,"showReload",!1),i=s[0],v=s[1],g=c.decks,C=c.ai_override,h=c.emagged,N=function(){function b(B){d("select_deck",{deck:B}),u(B),v(!0),setTimeout(function(){v(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[i&&(0,e.createComponentVNode)(2,V),(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(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===l,onClick:function(){function B(){return N(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return d("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return d("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),V=function(S,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},96729:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Instrument=function(){function d(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return d}(),k=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.help;if(i)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.createTextVNode)(" "),(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.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return u("help")}return v}()})]})})})},S=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.lines,v=s.playing,g=s.repeat,C=s.maxRepeats,h=s.tempo,N=s.minTempo,b=s.maxTempo,B=s.tickLag,I=s.volume,w=s.minVolume,T=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:i.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:g,stepPixelSize:59,onChange:function(){function x(E,M){return u("repeat",{new:M})}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:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,M){return u("setvolume",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,y)]})},y=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.allowedInstrumentNames,v=s.instrumentLoaded,g=s.instrument,C=s.canNoteShift,h=s.noteShift,N=s.noteShiftMin,b=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,w=s.sustainExponentialDropoff,T=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,M;return B===1?(E="Linear",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function D(O){return(0,a.round)(O*100)/100+" seconds"}return D}(),onChange:function(){function D(O,R){return u("setlinearfalloff",{new:R/10})}return D}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function D(O){return(0,a.round)(O*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(O,R){return u("setexpfalloff",{new:R})}return D}()})),i.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:i,selected:g,width:"50%",onSelected:function(){function D(O){return u("switchinstrument",{name:O})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&C)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:N,maxValue:b,value:h,stepPixelSize:2,format:function(){function D(O){return O+" keys / "+(0,a.round)(O/12*100)/100+" octaves"}return D}(),onChange:function(){function D(O,R){return u("setnoteshift",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function D(O){return u("setsustainmode",{new:O})}return D}()}),M]}),(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(O,R){return u("setdropoffvolume",{new:R})}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 u("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return u("reset")}return D}()})]})})})},p=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.playing,v=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||i,icon:"plus",content:"Add Line",onClick:function(){function C(){return u("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function C(){return u("edit")}return C}()})],4),children:!!g&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"pen",onClick:function(){function N(){return u("modifyline",{line:h+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"trash",onClick:function(){function N(){return u("deleteline",{line:h+1})}return N}()})],4),children:C},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},53385:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.KeycardAuth=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.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(!d.swiping&&!d.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:!d.redAvailable,onClick:function(){function l(){return p("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 p("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 p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("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 p("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 p("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!d.hasSwiped&&!d.ertreason&&d.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):d.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):d.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):d.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,d.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:d.ertreason?"":"red",icon:d.ertreason?"check":"pencil-alt",content:d.ertreason?d.ertreason:"-----",disabled:d.busy,onClick:function(){function l(){return p("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:d.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:d.busy||d.hasConfirm,onClick:function(){function l(){return p("reset")}return l}()}),children:m})]})})}return V}()},58553:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.KitchenMachine=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.data,m=d.config,l=c.ingredients,u=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,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:l.map(function(i){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:i.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[i.amount," ",i.units]}),2)]},i.name)})})})})]})})})}return S}(),k=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:l,tooltip:l?u:"",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?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},14047:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.LawManager=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.isAdmin,s=l.isSlaved,i=l.isMalf,v=l.isAIMalf,g=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:i?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(i||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function C(){return m("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function C(){return m("set_view",{set_view:1})}return C}()})]}),g===0&&(0,e.createComponentVNode)(2,V),g===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),V=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.has_zeroth_laws,s=l.zeroth_laws,i=l.has_ion_laws,v=l.ion_laws,g=l.ion_law_nr,C=l.has_inherent_laws,h=l.inherent_laws,N=l.has_supplied_laws,b=l.supplied_laws,B=l.channels,I=l.channel,w=l.isMalf,T=l.isAdmin,A=l.zeroth_law,x=l.ion_law,E=l.inherent_law,M=l.supplied_law,D=l.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:d}),!!i&&(0,e.createComponentVNode)(2,S,{title:g,laws:v,ctx:d}),!!C&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:d}),!!N&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:d}),(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(O){return(0,e.createComponentVNode)(2,t.Button,{content:O.channel,selected:O.channel===I,onClick:function(){function R(){return m("law_channel",{law_channel:O.channel})}return R}()},O.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function O(){return m("state_laws")}return O}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function O(){return m("notify_laws")}return O}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function O(){return m("change_zeroth_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_zeroth_law")}return O}()})]})]}),(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 O(){return m("change_ion_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_ion_law")}return O}()})]})]}),(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 O(){return m("change_inherent_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_inherent_law")}return O}()})]})]}),(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:M}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function O(){return m("change_supplied_law_position")}return O}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function O(){return m("change_supplied_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_supplied_law")}return O}()})]})]})]})})],0)},k=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function i(){return m("transfer_laws",{transfer_laws:s.ref})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)})]})},s.name)})})},S=function(p,d){var c=(0,a.useBackend)(p.ctx),m=c.act,l=c.data,u=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.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?"})]}),p.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 i(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return i}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function i(){return m("edit_law",{edit_law:s.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function i(){return m("delete_law",{delete_law:s.ref})}return i}()})],4)]})]},s.law)})]})})}},5872:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryComputer=function(){function g(C,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),k=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=C.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:I.id})}return T}()})]})},S=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=C.args,w=B.selected_report,T=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:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function M(){return b("set_report",{report_type:x.category_id})}return M}()}),(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 b("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},y=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=C.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},d=function(C,h){var N=(0,a.useBackend)(h),b=N.data,B=(0,a.useLocalState)(h,"tabIndex",0),I=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(C,h){var N=(0,a.useLocalState)(h,"tabIndex",0),b=N[0];switch(b){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,i);case 4:return(0,e.createComponentVNode)(2,v);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.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:I.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:I.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:I.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:I.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.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 b("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 b("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},l=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.external_booklist,w=B.archive_pagenumber,T=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:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("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"})]}),I.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 b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},u=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.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:I.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:I.copyright,content:I.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("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:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},i=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.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:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},v=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},37782:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryManager=function(){function d(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return d}(),k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.pagestate;switch(i){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var l=(0,a.useBackend)(m),u=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 i(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return i}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_search")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function i(){return u("view_reported_books")}return i}()})]})},y=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return u("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return u("delete_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return u("unflag_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return u("view_book",{bookid:v.id})}return g}()})]})]},v.id)})]})})},p=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.ckey,v=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",i,(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 u("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"})]}),v.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 C(){return u("delete_book",{bookid:g.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:g.id})}return C}()})]})]},g.id)})]})})}},26133:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),f=n(17899),V=n(68100),k=n(45493),S=r.ListInputModal=function(){function d(c,m){var l=(0,f.useBackend)(m),u=l.act,s=l.data,i=s.items,v=i===void 0?[]:i,g=s.message,C=g===void 0?"":g,h=s.init_value,N=s.timeout,b=s.title,B=(0,f.useLocalState)(m,"selected",v.indexOf(h)),I=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),M=E[0],D=E[1],O=function(){function Y(X){var J=z.length-1;if(X===V.KEY_DOWN)if(I===null||I===J){var le;w(0),(le=document.getElementById("0"))==null||le.scrollIntoView()}else{var ce;w(I+1),(ce=document.getElementById((I+1).toString()))==null||ce.scrollIntoView()}else if(X===V.KEY_UP)if(I===null||I===0){var fe;w(J),(fe=document.getElementById(J.toString()))==null||fe.scrollIntoView()}else{var pe;w(I-1),(pe=document.getElementById((I-1).toString()))==null||pe.scrollIntoView()}}return Y}(),R=function(){function Y(X){X!==I&&w(X)}return Y}(),j=function(){function Y(){x(!1),x(!0)}return Y}(),F=function(){function Y(X){var J=String.fromCharCode(X),le=v.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(le){var ce,fe=v.indexOf(le);w(fe),(ce=document.getElementById(fe.toString()))==null||ce.scrollIntoView()}}return Y}(),U=function(){function Y(X){var J;X!==M&&(D(X),w(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return Y}(),K=function(){function Y(){x(!A),D("")}return Y}(),z=v.filter(function(Y){return Y==null?void 0:Y.toLowerCase().includes(M.toLowerCase())}),$=330+Math.ceil(C.length/3);return A||setTimeout(function(){var Y;return(Y=document.getElementById(I.toString()))==null?void 0:Y.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:$,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function Y(X){var J=window.event?X.which:X.keyCode;(J===V.KEY_DOWN||J===V.KEY_UP)&&(X.preventDefault(),O(J)),J===V.KEY_ENTER&&(X.preventDefault(),u("submit",{entry:z[I]})),!A&&J>=V.KEY_A&&J<=V.KEY_Z&&(X.preventDefault(),F(J)),J===V.KEY_ESCAPE&&(X.preventDefault(),u("cancel"))}return Y}(),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 Y(){return K()}return Y}()}),className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{filteredItems:z,onClick:R,onFocusSearch:j,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:z,onSearch:U,searchQuery:M,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[I]})})]})})})]})}return d}(),y=function(c,m){var l=(0,f.useBackend)(m),u=l.act,s=c.filteredItems,i=c.onClick,v=c.onFocusSearch,g=c.searchBarVisible,C=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(h,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function b(){return i(N)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),u("submit",{entry:s[C]})}return b}(),onKeyDown:function(){function b(B){var I=window.event?B.which:B.keyCode;g&&I>=V.KEY_A&&I<=V.KEY_Z&&(B.preventDefault(),v())}return b}(),selected:N===C,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},N)})})},p=function(c,m){var l=(0,f.useBackend)(m),u=l.act,s=c.filteredItems,i=c.onSearch,v=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(h){h.preventDefault(),u("submit",{entry:s[g]})}return C}(),onInput:function(){function C(h,N){return i(N)}return C}(),placeholder:"Search...",value:v})}},71963:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(O,R){return M("configure",{key:T,value:R,ref:x})}return D}()})},V=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function D(){return M("configure",{key:T,value:!A,ref:x})}return D}()})},k=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return M("configure",{key:T,ref:x})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,M=(0,a.useBackend)(w),D=M.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function O(R){return D("configure",{key:T,value:R,ref:E})}return O}()})},y=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,M=I.values,D=I.module_ref,O={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",O[x]]})},p=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,M=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&M?"bad":"good",bold:!0,children:T&&M?M:0})})]})},d=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,M=I.userburn,D=I.usertoxin,O=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?O/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?O:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,M=I.statusmaxhealth,D=I.statusbrute,O=I.statusburn,R=I.statustoxin,j=I.statusoxy,F=I.statustemp,U=I.statusnutrition,K=I.statusfingerprints,z=I.statusdna,$=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/M:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?O/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?O:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?U:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?z:"???"})]})}),!!T&&!!$&&(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"})})]}),$.map(function(Y){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[Y.stage,"/",Y.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.cure})]},Y.name)})]})})],0)},m={rad_counter:p,health_analyzer:d,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"})]})},u=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var M=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:M.display_name,type:M.type,value:M.value,values:M.values,module_ref:A})},M.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},i=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.malfunctioning,D=x.locked,O=x.open,R=x.selected_module,j=x.complexity,F=x.complexity_max,U=x.wearer_name,K=x.wearer_job,z=M?"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 $(){return A("activate")}return $}()}),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 $(){return A("lock")}return $}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:O?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[U,", ",K]})]})})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.control,D=x.helmet,O=x.chestplate,R=x.gauntlets,j=x.boots,F=x.core,U=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:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:O||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:U/100,content:U+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.modules,D=M.filter(function(O){return!!O.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(O){var R=m[O.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},O,{active:E})))]},O.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,D=(0,a.useLocalState)(w,"module_configuration",null),O=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:M.length!==0&&M.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[O===j.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function F(){return R(null)}return F}()}),(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:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:j.ref})}return F}(),icon:"bullseye",selected:j.module_active,tooltip:i(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return R(j.ref)}return F}(),icon:"cog",selected:O===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:j.ref})}return F}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.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(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!M,children:!!M&&(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,v)}),(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,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=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}()},84274:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=n(99665),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function y(p,d){var c=(0,t.useBackend)(d),m=c.act,l=c.data,u=l.autolink,s=l.code,i=l.frequency,v=l.linkedMagnets,g=l.magnetConfiguration,C=l.path,h=l.pathPosition,N=l.probing,b=l.powerState,B=l.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:N?"spinner":"sync",iconSpin:!!N,disabled:N,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(i/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:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return m("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,V.modalOpen)(d,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:C.map(function(I,w){var T=k.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),v.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function M(){return m("toggle_magnet_power",{id:T})}return M}()}),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 M(D,O){return m("set_electricity_level",{id:T,electricityLevel:O})}return M}()})}),(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 M(D,O){return m("set_magnetic_field",{id:T,magneticField:O})}return M}()})})]})},T)})]})]})}return y}()},95752:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.MechBayConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.recharge_port,m=c&&c.mech,l=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return p("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 V}()},53668:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=n(78234),k=r.MechaControlConsole=function(){function S(y,p){var d=(0,t.useBackend)(p),c=d.act,m=d.data,l=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,V.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children: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 i(){return c("send_message",{mt:s.uid})}return i}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function i(){return c("get_log",{mt:s.uid})}return i}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function i(){return c("shock",{mt:s.uid})}return i}()})],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,V.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},96467:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(99665),V=n(45493),k=n(68159),S=n(27527),y=n(84537),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},d={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,f.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function T(A,x){var E=(0,t.useBackend)(x),M=E.data,D=M.loginState,O=M.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return O===2?R=(0,e.createComponentVNode)(2,u):O===3?R=(0,e.createComponentVNode)(2,s):O===4?R=(0,e.createComponentVNode)(2,i):O===5?R=(0,e.createComponentVNode)(2,h):O===6?R=(0,e.createComponentVNode)(2,N):O===7&&(R=(0,e.createComponentVNode)(2,b)),(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,w),R]})})]})}return T}(),u=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.records,R=(0,t.useLocalState)(x,"searchText",""),j=R[0],F=R[1],U=(0,t.useLocalState)(x,"sortId","name"),K=U[0],z=U[1],$=(0,t.useLocalState)(x,"sortOrder",!0),Y=$[0],X=$[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 M("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(le,ce){return F(ce)}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"})]}),O.filter((0,a.createSearch)(j,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,le){var ce=Y?1:-1;return J[K].localeCompare(le[K])*ce}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+d[J.p_stat],onClick:function(){function le(){return M("view_record",{view_record:J.ref})}return le}(),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),M=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,lineHeight:3,color:"translucent",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,lineHeight:3,color:"translucent",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,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function D(){return M("del_all_med_records")}return D}()})})]})})},i=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.medical,R=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:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function j(){return M("print_record")}return j}()}),children:(0,e.createComponentVNode)(2,v)})}),!O||!O.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 j(){return M("new_med_record")}return j}()}),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:!!O.empty,content:"Delete Medical Record",onClick:function(){function j(){return M("del_med_record")}return j}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(A,x){var E=(0,t.useBackend)(x),M=E.data,D=M.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(O,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:O.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:O.value}),!!O.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(x,O)}return j}()})]},R)})})}),!!D.has_photos&&D.photos.map(function(O,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:O,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},g=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.medical;return!O||!O.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:O.fields.map(function(R,j){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function F(){return c(x,R)}return F}()})]},j)})})})})},C=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=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 R(){return(0,f.modalOpen)(x,"add_comment")}return R}()}),children:O.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):O.comments.map(function(R,j){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return M("del_comment",{del_comment:j+1})}return F}()})]},j)})})})},h=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.virus,R=(0,t.useLocalState)(x,"searchText",""),j=R[0],F=R[1],U=(0,t.useLocalState)(x,"sortId2","name"),K=U[0],z=U[1],$=(0,t.useLocalState)(x,"sortOrder2",!0),Y=$[0],X=$[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(le,ce){return F(ce)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),O.filter((0,a.createSearch)(j,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,le){var ce=Y?1:-1;return J[K].localeCompare(le[K])*ce}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function le(){return M("vir",{vir:J.D})}return le}(),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:p[J.severity],children:J.severity})]},J.id)})]})})})})],4)},N=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=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:O.length!==0&&O.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},b=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.medbots;return O.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"})]}),O.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),M=E[0],D=E[1],O=(0,t.useLocalState)(x,"sortOrder",!0),R=O[0],j=O[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function K(){M===F?j(!R):(D(F),j(!0))}return K}(),children:[U,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),M=E[0],D=E[1],O=(0,t.useLocalState)(x,"sortOrder2",!0),R=O[0],j=O[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function K(){M===F?j(!R):(D(F),j(!0))}return K}(),children:[U,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},w=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.screen,R=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:O===2,onClick:function(){function j(){M("screen",{screen:2})}return j}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:O===5,onClick:function(){function j(){M("screen",{screen:5})}return j}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:O===6,onClick:function(){function j(){M("screen",{screen:6})}return j}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:O===7,onClick:function(){function j(){return M("screen",{screen:7})}return j}(),children:"Medibot Tracking"}),O===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:O===3,children:"Record Maintenance"}),O===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:O===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},68211:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=p.product,s=p.productImage,i=p.productCategory,v=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:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>v,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:u.name,category:i})}return g}()})})]})},V=function(p,d){var c=(0,a.useBackend)(d),m=c.data,l=(0,a.useLocalState)(d,"tabIndex",1),u=l[0],s=m.products,i=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[v[u]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:i[g.path],productCategory:v[u]},g.name)})})},k=r.MerchVendor=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=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 i(){return m("change")}return i}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,V)]})})]})})})}return y}(),S=function(p,d){var c=(0,a.useBackend)(d),m=c.data,l=(0,a.useLocalState)(d,"tabIndex",1),u=l[0],s=l[1],i=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function v(){return s(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function v(){return s(2)}return v}(),children:"Decorations"})]})}},14162:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=["title","items"];function k(l,u){if(l==null)return{};var s={},i=Object.keys(l),v,g;for(g=0;g=0)&&(s[v]=l[v]);return s}var S={Alphabetical:function(){function l(u,s){return u-s}return l}(),Availability:function(){function l(u,s){return-(u.affordable-s.affordable)}return l}(),Price:function(){function l(u,s){return u.price-s.price}return l}()},y=r.MiningVendor=function(){function l(u,s){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,d)]})})})}return l}(),p=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.has_id,h=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return v("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},d=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.has_id,h=g.id,N=g.items,b=(0,t.useLocalState)(s,"search",""),B=b[0],I=b[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(s,"descending",!1),E=x[0],M=x[1],D=(0,a.createSearch)(B,function(j){return j[0]}),O=!1,R=Object.entries(N).map(function(j,F){var U=Object.entries(j[1]).filter(D).map(function(K){return K[1].affordable=C&&h.points>=K[1].price,K[1]}).sort(S[T]);if(U.length!==0)return E&&(U=U.reverse()),O=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:U},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(u,s){var i=(0,t.useLocalState)(s,"search",""),v=i[0],g=i[1],C=(0,t.useLocalState)(s,"sort",""),h=C[0],N=C[1],b=(0,t.useLocalState)(s,"descending",!1),B=b[0],I=b[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 w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return N(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},m=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=u.title,h=u.items,N=k(u,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},N,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points=0)&&(T[x]=I[x]);return T}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"}},u=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.is_security,D=E.is_admin,O=E.is_silent,R=E.is_printing,j=E.screen,F=E.channels,U=E.channel_idx,K=U===void 0?-1:U,z=(0,t.useLocalState)(T,"menuOpen",!1),$=z[0],Y=z[1],X=(0,t.useLocalState)(T,"viewingPhoto",""),J=X[0],le=X[1],ce=(0,t.useLocalState)(T,"censorMode",!1),fe=ce[0],pe=ce[1],be;j===0||j===2?be=(0,e.createComponentVNode)(2,i):j===1&&(be=(0,e.createComponentVNode)(2,v));var te=F.reduce(function(Q,ne){return Q+ne.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:M&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,V.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",$&&"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 Q(){return Y(!$)}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function Q(){return x("headlines")}return Q}(),children:te>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:te>=10?"9+":te})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function Q(){return x("jobs")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(Q){return(0,e.createComponentVNode)(2,s,{icon:Q.icon,title:Q.name,selected:j===2&&F[K-1]===Q,onClick:function(){function ne(){return x("channel",{uid:Q.uid})}return ne}(),children:Q.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Q.unread>=10?"9+":Q.unread})},Q)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!M||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Q(){return(0,k.modalOpen)(T,"wanted_notice")}return Q}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:fe?"minus-square":"minus-square-o",title:"Censor Mode: "+(fe?"On":"Off"),mb:"0.5rem",onClick:function(){function Q(){return pe(!fe)}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Q(){return(0,k.modalOpen)(T,"create_story")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function Q(){return(0,k.modalOpen)(T,"create_channel")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function Q(){return x("print_newspaper")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:O?"volume-mute":"volume-up",title:"Mute: "+(O?"On":"Off"),onClick:function(){function Q(){return x("toggle_mute")}return Q}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),be]})]})})]})}return I}(),s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,M=E===void 0?"":E,D=w.iconSpin,O=w.selected,R=O===void 0?!1:O,j=w.security,F=j===void 0?!1:j,U=w.onClick,K=w.title,z=w.children,$=d(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:U},$,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:M,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),z]})))},i=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,D=E.is_admin,O=E.channel_idx,R=E.channel_can_manage,j=E.channels,F=E.stories,U=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),z=K[0],$=K[1],Y=(0,t.useLocalState)(T,"censorMode",!1),X=Y[0],J=Y[1],le=M===2&&O>-1?j[O-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,g,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:le?le.icon:"newspaper",mr:"0.5rem"}),le?le.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ce){return!z.includes(ce.uid)&&ce.body.length+3>c?Object.assign({},ce,{body_short:ce.body.substr(0,c-4)+"..."}):ce}).map(function(ce,fe){return(0,e.createComponentVNode)(2,g,{story:ce},fe)}):(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."]})}),!!le&&(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)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!le.admin&&!D,selected:le.censored,icon:le.censored?"comment-slash":"comment",content:le.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ce(){return x("censor_channel",{uid:le.uid})}return ce}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ce(){return(0,k.modalOpen)(T,"manage_channel",{uid:le.uid})}return ce}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:le.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:le.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:le.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:le.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"}),F.reduce(function(ce,fe){return ce+fe.view_count},0).toLocaleString()]})]})})]})},v=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.jobs,D=E.wanted,O=Object.entries(M).reduce(function(R,j){var F=j[0],U=j[1];return R+U.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:O>0?m.map(function(R){return Object.assign({},l[R],{id:R,jobs:M[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=w.story,D=w.wanted,O=D===void 0?!1:D,R=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),F=j[0],U=j[1],K=(0,t.useLocalState)(T,"censorMode",!1),z=K[0],$=K[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",O&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([O&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),M.censor_flags&2&&"[REDACTED]"||M.title||"News from "+M.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!O&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:M.censor_flags&2,icon:M.censor_flags&2?"comment-slash":"comment",content:M.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function Y(){return x("censor_story",{uid:M.uid})}return Y}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",M.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),M.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!O&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),M.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(M.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:M.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!M.has_photo&&(0,e.createComponentVNode)(2,C,{name:"story_photo_"+M.uid+".png",float:"right",ml:"0.5rem"}),(M.body_short||M.body).split("\n").map(function(Y,X){return(0,e.createComponentVNode)(2,o.Box,{children:Y||(0,e.createVNode)(1,"br")},X)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function Y(){return U([].concat(F,[M.uid]))}return Y}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(w,T){var A=w.name,x=d(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),M=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 O(){return D(A)}return O}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function M(){return E("")}return M}()})]})},N=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!w.args.uid&&E.channels.filter(function(ae){return ae.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!M){(0,k.modalClose)(T);return}var D=w.id==="manage_channel",O=!!w.args.is_admin,R=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),F=j[0],U=j[1],K=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),z=K[0],$=K[1],Y=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),X=Y[0],J=Y[1],le=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),ce=le[0],fe=le[1],pe=(0,t.useLocalState)(T,"isPublic",D?!!(M!=null&&M.public):!1),be=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),ne=Q[0],me=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+M.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:!O,width:"100%",value:F,onInput:function(){function ae(ue,oe){return U(oe)}return ae}()})}),(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 ae(ue,oe){return $(oe)}return ae}()})}),(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:X,onInput:function(){function ae(ue,oe){return J(oe)}return ae}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!O,value:ce,width:"35%",mr:"0.5rem",onInput:function(){function ae(ue,oe){return fe(oe)}return ae}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ce,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:be,icon:be?"toggle-on":"toggle-off",content:be?"Yes":"No",onClick:function(){function ae(){return te(!be)}return ae}()})}),O&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ae(){return me(!ne)}return ae}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ae(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:z.substr(0,49),description:X.substr(0,128),icon:ce,public:be?1:0,admin_locked:ne?1:0})}return ae}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,D=E.channels,O=E.channel_idx,R=O===void 0?-1:O,j=!!w.args.is_admin,F=w.args.scanned_user,U=D.slice().sort(function(ae,ue){if(R<0)return 0;var oe=D[R-1];if(oe.uid===ae.uid)return-1;if(oe.uid===ue.uid)return 1}).filter(function(ae){return j||!ae.frozen&&(ae.author===F||!!ae.public)}),K=(0,t.useLocalState)(T,"author",F||"Unknown"),z=K[0],$=K[1],Y=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),X=Y[0],J=Y[1],le=(0,t.useLocalState)(T,"title",""),ce=le[0],fe=le[1],pe=(0,t.useLocalState)(T,"body",""),be=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",!1),ne=Q[0],me=Q[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:!j,width:"100%",value:z,onInput:function(){function ae(ue,oe){return $(oe)}return ae}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:U.map(function(ae){return ae.name}),mb:"0",width:"100%",onSelected:function(){function ae(ue){return J(ue)}return ae}()})}),(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:ce,onInput:function(){function ae(ue,oe){return fe(oe)}return ae}()})}),(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:be,onInput:function(){function ae(ue,oe){return te(oe)}return ae}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function ae(){return x(M?"eject_photo":"attach_photo")}return ae}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ce,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!M&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+M.uid+".png",float:"right"}),be.split("\n").map(function(ae,ue){return(0,e.createComponentVNode)(2,o.Box,{children:ae||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ae(){return me(!ne)}return ae}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||X.trim().length===0||ce.trim().length===0||be.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ae(){(0,k.modalAnswer)(T,"create_story","",{author:z,channel:X,title:ce.substr(0,127),body:be.substr(0,1023),admin_locked:ne?1:0})}return ae}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,D=E.wanted,O=!!w.args.is_admin,R=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(D==null?void 0:D.author)||R||"Unknown"),F=j[0],U=j[1],K=(0,t.useLocalState)(T,"name",(D==null?void 0:D.title.substr(8))||""),z=K[0],$=K[1],Y=(0,t.useLocalState)(T,"description",(D==null?void 0:D.body)||""),X=Y[0],J=Y[1],le=(0,t.useLocalState)(T,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),ce=le[0],fe=le[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:!O,width:"100%",value:F,onInput:function(){function pe(be,te){return U(te)}return pe}()})}),(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 pe(be,te){return $(te)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function pe(be,te){return J(te)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function pe(){return x(M?"eject_photo":"attach_photo")}return pe}()}),!!M&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+M.uid+".png",float:"right"})]}),O&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ce,icon:ce?"lock":"lock-open",content:ce?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function pe(){return fe(!ce)}return pe}()})})]})}),(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 pe(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return pe}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function pe(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:z.substr(0,127),description:X.substr(0,511),admin_locked:ce?1:0})}return pe}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",N),(0,k.modalRegisterBodyOverride)("manage_channel",N),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},26148:function(L,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=r.Noticeboard=function(){function k(S,y){var p=(0,t.useBackend)(y),d=p.act,c=p.data,m=c.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(l){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return d("interact",{paper:l.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),d("showFull",{paper:l.ref})}return u}(),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 k}()},46940:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.NuclearBomb=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;return d.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:d.authdisk?"eject":"id-card",selected:d.authdisk,content:d.diskname?d.diskname:"-----",tooltip:d.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!d.authdisk,selected:d.authcode,content:d.codemsg,onClick:function(){function c(){return p("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:d.anchored?"check":"times",selected:d.anchored,disabled:!d.authdisk,content:d.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:d.time,disabled:!d.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.safety?"check":"times",selected:d.safety,disabled:!d.authfull,content:d.safety?"ON":"OFF",tooltip:d.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(d.timer,"bomb"),disabled:d.safety||!d.authfull,color:"red",content:d.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("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 p("deploy")}return c}()})})})})}return V}()},35478:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),f=n(17899),V=n(24674),k=n(45493),S=r.NumberInputModal=function(){function p(d,c){var m=(0,f.useBackend)(c),l=m.act,u=m.data,s=u.init_value,i=u.large_buttons,v=u.message,g=v===void 0?"":v,C=u.timeout,h=u.title,N=(0,f.useLocalState)(c,"input",s),b=N[0],B=N[1],I=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=140+Math.max(Math.ceil(g.length/3),g.length>0&&i?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&l("submit",{entry:b}),E===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(d,c){var m=(0,f.useBackend)(c),l=m.act,u=m.data,s=u.min_value,i=u.max_value,v=u.init_value,g=u.round_value,C=d.input,h=d.onClick,N=d.onChange,b=Math.round(C!==s?Math.max(C/2,s):i/2),B=C===s&&s>0||C===1;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===s,icon:"angle-double-left",onClick:function(){function I(){return h(s)}return I}(),tooltip:C===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:s,maxValue:i,onChange:function(){function I(w,T){return N(T)}return I}(),onEnter:function(){function I(w,T){return l("submit",{entry:T})}return I}(),value:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===i,icon:"angle-double-right",onClick:function(){function I(){return h(i)}return I}(),tooltip:C===i?"Max":"Max ("+i+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return h(b)}return I}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===v,icon:"redo",onClick:function(){function I(){return h(v)}return I}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},98476:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),f=n(24674),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function l(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.hasOccupant,h=g.choice,N;return h?N=(0,e.createComponentVNode)(2,m):N=C?(0,e.createComponentVNode)(2,d):(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,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return v("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return v("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return l}(),d=function(u,s){var i=(0,t.useBackend)(s),v=i.data,g=v.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[g.stat][0],children:V[g.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(C,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:g[C[1]]/100,ranges:S,children:(0,a.round)(g[C[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:y[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,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.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,f.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.verbose,h=g.health,N=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,I=g.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function w(){return v(C?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return v(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return v("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return v(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return v("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return v(I?"critOff":"critOn")}return w}()})})]})}},98702:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(28234);function k(i,v){var g=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(g)return(g=g.call(i)).next.bind(g);if(Array.isArray(i)||(g=S(i))||v&&i&&typeof i.length=="number"){g&&(i=g);var C=0;return function(){return C>=i.length?{done:!0}:{done:!1,value:i[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(i,v){if(i){if(typeof i=="string")return y(i,v);var g=Object.prototype.toString.call(i).slice(8,-1);if(g==="Object"&&i.constructor&&(g=i.constructor.name),g==="Map"||g==="Set")return Array.from(i);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return y(i,v)}}function y(i,v){(v==null||v>i.length)&&(v=i.length);for(var g=0,C=new Array(v);gg},m=function(v,g){var C=v.name,h=g.name;if(!C||!h)return 0;var N=C.match(p),b=h.match(p);if(N&&b&&C.replace(p,"")===h.replace(p,"")){var B=parseInt(N[1],10),I=parseInt(b[1],10);return B-I}return c(C,h)},l=function(v,g){var C=v.searchText,h=v.source,N=v.title,b=v.color,B=v.sorted,I=h.filter(d(C));return B&&I.sort(m),h.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+h.length+")",children:I.map(function(w){return(0,e.createComponentVNode)(2,u,{thing:w,color:b},w.name)})})},u=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=v.color,b=v.thing;return(0,e.createComponentVNode)(2,o.Button,{color:N,tooltip:b.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,V.classes)(["orbit_job16x16",b.assigned_role_sprite])})," ",b.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return h("orbit",{ref:b.ref})}return B}(),children:[b.name,b.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",b.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function i(v,g){for(var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.alive,B=N.antagonists,I=N.highlights,w=N.response_teams,T=N.auto_observe,A=N.dead,x=N.ghosts,E=N.misc,M=N.npcs,D=(0,t.useLocalState)(g,"searchText",""),O=D[0],R=D[1],j={},F=k(B),U;!(U=F()).done;){var K=U.value;j[K.antag]===void 0&&(j[K.antag]=[]),j[K.antag].push(K)}var z=Object.entries(j);z.sort(function(Y,X){return c(Y[0],X[0])});var $=function(){function Y(X){for(var J=0,le=[z.map(function(pe){var be=pe[0],te=pe[1];return te}),I,b,x,A,M,E];J0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:z.map(function(Y){var X=Y[0],J=Y[1];return(0,e.createComponentVNode)(2,o.Section,{title:X+" - ("+J.length+")",level:2,children:J.filter(d(O)).sort(m).map(function(le){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:le},le.name)})},X)})}),I.length>0&&(0,e.createComponentVNode)(2,l,{title:"Highlights",source:I,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,l,{title:"Response Teams",source:w,searchText:O,color:"purple"}),(0,e.createComponentVNode)(2,l,{title:"Alive",source:b,searchText:O,color:"good"}),(0,e.createComponentVNode)(2,l,{title:"Ghosts",source:x,searchText:O,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"Dead",source:A,searchText:O,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"NPCs",source:M,searchText:O,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"Misc",source:E,searchText:O,sorted:!1})]})})}return i}()},74015:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(81856);function k(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var S=(0,V.createLogger)("OreRedemption"),y=function(v){return v.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function i(v,g){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return i}(),d=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.id,B=N.points,I=N.disk,w=Object.assign({},(k(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{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:y(B)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.sheets,B=Object.assign({},(k(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},m=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.alloys,B=Object.assign({},(k(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},l=function(v,g){var C;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(C=v.columns)==null?void 0:C.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},u=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=v.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 b(B,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return b}()})})]})})},s=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",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 b(B,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return b}()})})]})})}},48824:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(70752),k=function(p){var d;try{d=V("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=d[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.app_template,s=l.app_icon,i=l.app_title,v=k(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),i,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function 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,v)})})})})})}return y}()},41565:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(59395),k=function(c){var m;try{m=V("./"+c+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw u}var l=m[c];return l||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function d(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.app,v=s.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=k(i.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:i.icon,mr:1}),i.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return d}(),y=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.idInserted,v=s.idLink,g=s.stationTime,C=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return u("Authenticate")}return h}(),content:i?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return u("Eject")}return h}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},p=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=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:[!!i.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:i.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return u("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:i.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){u("Home")}return v}()})})]})})}},78704:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(92986),V=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.active,l=c.anchored,u=c.broken,s=c.emagged,i=c.fuel_type,v=c.fuel_usage,g=c.fuel_stored,C=c.fuel_cap,h=c.is_ai,N=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/C,E=N/b,M=T*w,D=Math.round(g/v),O=Math.round(D/60),R=D>120?O+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!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 j(){return d("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(F,U){return d("change_power",{change_power:U})}return j}()}),"(",(0,f.formatPower)(M),")"]})})}),(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||h||!A,onClick:function(){function j(){return d("eject_fuel")}return j}()}),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:i}),(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:[v/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(v?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},6887:function(L,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PanDEMIC=function(){function l(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.beakerLoaded,C=v.beakerContainsBlood,h=v.beakerContainsVirus,N=v.resistances,b=N===void 0?[]:N,B;return g?C?C&&!h&&(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&&(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:B}),(b==null?void 0:b.length)>0&&(0,e.createComponentVNode)(2,m)]}),!!h&&(0,e.createComponentVNode)(2,y)]})})})}return l}(),V=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function h(){return v("eject_beaker")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!C,onClick:function(){function h(){return v("destroy_eject_beaker")}return h}()})],4)},k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.beakerContainsVirus,h=u.strain,N=h.commonName,b=h.description,B=h.diseaseAgent,I=h.bloodDNA,w=h.bloodType,T=h.possibleTreatments,A=h.transmissionRoute,x=h.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:w!=null?w:"Undetectable"}})})],4);if(!C)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var M;return x&&(N!=null&&N!=="Unknown"?M=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function D(){return v("print_release_forms",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}}):M=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function D(){return v("name_strain",{strain_index:u.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",M]})}),b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:b}),(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:T!=null?T:"None"})]})},S=function(u,s){var i,v=(0,a.useBackend)(s),g=v.act,C=v.data,h=!!C.synthesisCooldown,N=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:h?"spinner":"clone",iconSpin:h,content:"Clone",disabled:h,onClick:function(){function b(){return g("clone_strain",{strain_index:u.strainIndex})}return b}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(i=u.sectionTitle)!=null?i:"Strain Information",buttons:N,children:(0,e.createComponentVNode)(2,k,{strain:u.strain,strainIndex:u.strainIndex})})})},y=function(u,s){var i,v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.selectedStrainIndex,N=C.strains,b=N[h-1];if(N.length===0)return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),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,S,{strain:N[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,V)}),((B=N[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,d,{strain:N[0]})],0)}var I=(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:N.map(function(w,T){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:h-1===T,onClick:function(){function x(){return g("switch_strain",{strain_index:T+1})}return x}(),children:(A=w.commonName)!=null?A:"Unknown"},T)})})}),(0,e.createComponentVNode)(2,S,{strain:b,strainIndex:h}),((i=b.symptoms)==null?void 0:i.length)>0&&(0,e.createComponentVNode)(2,d,{className:"remove-section-bottom-padding",strain:b})]})})})},p=function(u){return u.reduce(function(s,i){return s+i},0)},d=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(i,v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.transmissibility})]},v)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.synthesisCooldown,h=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(b,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[B%c.length],disabled:!!C,onClick:function(){function I(){return v("clone_vaccine",{resistance_index:B+1})}return I}(),mr:"0.5em"}),b]},B)})})})})}},78643:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ParticleAccelerator=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.assembled,m=d.power,l=d.strength,u=d.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 p("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 p("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 p("remove_strength")}return s}(),mr:"4px"}),l,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||l===u,onClick:function(){function s(){return p("add_strength")}return s}(),ml:"4px"})]})]})})})})}return V}()},34026:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PdaPainter=function(){function y(p,d){var c=(0,a.useBackend)(d),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,k):(0,e.createComponentVNode)(2,V)})})}return y}(),V=function(p,d){var c=(0,a.useBackend)(d),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}()})]})})})},k=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=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,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function i(){return m("choose_pda",{selectedPda:s})}return i}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=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,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function i(){return m("eject_pda")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function i(){return m("paint_pda")}return i}()})]}),(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"}})})]})}},81378:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PersonalCrafting=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.busy,u=m.category,s=m.display_craftable_only,i=m.display_compact,v=m.prev_cat,g=m.next_cat,C=m.subcategory,h=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:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:i?"check-square-o":"square-o",selected:i,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),V=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:i.ref})}return v}()}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)}),!l&&s.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)})]})})},k=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:i.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)}),!l&&s.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)})]})}},58792:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Photocopier=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.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,V)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.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 u(){return c("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return c("scandocument")}return u}()}),!!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 u(){return c("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return c("ai_pic")}return u}()})],4)],0)},k=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.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 u(){return c("filecopy",{uid:l.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return c("deletefile",{uid:l.uid})}return u}()})]})},l.name)})})}},27902:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=["tempKey"];function V(p,d){if(p==null)return{};var c={},m=Object.keys(p),l,u;for(u=0;u=0)&&(c[l]=p[l]);return c}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(d,c){var m=d.tempKey,l=V(d,f),u=k[m];if(!u)return null;var s=(0,a.useBackend)(c),i=s.data,v=s.act,g=i.currentTemp,C=u.label,h=u.icon,N=m===g,b=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:b},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),C]})))},y=r.PoolController=function(){function p(d,c){for(var m=(0,a.useBackend)(c),l=m.data,u=l.emagged,s=l.currentTemp,i=k[s]||k.normal,v=i.label,g=i.color,C=[],h=0,N=Object.entries(k);h50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(C>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(v){var g,C,h=v.status;switch(h){case"AOn":g=!0,C=!0;break;case"AOff":g=!0,C=!1;break;case"On":g=!1,C=!0;break;case"Off":g=!1,C=!1;break}var N=(C?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:C?"good":"bad",content:g?void 0:"M",title:N})};s.defaultHooks=f.pureComponentHooks},27262:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),f=n(99665),V=n(68159),k=n(27527),S=n(45493),y=r.PrisonerImplantManager=function(){function p(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.loginState,i=u.prisonerInfo,v=u.chemicalInfo,g=u.trackingInfo,C;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.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:i.name?"eject":"id-card",selected:i.name,content:i.name?i.name:"-----",tooltip:i.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:[i.points!==null?i.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:i.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:[i.goal!==null?i.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:i.goal===null,content:"Edit",onClick:function(){function N(){return(0,f.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:i.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 b(){return(0,f.modalOpen)(c,"warn",{uid:N.uid})}return b}()})})]})]},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:v.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})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{asset:!0,imageAsset:"prize_counter64x64",image:g.imageID,title:g.name,content:g.desc,children:(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",fontSize:1.5,textColor:C&&"gray",content:g.cost,icon:"ticket",iconSize:1.6,iconColor:C?"bad":"good",tooltip:C&&"Not enough tickets",disabled:C,onClick:function(){function h(){return p("purchase",{purchase:g.itemID})}return h}()})},g.name)})})})})})})}return V}()},87963:function(L,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(57842),k=r.RCD=function(){function l(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})]})}return l}(),S=function(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.matter,C=v.max_matter,h=C*.7,N=C*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[h,1/0],average:[N,h],bad:[-1/0,N]},value:g,maxValue:C,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:g+" / "+C+" units"})})})})},y=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=u.mode_type,h=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:C,selected:h===C?1:0,onClick:function(){function N(){return v("mode",{mode:C})}return N}()})})},d=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.door_name,h=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,C,0)],0),onClick:function(){function b(){return(0,f.modalOpen)(s,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function b(){return v("electrochromic")}return b}()})})]})})})},c=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.tab,h=g.locked,N=g.one_access,b=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:C===1,onClick:function(){function I(){return v("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,icon:"list",onClick:function(){function I(){return v("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):C===2&&h?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return v("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,V.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return v("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function I(){return v("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function I(){return v("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:b,accessMod:function(){function I(w){return v("set",{access:w})}return I}(),grantAll:function(){function I(){return v("grant_all")}return I}(),denyAll:function(){function I(){return v("clear_all")}return I}(),grantDep:function(){function I(w){return v("grant_region",{region:w})}return I}(),denyDep:function(){function I(w){return v("deny_region",{region:w})}return I}()})})],4)},m=function(u,s){for(var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.door_types_ui_list,h=g.door_type,N=u.check_number,b=[],B=0;B0?"envelope-open-text":"envelope",onClick:function(){function B(){return v("setScreen",{setScreen:6})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function B(){return v("setScreen",{setScreen:1})}return B}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function B(){return v("setScreen",{setScreen:2})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function B(){return v("setScreen",{setScreen:11})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function B(){return v("setScreen",{setScreen:3})}return B}()})]})]}),(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,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function B(){return v("setScreen",{setScreen:9})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function B(){return v("setScreen",{setScreen:10})}return B}()})]})}),!!h&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function B(){return v("setScreen",{setScreen:8})}return B}()})})]})})},k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.department,h=[],N;switch(u.purpose){case"ASSISTANCE":h=g.assist_dept,N="Request assistance from another department";break;case"SUPPLIES":h=g.supply_dept,N="Request supplies from another department";break;case"INFO":h=g.info_dept,N="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:N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return v("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(b){return b!==C}).map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function B(){return v("writeInput",{write:b,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return v("writeInput",{write:b,priority:"2"})}return B}()})]},b)})})})})},S=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C;switch(u.type){case"SUCCESS":C="Message sent successfully";break;case"FAIL":C="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return v("setScreen",{setScreen:0})}return h}()})})},y=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C,h;switch(u.type){case"MESSAGES":C=g.message_log,h="Message Log";break;case"SHIPPING":C=g.shipping_log,h="Shipping label print log";break}return C.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return v("setScreen",{setScreen:0})}return N}()}),children:C.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[N.map(function(b,B){return(0,e.createVNode)(1,"div",null,b,0,null,B)}),(0,e.createVNode)(1,"hr")]},N)})})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.recipient,h=g.message,N=g.msgVerified,b=g.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 B(){return v("setScreen",{setScreen:0})}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:N}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:b})]})})}),(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 B(){return v("department",{department:C})}return B}()})})})],4)},d=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.message,h=g.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 N(){return v("setScreen",{setScreen:0})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function N(){return v("writeAnnouncement")}return N}()})],4),children:C})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?(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:!(h&&C),onClick:function(){function N(){return v("sendAnnouncement")}return N}()})]})})],4)},c=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.shipDest,h=g.msgVerified,N=g.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 b(){return v("setScreen",{setScreen:0})}return b}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(C&&h),onClick:function(){function b(){return v("printLabel")}return b}()})]})}),(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:N.map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:C===b?"Selected":"Select",selected:C===b,onClick:function(){function B(){return v("shipSelect",{shipSelect:b})}return B}()})},b)})})})})],4)},m=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.secondaryGoalAuth,h=g.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 N(){return v("setScreen",{setScreen:0})}return N}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?C?(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:!(C&&h),onClick:function(){function N(){return v("requestSecondaryGoal")}return N}()})]})})],4)}},89641:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),f=n(3422),V=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.data,l=m.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,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,f.MainMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function u(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function u(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DESTROY,render:function(){function u(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function u(s){return s===V.LATHE||s===V.IMPRINTER}return u}(),render:function(){function u(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.SETTINGS,render:function(){function u(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return u}()}),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]})})})}return y}()},19348:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.CurrentLevels=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(d,c){var m=d.name,l=d.level,u=d.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",u]})]},m)})]})}return f}()},338:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V="design",k="tech",S=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_data;return h?(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.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.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 N(){return C("updt_tech")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function N(){return C("clear_tech")}return N}()}),(0,e.createComponentVNode)(2,d)]})]}):null},y=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_data;if(!h)return null;var N=h.name,b=h.lathe_types,B=h.materials,I=b.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:N}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.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 w(){return C("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return C("clear_design")}return w}()}),(0,e.createComponentVNode)(2,d)]})]})},p=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:C===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,d)]})]})},d=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function N(){var b=h===k?"eject_tech":"eject_design";C(b)}return N}()}):null},c=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.disk_data,h=g.disk_type,N=function(){if(!C)return(0,e.createComponentVNode)(2,p);switch(h){case V:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:N()})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_type,N=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,I=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?C("copy_tech",{id:I}):C("copy_design",{id:I})}return w}()})},I)})})})})},l=r.DataDiskMenu=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.disk_type;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return u}()},90785:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.DeconstructionMenu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,d=y.loaded_item,c=y.linked_destroy;return c?d?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",d.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:d.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},34492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheCategory=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,d=y.act,c=p.category,m=p.matching_designs,l=p.menu,u=l===4,s=u?"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(i){var v=i.id,g=i.name,C=i.can_build,h=i.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:C<1,onClick:function(){function N(){return d(s,{id:v,amount:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function N(){return d(s,{id:v,amount:5})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function N(){return d(s,{id:v,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.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)})})]},v)})})]})}return V}()},84275:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheChemicalStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,d=y.loaded_chemicals,c=y.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var l=c?"disposeallP":"disposeallI";p(l)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(m){var l=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function i(){var v=c?"disposeP":"disposeI";p(v,{id:s})}return i}()})},s)})})]})}return f}()},12638:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheMainMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,d=y.act,c=p.menu,m=p.categories,l=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(u){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:u,onClick:function(){function s(){d("setCategory",{category:u})}return s}()})},u)})})]})}return V}()},89004:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterialStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,d=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:d.map(function(c){var m=c.id,l=c.amount,u=c.name,s=function(){function C(h){var N=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(N,{id:m,amount:h})}return C}(),i=Math.floor(l/2e3),v=l<1,g=i===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",i," 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 C(){return s(1)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function C(){return s("custom")}return C}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function C(){return s(5)}return C}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function C(){return s(50)}return C}()})],0):null})]},m)})})})}return f}()},73856:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterials=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.total_materials,d=y.max_materials,c=y.max_chemicals,m=y.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),d?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+d}):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 f}()},75955:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(96524),a=n(17899),t=n(78345),o=n(3422),f=n(24674),V=n(89641),k=r.LatheMenu=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.data,m=c.menu,l=c.linked_lathe,u=c.linked_imprinter;return m===4&&!l?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!u?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CATEGORY,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_MAT_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return s}()})]})}return S}()},72880:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheSearch=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(d,c){return y("search",{to_search:c})}return p}()})})}return f}()},62306:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.data,c=d.disk_type,m=d.linked_destroy,l=d.linked_lathe,u=d.linked_imprinter,s=d.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(i){var v=i.name,g=i.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v,children:g},v)})})]})}return k}()},99941:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.RndNavButton=function(){function f(V,k){var S=V.icon,y=V.children,p=V.disabled,d=V.content,c=(0,a.useBackend)(k),m=c.data,l=c.act,u=m.menu,s=m.submenu,i=u,v=s;return V.menu!==null&&V.menu!==void 0&&(i=V.menu),V.submenu!==null&&V.submenu!==void 0&&(v=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:d,icon:S,disabled:p,onClick:function(){function g(){l("nav",{menu:i,submenu:v})}return g}(),children:y})}return f}()},24448:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(96524),a=n(3422),t=n(24674),o=n(89641),f=r.RndNavbar=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return V}()},78345:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(17899),a=r.RndRoute=function(){function t(o,f){var V=o.render,k=(0,e.useBackend)(f),S=k.data,y=S.menu,p=S.submenu,d=function(){function m(l,u){return l==null?!0:typeof l=="function"?l(u):l===u}return m}(),c=d(o.menu,y)&&d(o.submenu,p);return c?V():null}return t}()},56454:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.data,c=p.act,m=d.sync,l=d.admin,u=d.linked_destroy,s=d.linked_lathe,i=d.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return v}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return v}()})]})}return k}()},3422:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(19348);r.CurrentLevels=e.CurrentLevels;var a=n(338);r.DataDiskMenu=a.DataDiskMenu;var t=n(90785);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(34492);r.LatheCategory=o.LatheCategory;var f=n(84275);r.LatheChemicalStorage=f.LatheChemicalStorage;var V=n(12638);r.LatheMainMenu=V.LatheMainMenu;var k=n(73856);r.LatheMaterials=k.LatheMaterials;var S=n(89004);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(75955);r.LatheMenu=y.LatheMenu;var p=n(72880);r.LatheSearch=p.LatheSearch;var d=n(62306);r.MainMenu=d.MainMenu;var c=n(24448);r.RndNavbar=c.RndNavbar;var m=n(99941);r.RndNavButton=m.RndNavButton;var l=n(78345);r.RndRoute=l.RndRoute;var u=n(56454);r.SettingsMenu=u.SettingsMenu},71123:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=function(y,p){var d=y/p;return d<=.2?"good":d<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.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,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.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:V(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:V(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"})]})})]})},u)})})})}return S}()},98951:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.RoboticsControlConsole=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.can_hack,l=c.safety,u=c.show_lock_all,s=c.cyborgs,i=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function v(){return d("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:l,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return d("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:i,can_hack:m})]})})}return k}(),V=function(S,y){var p=S.cyborgs,d=S.can_hack,c=(0,a.useBackend)(y),m=c.act,l=c.data,u="Detonate";return l.detonate_cooldown>0&&(u+=" ("+l.detonate_cooldown+"s)"),p.length?p.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 i(){return m("hackbot",{uid:s.uid})}return i}()}),(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 i(){return m("stopbot",{uid:s.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!l.auth||l.detonate_cooldown>0,color:"bad",onClick:function(){function i(){return m("killbot",{uid:s.uid})}return i}()})],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."})}},2289:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Safe=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.dial,s=l.open,i=l.locked,v=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,V),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return y}(),V=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.dial,s=l.open,i=l.locked,v=function(C,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||h&&!i,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+C,iconRight:h,onClick:function(){function N(){return m(h?"turnleft":"turnright",{num:C})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:i,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:[v(50),v(10),v(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[v(1,!0),v(10,!0),v(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},k=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:i+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(p,d){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."})]})}},49334:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SatelliteControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.satellites,m=d.notice,l=d.meteor_shield,u=d.meteor_shield_coverage,s=d.meteor_shield_coverage_max,i=d.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:i>=100?"good":"average",value:u,maxValue:s,children:[i," %"]})}),(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:d.notice}),c.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:v.id})}return g}()})]},v.id)})]})})]})})}return V}()},54892:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(5126),k=n(68100),S=r.SecureStorage=function(){function c(m,l){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})})})})}return c}(),y=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=window.event?m.which:m.keyCode;if(i===k.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(i===k.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(i===k.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(i>=k.KEY_0&&i<=k.KEY_9){m.preventDefault(),s("keypad",{digit:i-k.KEY_0});return}if(i>=k.KEY_NUMPAD_0&&i<=k.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:i-k.KEY_NUMPAD_0});return}},p=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,v=i.locked,g=i.no_passcode,C=i.emagged,h=i.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return y(I,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--"+b]),height:"100%",children:C?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,d,{number:I})},I)})},B[0])})})]})},d=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,v=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:v,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+v]),onClick:function(){function g(){return s("keypad",{digit:v})}return g}()})}},56798:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665),k=n(68159),S=n(27527),y=n(84537),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},d=function(h,N){(0,V.modalOpen)(h,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function C(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,l):T===2&&(A=(0,e.createComponentVNode)(2,i));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return C}(),m=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.currentPage,T=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},l=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.records,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(N,"sortId","name"),M=E[0],D=E[1],O=(0,t.useLocalState)(N,"sortOrder",!0),R=O[0],j=O[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,U){var K=R?1:-1;return F[M].localeCompare(U[M])*K}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[F.status],onClick:function(){function U(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return U}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},u=function(h,N){var b=(0,t.useLocalState)(N,"sortId","name"),B=b[0],I=b[1],w=(0,t.useLocalState)(N,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.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 M(){B===x?A(!T):(I(x),A(!0))}return M}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.isPrinting,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,V.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(M,D){return x(D)}return E}()})})]})},i=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,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,v)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return 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 M(){return d(N,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},v=function(h,N){var b=(0,t.useBackend)(N),B=b.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return d(N,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,V.modalOpen)(N,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},59981:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665);function k(u,s){var i=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(i)return(i=i.call(u)).next.bind(i);if(Array.isArray(u)||(i=S(u))||s&&u&&typeof u.length=="number"){i&&(u=i);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(u,s){if(u){if(typeof u=="string")return y(u,s);var i=Object.prototype.toString.call(u).slice(8,-1);if(i==="Object"&&u.constructor&&(i=u.constructor.name),i==="Map"||i==="Set")return Array.from(u);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return y(u,s)}}function y(u,s){(s==null||s>u.length)&&(s=u.length);for(var i=0,v=new Array(s);i=A},g=function(T,A){return T<=A},C=s.split(" "),h=[],N=function(){var T=I.value,A=T.split(":");if(A.length===0)return 0;if(A.length===1)return h.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function M(D){return!1}return M}()};var x,E=i;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=v,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function M(D){return!1}return M}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":h.push(function(M){return E(M.lifespan,x)});break;case"e":case"end":case"endurance":h.push(function(M){return E(M.endurance,x)});break;case"m":case"mat":case"maturation":h.push(function(M){return E(M.maturation,x)});break;case"pr":case"prod":case"production":h.push(function(M){return E(M.production,x)});break;case"y":case"yield":h.push(function(M){return E(M.yield,x)});break;case"po":case"pot":case"potency":h.push(function(M){return E(M.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":h.push(function(M){return E(M.amount,x)});break;default:return{v:function(){function M(D){return!1}return M}()}}},b,B=k(C),I;!(I=B()).done;)if(b=N(),b!==0&&b)return b.v;return function(w){for(var T=0,A=h;T=1?Number(E):1)}return A}()})]})]})}},33454:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:d.status?d.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!d.shuttle&&(!!d.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:d.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return p("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"})}),!!d.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:!d.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return V}()},50451:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleManipulator=function(){function y(p,d){var c=(0,a.useLocalState)(d,"tabIndex",0),m=c[0],l=c[1],u=function(){function s(i){switch(i){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return 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")]}),u(m)]})})})}return y}(),V=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return m("jump_to",{type:"mobile",id:s.id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function i(){return m("fast_travel",{id:s.id})}return i}()})]})]})},s.name)})})},k=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.templates_tabs,s=l.existing_shuttle,i=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===s.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:v})}return g}(),children:v},v)})}),!!s&&i[s.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return m("select_template",{shuttle_id:v.shuttle_id})}return g}()})})]})},v.name)})]})},S=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.existing_shuttle,s=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return m("jump_to",{type:"mobile",id:u.id})}return i}()})})]})}):(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 i(){return m("preview",{shuttle_id:s.shuttle_id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function i(){return m("load",{shuttle_id:s.shuttle_id})}return i}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},99050:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function i(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.hasOccupant,B=b?(0,e.createComponentVNode)(2,d):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return i}(),d=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},c=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=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 I(){return h("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return h("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[b.stat][0],children:V[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},m=function(v,g){var C=(0,t.useBackend)(g),h=C.data,N=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[b[1]]/100,ranges:S,children:(0,a.round)(N[b[1]],0)},B)},B)})})})},l=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.hasOccupant,B=N.isBeakerLoaded,I=N.beakerMaxSpace,w=N.beakerFreeSpace,T=N.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("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:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.occupant,B=N.chemicals,I=N.maxchem,w=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(M,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+M>I||b.stat===2,icon:"syringe",content:"Inject "+M+"u",title:"Inject "+M+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function O(){return h("chemical",{chemid:T.id,amount:M})}return O}()},D)})]})})},A)})})},s=function(v,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."]})})})}},37763:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SlotMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;if(d.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 d.plays===1?c=d.plays+" player has tried their luck today!":c=d.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:d.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:d.working,content:d.working?"Spinning...":"Spin",onClick:function(){function m(){return p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:d.resultlvl,children:d.result})]})})})}return V}()},26654:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Smartfridge=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.secure,m=d.can_dry,l=d.drying,u=d.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 p("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,i){return s.display_name.localeCompare(i.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 i(){return p("vend",{index:s.vend,amount:1})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function i(v,g){return p("vend",{index:s.vend,amount:g})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function i(){return p("vend",{index:s.vend,amount:s.quantity})}return i}()})]})]},s)})]})]})})})}return V}()},71124:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(92986),f=n(45493),V=1e3,k=r.Smes=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.capacityPercent,u=m.capacity,s=m.charge,i=m.inputAttempt,v=m.inputting,g=m.inputLevel,C=m.inputLevelMax,h=m.inputAvailable,N=m.outputPowernet,b=m.outputAttempt,B=m.outputting,I=m.outputLevel,w=m.outputLevelMax,T=m.outputUsed,A=l>=100&&"good"||v&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value: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:i?"sync-alt":"times",selected:i,onClick:function(){function E(){return c("tryinput")}return E}(),children:i?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled: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/V,fillValue:h/V,minValue:0,maxValue:C/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,D){return c("input",{target:D*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===C,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===C,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(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:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"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:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===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:I/V,minValue:0,maxValue:w/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,D){return c("output",{target:D*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},21786:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SolarControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=0,m=1,l=2,u=d.generated,s=d.generated_ratio,i=d.tracking_state,v=d.tracking_rate,g=d.connected_panels,C=d.connected_tracker,h=d.cdir,N=d.direction,b=d.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 p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:C?"good":"bad",children:C?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color: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:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),i===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",b,")"," "]}),i===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:[i!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(I,w){return p("cdir",{cdir:w})}return B}()}),i===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:i===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:i===m,onClick:function(){function B(){return p("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:i===l,disabled:!C,onClick:function(){function B(){return p("track",{track:l})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return p("tdir",{tdir:w})}return B}()}),i===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),i===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},31202:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpawnersMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.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 p("jump",{ID:m.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return p("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 V}()},84800:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpecMenu=function(){function p(d,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,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),V=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("hemomancer")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("umbrae")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("gargantua")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("dantalion")}return i}()}),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)]})})}},46501:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.data,c=d.alarms||[],m=c.Fire||[],l=c.Atmosphere||[],u=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,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return k}()},18565:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(96524),a=n(50640),t=n(67765),o=n(17899),f=n(24674),V=n(45493),k=function(d){return d[d.SetupFutureStationTraits=0]="SetupFutureStationTraits",d[d.ViewStationTraits=1]="ViewStationTraits",d}(k||{}),S=function(c,m){var l=(0,o.useBackend)(m),u=l.act,s=l.data,i=s.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=v[0],C=v[1],h=Object.fromEntries(s.valid_station_traits.map(function(b){return[b.name,b.path]})),N=Object.keys(h);return N.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:C,options:N,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(g){var B=h[g],I=[B];if(i){var w,T=i.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}u("setup_future_traits",{station_traits:I})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(i)?i.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:i.map(function(b){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){u("setup_future_traits",{station_traits:(0,a.filterMap)(i,function(I){if(I.path!==b.path)return I.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return u("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return u("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,m){var l=(0,o.useBackend)(m),u=l.act,s=l.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(i){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:i.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!i.can_revert,tooltip:!i.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return u("revert",{ref:i.ref})}return v}()})})]})},i.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function d(c,m){var l=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),u=l[0],s=l[1],i;switch(u){case k.SetupFutureStationTraits:i=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:i=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,V.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===k.ViewStationTraits,onClick:function(){function v(){return s(k.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===k.SetupFutureStationTraits,onClick:function(){function v(){return s(k.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),i]})]})})})}return d}()},95147:function(L,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(96524),a=n(50640),t=n(17442),o=n(17899),f=n(24674),V=n(45493),k=5,S=5,y="64px",p=function(i){return i[0]+"/"+i[1]},d=function(i){var v=i.align,g=i.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:g})},c={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"}},m={eyes:{displayName:"eyewear",gridSpot:p([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:p([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:p([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:p([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:p([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:p([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:p([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:p([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:p([1,4])},jumpsuit:{displayName:"uniform",gridSpot:p([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:p([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:p([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:p([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,d,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:p([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,d,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:p([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:p([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:p([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:p([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:p([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:p([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:p([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:p([4,4]),image:"inventory-pda.png"}},l=function(s){return s[s.Completely=1]="Completely",s[s.Hidden=2]="Hidden",s}(l||{}),u=r.StripMenu=function(){function s(i,v){for(var g=(0,o.useBackend)(v),C=g.act,h=g.data,N=new Map,b=0,B=Object.keys(h.items);b=.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,V.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,V.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:d(b),minValue:0,maxValue:d(1e4),ranges:{teal:[-1/0,d(80)],good:[d(80),d(373)],average:[d(373),d(1e3)],bad:[d(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:d(B),minValue:0,maxValue:d(5e4),ranges:{good:[d(1),d(300)],average:[-1/0,d(1e3)],bad:[d(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return v("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,V.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},30047:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SyndicateComputerSimple=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d.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 p(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 V}()},28830:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.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 d("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:[f(c.cold_inlet_temp)," K,"," ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K,"," ",f(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:[f(c.hot_inlet_temp)," K,"," ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K,"," ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(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 k}()},39903:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TachyonArray=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.records,l=m===void 0?[]:m,u=c.explosion_target,s=c.toxins_tech,i=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:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||i,align:"center",onClick:function(){function v(){return d("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function v(){return d("delete_logs")}return v}()})]})]})}),l.length?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),V=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.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(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return d("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return k}()},17068:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Tank=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c;return d.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:d.connected?"check":"times",content:d.connected?"Internals On":"Internals Off",selected:d.connected,onClick:function(){function m(){return p("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:d.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:d.ReleasePressure===d.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return p("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(d.releasePressure),width:"65px",unit:"kPa",minValue:d.minReleasePressure,maxValue:d.maxReleasePressure,onChange:function(){function m(l,u){return p("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:d.ReleasePressure===d.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return p("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:d.ReleasePressure===d.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},69161:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TankDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.o_tanks,m=d.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 p("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 p("plasma")}return l}()})})]})})})}return V}()},87394:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsCore=function(){function p(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.ion,i=(0,a.useLocalState)(c,"tabIndex",0),v=i[0],g=i[1],C=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();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,V),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),C(v)]})})}return p}(),V=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.active,i=u.sectors_available,v=u.nttc_toggle_jobs,g=u.nttc_toggle_job_color,C=u.nttc_toggle_name_color,h=u.nttc_toggle_command_bold,N=u.nttc_job_indicator_type,b=u.nttc_setting_language,B=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return l("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:i})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_jobs")}return I}()})}),(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 I(){return l("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function I(){return l("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"pencil-alt",onClick:function(){function I(){return l("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function I(){return l("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return l("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return l("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return l("export")}return I}()})]})],4)},S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.link_password,i=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function v(){return l("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return l("unlink",{addr:v.addr})}return g}()})})]},v.addr)})]})]})},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function i(){return l("add_filter")}return i}()}),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(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return l("remove_filter",{user:i})}return v}()})})]},i)})]})})}},55684:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsRelay=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function i(){return c("toggle_active")}return i}()})}),(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 i(){return c("network_id")}return i}()})}),(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,V):(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function i(){return c("toggle_hidden_link")}return i}()})}),(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 i(){return c("unlink")}return i}()})})]})})},k=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.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(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},81088:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Teleporter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.targetsTeleport?d.targetsTeleport:{},m=0,l=1,u=2,s=d.calibrated,i=d.calibrating,v=d.powerstation,g=d.regime,C=d.teleporterhub,h=d.target,N=d.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!v||!C)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[C,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&C&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",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:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===u&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(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 b(){return p("setregime",{regime:l})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===m?"good":null,onClick:function(){function b(){return p("setregime",{regime:m})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===u?"good":null,disabled:!N,onClick:function(){function b(){return p("setregime",{regime:u})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="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:i&&(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||i),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&v&&C&&g===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return V}()},96150:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.TempGun=function(){function p(d,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.target_temperature,i=u.temperature,v=u.max_temp,g=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:v,value:s,format:function(){function C(h){return(0,a.toFixed)(h,2)}return C}(),width:"50px",onDrag:function(){function C(h,N){return l("target_temperature",{target_temperature:N})}return C}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(i),bold:i>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(i,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(i),children:S(i)})})]})})})})}return p}(),k=function(d){return d<=-100?"blue":d<=0?"teal":d<=100?"green":d<=200?"orange":"red"},S=function(d){return d<=100-273.15?"High":d<=250-273.15?"Medium":d<=300-273.15?"Low":d<=400-273.15?"Medium":"High"},y=function(d){return d<=100-273.15?"red":d<=250-273.15?"orange":d<=300-273.15?"green":d<=400-273.15?"orange":"red"}},95484:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(17899),f=n(68100),V=n(24674),k=n(45493),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(m,l){var u=(0,o.useBackend)(l),s=u.act,i=u.data,v=i.max_length,g=i.message,C=g===void 0?"":g,h=i.multiline,N=i.placeholder,b=i.timeout,B=i.title,I=(0,o.useLocalState)(l,"input",N||""),w=I[0],T=I[1],A=function(){function M(D){if(D!==w){var O=h?S(D):y(D);T(O)}}return M}(),x=h||w.length>=40,E=130+(C.length>40?Math.ceil(C.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function M(D){var O=window.event?D.which:D.keyCode;O===f.KEY_ENTER&&(!x||!D.shiftKey)&&s("submit",{entry:w}),O===f.KEY_ESCAPE&&s("cancel")}return M}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d,{input:w,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+v})})]})})})]})}return c}(),d=function(m,l){var u=(0,o.useBackend)(l),s=u.act,i=u.data,v=i.max_length,g=i.multiline,C=m.input,h=m.onType,N=g||C.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:g||C.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function b(){return s("cancel")}return b}(),onEnter:function(){function b(B){N&&B.shiftKey||(B.preventDefault(),s("submit",{entry:C}))}return b}(),onInput:function(){function b(B,I){return h(I)}return b}(),placeholder:"Type something...",value:C})}},378:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),d=p.act,c=p.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value: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 d("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 d("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 d("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,u){return d("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return d("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 d("target",{target:c.initial})}return m}()})]})]})})]})})}return k}()},3365:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TransferValve=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.tank_one,m=d.tank_two,l=d.attached_device,u=d.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return p("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 p("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 p("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 p("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 p("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},13860:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(36121),V=r.TurbineComputer=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.compressor,s=l.compressor_broken,i=l.turbine,v=l.turbine_broken,g=l.online,C=!!(u&&!s&&i&&!v);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!C,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:C?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,d){var c=(0,a.useBackend)(d),m=c.data,l=m.compressor,u=m.compressor_broken,s=m.turbine,i=m.turbine_broken,v=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!l||u?"bad":"good",children:u?l?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||i?"bad":"good",children:i?s?"Offline":"Missing":"Online"})]})},S=function(p,d){var c=(0,a.useBackend)(d),m=c.data,l=m.rpm,u=m.temperature,s=m.power,i=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:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(i)+"%"})})]})}},22169:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(78234),f=n(17899),V=n(24674),k=n(45493),S=n(99665),y=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,i);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function v(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.cart,I=(0,f.useLocalState)(C,"tabIndex",0),w=I[0],T=I[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===1,onClick:function(){function M(){T(1),E("")}return M}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===2,onClick:function(){function M(){T(2),E("")}return M}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:y(w)})]})})]})}return v}(),d=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.crystals,I=b.cats,w=(0,f.useLocalState)(C,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(C,"searchText",""),E=x[0],M=x[1],D=function(K,z){z===void 0&&(z="");var $=(0,o.createSearch)(z,function(Y){var X=Y.hijack_only===1?"|hijack":"";return Y.name+"|"+Y.desc+"|"+Y.cost+"tc"+X});return(0,t.flow)([(0,a.filter)(function(Y){return Y==null?void 0:Y.name}),z&&(0,a.filter)($),(0,a.sortBy)(function(Y){return Y==null?void 0:Y.name})])(K)},O=function(K){if(M(K),K==="")return A(I[0].items);A(D(I.map(function(z){return z.items}).flat(),K))},R=(0,f.useLocalState)(C,"showDesc",1),j=R[0],F=R[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function U(){return F(!j)}return U}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function U(){return N("buyRandom")}return U}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function U(){return N("refund")}return U}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function U(K,z){O(z)}return U}(),value:E})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:I.map(function(U){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:U.items===T,onClick:function(){function K(){A(U.items),M("")}return K}(),children:U.cat},U)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:T.map(function(U){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:U,showDecription:j},(0,o.decodeHtmlEntities)(U.name))},(0,o.decodeHtmlEntities)(U.name))})})})})]})]})},c=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.cart,I=b.crystals,w=b.cart_price,T=(0,f.useLocalState)(C,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return N("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,V.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,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.cats,I=b.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return N("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,V.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:w})},T)})})})})},l=function(g,C){var h=g.i,N=g.showDecription,b=N===void 0?1:N,B=g.buttons,I=B===void 0?(0,e.createComponentVNode)(2,u,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:I,children:b?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},u=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=g.i,I=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return N("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,V.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 w(){return N("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},s=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=g.i,I=b.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return N("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return N("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},i=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.exploitable,I=(0,f.useLocalState)(C,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1],M=function(R,j){j===void 0&&(j="");var F=(0,o.createSearch)(j,function(U){return U.name});return(0,t.flow)([(0,a.filter)(function(U){return U==null?void 0:U.name}),j&&(0,a.filter)(F),(0,a.sortBy)(function(U){return U.name})])(R)},D=M(B,x);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function O(R,j){return E(j)}return O}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:D.map(function(O){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:O===w,onClick:function(){function R(){return T(O)}return R}(),children:O.name},O)})})]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},70547:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=S.product,l=S.productStock,u=S.productImage,s=c.chargesMoney,i=c.user,v=c.usermoney,g=c.inserted_cash,C=c.vend_ready,h=c.inserted_item_name,N=!s||m.price===0,b="ERROR!",B="";N?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var I=!C||l===0||!N&&m.price>v&&m.price>g;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color: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:I,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return d("vend",{inum:m.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.user,l=c.usermoney,u=c.inserted_cash,s=c.chargesMoney,i=c.product_records,v=i===void 0?[]:i,g=c.hidden_records,C=g===void 0?[]:g,h=c.stock,N=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(v),c.extended_inventory&&(T=[].concat(T,C)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return d("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return d("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),","," ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[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:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return d("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},33045:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VolumeMixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.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 u(){return p("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,i){return p("volume",{channel:m.num,volume:i})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return p("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return V}()},53792:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VotePanel=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.remaining,m=d.question,l=d.choices,u=d.user_vote,s=d.counts,i=d.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(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:v,content:v+(i?" ("+(s[v]||0)+")":""),onClick:function(){function g(){return p("vote",{target:v})}return g}(),selected:v===u})},v)})]})})})}return V}()},64860:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Wires=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.wires||[],m=d.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(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return p("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return p("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return p("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return V}()},78262:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.WizardApprenticeContract=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.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 p("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 p("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 p("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 p("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 p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},57842:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674);function f(p,d){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=V(p))||d&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[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 V(p,d){if(p){if(typeof p=="string")return k(p,d);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,d)}}function k(p,d){(d==null||d>p.length)&&(d=p.length);for(var c=0,m=new Array(d);c0&&!b.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function F(){return B(j.ref)}return F}()},j.desc)})]})]})})}return p}()},79449:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),f=function(S,y,p,d,c){return Sd?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function k(S,y){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(d){return d.val!=="0"||d.entry==="Pressure"||d.entry==="Temperature"})(p).map(function(d){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:d.entry,color:f(d.val,d.bad_low,d.poor_low,d.poor_high,d.bad_high),children:[d.val,d.units]},d.entry)})})})}return k}()},1496:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(96524),a=n(24674),t=n(56099),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function V(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,d=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.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),!!d&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:d(c,m)})]},c.name)})]})}return V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},69521:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.BotStatus=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.locked,c=p.noaccess,m=p.maintpanel,l=p.on,u=p.autopatrol,s=p.canhack,i=p.emagged,v=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",d?"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 y("power")}return g}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return y("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:i?"bad":"good",children:i?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:i?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return y("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!v,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return y("disableremote")}return g}()})})]})})],4)}return f}()},99665:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(96524),a=n(17899),t=n(24674),o={},f=r.modalOpen=function(){function p(d,c,m){var l=(0,a.useBackend)(d),u=l.act,s=l.data,i=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:c,arguments:JSON.stringify(i)})}return p}(),V=r.modalRegisterBodyOverride=function(){function p(d,c){o[d]=c}return p}(),k=r.modalAnswer=function(){function p(d,c,m,l){var u=(0,a.useBackend)(d),s=u.act,i=u.data;if(i.modal){var v=Object.assign(i.modal.args||{},l||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(v)})}}return p}(),S=r.modalClose=function(){function p(d,c){var m=(0,a.useBackend)(d),l=m.act;l("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(d,c){var m=(0,a.useBackend)(c),l=m.data;if(l.modal){var u=l.modal,s=u.id,i=u.text,v=u.type,g,C=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,N,b="auto";if(o[s])h=o[s](l.modal,c);else if(v==="input"){var B=l.modal.value;g=function(){function w(T){return k(c,s,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),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 w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var I=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,s,T)}return w}()}),b="initial"}else v==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return k(c,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):v==="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 w(){return k(c,s,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:d.maxWidth||window.innerWidth/2+"px",maxHeight:d.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[i&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i}),o[s]&&C,h,N]})}}return p}()},98444:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(78234),f=n(38424),V=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},p=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:S(l.rank),bold:y(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)})]})},d=r.CrewManifest=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,i;if(m.data)i=m.data;else{var v=(0,a.useBackend)(l),g=v.data;i=g}var C=i,h=C.manifest,N=h.heads,b=h.sec,B=h.eng,I=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(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:p(x)})]})}return c}()},15113:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(96524),a=n(24674),t=n(17899),o=r.InputButtons=function(){function f(V,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,d=p.large_buttons,c=p.swapped_buttons,m=V.input,l=V.message,u=V.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!d,fluid:!!d,onClick:function(){function v(){return y("submit",{entry:m})}return v}(),textAlign:"center",tooltip:d&&l,disabled:u,width:!d&&6}),i=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!d,fluid:!!d,onClick:function(){function v(){return y("cancel")}return v}(),textAlign:"center",width:!d&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[d?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:i}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),!d&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),d?(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 f}()},26893:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.InterfaceLockNoticeBox=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=V.siliconUser,c=d===void 0?p.siliconUser:d,m=V.locked,l=m===void 0?p.locked:m,u=V.normallyLocked,s=u===void 0?p.normallyLocked:u,i=V.onLockStatusChange,v=i===void 0?function(){return y("lock")}:i,g=V.accessText,C=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 h(){v&&v(!l)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",C," to ",l?"unlock":"lock"," this interface."]})}return f}()},14299:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(96524),a=n(36121),t=n(24674),o=r.Loader=function(){function f(V){var k=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},68159:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginInfo=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.loginState;if(p)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: ",d.name," (",d.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!d.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return f}()},27527:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginScreen=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.loginState,c=p.isAI,m=p.isRobot,l=p.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:d.id?d.id:"----------",ml:"0.5rem",onClick:function(){function u(){return y("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!d.id,content:"Login",onClick:function(){function u(){return y("login_login",{login_type:1})}return u}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return y("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return y("login_login",{login_type:3})}return u}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return y("login_login",{login_type:4})}return u}()})]})})})}return f}()},75201:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(96524),a=n(24674),t=n(56099),o=r.Operating=function(){function f(V){var k=V.operating,S=V.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},65435:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=r.Signaler=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,d=k.data,c=d.code,m=d.frequency,l=d.minFrequency,u=d.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:u/10,value:m/10,format:function(){function s(i){return(0,a.toFixed)(i,1)}return s}(),width:"80px",onDrag:function(){function s(i,v){return p("freq",{freq:v})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(i,v){return p("code",{code:v})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return p("signal")}return s}()})]})}return V}()},77534:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(96524),a=n(17899),t=n(78234),o=n(74041),f=n(50640),V=n(24674),k=r.SimpleRecords=function(){function p(d,c){var m=d.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:d.data,recordType:d.recordType}):(0,e.createComponentVNode)(2,S,{data:d.data})})}return p}(),S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=d.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),i=s[0],v=s[1],g=function(N,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(u)},C=g(u,i);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(N,b){return v(b)}return h}()}),C.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function N(){return l("Records",{target:h.uid})}return N}()})},h)})]})},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=d.data.records,s=u.general,i=u.medical,v=u.security,g;switch(d.recordType){case"MED":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:i?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:i.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:i.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:i.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},84537:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.TemporaryNotice=function(){function f(V,k){var S,y=(0,a.useBackend)(k),p=y.act,d=y.data,c=d.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function l(){return p("cleartemp")}return l}()})})]})})))}}return f}()},24704:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pai_atmosphere=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},4209:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_bioscan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.app_data,c=d.holder,m=d.dead,l=d.health,u=d.brute,s=d.oxy,i=d.tox,v=d.burn,g=d.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:i})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},44430:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_directives=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.app_data,c=d.master,m=d.dna,l=d.prime,u=d.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 y("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:u||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},3367:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_doorjack=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.app_data,c=d.cable,m=d.machine,l=d.inprogress,u=d.progress,s=d.aborted,i;m?i=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):i=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return y("cable")}return g}()});var v;return m&&(v=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:u,maxValue:100}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return y("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return y("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:i}),v]})}return f}()},73395:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_main_menu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.app_data,c=d.available_software,m=d.installed_software,l=d.installed_toggles,u=d.available_ram,s=d.emotions,i=d.current_emotion,v=d.speech_verbs,g=d.current_speech_verb,C=d.available_chassises,h=d.current_chassis,N=[];return m.map(function(b){return N[b.key]=b.name}),l.map(function(b){return N[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!N[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>u,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!N[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===i,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},37645:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pai_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},15836:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_medrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},91737:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(96524),a=n(17899),t=n(30709),o=r.pai_messenger=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.app_data.active_convo;return d?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},94077:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(96524),a=n(17899),t=n(36121),o=n(24674),f=r.pai_radio=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.app_data,m=c.minFrequency,l=c.maxFrequency,u=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:u/10,format:function(){function i(v){return(0,t.toFixed)(v,1)}return i}(),onChange:function(){function i(v,g){return p("freq",{freq:g})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function i(){return p("freq",{freq:"145.9"})}return i}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return p("toggleBroadcast")}return i}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return V}()},72621:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_secrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},53483:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(96524),a=n(17899),t=n(65435),o=r.pai_signaler=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},21606:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pda_atmos_scan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},12339:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_janitor=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.janitor,c=d.user_loc,m=d.mops,l=d.buckets,u=d.cleanbots,s=d.carts,i=d.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(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.direction_from_user,")"]},v)})})]})}return f}()},36615:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=r.pda_main_menu=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,d=y.data,c=d.owner,m=d.ownjob,l=d.idInserted,u=d.categories,s=d.pai,i=d.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 v(){return p("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(v){var g=d.apps[v];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:g.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.uid in i?C.notify_icon:C.icon,iconSpin:C.uid in i,color:C.uid in i?"red":"transparent",content:C.name,onClick:function(){function h(){return p("StartProgram",{program:C.uid})}return h}()},C.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return p("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return p("pai",{option:2})}return v}()})]})})]})}return V}()},99737:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pda_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},61597:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pda_medical=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},30709:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),f=r.pda_messenger=function(){function y(p,d){var c=(0,t.useBackend)(d),m=c.act,l=c.data,u=l.active_convo;return u?(0,e.createComponentVNode)(2,V,{data:l}):(0,e.createComponentVNode)(2,k,{data:l})}return y}(),V=r.ActiveConversation=function(){function y(p,d){var c=(0,t.useBackend)(d),m=c.act,l=p.data,u=l.convo_name,s=l.convo_job,i=l.messages,v=l.active_convo,g=(0,t.useLocalState)(d,"clipboardMode",!1),C=g[0],h=g[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!C)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:v})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===v})(i).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return C&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!C)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:v})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===v})(i).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.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 b(){return m("Clear",{option:"Convo"})}return b}()})})})}),N]})}return y}(),k=r.MessengerList=function(){function y(p,d){var c=(0,t.useBackend)(d),m=c.act,l=p.data,u=l.convopdas,s=l.pdas,i=l.charges,v=l.silent,g=l.toff,C=l.ringtone_list,h=l.ringtone,N=(0,t.useLocalState)(d,"searchTerm",""),b=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:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(C),onSelected:function(){function I(w){return m("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!i&&(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:[i," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:b,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:l,pdas:u,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:l,searchTerm:b})]})}return y}(),S=function(p,d){var c=(0,t.useBackend)(d),m=c.act,l=p.data,u=p.pdas,s=p.title,i=p.msgAct,v=p.searchTerm,g=l.charges,C=l.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(h){return h.Name.toLowerCase().includes(v.toLowerCase())}).map(function(h){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:h.Name,onClick:function(){function N(){return m(i,{target:h.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&C.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:N.uid,target:h.uid})}return b}()},N.uid)})})]},h.uid)})})}},68053:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_mule=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.mulebot,l=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.mulebot,l=m.bots;return l.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return d("control",{bot:u.uid})}return s}()})},u.Name)})},V=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.mulebot,l=m.botstatus,u=m.active,s=l.mode,i=l.loca,v=l.load,g=l.powr,C=l.dest,h=l.home,N=l.retn,b=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:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i}),(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:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Set)":"None (Set)",onClick:function(){function I(){return d("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function I(){return d("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function I(){return d("set_pickup_type",{autopick:b?0:1})}return I}()})}),(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 I(){return d("set_auto_return",{autoret:N?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return d("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return d("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return d("home")}return I}()})]})]})]})}},31728:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=r.pda_nanobank=function(){function c(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,v=i.logged_in,g=i.owner_name,C=i.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:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",C]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,d)}return c}(),V=function(m,l){var u=(0,t.useBackend)(l),s=u.data,i=(0,t.useLocalState)(l,"tabIndex",1),v=i[0],g=i[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===1,onClick:function(){function C(){return g(1)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===2,onClick:function(){function C(){return g(2)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===3,onClick:function(){function C(){return g(3)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,l){var u=(0,t.useLocalState)(l,"tabIndex",1),s=u[0],i=(0,t.useBackend)(l),v=i.data,g=v.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,l){var u,s=(0,t.useBackend)(l),i=s.act,v=s.data,g=v.requests,C=v.available_accounts,h=v.money,N=(0,t.useLocalState)(l,"selectedAccount"),b=N[0],B=N[1],I=(0,t.useLocalState)(l,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(l,"searchText",""),x=A[0],E=A[1],M=[];return C.map(function(D){return M[D.name]=D.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 D(O,R){return E(R)}return D}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:C.filter((0,a.createSearch)(x,function(D){return D.name})).map(function(D){return D.name}),selected:(u=C.filter(function(D){return D.UID===b})[0])==null?void 0:u.name,onSelected:function(){function D(O){return B(M[O])}return D}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function D(O,R){return T(R)}return D}()})}),(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:h0&&i.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&&u.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return f}()},61255:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(92700),f=["className","theme","children"],V=["className","scrollable","children"];/** + */var V=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],y={},p=function(i){if(i===16)return"Shift";if(i===17)return"Ctrl";if(i===18)return"Alt";if(i===33)return"Northeast";if(i===34)return"Southeast";if(i===35)return"Southwest";if(i===36)return"Northwest";if(i===37)return"West";if(i===38)return"North";if(i===39)return"East";if(i===40)return"South";if(i===45)return"Insert";if(i===46)return"Delete";if(i>=48&&i<=57||i>=65&&i<=90)return String.fromCharCode(i);if(i>=96&&i<=105)return"Numpad"+(i-96);if(i>=112&&i<=123)return"F"+(i-111);if(i===188)return",";if(i===189)return"-";if(i===190)return"."},d=function(i){var v=String(i);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(i.event.defaultPrevented||i.isModifierKey()||S.includes(i.code))){v==="F5"&&(i.event.preventDefault(),i.event.returnValue=!1);var g=p(i.code);if(g){var C=k[g];if(C)return V.debug("macro",C),Byond.command(C);if(i.isDown()&&!y[g]){y[g]=!0;var h='Key_Down "'+g+'"';return V.debug(h),Byond.command(h)}if(i.isUp()&&y[g]){y[g]=!1;var N='Key_Up "'+g+'"';return V.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(i){S.push(i)}return s}(),m=r.releaseHotKey=function(){function s(i){var v=S.indexOf(i);v>=0&&S.splice(v,1)}return s}(),l=r.releaseHeldKeys=function(){function s(){for(var i=0,v=Object.keys(y);i=75?c="green":d.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:d.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:d.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,d.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:!!d.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:d.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:d.wireless?"check":"times",content:d.wireless?"Enabled":"Disabled",color:d.wireless?"green":"red",onClick:function(){function m(){return p("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:d.radio?"check":"times",content:d.radio?"Enabled":"Disabled",color:d.radio?"green":"red",onClick:function(){function m(){return p("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:d.flushing||d.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return p("wipe")}return m}()})})]})})})]})})})}return V}()},78468:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AIFixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;if(d.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;(d.stat===2||d.stat===null)&&(c=!1);var m=null;d.integrity>=75?m="green":d.integrity>=25?m="yellow":m="red";var l=!0;return d.integrity>=100&&d.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:d.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:d.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:!!d.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:d.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.wireless?"times":"check",content:d.wireless?"Disabled":"Enabled",color:d.wireless?"red":"green",onClick:function(){function u(){return p("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.radio?"times":"check",content:d.radio?"Disabled":"Enabled",color:d.radio?"red":"green",onClick:function(){function u(){return p("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||d.active,content:!l||d.active?"Already Repaired":"Repair",onClick:function(){function u(){return p("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:d.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},73544:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.APC=function(){function p(d,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,y)})})}return p}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.locked&&!u.siliconUser,i=u.normallyLocked,v=k[u.externalPower]||k[0],g=k[u.chargingStatus]||k[0],C=u.powerChannels||[],h=S[u.malfStatus]||S[0],N=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function b(){return l("breaker")}return b}()}),children:["[ ",v.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:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function b(){return l("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(b.status===1||b.status===3),disabled:s,onClick:function(){function I(){return l("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&b.status===2,disabled:s,onClick:function(){function I(){return l("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&b.status===0,disabled:s,onClick:function(){function I(){return l("channel",B.off)}return I}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return l(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return l("overload")}return b}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function b(){return l("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function b(){return l("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return l("toggle_nightshift")}return b}()})})]})})],4)}},79098:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ATM=function(){function m(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.view_screen,C=v.authenticated_account,h=v.ticks_left_locked_down,N=v.linked_db,b;if(h>0)b=(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)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(C)switch(g){case 1:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,d);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);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,V),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return m}(),V=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.machine_id,C=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"eject",onClick:function(){function h(){return i("insert_card")}return h}()})})})]})},k=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:g===0,onClick:function(){function C(){return i("change_security_level",{new_security_level:1})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:g===2,onClick:function(){function C(){return i("change_security_level",{new_security_level:2})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=(0,a.useLocalState)(u,"targetAccNumber",0),C=g[0],h=g[1],N=(0,a.useLocalState)(u,"fundsAmount",0),b=N[0],B=N[1],I=(0,a.useLocalState)(u,"purpose",0),w=I[0],T=I[1],A=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,M){return h(M)}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,M){return B(M)}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,M){return T(M)}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 i("transfer",{target_acc_number:C,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=(0,a.useLocalState)(u,"fundsAmount",0),C=g[0],h=g[1],N=v.owner_name,b=v.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 i("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return h(w)}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 i("withdrawal",{funds_amount:C})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return i("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 i("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 i("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 i("balance_statement")}return B}()})})]})],4)},p=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=(0,a.useLocalState)(u,"accountID",null),C=g[0],h=g[1],N=(0,a.useLocalState)(u,"accountPin",null),b=N[0],B=N[1],I=v.machine_id,w=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return i("attempt_auth",{account_num:C,account_pin:b})}return T}()})})]})})},d=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:C.is_deposit?"green":"red",children:["$",C.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.target_name})]},C)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return i("view_screen",{view_screen:0})}return g}()})}},64613:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(5126),V=n(45493),k=n(68159),S=n(27527),y=r.AccountsUplinkTerminal=function(){function v(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.loginState,I=b.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,d):I===2?w=(0,e.createComponentVNode)(2,s):I===3&&(w=(0,e.createComponentVNode)(2,i));else return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return v}(),p=function(g,C){var h=(0,t.useBackend)(C),N=h.data,b=(0,t.useLocalState)(C,"tabIndex",0),B=b[0],I=b[1],w=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 T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},d=function(g,C){var h=(0,t.useLocalState)(C,"tabIndex",0),N=h[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,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.accounts,I=(0,t.useLocalState)(C,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(C,"sortId","owner_name"),x=A[0],E=A[1],M=(0,t.useLocalState)(C,"sortOrder",!0),D=M[0],O=M[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,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)(w,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,j){var F=D?1:-1;return R[x].localeCompare(j[x])*F}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function j(){return N("view_account_detail",{account_num:R.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},m=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return N("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},l=function(g,C){var h=(0,t.useLocalState)(C,"sortId","name"),N=h[0],b=h[1],B=(0,t.useLocalState)(C,"sortOrder",!0),I=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==T&&"transparent",width:"100%",onClick:function(){function x(){N===T?w(!I):(b(T),w(!0))}return x}(),children:[A,N===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.is_printing,I=(0,t.useLocalState)(C,"searchText",""),w=I[0],T=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function 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 T(E)}return A}()})})]})},s=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.account_number,I=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return N("back")}return M}()}),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 M(){return N("set_account_pin",{account_number:B})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function M(){return N("toggle_suspension")}return M}()})]})]})})}),(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(M){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:M.is_deposit?"green":"red",children:["$",M.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.target_name})]},M)})]})})})]})},i=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=(0,t.useLocalState)(C,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(C,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return 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(M,D){return w(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(M,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:I,starting_funds:A})}return E}()})]})}},56839:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=f[c.power.main]||f[0],l=f[c.power.backup]||f[0],u=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return d("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 d("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:u.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 d("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 d("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 d("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 d("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 d("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 d("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 d("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 d("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 d("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 d("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 k}()},5565:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.AirAlarm=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return u}(),k=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.air,N=C.mode,b=C.atmos_alarm,B=C.locked,I=C.alarmActivated,w=C.rcon,T=C.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.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:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.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:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return g(I?"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:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===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!"})})},y=function(s,i){var v=(0,a.useLocalState)(i,"tabIndex",0),g=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return C(0)}return h}(),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 h(){return C(1)}return h}(),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 h(){return C(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return C(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(s,i){var v=(0,a.useLocalState)(i,"tabIndex",0),g=v[0],C=v[1];switch(g){case 0:return(0,e.createComponentVNode)(2,d);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!"}},d=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.vents;return h.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 b(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},c=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.scrubbers;return h.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 b(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return b}()})}),(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 b(){return g("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.modes,N=C.presets,b=C.emagged,B=C.mode,I=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(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:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.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(w){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:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},l=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.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(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},N.name)})]})})}},82915:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AirlockAccessController=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.exterior_status,m=d.interior_status,l=d.processing,u,s;return c==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function i(){return p("force_ext")}return i}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function i(){return p("cycle_ext_door")}return i}()}),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 i(){return p("force_int")}return i}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function i(){return p("cycle_int_door")}return i}()}),(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:[u,s]})})]})})}return V}()},14962:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=1,k=2,S=4,y=8,p=r.AirlockElectronics=function(){function m(l,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})})}return m}(),d=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&S?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:S})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&k?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:k})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&y?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:y})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&V?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:V})}return C}()})})]})]})})},c=function(l,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.selected_accesses,C=v.one_access,h=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function N(){return i("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function N(){return i("set_one_access",{access:"all"})}return N}()})],4),accesses:h,selectedList:g,accessMod:function(){function N(b){return i("set",{access:b})}return N}(),grantAll:function(){function N(){return i("grant_all")}return N}(),denyAll:function(){function N(){return i("clear_all")}return N}(),grantDep:function(){function N(b){return i("grant_region",{region:b})}return N}(),denyDep:function(){function N(b){return i("deny_region",{region:b})}return N}()})}},99327:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),f=n(24674),V=n(45493),k=-1,S=1,y=r.AlertModal=function(){function c(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,v=i.autofocus,g=i.buttons,C=g===void 0?[]:g,h=i.large_buttons,N=i.message,b=N===void 0?"":N,B=i.timeout,I=i.title,w=(0,t.useLocalState)(l,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(C.length>2?100:0),M=function(){function D(O){T===0&&O===k?A(C.length-1):T===C.length-1&&O===S?A(0):A(T+O)}return D}();return(0,e.createComponentVNode)(2,V.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function D(O){var R=window.event?O.which:O.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:C[T]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(O.preventDefault(),M(k)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(O.preventDefault(),M(S))}return D}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,l){var u=(0,t.useBackend)(l),s=u.data,i=s.buttons,v=i===void 0?[]:i,g=s.large_buttons,C=s.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(N,b){return g&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d,{button:N,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,d,{button:N,id:b.toString(),selected:h===b})},b)})})},d=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,v=i.large_buttons,g=m.button,C=m.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:g,fluid:!!v,onClick:function(){function N(){return s("choose",{choice:g})}return N}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&h})}},88642:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AppearanceChanger=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.change_race,l=c.species,u=c.specimen,s=c.change_gender,i=c.gender,v=c.change_eye_color,g=c.change_skin_tone,C=c.change_skin_color,h=c.change_head_accessory_color,N=c.change_hair_color,b=c.change_secondary_hair_color,B=c.change_facial_hair_color,I=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,T=c.change_body_marking_color,A=c.change_tail_marking_color,x=c.change_head_accessory,E=c.head_accessory_styles,M=c.head_accessory_style,D=c.change_hair,O=c.hair_styles,R=c.hair_style,j=c.change_hair_gradient,F=c.change_facial_hair,W=c.facial_hair_styles,K=c.facial_hair_style,z=c.change_head_markings,$=c.head_marking_styles,Y=c.head_marking_style,X=c.change_body_markings,J=c.body_marking_styles,le=c.body_marking_style,ce=c.change_tail_markings,fe=c.tail_marking_styles,pe=c.tail_marking_style,be=c.change_body_accessory,te=c.body_accessory_styles,Q=c.body_accessory_style,ne=c.change_alt_head,me=c.alt_head_styles,ae=c.alt_head_style,ue=!1;return(v||g||C||h||N||b||B||I||w||T||A)&&(ue=!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(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.specimen,selected:oe.specimen===u,onClick:function(){function ke(){return d("race",{race:oe.specimen})}return ke}()},oe.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:i==="male",onClick:function(){function oe(){return d("gender",{gender:"male"})}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:i==="female",onClick:function(){function oe(){return d("gender",{gender:"female"})}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:i==="plural",onClick:function(){function oe(){return d("gender",{gender:"plural"})}return oe}()})]}),!!ue&&(0,e.createComponentVNode)(2,V),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:E.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.headaccessorystyle,selected:oe.headaccessorystyle===M,onClick:function(){function ke(){return d("head_accessory",{head_accessory:oe.headaccessorystyle})}return ke}()},oe.headaccessorystyle)})}),!!D&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:O.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.hairstyle,selected:oe.hairstyle===R,onClick:function(){function ke(){return d("hair",{hair:oe.hairstyle})}return ke}()},oe.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 oe(){return d("hair_gradient")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function oe(){return d("hair_gradient_offset")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function oe(){return d("hair_gradient_colour")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function oe(){return d("hair_gradient_alpha")}return oe}()})]}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.facialhairstyle,selected:oe.facialhairstyle===K,onClick:function(){function ke(){return d("facial_hair",{facial_hair:oe.facialhairstyle})}return ke}()},oe.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:$.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.headmarkingstyle,selected:oe.headmarkingstyle===Y,onClick:function(){function ke(){return d("head_marking",{head_marking:oe.headmarkingstyle})}return ke}()},oe.headmarkingstyle)})}),!!X&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:J.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.bodymarkingstyle,selected:oe.bodymarkingstyle===le,onClick:function(){function ke(){return d("body_marking",{body_marking:oe.bodymarkingstyle})}return ke}()},oe.bodymarkingstyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:fe.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.tailmarkingstyle,selected:oe.tailmarkingstyle===pe,onClick:function(){function ke(){return d("tail_marking",{tail_marking:oe.tailmarkingstyle})}return ke}()},oe.tailmarkingstyle)})}),!!be&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:te.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.bodyaccessorystyle,selected:oe.bodyaccessorystyle===Q,onClick:function(){function ke(){return d("body_accessory",{body_accessory:oe.bodyaccessorystyle})}return ke}()},oe.bodyaccessorystyle)})}),!!ne&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:me.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.altheadstyle,selected:oe.altheadstyle===ae,onClick:function(){function ke(){return d("alt_head",{alt_head:oe.altheadstyle})}return ke}()},oe.altheadstyle)})})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.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_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 u(){return d(l.action)}return u}()},l.key)})})}},51731:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosAlertConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.priority||[],m=d.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 V}()},57467:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),f=n(45493),V=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"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function d(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=(0,a.useLocalState)(m,"tabIndex",0),v=i[0],g=i[1],C=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return d}(),y=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=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"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return u("open_alarm",{aref:v.ref})}return g}()})})]},v.name)})]})})},p=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=(0,a.useLocalState)(m,"zoom",1),i=s[0],v=s[1],g=u.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function C(h){return v(h)}return C}(),children:g.filter(function(C){return C.z===2}).map(function(C){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:C.x,y:C.y,zoom:i,icon:"circle",tooltip:C.name,color:k(C.danger)},C.ref)})})})}},41550:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosFilter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.on,m=d.pressure,l=d.max_pressure,u=d.filter_type,s=d.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 i(){return p("power")}return i}()})}),(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 i(){return p("min_pressure")}return i}()}),(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 i(v,g){return p("custom_pressure",{pressure:g})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function i(){return p("max_pressure")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{selected:i.gas_type===u,content:i.label,onClick:function(){function v(){return p("set_filter",{filter:i.gas_type})}return v}()},i.label)})})]})})})})}return V}()},70151:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosMixer=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.on,l=c.pressure,u=c.max_pressure,s=c.node1_concentration,i=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 v(){return d("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function v(){return d("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:l,onDrag:function(){function v(g,C){return d("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===u,width:2.2,onClick:function(){function v(){return d("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:i})]})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=S.node_name,l=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function u(){return d("set_node",{node_name:m,concentration:(l-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function u(s,i){return d("set_node",{node_name:m,concentration:i/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function u(){return d("set_node",{node_name:m,concentration:(l+10)/100})}return u}()})]})}},54090:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosPump=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.on,m=d.rate,l=d.max_rate,u=d.gas_unit,s=d.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 i(){return p("power")}return i}()})}),(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 i(){return p("min_rate")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:l,value:m,onDrag:function(){function i(v,g){return p("custom_rate",{rate:g})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function i(){return p("max_rate")}return i}()})]})]})})})})}return V}()},31335:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(36121),f=n(38424),V=n(45493),k=r.AtmosTankControl=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.sensors||{};return(0,e.createComponentVNode)(2,V.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[Object.keys(l).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(l[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[l[u].pressure," kpa"]}):"",Object.keys(l[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[l[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(l[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:l[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(l[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,i){return c("set_pressure",{dev:"inlet",val:i})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,i){return c("set_pressure",{dev:"outlet",val:i})}return u}()})})]})}):""]})})}return S}()},85909:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),k=n(78234),S=function(d,c,m,l){return d.requirements===null?!0:!(d.requirements.metal*l>c||d.requirements.glass*l>m)},y=r.Autolathe=function(){function p(d,c){var m=(0,o.useBackend)(c),l=m.act,u=m.data,s=u.total_amount,i=u.max_amount,v=u.metal_amount,g=u.glass_amount,C=u.busyname,h=u.busyamt,N=u.showhacked,b=u.buildQueue,B=u.buildQueueLen,I=u.recipes,w=u.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=(0,o.useSharedState)(c,"search_text",""),R=O[0],j=O[1],F=(0,k.createSearch)(R,function($){return $.name}),W="";B>0&&(W=b.map(function($,Y){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[Y][0],onClick:function(){function X(){return l("remove_from_queue",{remove_from_queue:b.indexOf($)+1})}return X}()},$)},Y)}));var K=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||R)&&(u.showhacked||!$.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(I),z="Build";return R?z="Results for: '"+R+"':":A&&(z="Build ("+A+")"),(0,e.createComponentVNode)(2,V.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function $(Y){return x(Y)}return $}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(Y,X){return j(X)}return $}(),mb:1}),K.map(function($){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+$.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===1,disabled:!S($,u.metal_amount,u.glass_amount,1),onClick:function(){function Y(){return l("make",{make:$.uid,multiplier:1})}return Y}(),children:(0,k.toTitleCase)($.name)}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===10,disabled:!S($,u.metal_amount,u.glass_amount,10),onClick:function(){function Y(){return l("make",{make:$.uid,multiplier:10})}return Y}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===25,disabled:!S($,u.metal_amount,u.glass_amount,25),onClick:function(){function Y(){return l("make",{make:$.uid,multiplier:25})}return Y}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===$.max_multiplier,disabled:!S($,u.metal_amount,u.glass_amount,$.max_multiplier),onClick:function(){function Y(){return l("make",{make:$.uid,multiplier:$.max_multiplier})}return Y}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(Y){return(0,k.toTitleCase)(Y)+": "+$.requirements[Y]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},$.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:M}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[W,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function $(){return l("clear_queue")}return $}()})]})]})]})})})}return p}()},81617:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BioChipPad=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.implant,m=d.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",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})]})],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!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function l(){return p("eject_case")}return l}()})]})})})}return V}()},26215:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.Biogenerator=function(){function d(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.config,i=u.container,v=u.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,f.Operating,{operating:v,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),i?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=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."]})})})},S=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.biomass,v=s.container,g=s.container_curr_reagents,C=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:i}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:C,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+C+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.has_plants,v=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!i,tooltip:i?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return u("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:!v,tooltip:v?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return u("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:!i,tooltip:i?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return u("eject_plants")}return g}()})})]})})},p=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.biomass,v=s.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),C=g[0],h=g[1],N=Object.entries(v).map(function(b,B){var I=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:I.map(function(w){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:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*C,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:iu&&"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:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),u>N&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(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.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===0,tooltip:"Set to 0",onClick:function(){function I(){return d("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function I(){return d("set",{set_level:u})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function I(){return d("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:u,minValue:0,color:B,maxValue:C,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return d("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===C,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return d("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===C,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return d("set",{set_level:C})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(g)})]})})}),(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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:i})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=s,onClick:function(){function w(){return d("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return k}()},71736:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),f=n(24674),V=n(45493),k=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],y=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],p={average:[.25,.5],bad:[.5,1/0]},d=function(B,I){for(var w=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:w},w)],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 b(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,M=A?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,V.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:M})})}return b}(),u=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,i,{occupant:I}),(0,e.createComponentVNode)(2,v,{occupant:I}),(0,e.createComponentVNode)(2,C,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:I.intOrgan})]})},s=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:k[x.stat][0],children:k[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},i=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,f.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},v=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:d(y,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:I[w[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},h=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:p,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},N=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},99449:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(18963),k=r.BookBinder=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.selectedbook,u=m.book_categories,s=[];return u.map(function(i){return s[i.description]=i.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function i(){return c("print_book")}return i}()}),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 i(){return(0,f.modalOpen)(p,"edit_selected_title")}return i}()})}),(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 i(){return(0,f.modalOpen)(p,"edit_selected_author")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(i){return i.description}),onSelected:function(){function i(v){return c("toggle_binder_category",{category_id:s[v]})}return i}()})})}),(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 i(){return(0,f.modalOpen)(p,"edit_selected_summary")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:l.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(i){return l.categories.includes(i.category_id)}).map(function(i){return(0,e.createComponentVNode)(2,t.Button,{content:i.description,selected:!0,icon:"unlink",onClick:function(){function v(){return c("toggle_binder_category",{category_id:i.category_id})}return v}()},i.category_id)})]})})]})})})]})}return S}()},85951:function(L,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(d){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",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,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(l){return l.modes.includes(d)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},V=r.BotCall=function(){function p(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),i=s[0],v=s[1],g={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},C=function(){function h(N){return g[N]?(0,e.createComponentVNode)(2,k,{model:g[N]}):"This should not happen. Report on Paradise Github"}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:i===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(h,N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:i===N,onClick:function(){function b(){return v(N)}return b}(),children:g[N]},N)})})}),C(i)]})})})}return p}(),k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.bots;return s[d.model]!==void 0?(0,e.createComponentVNode)(2,y,{model:[d.model]}):(0,e.createComponentVNode)(2,S,{model:[d.model]})},S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[d.model]," detected"]})})},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[d.model].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.on?f(i.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function v(){return l("interface",{botref:i.UID})}return v}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function v(){return l("call",{botref:i.UID})}return v}()})})]},i.UID)})]})})})}},43506:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.locked,l=c.noaccess,u=c.maintpanel,s=c.on,i=c.autopatrol,v=c.canhack,g=c.emagged,C=c.remote_disabled,h=c.painame,N=c.cleanblood,b=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,f.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 d("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:b?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return d("area")}return B}()}),b!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:b})})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function B(){return d("ejectpai")}return B}()})})]})})}return k}()},89593:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.noaccess,l=c.painame,u=c.hullplating,s=c.replace,i=c.eat,v=c.make,g=c.fixfloor,C=c.nag_empty,h=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,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:N})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function b(){return d("autotile")}return b}()}),(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 b(){return d("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return d("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Finds tiles",disabled:m,onClick:function(){function b(){return d("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return d("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return d("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return d("anchored")}return b}()})]}),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 b(){return d("ejectpai")}return b}()})})]})})}return k}()},89513:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return k}()},19297:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.locked,l=c.noaccess,u=c.maintpanel,s=c.on,i=c.autopatrol,v=c.canhack,g=c.emagged,C=c.remote_disabled,h=c.painame,N=c.shut_up,b=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=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,f.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 d("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:l,onClick:function(){function E(){return d("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:l,onChange:function(){function E(M,D){return d("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:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(M){return M+"u"}return E}(),disabled:l,onChange:function(){function E(M,D){return d("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:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:l,onClick:function(){function E(){return d("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 d("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 d("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 d("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function E(){return d("ejectpai")}return E}()})})]})})})}return k}()},4249:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.noaccess,l=c.painame,u=c.check_id,s=c.check_weapons,i=c.check_warrant,v=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,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function C(){return d("authid")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function C(){return d("authweapon")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Wanted Criminals",disabled:m,onClick:function(){function C(){return d("authwarrant")}return C}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function C(){return d("arrtype")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function C(){return d("arrdeclare")}return C}()})]}),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 C(){return d("ejectpai")}return C}()})})]})})}return k}()},27267:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),f=function(y,p){var d=y.cell,c=(0,o.useBackend)(p),m=c.act,l=d.cell_id,u=d.occupant,s=d.crimes,i=d.brigged_by,v=d.time_left_seconds,g=d.time_set_seconds,C=d.ref,h="";v>0&&(h+=" BrigCells__listRow--active");var N=function(){m("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(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:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},V=function(y){var p=y.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(d){return(0,e.createComponentVNode)(2,f,{cell:d},d.ref)})]})},k=r.BrigCells=function(){function S(y,p){var d=(0,o.useBackend)(p),c=d.act,m=d.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,V,{cells:l})})})})})}return S}()},26623:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BrigTimer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;d.nameText=d.occupant,d.timing&&(d.prisoner_hasrec?d.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:d.occupant}):d.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d.occupant}));var c="pencil-alt";d.prisoner_name&&(d.prisoner_hasrec||(c="exclamation-triangle"));var m=[],l=0;for(l=0;lm?this.substring(0,m)+"...":this};var y=function(l,u){var s,i;if(!u)return[];var v=l.findIndex(function(g){return g.name===u.name});return[(s=l[v-1])==null?void 0:s.name,(i=l[v+1])==null?void 0:i.name]},p=function(l,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(i){return i.name});return(0,t.flow)([(0,a.filter)(function(i){return i==null?void 0:i.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(i){return i.name})])(l)},d=r.CameraConsole=function(){function m(l,u){var s=(0,V.useBackend)(u),i=s.act,v=s.data,g=s.config,C=v.mapRef,h=v.activeCamera,N=p(v.cameras),b=y(N,h),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return i("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return i("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(l,u){var s=(0,V.useBackend)(u),i=s.act,v=s.data,g=(0,V.useLocalState)(u,"searchText",""),C=g[0],h=g[1],N=v.activeCamera,b=p(v.cameras,C);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.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 I(){return i("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},95513:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(92986),V=n(45493),k=r.Canister=function(){function S(y,p){var d=(0,t.useBackend)(p),c=d.act,m=d.data,l=m.portConnected,u=m.tankPressure,s=m.releasePressure,i=m.defaultReleasePressure,v=m.minReleasePressure,g=m.maxReleasePressure,C=m.valveOpen,h=m.name,N=m.canLabel,b=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var M=[],D=[],O=[],R=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.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:i.cooldown_time||!h.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:i.cooldown_time||!h.can_open,onClick:function(){function N(){return s("make_job_available",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:i.cooldown_time||!h.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:h.title})}return N}()})})]},h.title)})]})})]}):C=(0,e.createComponentVNode)(2,S);break;case 2:!i.authenticated||!i.scan_name?C=(0,e.createComponentVNode)(2,S):i.modify_name?C=(0,e.createComponentVNode)(2,f.AccessList,{accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function h(N){return s("set",{access:N})}return h}(),grantAll:function(){function h(){return s("grant_all")}return h}(),denyAll:function(){function h(){return s("clear_all")}return h}(),grantDep:function(){function h(N){return s("grant_region",{region:N})}return h}(),denyDep:function(){function h(N){return s("deny_region",{region:N})}return h}()}):C=(0,e.createComponentVNode)(2,y);break;case 3:i.authenticated?i.records.length?C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!i.authenticated||i.records.length===0||i.target_dept,onClick:function(){function h(){return s("wipe_all_logs")}return h}()}),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"}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),i.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!i.authenticated||i.records.length===0,onClick:function(){function h(){return s("wipe_my_logs")}return h}()})})]}):C=(0,e.createComponentVNode)(2,p):C=(0,e.createComponentVNode)(2,S);break;case 4:!i.authenticated||!i.scan_name?C=(0,e.createComponentVNode)(2,S):C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),i.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:h.name})}return N}()})})]},h.title)})]})});break;default:C=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return c}()},16377:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),k=n(78234),S=r.CargoConsole=function(){function u(s,i){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return u}(),y=function(s,i){var v=(0,o.useLocalState)(i,"contentsModal",null),g=v[0],C=v[1],h=(0,o.useLocalState)(i,"contentsModalTitle",null),N=h[0],b=h[1];if(g!==null&&N!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){C(null),b(null)}return B}()})})]})},p=function(s,i){var v=(0,o.useBackend)(i),g=v.act,C=v.data,h=C.is_public,N=C.timeleft,b=C.moving,B=C.at_station,I,w;return!b&&!B?(I="Docked off-station",w="Call Shuttle"):!b&&B?(I="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",N!==1?I="Shuttle is en route (ETA: "+N+" minutes)":I="Shuttle is en route (ETA: "+N+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:b,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},d=function(s,i){var v,g=(0,o.useBackend)(i),C=g.act,h=g.data,N=h.accounts,b=(0,o.useLocalState)(i,"selectedAccount"),B=b[0],I=b[1],w=[];return N.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(T){return T.name}),selected:(v=N.filter(function(T){return T.account_UID===B})[0])==null?void 0:v.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),N.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,i){var v=(0,o.useBackend)(i),g=v.act,C=v.data,h=C.requests,N=C.categories,b=C.supply_packs,B=(0,o.useSharedState)(i,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(i,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(i,"contentsModal",null),M=E[0],D=E[1],O=(0,o.useLocalState)(i,"contentsModalTitle",null),R=O[0],j=O[1],F=(0,k.createSearch)(A,function(X){return X.name}),W=(0,o.useLocalState)(i,"selectedAccount"),K=W[0],z=W[1],$=(0,a.flow)([(0,t.filter)(function(X){return X.cat===N.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(X){return X.name.toLowerCase()})])(b),Y="Crate Catalogue";return A?Y="Results for '"+A+"':":I&&(Y="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:Y,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(X){return X.name}),selected:I,onSelected:function(){function X(J){return w(J)}return X}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function X(J,le){return x(le)}return X}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:$.map(function(X){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[X.name," (",X.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!K,onClick:function(){function J(){return g("order",{crate:X.ref,multiple:!1,account:K})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!K||X.singleton,onClick:function(){function J(){return g("order",{crate:X.ref,multiple:!0,account:K})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){D(X.contents),j(X.name)}return J}()})]})]},X.name)})})})]})})},m=function(s,i){var v=s.request,g,C;switch(v.department){case"Engineering":C="CE",g="orange";break;case"Medical":C="CMO",g="teal";break;case"Science":C="RD",g="purple";break;case"Supply":C="CT",g="brown";break;case"Service":C="HOP",g="olive";break;case"Security":C="HOS",g="red";break;case"Command":C="CAP",g="blue";break;case"Assistant":C="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!v.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!v.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:g,content:C,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+C+" can approve it":"This Order requires approval from the "+C+" still"})})]})},l=function(s,i){var v=(0,o.useBackend)(i),g=v.act,C=v.data,h=C.requests,N=C.orders,b=C.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return g("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return g("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},89917:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ChangelogView=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],l=c[1],u=d.cl_data,s=d.last_cl,i={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},v=function(){function g(C){return C in i?i[C]:(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:u.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 C(){return p("open_pr",{pr_number:g.num})}return C}()}),children:g.entries.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(C.etype)," ",C.etext]},C)})},g)})})})})}return V}()},71254:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),f=n(45493),V=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=i.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+v.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,d)]})})})}return c}(),y=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=i.amount,g=i.energy,C=i.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:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[g," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:V.map(function(h,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:v===h,content:h,onClick:function(){function b(){return s("amount",{amount:h})}return b}()})},N)})})})]})})})},p=function(m,l){for(var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=i.chemicals,g=v===void 0?[]:v,C=[],h=0;h<(g.length+1)%3;h++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:i.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(N,b){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}()},b)}),C.map(function(N,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},d=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=i.isBeakerLoaded,g=i.beakerCurrentVolume,C=i.beakerMaxVolume,h=i.beakerContents,N=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:i.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function b(){return s("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:N,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),k.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return b}()})})})}},27004:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(1496),V=n(45493),k=r.ChemHeater=function(){function p(d,c){return(0,e.createComponentVNode)(2,V.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(d,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.targetTemp,i=u.targetTempReached,v=u.autoEject,g=u.isActive,C=u.currentTemp,h=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function N(){return l("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,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(b,B){return l("adjust_temperature",{target:B})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:i?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function N(b){return(0,a.toFixed)(b)+" K"}return N}()})||"\u2014"})]})})})},y=function(d,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.isBeakerLoaded,i=u.beakerCurrentVolume,v=u.beakerMaxVolume,g=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[i," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return l("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:g})})})}},41099:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(1496),V=n(99665),k=n(28234),S=["icon"];function y(I,w){if(I==null)return{};var T={},A=Object.keys(I),x,E;for(E=0;E=0)&&(T[x]=I[x]);return T}function p(I,w){I.prototype=Object.create(w.prototype),I.prototype.constructor=I,d(I,w)}function d(I,w){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function T(A,x){return A.__proto__=x,A}return T}(),d(I,w)}var c=[1,5,10],m=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=w.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:M.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(M.desc||"").length>0?M.desc:"N/A"}),M.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:M.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:M.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:M.idx,beaker:w.args.beaker})}return D}()})]})})})})},l=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(l||{}),u=r.ChemMaster=function(){function I(w,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,V.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,i),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,B)]})})]})}return I}(),s=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.beaker,D=E.beaker_reagents,O=E.buffer_reagents,R=O.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function j(){return x("eject")}return j}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function j(){return x("eject")}return j}()}),children:M?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function j(F,W){return(0,e.createComponentVNode)(2,t.Box,{mb:W0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function O(R,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0&&(R=O.map(function(j){var F=j.id,W=j.sprite;return(0,e.createComponentVNode)(2,N,{icon:W,color:"translucent",onClick:function(){function K(){return x("set_sprite_style",{production_mode:M,style:F})}return K}(),selected:D===F},F)})),(0,e.createComponentVNode)(2,h,{productionData:w.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},B=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.loaded_pill_bottle_style,D=E.containerstyles,O=E.loaded_pill_bottle,R={width:"20px",height:"20px"},j=D.map(function(F){var W=F.color,K=F.name,z=M===W;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function $(){return x("set_container_style",{style:W})}return $}(),icon:z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:K,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:R.width,height:R.height,"background-color":W,opacity:.6,filter:"alpha(opacity=60)"}})]},W)});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:!O,content:"Eject Container",onClick:function(){function F(){return x("ejectp")}return F}()}),children:O?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function F(){return x("clear_container_style")}return F}(),selected:!M,tooltip:"Default",tooltipPosition:"top"}),j]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,V.modalRegisterBodyOverride)("analyze",m)},51327:function(L,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(17442),V=1,k=32,S=128,y=r.CloningConsole=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.tab,N=C.has_scanner,b=C.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:N?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:b})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===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:h===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,p)})]})})}return u}(),p=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.tab,h;return C===1?h=(0,e.createComponentVNode)(2,d):C===2&&(h=(0,e.createComponentVNode)(2,c)),h},d=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.pods,N=C.pod_amount,b=C.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&&h.map(function(B,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:b===B.uid,onClick:function(){function w(){return g("select_pod",{uid:B.uid})}return w}(),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,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.selected_pod_data,N=C.has_scanned,b=C.scanner_has_patient,B=C.feedback,I=C.scan_successful,w=C.cloning_cost,T=C.has_scanner;return(0,e.createComponentVNode)(2,t.Box,{children:[!T&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!T&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function A(){return g("scan")}return A}(),children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function A(){return g("eject")}return A}(),children:"Eject Patient"})]}),children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:b?"No scan detected for current patient.":"No patient is in the scanner."}),!!N&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!N)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!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 A(){return g("fix_all")}return A}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return g("fix_none")}return A}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return g("clone")}return A}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[0],maxValue:h.biomass_storage_capacity,ranges:{bad:[2*h.biomass_storage_capacity/3,h.biomass_storage_capacity],average:[h.biomass_storage_capacity/3,2*h.biomass_storage_capacity/3],good:[0,h.biomass_storage_capacity/3]},color:w[0]>h.biomass?"bad":null,children:["Biomass: ",w[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)]})]})})]})]})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.patient_limb_data,N=C.limb_list,b=C.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:N.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0]+b[B][1],maxValue:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+b[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+b[B][1]]})}),h[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 ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&V),checked:!(b[B][2]&V),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&k),checked:!(b[B][2]&k),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},l=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.patient_organ_data,N=C.organ_list,b=C.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:N.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!b[B][0],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),h[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:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},66373:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CloningPod=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.biomass,m=d.biomass_storage_capacity,l=d.sanguine_reagent,u=d.osseous_reagent,s=d.organs,i=d.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 v(g,C){return p("remove_reagent",{reagent:"sanguine_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return p("purge_reagent",{reagent:"sanguine_reagent"})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function v(g,C){return p("remove_reagent",{reagent:"osseous_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return p("purge_reagent",{reagent:"osseous_reagent"})}return v}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!i&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(v){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function g(){return p("eject_organ",{organ_ref:v.ref})}return g}()})})]},v)})]}),!!i&&(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 V}()},38781:function(L,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.CoinMint=function(){function k(S,y){var p=(0,t.useBackend)(y),d=p.act,c=p.data,m=c.materials,l=c.moneyBag,u=c.moneyBagContent,s=c.moneyBagMaxContent,i=(l?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:i,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",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 v(){return d("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue: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 v(){return d("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:v.id===c.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function g(){return d("selectMaterial",{material:v.id})}return g}()},v.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 v(){return d("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return k}()},11866:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ColourMatrixTester=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.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(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(i,v){return p("setvalue",{idx:u.idx+1,value:v})}return s}()})]},u.name)})},l)})})})})})}return V}()},22420:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,d);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."}},V=r.CommunicationsComputer=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),f(h)]})})})}return u}(),k=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.authenticated,N=C.noauthbutton,b=C.esc_section,B=C.esc_callable,I=C.esc_recallable,w=C.esc_status,T=C.authhead,A=C.is_ai,x=C.lastCallLoc,E=!1,M;return h?h===1?M="Command":h===2?M="Captain":h===3?M="CentComm Officer":h===4?(M="CentComm Secure Connection",E=!0):M="ERROR: Report This Bug!":M="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:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:N,content:h?"Log Out ("+M+")":"Log In",onClick:function(){function D(){return g("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function D(){return g("callshuttle")}return D}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function D(){return g("cancelshuttle")}return D}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.is_admin,N=C.gamma_armory_location,b=C.admin_levels,B=C.authenticated,I=C.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:b,required_access:h,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:!h,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),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:!h,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(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:!h,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.msg_cooldown,N=C.emagged,b=C.cc_cooldown,B=C.security_level_color,I=C.str_security_level,w=C.levels,T=C.authcapt,A=C.authhead,x=C.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var M=N?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return b>0&&(M+=" ("+b+"s)",D+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function O(){return g("announce")}return O}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!T||b>0,onClick:function(){function O(){return g("MessageSyndicate")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function O(){return g("RestoreBackup")}return O}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!T||b>0,onClick:function(){function O(){return g("MessageCentcomm")}return O}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!T||b>0,onClick:function(){function O(){return g("nukerequest")}return O}()})})]})})}),(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 O(){return g("status")}return O}()})}),(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 O(){return g("messagelist")}return O}()})})]})})})],4)},d=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.stat_display,N=C.authhead,b=C.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!N,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),I=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!N,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.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 w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!N,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!N,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.authhead,N=C.current_message_title,b=C.current_message,B=C.messages,I=C.security_level,w;if(N)w=(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:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=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:!h||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:!h,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(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:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=s.levels,N=s.required_access,b=s.use_confirm,B=C.security_level;return b?h.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)}):h.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)})},l=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.is_admin,N=C.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(i,"subtitle",""),B=b[0],I=b[1],w=(0,a.useLocalState)(i,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(i,"classified",0),E=x[0],M=x[1],D=(0,a.useLocalState)(i,"beepsound","Beep"),O=D[0],R=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 j(){return g("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(F,W){return I(W)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(F,W){return A(W)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:O})}return j}()}),(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:O,onSelected:function(){function j(F){return R(F)}return j}(),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 j(){return g("test_sound",{sound:O})}return j}()})}),(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 j(){return M(!E)}return j}()})})]})]})})}},46868:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CompostBin=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.biomass,m=d.compost,l=d.biomass_capacity,u=d.compost_capacity,s=d.potassium,i=d.potassium_capacity,v=d.potash,g=d.potash_capacity,C=(0,a.useSharedState)(S,"vendAmount",1),h=C[0],N=C[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value: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:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[s," / ",i," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:v,minValue:0,maxValue:g,ranges:{good:[g*.5,1/0],average:[g*.25,g*.5],bad:[-1/0,g*.25]},children:[v," / ",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:h,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function b(B,I){return N(I)}return b}()})],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*h,icon:"arrow-circle-down",onClick:function(){function b(){return p("create",{amount:h})}return b}()})})})]})})})}return V}()},64707:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(99509),V=n(45493);function k(g,C){g.prototype=Object.create(C.prototype),g.prototype.constructor=g,S(g,C)}function S(g,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(N,b){return N.__proto__=b,N}return h}(),S(g,C)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["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"],d=r.Contractor=function(){function g(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(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):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return g}(),c=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.tc_available,w=B.tc_paid_out,T=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"]})},C,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(O){return O.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),M=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:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function O(R,j){return" ("+j.substr(3)+")"}return O}()})],onClick:function(){function O(){return b("extract")}return O}()})},C,{children:I.slice().sort(function(O,R){return O.status===1?-1:R.status===1?1:O.status-R.status}).map(function(O){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:O.status===1&&"good",children:O.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:O.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return D("target_photo_"+O.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[O.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[O.status][1],inline:!0,mt:O.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[O.status][0]}),O.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return b("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[O.fluff_message,!!O.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 ",O.completed_time]}),!!O.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."]}),!!O.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: ",O.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(O)]}),(R=O.difficulties)==null?void 0:R.map(function(j,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function W(){return b("activate",{uid:O.uid,difficulty:F+1})}return W}()},F)}),!!O.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[O.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(O.objective.rewards.tc||0)+" TC",",\xA0",(O.objective.rewards.credits||0)+" Credits",")"]})]})]})},O.uid)})})))},u=function(C){if(!(!C.objective||C.status>1)){var h=C.objective.locs.user_area_id,N=C.objective.locs.user_coords,b=C.objective.locs.target_area_id,B=C.objective.locs.target_coords,I=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-N[1],B[0]-N[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},i=function(g){function C(N){var b;return b=g.call(this,N)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}k(C,g);var h=C.prototype;return h.tick=function(){function N(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return N}(),h.componentDidMount=function(){function N(){var b=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/I)}return N}(),h.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),h.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return N}(),C}(e.Component),v=function(C,h){var N=(0,t.useLocalState)(h,"viewingPhoto",""),b=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:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},52141:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ConveyorSwitch=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.slowFactor,m=d.oneWay,l=d.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 u(){return p("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return p("slowFactor",{value:c-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return p("slowFactor",{value:c-1})}return u}()})," "]}),(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 u(s){return s+"x"}return u}(),onChange:function(){function u(s,i){return p("slowFactor",{value:i})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return p("slowFactor",{value:c+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return p("slowFactor",{value:c+5})}return u}()})," "]})]})})]})})})})}return V}()},94187:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),f=n(24674),V=n(5126),k=n(38424),S=n(45493),y=function(u,s){return u.dead?"Deceased":parseInt(u.health,10)<=s?"Critical":parseInt(u.stat,10)===1?"Unconscious":"Living"},p=function(u,s){return u.dead?"red":parseInt(u.health,10)<=s?"orange":parseInt(u.stat,10)===1?"blue":"green"},d=r.CrewMonitor=function(){function l(u,s){var i=(0,o.useBackend)(s),v=i.act,g=i.data,C=(0,o.useLocalState)(s,"tabIndex",0),h=C[0],N=C[1],b=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return N(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return N(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return l}(),c=function(u,s){var i=(0,o.useBackend)(s),v=i.act,g=i.data,C=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,N=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(s,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:N,onSelected:function(){function A(x){return v("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),C.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(A,g.critThreshold),children:y(A,g.critThreshold)}),A.sensor_type>=2||g.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:A.sensor_type===3||g.ignoreSensors?g.isAI||g.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return v("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(u,s){var i=(0,o.useBackend)(s),v=i.act,g=i.data,C=(0,o.useLocalState)(s,"zoom",1),h=C[0],N=C[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function b(B){return N(B)}return b}(),children:g.crewmembers.filter(function(b){return b.sensor_type===3||g.ignoreSensors}).map(function(b){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:b.x,y:b.y,zoom:h,icon:"circle",tooltip:b.name+" ("+b.assignment+")",color:p(b,g.critThreshold),onClick:function(){function B(){return g.isObserver?v("track",{track:b.ref}):null}return B}()},b.ref)})})})}},60561:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(d,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,S)})})})}return p}(),S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.isOperating,i=u.hasOccupant,v=u.occupant,g=v===void 0?[]:v,C=u.cellTemperature,h=u.cellTemperatureStatus,N=u.isBeakerLoaded,b=u.cooldownProgress,B=u.auto_eject_healthy,I=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return l("ejectOccupant")}return w}(),disabled:!i,children:"Eject"}),children:i?(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:V[g.stat][0],children:V[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),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.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 w(){return l("ejectBeaker")}return w}(),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 w(){return l(s?"switchOff":"switchOn")}return w}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!N&&"average",value:b,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 w(){return l(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return l(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.isBeakerLoaded,i=u.beakerLabel,v=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!i&&"average",children:[i||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!v&&"bad",ml:1,children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function g(C){return Math.round(C)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},27889:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=r.CryopodConsole=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.data,l=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!u&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,d){var c=(0,a.useBackend)(d),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(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.frozen_items,s=function(v){var g=v.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,f.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(i.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:i.uid})}return v}()})},i)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function i(){return m("all_items")}return i}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function h(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)})]})})]})}return h}(),p=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("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:V[x.stat][0],children:V[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.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:w.occupant.uniqueEnzymes?w.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."})})},d=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,u):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(M,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:M[2],selected:T===M[0],onClick:function(){function O(){return I("selectMenuKey",{key:M[0]})}return O}(),children:M[1]},D)})}),E]})},c=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.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 M(D){return D.toString(16).toUpperCase()}return M}(),ml:"0",onChange:function(){function M(D,O){return I("changeUITarget",{value:O})}return M}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function M(){return I("pulseUIRadiation")}return M}()})]})},m=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},l=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationIntensity",{value:M})}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,M){return I("radiationDuration",{value:M})}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 I("pulseRadiation")}return x}()})]})},u=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,i)})]})},s=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=N.id,A=N.name,x=N.buffer,E=w.isInjectorReady,M=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:M,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 I("bufferOption",{option:"clear",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function D(){return I("bufferOption",{option:"changeLabel",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return I("bufferOption",{option:"saveDisk",id:T})}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 I("bufferOption",{option:"saveUI",id:T})}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 I("bufferOption",{option:"saveUIAndUE",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveSE",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"loadDisk",id:T})}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 I("bufferOption",{option:"createInjector",id:T})}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 I("bufferOption",{option:"createInjector",id:T,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"transfer",id:T})}return D}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},i=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(N,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,M){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function D(){return I("injectRejuvenators",{amount:E})}return D}()},M)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("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,b){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)})]})},C=function(N,b){for(var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,M=N.action,D=T.split(""),O=0,R=[],j=function(){for(var K=F/E+1,z=[],$=function(){var J=Y+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===J,content:D[F+Y],mb:"0",onClick:function(){function le(){return I(M,{block:K,subblock:J})}return le}()}))},Y=0;Yi.spawnpoints?"red":"green",children:[i.total," total, versus ",i.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:C})}return N}()})})]})})})},p=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=i.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:v&&v.length?v.map(function(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 C(){return s("view_player_panel",{uid:g.sender_uid})}return C}(),tooltip:"View player panel"}),children:g.message},(0,f.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."]})})})})},d=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,v=(0,a.useLocalState)(l,"text",""),g=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function h(N,b){return C(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return s("deny_ert",{reason:g})}return h}()})]})})}},24503:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.EconomyManager=function(){function S(y,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.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 u(){return c("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return c("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return c("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return c("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},15543:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),d=p.act,c=p.data,m=c.power,l=c.code,u=c.frequency,s=c.minFrequency,i=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function v(){return d("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return d("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:i/10,value:u/10,format:function(){function v(g){return(0,a.toFixed)(g,1)}return v}(),width:"80px",onChange:function(){function v(g,C){return d("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return d("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function v(g,C){return d("code",{code:C})}return v}()})})]})})})})}return k}()},57013:function(L,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.Emojipedia=function(){function S(y,p){var d=(0,t.useBackend)(p),c=d.data,m=c.emoji_list,l=(0,t.useLocalState)(p,"searchText",""),u=l[0],s=l[1],i=m.filter(function(v){return v.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function v(g,C){return s(C)}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:i.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+v.name]),style:{transform:"scale(1.5)"},tooltip:v.name,onClick:function(){function g(){k(v.name)}return g}()},v.name)})})})})}return S}(),k=function(y){var p=document.createElement("input"),d=":"+y+":";p.value=d,document.body.appendChild(p),p.select(),document.execCommand("copy"),document.body.removeChild(p)}},99012:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(74041),k=n(50640),S=r.EvolutionMenu=function(){function d(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)]})})})}return d}(),y=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.evo_points,v=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:i}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!v,content:"Readapt",icon:"sync",onClick:function(){function g(){return u("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"})]})]})})})},p=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.evo_points,v=s.ability_tabs,g=s.purchased_abilities,C=s.view_mode,h=(0,t.useLocalState)(m,"selectedTab",v[0]),N=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),A=T[0],x=T[1],E=function(R,j){if(j===void 0&&(j=""),!R||R.length===0)return[];var F=(0,a.createSearch)(j,function(W){return W.name+"|"+W.description});return(0,V.flow)([(0,k.filter)(function(W){return W==null?void 0:W.name}),(0,k.filter)(F),(0,k.sortBy)(function(W){return W==null?void 0:W.name})])(R)},M=function(R){if(w(R),R==="")return x(N.abilities);x(E(v.map(function(j){return j.abilities}).flat(),R))},D=function(R){b(R),x(R.abilities),w("")};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 O(R,j){M(j)}return O}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"square-o":"check-square-o",selected:!C,content:"Compact",onClick:function(){function O(){return u("set_view_mode",{mode:0})}return O}()}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"check-square-o":"square-o",selected:C,content:"Expanded",onClick:function(){function O(){return u("set_view_mode",{mode:1})}return O}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:v.map(function(O){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&N===O,onClick:function(){function R(){D(O)}return R}(),children:O.category},O)})}),A.map(function(O,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:O.name}),g.includes(O.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:O.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:O.cost>i||g.includes(O.power_path),content:"Evolve",onClick:function(){function j(){return u("purchase",{power_path:O.power_path})}return j}()})})]}),!!C&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:O.description+" "+O.helptext})]},R)})]})})}},37504:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),f=n(24674),V=n(99509),k=n(45493),S=["id","amount","lineDisplay","onClick"];function y(g,C){if(g==null)return{};var h={},N=Object.keys(g),b,B;for(B=0;B=0)&&(h[b]=g[b]);return h}var p=2e3,d={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),I&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return g}(),m=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,i,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},l=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],M=x[1],D=(0,t.createSearch)(E,function(R){return R.name}),O=T.filter(D);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function R(j){return b("category",{cat:j})}return R}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return b("queueall")}return R}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return b("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(j,F){return M(F)}return R}()}),O.map(function(R){return(0,e.createComponentVNode)(2,v,{design:R},R.id)}),O.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},s=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return b("queueswap",{from:E+1,to:E})}return M}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},i=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=C.id,w=C.amount,T=C.lineDisplay,A=C.onClick,x=y(C,S),E=B.materials[I]||0,M=w||E;if(!(M<=0&&!(I==="metal"||I==="glass"))){var D=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:D&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/p*10)/10," ","sheets)"]})]})],4)})))}},v=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=C.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return b("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},9466:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),V=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.open,u=m.feedback,s=m.occupant,i=m.occupant_name,v=m.occupant_status,g=function(){function h(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function B(){return f.get(v)}return B}(),b=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.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:V.get(B).icon,content:V.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return h}(),C=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:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function h(){return c("door")}return h}()}),children:C})]})})}return S}()},77284:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=0,V=1013,k=function(p){var d="good",c=80,m=95,l=110,u=120;return pl?d="average":p>u&&(d="bad"),d},S=r.ExternalAirlockController=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.chamber_pressure,s=l.exterior_status,i=l.interior_status,v=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:k(u),value:u,minValue:f,maxValue:V,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function 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:v,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:v,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:i==="open"?"red":v?"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:i==="open"?"red":v?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return y}()},52516:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FaxMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.scan_name?"eject":"id-card",selected:d.scan_name,content:d.scan_name?d.scan_name:"-----",tooltip:d.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.authenticated?"sign-out-alt":"id-card",selected:d.authenticated,disabled:d.nologin,content:d.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("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:d.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d.paper?"eject":"paperclip",disabled:!d.authenticated&&!d.paper,content:d.paper?d.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!d.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:d.destination?d.destination:"-----",disabled:!d.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:d.sendError?d.sendError:"Send",disabled:!d.paper||!d.destination||!d.authenticated||d.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return V}()},24777:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FilingCabinet=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=y.config,m=d.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(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return p("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return V}()},88361:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=S.image,l=S.isSelected,u=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":l&&"solid"||"none","border-width":"2px","border-color":"orange",padding:l&&"2px"||"4px"},onClick:u})},V=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.availableStyles,l=c.selectedStyle,u=c.selectedDir,s=c.directionsPreview,i=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return d("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:l,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(g){return d("select_style",{style:g})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return d("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:i[v],isSelected:l===v,onSelect:function(){function g(){return d("select_style",{style:v})}return g}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:s[g],isSelected:g===u,onSelect:function(){function C(){return d("select_direction",{direction:g})}return C}()})},g)})},v)})})})})]})})})}return k}()},70078:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=function(l){return l?"("+l.join(", ")+")":"ERROR"},k=function(l,u){if(!(!l||!u)){if(l[2]!==u[2])return null;var s=Math.atan2(u[1]-l[1],u[0]-l[0]),i=Math.sqrt(Math.pow(u[1]-l[1],2)+Math.pow(u[0]-l[0],2));return{angle:(0,a.rad2deg)(s),distance:i}}},S=r.GPS=function(){function m(l,u){var s=(0,t.useBackend)(u),i=s.data,v=i.emped,g=i.active,C=i.area,h=i.position,N=i.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:v?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{area:C,position:h})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{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,y)],0)})})})}return m}(),y=function(l,u){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."]})})})})},p=function(l,u){var s=(0,t.useBackend)(u),i=s.act,v=s.data,g=v.active,C=v.tag,h=v.same_z,N=(0,t.useLocalState)(u,"newTag",C),b=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 I(){return i("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:C,onEnter:function(){function I(){return i("tag",{newtag:b})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return i("tag",{newtag:b})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function I(){return i("same_z")}return I}()})})]})})},d=function(l,u){var s=l.title,i=l.area,v=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[i&&(0,e.createFragment)([i,(0,e.createVNode)(1,"br")],0),V(v)]})})},c=function(l,u){var s=(0,t.useBackend)(u),i=s.data,v=i.position,g=i.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(C){return Object.assign({},C,k(v,C.position))}).map(function(C,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:C.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:C.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:C.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(C.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:C.distance>0?"arrow-right":"circle",rotation:-C.angle}),"\xA0",Math.floor(C.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:V(C.position)})]},h)})})})))}},92246:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(99665),f=n(45493),V=r.GeneModder=function(){function l(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!C||!C.can_insert||C.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return v("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})},S=function(u,s){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},y=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.has_seed,h=g.seed,N=g.has_disk,b=g.disk,B,I;return C?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return v("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return v("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return v("eject_seed")}return w}()})}),N?I=b.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return v("eject_disk")}return w}()})})})]})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[h.map(function(N){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(C!=null&&C.can_extract),icon:"save",onClick:function(){function b(){return v("extract",{id:N.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!N.is_type||!C.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return v("replace",{id:N.id})}return b}()})})]},N)})," ",(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:!(C!=null&&C.can_extract),icon:"save",onClick:function(){function N(){return v("bulk_extract_core")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",disabled:!(C!=null&&C.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return v("bulk_replace_core")}return N}()})})]})]},"Core Genes")},d=function(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.reagent_genes,C=v.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:C})},c=function(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.trait_genes,C=v.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:C})},m=function(u,s){var i=u.title,v=u.gene_set,g=u.do_we_show,C=(0,a.useBackend)(s),h=C.act,N=C.data,b=N.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:i,open:!0,children:g?v.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function I(){return h("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return h("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},i)}},27163:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),f=r.GenericCrewManifest=function(){function V(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return V}()},53808:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GhostHudPanel=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.data,c=d.security,m=d.medical,l=d.diagnostic,u=d.radioactivity,s=d.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,V,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,V,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,V,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Radioactivity",type:"radioactivity",is_active:u,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=S.label,m=S.type,l=m===void 0?null:m,u=S.is_active,s=S.act_on,i=s===void 0?"hud_on":s,v=S.act_off,g=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function C(){return d(u?g:i,{hud_type:l})}return C}()})})]})}},32035:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GlandDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.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 u(){return p("dispense",{gland_id:l.id})}return u}()},l.id)})})})})}return V}()},33004:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GravityGen=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.charging_state,m=d.charge_count,l=d.breaker,u=d.ext_power,s=function(){function v(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:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return v}(),i=function(){function v(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 v}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[i(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 v(){return p("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(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 V}()},39775:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.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 d("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 d("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 d("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 d("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 d("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 d("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return d("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(l){return d("access",{access:l})}return m}(),grantAll:function(){function m(){return d("grant_all")}return m}(),denyAll:function(){function m(){return d("clear_all")}return m}(),grantDep:function(){function m(l){return d("grant_region",{region:l})}return m}(),denyDep:function(){function m(l){return d("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 d("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 k}()},22480:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[1,5,10,20,30,50],V=null,k=r.HandheldChemDispenser=function(){function p(d,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,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.amount,i=u.energy,v=u.maxEnergy,g=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[i," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(C,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===C,content:C,onClick:function(){function N(){return l("amount",{amount:C})}return N}()})},h)})})}),(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 C(){return l("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return l("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return l("mode",{mode:"isolate"})}return C}()})]})})]})})})},y=function(d,c){for(var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.chemicals,i=s===void 0?[]:s,v=u.current_reagent,g=[],C=0;C<(i.length+1)%3;C++)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:u.glass?"Drink Selector":"Chemical Selector",children:[i.map(function(h,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return l("dispense",{reagent:h.id})}return b}()},N)}),g.map(function(h,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},22616:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.HealthSensor=function(){function S(y,p){var d=(0,t.useBackend)(p),c=d.act,m=d.data,l=m.on,u=m.user_health,s=m.minHealth,i=m.maxHealth,v=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content: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:i,value:v,format:function(){function g(C){return(0,a.toFixed)(C,1)}return g}(),width:"80px",onDrag:function(){function g(C,h){return c("alarm_health",{alarm_health:h})}return g}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},76861:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Holodeck=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=(0,a.useLocalState)(y,"currentDeck",""),l=m[0],u=m[1],s=(0,a.useLocalState)(y,"showReload",!1),i=s[0],v=s[1],g=c.decks,C=c.ai_override,h=c.emagged,N=function(){function b(B){d("select_deck",{deck:B}),u(B),v(!0),setTimeout(function(){v(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[i&&(0,e.createComponentVNode)(2,V),(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(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===l,onClick:function(){function B(){return N(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return d("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return d("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),V=function(S,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},96729:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Instrument=function(){function d(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return d}(),k=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.help;if(i)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.createTextVNode)(" "),(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.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return u("help")}return v}()})]})})})},S=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.lines,v=s.playing,g=s.repeat,C=s.maxRepeats,h=s.tempo,N=s.minTempo,b=s.maxTempo,B=s.tickLag,I=s.volume,w=s.minVolume,T=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:i.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:g,stepPixelSize:59,onChange:function(){function x(E,M){return u("repeat",{new:M})}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:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,M){return u("setvolume",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,y)]})},y=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.allowedInstrumentNames,v=s.instrumentLoaded,g=s.instrument,C=s.canNoteShift,h=s.noteShift,N=s.noteShiftMin,b=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,w=s.sustainExponentialDropoff,T=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,M;return B===1?(E="Linear",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function D(O){return(0,a.round)(O*100)/100+" seconds"}return D}(),onChange:function(){function D(O,R){return u("setlinearfalloff",{new:R/10})}return D}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function D(O){return(0,a.round)(O*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(O,R){return u("setexpfalloff",{new:R})}return D}()})),i.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:i,selected:g,width:"50%",onSelected:function(){function D(O){return u("switchinstrument",{name:O})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&C)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:N,maxValue:b,value:h,stepPixelSize:2,format:function(){function D(O){return O+" keys / "+(0,a.round)(O/12*100)/100+" octaves"}return D}(),onChange:function(){function D(O,R){return u("setnoteshift",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function D(O){return u("setsustainmode",{new:O})}return D}()}),M]}),(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(O,R){return u("setdropoffvolume",{new:R})}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 u("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return u("reset")}return D}()})]})})})},p=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.playing,v=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||i,icon:"plus",content:"Add Line",onClick:function(){function C(){return u("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function C(){return u("edit")}return C}()})],4),children:!!g&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"pen",onClick:function(){function N(){return u("modifyline",{line:h+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"trash",onClick:function(){function N(){return u("deleteline",{line:h+1})}return N}()})],4),children:C},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},53385:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.KeycardAuth=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.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(!d.swiping&&!d.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:!d.redAvailable,onClick:function(){function l(){return p("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 p("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 p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("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 p("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 p("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!d.hasSwiped&&!d.ertreason&&d.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):d.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):d.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):d.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,d.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:d.ertreason?"":"red",icon:d.ertreason?"check":"pencil-alt",content:d.ertreason?d.ertreason:"-----",disabled:d.busy,onClick:function(){function l(){return p("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:d.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:d.busy||d.hasConfirm,onClick:function(){function l(){return p("reset")}return l}()}),children:m})]})})}return V}()},58553:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.KitchenMachine=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.data,m=d.config,l=c.ingredients,u=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,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:l.map(function(i){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:i.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[i.amount," ",i.units]}),2)]},i.name)})})})})]})})})}return S}(),k=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:l,tooltip:l?u:"",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?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},14047:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.LawManager=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.isAdmin,s=l.isSlaved,i=l.isMalf,v=l.isAIMalf,g=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:i?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(i||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function C(){return m("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function C(){return m("set_view",{set_view:1})}return C}()})]}),g===0&&(0,e.createComponentVNode)(2,V),g===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),V=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.has_zeroth_laws,s=l.zeroth_laws,i=l.has_ion_laws,v=l.ion_laws,g=l.ion_law_nr,C=l.has_inherent_laws,h=l.inherent_laws,N=l.has_supplied_laws,b=l.supplied_laws,B=l.channels,I=l.channel,w=l.isMalf,T=l.isAdmin,A=l.zeroth_law,x=l.ion_law,E=l.inherent_law,M=l.supplied_law,D=l.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:d}),!!i&&(0,e.createComponentVNode)(2,S,{title:g,laws:v,ctx:d}),!!C&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:d}),!!N&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:d}),(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(O){return(0,e.createComponentVNode)(2,t.Button,{content:O.channel,selected:O.channel===I,onClick:function(){function R(){return m("law_channel",{law_channel:O.channel})}return R}()},O.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function O(){return m("state_laws")}return O}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function O(){return m("notify_laws")}return O}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function O(){return m("change_zeroth_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_zeroth_law")}return O}()})]})]}),(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 O(){return m("change_ion_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_ion_law")}return O}()})]})]}),(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 O(){return m("change_inherent_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_inherent_law")}return O}()})]})]}),(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:M}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function O(){return m("change_supplied_law_position")}return O}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function O(){return m("change_supplied_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_supplied_law")}return O}()})]})]})]})})],0)},k=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function i(){return m("transfer_laws",{transfer_laws:s.ref})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)})]})},s.name)})})},S=function(p,d){var c=(0,a.useBackend)(p.ctx),m=c.act,l=c.data,u=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.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?"})]}),p.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 i(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return i}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function i(){return m("edit_law",{edit_law:s.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function i(){return m("delete_law",{delete_law:s.ref})}return i}()})],4)]})]},s.law)})]})})}},5872:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryComputer=function(){function g(C,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),k=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=C.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:I.id})}return T}()})]})},S=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=C.args,w=B.selected_report,T=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:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function M(){return b("set_report",{report_type:x.category_id})}return M}()}),(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 b("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},y=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=C.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},d=function(C,h){var N=(0,a.useBackend)(h),b=N.data,B=(0,a.useLocalState)(h,"tabIndex",0),I=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(C,h){var N=(0,a.useLocalState)(h,"tabIndex",0),b=N[0];switch(b){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,i);case 4:return(0,e.createComponentVNode)(2,v);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.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:I.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:I.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:I.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:I.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.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 b("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 b("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},l=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.external_booklist,w=B.archive_pagenumber,T=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:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("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"})]}),I.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 b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},u=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.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:I.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:I.copyright,content:I.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("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:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},i=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.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:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},v=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},37782:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryManager=function(){function d(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return d}(),k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.pagestate;switch(i){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var l=(0,a.useBackend)(m),u=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 i(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return i}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_search")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function i(){return u("view_reported_books")}return i}()})]})},y=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return u("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return u("delete_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return u("unflag_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return u("view_book",{bookid:v.id})}return g}()})]})]},v.id)})]})})},p=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.ckey,v=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",i,(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 u("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"})]}),v.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 C(){return u("delete_book",{bookid:g.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:g.id})}return C}()})]})]},g.id)})]})})}},26133:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),f=n(17899),V=n(68100),k=n(45493),S=r.ListInputModal=function(){function d(c,m){var l=(0,f.useBackend)(m),u=l.act,s=l.data,i=s.items,v=i===void 0?[]:i,g=s.message,C=g===void 0?"":g,h=s.init_value,N=s.timeout,b=s.title,B=(0,f.useLocalState)(m,"selected",v.indexOf(h)),I=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),M=E[0],D=E[1],O=function(){function Y(X){var J=z.length-1;if(X===V.KEY_DOWN)if(I===null||I===J){var le;w(0),(le=document.getElementById("0"))==null||le.scrollIntoView()}else{var ce;w(I+1),(ce=document.getElementById((I+1).toString()))==null||ce.scrollIntoView()}else if(X===V.KEY_UP)if(I===null||I===0){var fe;w(J),(fe=document.getElementById(J.toString()))==null||fe.scrollIntoView()}else{var pe;w(I-1),(pe=document.getElementById((I-1).toString()))==null||pe.scrollIntoView()}}return Y}(),R=function(){function Y(X){X!==I&&w(X)}return Y}(),j=function(){function Y(){x(!1),x(!0)}return Y}(),F=function(){function Y(X){var J=String.fromCharCode(X),le=v.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(le){var ce,fe=v.indexOf(le);w(fe),(ce=document.getElementById(fe.toString()))==null||ce.scrollIntoView()}}return Y}(),W=function(){function Y(X){var J;X!==M&&(D(X),w(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return Y}(),K=function(){function Y(){x(!A),D("")}return Y}(),z=v.filter(function(Y){return Y==null?void 0:Y.toLowerCase().includes(M.toLowerCase())}),$=330+Math.ceil(C.length/3);return A||setTimeout(function(){var Y;return(Y=document.getElementById(I.toString()))==null?void 0:Y.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:$,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function Y(X){var J=window.event?X.which:X.keyCode;(J===V.KEY_DOWN||J===V.KEY_UP)&&(X.preventDefault(),O(J)),J===V.KEY_ENTER&&(X.preventDefault(),u("submit",{entry:z[I]})),!A&&J>=V.KEY_A&&J<=V.KEY_Z&&(X.preventDefault(),F(J)),J===V.KEY_ESCAPE&&(X.preventDefault(),u("cancel"))}return Y}(),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 Y(){return K()}return Y}()}),className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{filteredItems:z,onClick:R,onFocusSearch:j,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:z,onSearch:W,searchQuery:M,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[I]})})]})})})]})}return d}(),y=function(c,m){var l=(0,f.useBackend)(m),u=l.act,s=c.filteredItems,i=c.onClick,v=c.onFocusSearch,g=c.searchBarVisible,C=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(h,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function b(){return i(N)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),u("submit",{entry:s[C]})}return b}(),onKeyDown:function(){function b(B){var I=window.event?B.which:B.keyCode;g&&I>=V.KEY_A&&I<=V.KEY_Z&&(B.preventDefault(),v())}return b}(),selected:N===C,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},N)})})},p=function(c,m){var l=(0,f.useBackend)(m),u=l.act,s=c.filteredItems,i=c.onSearch,v=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(h){h.preventDefault(),u("submit",{entry:s[g]})}return C}(),onInput:function(){function C(h,N){return i(N)}return C}(),placeholder:"Search...",value:v})}},71963:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(O,R){return M("configure",{key:T,value:R,ref:x})}return D}()})},V=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function D(){return M("configure",{key:T,value:!A,ref:x})}return D}()})},k=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return M("configure",{key:T,ref:x})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,M=(0,a.useBackend)(w),D=M.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function O(R){return D("configure",{key:T,value:R,ref:E})}return O}()})},y=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,M=I.values,D=I.module_ref,O={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",O[x]]})},p=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,M=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&M?"bad":"good",bold:!0,children:T&&M?M:0})})]})},d=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,M=I.userburn,D=I.usertoxin,O=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?O/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?O:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,M=I.statusmaxhealth,D=I.statusbrute,O=I.statusburn,R=I.statustoxin,j=I.statusoxy,F=I.statustemp,W=I.statusnutrition,K=I.statusfingerprints,z=I.statusdna,$=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/M:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?O/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?O:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?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:T?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?z:"???"})]})}),!!T&&!!$&&(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"})})]}),$.map(function(Y){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[Y.stage,"/",Y.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.cure})]},Y.name)})]})})],0)},m={rad_counter:p,health_analyzer:d,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"})]})},u=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var M=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:M.display_name,type:M.type,value:M.value,values:M.values,module_ref:A})},M.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},i=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.malfunctioning,D=x.locked,O=x.open,R=x.selected_module,j=x.complexity,F=x.complexity_max,W=x.wearer_name,K=x.wearer_job,z=M?"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 $(){return A("activate")}return $}()}),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 $(){return A("lock")}return $}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:O?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[W,", ",K]})]})})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.control,D=x.helmet,O=x.chestplate,R=x.gauntlets,j=x.boots,F=x.core,W=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:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:O||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:W/100,content:W+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.modules,D=M.filter(function(O){return!!O.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(O){var R=m[O.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},O,{active:E})))]},O.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,D=(0,a.useLocalState)(w,"module_configuration",null),O=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:M.length!==0&&M.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[O===j.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function F(){return R(null)}return F}()}),(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:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:j.ref})}return F}(),icon:"bullseye",selected:j.module_active,tooltip:i(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return R(j.ref)}return F}(),icon:"cog",selected:O===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:j.ref})}return F}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.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(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!M,children:!!M&&(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,v)}),(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,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=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}()},84274:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=n(99665),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function y(p,d){var c=(0,t.useBackend)(d),m=c.act,l=c.data,u=l.autolink,s=l.code,i=l.frequency,v=l.linkedMagnets,g=l.magnetConfiguration,C=l.path,h=l.pathPosition,N=l.probing,b=l.powerState,B=l.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:N?"spinner":"sync",iconSpin:!!N,disabled:N,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(i/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:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return m("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,V.modalOpen)(d,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:C.map(function(I,w){var T=k.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),v.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function M(){return m("toggle_magnet_power",{id:T})}return M}()}),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 M(D,O){return m("set_electricity_level",{id:T,electricityLevel:O})}return M}()})}),(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 M(D,O){return m("set_magnetic_field",{id:T,magneticField:O})}return M}()})})]})},T)})]})]})}return y}()},95752:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.MechBayConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.recharge_port,m=c&&c.mech,l=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return p("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 V}()},53668:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=n(78234),k=r.MechaControlConsole=function(){function S(y,p){var d=(0,t.useBackend)(p),c=d.act,m=d.data,l=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,V.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children: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 i(){return c("send_message",{mt:s.uid})}return i}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function i(){return c("get_log",{mt:s.uid})}return i}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function i(){return c("shock",{mt:s.uid})}return i}()})],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,V.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},96467:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(99665),V=n(45493),k=n(68159),S=n(27527),y=n(84537),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},d={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,f.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function T(A,x){var E=(0,t.useBackend)(x),M=E.data,D=M.loginState,O=M.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return O===2?R=(0,e.createComponentVNode)(2,u):O===3?R=(0,e.createComponentVNode)(2,s):O===4?R=(0,e.createComponentVNode)(2,i):O===5?R=(0,e.createComponentVNode)(2,h):O===6?R=(0,e.createComponentVNode)(2,N):O===7&&(R=(0,e.createComponentVNode)(2,b)),(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,w),R]})})]})}return T}(),u=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.records,R=(0,t.useLocalState)(x,"searchText",""),j=R[0],F=R[1],W=(0,t.useLocalState)(x,"sortId","name"),K=W[0],z=W[1],$=(0,t.useLocalState)(x,"sortOrder",!0),Y=$[0],X=$[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 M("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(le,ce){return F(ce)}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"})]}),O.filter((0,a.createSearch)(j,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,le){var ce=Y?1:-1;return J[K].localeCompare(le[K])*ce}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+d[J.p_stat],onClick:function(){function le(){return M("view_record",{view_record:J.ref})}return le}(),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),M=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,lineHeight:3,color:"translucent",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,lineHeight:3,color:"translucent",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,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function D(){return M("del_all_med_records")}return D}()})})]})})},i=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.medical,R=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:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function j(){return M("print_record")}return j}()}),children:(0,e.createComponentVNode)(2,v)})}),!O||!O.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 j(){return M("new_med_record")}return j}()}),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:!!O.empty,content:"Delete Medical Record",onClick:function(){function j(){return M("del_med_record")}return j}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(A,x){var E=(0,t.useBackend)(x),M=E.data,D=M.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(O,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:O.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:O.value}),!!O.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(x,O)}return j}()})]},R)})})}),!!D.has_photos&&D.photos.map(function(O,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:O,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},g=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.medical;return!O||!O.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:O.fields.map(function(R,j){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function F(){return c(x,R)}return F}()})]},j)})})})})},C=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=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 R(){return(0,f.modalOpen)(x,"add_comment")}return R}()}),children:O.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):O.comments.map(function(R,j){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return M("del_comment",{del_comment:j+1})}return F}()})]},j)})})})},h=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.virus,R=(0,t.useLocalState)(x,"searchText",""),j=R[0],F=R[1],W=(0,t.useLocalState)(x,"sortId2","name"),K=W[0],z=W[1],$=(0,t.useLocalState)(x,"sortOrder2",!0),Y=$[0],X=$[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(le,ce){return F(ce)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),O.filter((0,a.createSearch)(j,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,le){var ce=Y?1:-1;return J[K].localeCompare(le[K])*ce}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function le(){return M("vir",{vir:J.D})}return le}(),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:p[J.severity],children:J.severity})]},J.id)})]})})})})],4)},N=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=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:O.length!==0&&O.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},b=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.medbots;return O.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"})]}),O.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),M=E[0],D=E[1],O=(0,t.useLocalState)(x,"sortOrder",!0),R=O[0],j=O[1],F=A.id,W=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function K(){M===F?j(!R):(D(F),j(!0))}return K}(),children:[W,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),M=E[0],D=E[1],O=(0,t.useLocalState)(x,"sortOrder2",!0),R=O[0],j=O[1],F=A.id,W=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function K(){M===F?j(!R):(D(F),j(!0))}return K}(),children:[W,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},w=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,O=D.screen,R=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:O===2,onClick:function(){function j(){M("screen",{screen:2})}return j}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:O===5,onClick:function(){function j(){M("screen",{screen:5})}return j}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:O===6,onClick:function(){function j(){M("screen",{screen:6})}return j}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:O===7,onClick:function(){function j(){return M("screen",{screen:7})}return j}(),children:"Medibot Tracking"}),O===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:O===3,children:"Record Maintenance"}),O===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:O===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},68211:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=p.product,s=p.productImage,i=p.productCategory,v=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:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>v,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:u.name,category:i})}return g}()})})]})},V=function(p,d){var c=(0,a.useBackend)(d),m=c.data,l=(0,a.useLocalState)(d,"tabIndex",1),u=l[0],s=m.products,i=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[v[u]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:i[g.path],productCategory:v[u]},g.name)})})},k=r.MerchVendor=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=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 i(){return m("change")}return i}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,V)]})})]})})})}return y}(),S=function(p,d){var c=(0,a.useBackend)(d),m=c.data,l=(0,a.useLocalState)(d,"tabIndex",1),u=l[0],s=l[1],i=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function v(){return s(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function v(){return s(2)}return v}(),children:"Decorations"})]})}},14162:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=["title","items"];function k(l,u){if(l==null)return{};var s={},i=Object.keys(l),v,g;for(g=0;g=0)&&(s[v]=l[v]);return s}var S={Alphabetical:function(){function l(u,s){return u-s}return l}(),Availability:function(){function l(u,s){return-(u.affordable-s.affordable)}return l}(),Price:function(){function l(u,s){return u.price-s.price}return l}()},y=r.MiningVendor=function(){function l(u,s){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,d)]})})})}return l}(),p=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.has_id,h=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return v("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},d=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.has_id,h=g.id,N=g.items,b=(0,t.useLocalState)(s,"search",""),B=b[0],I=b[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(s,"descending",!1),E=x[0],M=x[1],D=(0,a.createSearch)(B,function(j){return j[0]}),O=!1,R=Object.entries(N).map(function(j,F){var W=Object.entries(j[1]).filter(D).map(function(K){return K[1].affordable=C&&h.points>=K[1].price,K[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),O=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W},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(u,s){var i=(0,t.useLocalState)(s,"search",""),v=i[0],g=i[1],C=(0,t.useLocalState)(s,"sort",""),h=C[0],N=C[1],b=(0,t.useLocalState)(s,"descending",!1),B=b[0],I=b[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 w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return N(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},m=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=u.title,h=u.items,N=k(u,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},N,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points=0)&&(T[x]=I[x]);return T}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"}},u=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.is_security,D=E.is_admin,O=E.is_silent,R=E.is_printing,j=E.screen,F=E.channels,W=E.channel_idx,K=W===void 0?-1:W,z=(0,t.useLocalState)(T,"menuOpen",!1),$=z[0],Y=z[1],X=(0,t.useLocalState)(T,"viewingPhoto",""),J=X[0],le=X[1],ce=(0,t.useLocalState)(T,"censorMode",!1),fe=ce[0],pe=ce[1],be;j===0||j===2?be=(0,e.createComponentVNode)(2,i):j===1&&(be=(0,e.createComponentVNode)(2,v));var te=F.reduce(function(Q,ne){return Q+ne.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:M&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,V.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",$&&"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 Q(){return Y(!$)}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function Q(){return x("headlines")}return Q}(),children:te>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:te>=10?"9+":te})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function Q(){return x("jobs")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(Q){return(0,e.createComponentVNode)(2,s,{icon:Q.icon,title:Q.name,selected:j===2&&F[K-1]===Q,onClick:function(){function ne(){return x("channel",{uid:Q.uid})}return ne}(),children:Q.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Q.unread>=10?"9+":Q.unread})},Q)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!M||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Q(){return(0,k.modalOpen)(T,"wanted_notice")}return Q}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:fe?"minus-square":"minus-square-o",title:"Censor Mode: "+(fe?"On":"Off"),mb:"0.5rem",onClick:function(){function Q(){return pe(!fe)}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Q(){return(0,k.modalOpen)(T,"create_story")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function Q(){return(0,k.modalOpen)(T,"create_channel")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function Q(){return x("print_newspaper")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:O?"volume-mute":"volume-up",title:"Mute: "+(O?"On":"Off"),onClick:function(){function Q(){return x("toggle_mute")}return Q}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),be]})]})})]})}return I}(),s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,M=E===void 0?"":E,D=w.iconSpin,O=w.selected,R=O===void 0?!1:O,j=w.security,F=j===void 0?!1:j,W=w.onClick,K=w.title,z=w.children,$=d(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:W},$,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:M,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),z]})))},i=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,D=E.is_admin,O=E.channel_idx,R=E.channel_can_manage,j=E.channels,F=E.stories,W=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),z=K[0],$=K[1],Y=(0,t.useLocalState)(T,"censorMode",!1),X=Y[0],J=Y[1],le=M===2&&O>-1?j[O-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!W&&(0,e.createComponentVNode)(2,g,{story:W,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:le?le.icon:"newspaper",mr:"0.5rem"}),le?le.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ce){return!z.includes(ce.uid)&&ce.body.length+3>c?Object.assign({},ce,{body_short:ce.body.substr(0,c-4)+"..."}):ce}).map(function(ce,fe){return(0,e.createComponentVNode)(2,g,{story:ce},fe)}):(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."]})}),!!le&&(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)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!le.admin&&!D,selected:le.censored,icon:le.censored?"comment-slash":"comment",content:le.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ce(){return x("censor_channel",{uid:le.uid})}return ce}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ce(){return(0,k.modalOpen)(T,"manage_channel",{uid:le.uid})}return ce}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:le.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:le.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:le.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:le.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"}),F.reduce(function(ce,fe){return ce+fe.view_count},0).toLocaleString()]})]})})]})},v=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.jobs,D=E.wanted,O=Object.entries(M).reduce(function(R,j){var F=j[0],W=j[1];return R+W.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:O>0?m.map(function(R){return Object.assign({},l[R],{id:R,jobs:M[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=w.story,D=w.wanted,O=D===void 0?!1:D,R=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"censorMode",!1),z=K[0],$=K[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",O&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([O&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),M.censor_flags&2&&"[REDACTED]"||M.title||"News from "+M.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!O&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:M.censor_flags&2,icon:M.censor_flags&2?"comment-slash":"comment",content:M.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function Y(){return x("censor_story",{uid:M.uid})}return Y}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",M.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),M.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!O&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),M.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(M.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:M.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!M.has_photo&&(0,e.createComponentVNode)(2,C,{name:"story_photo_"+M.uid+".png",float:"right",ml:"0.5rem"}),(M.body_short||M.body).split("\n").map(function(Y,X){return(0,e.createComponentVNode)(2,o.Box,{children:Y||(0,e.createVNode)(1,"br")},X)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function Y(){return W([].concat(F,[M.uid]))}return Y}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(w,T){var A=w.name,x=d(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),M=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 O(){return D(A)}return O}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function M(){return E("")}return M}()})]})},N=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!w.args.uid&&E.channels.filter(function(ae){return ae.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!M){(0,k.modalClose)(T);return}var D=w.id==="manage_channel",O=!!w.args.is_admin,R=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),z=K[0],$=K[1],Y=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),X=Y[0],J=Y[1],le=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),ce=le[0],fe=le[1],pe=(0,t.useLocalState)(T,"isPublic",D?!!(M!=null&&M.public):!1),be=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),ne=Q[0],me=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+M.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:!O,width:"100%",value:F,onInput:function(){function ae(ue,oe){return W(oe)}return ae}()})}),(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 ae(ue,oe){return $(oe)}return ae}()})}),(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:X,onInput:function(){function ae(ue,oe){return J(oe)}return ae}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!O,value:ce,width:"35%",mr:"0.5rem",onInput:function(){function ae(ue,oe){return fe(oe)}return ae}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ce,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:be,icon:be?"toggle-on":"toggle-off",content:be?"Yes":"No",onClick:function(){function ae(){return te(!be)}return ae}()})}),O&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ae(){return me(!ne)}return ae}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ae(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:z.substr(0,49),description:X.substr(0,128),icon:ce,public:be?1:0,admin_locked:ne?1:0})}return ae}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,D=E.channels,O=E.channel_idx,R=O===void 0?-1:O,j=!!w.args.is_admin,F=w.args.scanned_user,W=D.slice().sort(function(ae,ue){if(R<0)return 0;var oe=D[R-1];if(oe.uid===ae.uid)return-1;if(oe.uid===ue.uid)return 1}).filter(function(ae){return j||!ae.frozen&&(ae.author===F||!!ae.public)}),K=(0,t.useLocalState)(T,"author",F||"Unknown"),z=K[0],$=K[1],Y=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),X=Y[0],J=Y[1],le=(0,t.useLocalState)(T,"title",""),ce=le[0],fe=le[1],pe=(0,t.useLocalState)(T,"body",""),be=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",!1),ne=Q[0],me=Q[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:!j,width:"100%",value:z,onInput:function(){function ae(ue,oe){return $(oe)}return ae}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:W.map(function(ae){return ae.name}),mb:"0",width:"100%",onSelected:function(){function ae(ue){return J(ue)}return ae}()})}),(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:ce,onInput:function(){function ae(ue,oe){return fe(oe)}return ae}()})}),(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:be,onInput:function(){function ae(ue,oe){return te(oe)}return ae}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function ae(){return x(M?"eject_photo":"attach_photo")}return ae}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ce,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!M&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+M.uid+".png",float:"right"}),be.split("\n").map(function(ae,ue){return(0,e.createComponentVNode)(2,o.Box,{children:ae||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ae(){return me(!ne)}return ae}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||X.trim().length===0||ce.trim().length===0||be.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ae(){(0,k.modalAnswer)(T,"create_story","",{author:z,channel:X,title:ce.substr(0,127),body:be.substr(0,1023),admin_locked:ne?1:0})}return ae}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,D=E.wanted,O=!!w.args.is_admin,R=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(D==null?void 0:D.author)||R||"Unknown"),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(D==null?void 0:D.title.substr(8))||""),z=K[0],$=K[1],Y=(0,t.useLocalState)(T,"description",(D==null?void 0:D.body)||""),X=Y[0],J=Y[1],le=(0,t.useLocalState)(T,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),ce=le[0],fe=le[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:!O,width:"100%",value:F,onInput:function(){function pe(be,te){return W(te)}return pe}()})}),(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 pe(be,te){return $(te)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function pe(be,te){return J(te)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function pe(){return x(M?"eject_photo":"attach_photo")}return pe}()}),!!M&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+M.uid+".png",float:"right"})]}),O&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ce,icon:ce?"lock":"lock-open",content:ce?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function pe(){return fe(!ce)}return pe}()})})]})}),(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 pe(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return pe}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function pe(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:z.substr(0,127),description:X.substr(0,511),admin_locked:ce?1:0})}return pe}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",N),(0,k.modalRegisterBodyOverride)("manage_channel",N),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},26148:function(L,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=r.Noticeboard=function(){function k(S,y){var p=(0,t.useBackend)(y),d=p.act,c=p.data,m=c.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(l){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return d("interact",{paper:l.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),d("showFull",{paper:l.ref})}return u}(),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 k}()},46940:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.NuclearBomb=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;return d.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:d.authdisk?"eject":"id-card",selected:d.authdisk,content:d.diskname?d.diskname:"-----",tooltip:d.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!d.authdisk,selected:d.authcode,content:d.codemsg,onClick:function(){function c(){return p("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:d.anchored?"check":"times",selected:d.anchored,disabled:!d.authdisk,content:d.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:d.time,disabled:!d.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.safety?"check":"times",selected:d.safety,disabled:!d.authfull,content:d.safety?"ON":"OFF",tooltip:d.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(d.timer,"bomb"),disabled:d.safety||!d.authfull,color:"red",content:d.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("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 p("deploy")}return c}()})})})})}return V}()},35478:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),f=n(17899),V=n(24674),k=n(45493),S=r.NumberInputModal=function(){function p(d,c){var m=(0,f.useBackend)(c),l=m.act,u=m.data,s=u.init_value,i=u.large_buttons,v=u.message,g=v===void 0?"":v,C=u.timeout,h=u.title,N=(0,f.useLocalState)(c,"input",s),b=N[0],B=N[1],I=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=140+Math.max(Math.ceil(g.length/3),g.length>0&&i?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&l("submit",{entry:b}),E===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(d,c){var m=(0,f.useBackend)(c),l=m.act,u=m.data,s=u.min_value,i=u.max_value,v=u.init_value,g=u.round_value,C=d.input,h=d.onClick,N=d.onChange,b=Math.round(C!==s?Math.max(C/2,s):i/2),B=C===s&&s>0||C===1;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===s,icon:"angle-double-left",onClick:function(){function I(){return h(s)}return I}(),tooltip:C===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:s,maxValue:i,onChange:function(){function I(w,T){return N(T)}return I}(),onEnter:function(){function I(w,T){return l("submit",{entry:T})}return I}(),value:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===i,icon:"angle-double-right",onClick:function(){function I(){return h(i)}return I}(),tooltip:C===i?"Max":"Max ("+i+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return h(b)}return I}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===v,icon:"redo",onClick:function(){function I(){return h(v)}return I}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},98476:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),f=n(24674),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function l(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.hasOccupant,h=g.choice,N;return h?N=(0,e.createComponentVNode)(2,m):N=C?(0,e.createComponentVNode)(2,d):(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,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return v("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return v("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return l}(),d=function(u,s){var i=(0,t.useBackend)(s),v=i.data,g=v.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[g.stat][0],children:V[g.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(C,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:g[C[1]]/100,ranges:S,children:(0,a.round)(g[C[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:y[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,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.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,f.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.verbose,h=g.health,N=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,I=g.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function w(){return v(C?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return v(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return v("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return v(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return v("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return v(I?"critOff":"critOn")}return w}()})})]})}},98702:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(28234);function k(i,v){var g=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(g)return(g=g.call(i)).next.bind(g);if(Array.isArray(i)||(g=S(i))||v&&i&&typeof i.length=="number"){g&&(i=g);var C=0;return function(){return C>=i.length?{done:!0}:{done:!1,value:i[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(i,v){if(i){if(typeof i=="string")return y(i,v);var g=Object.prototype.toString.call(i).slice(8,-1);if(g==="Object"&&i.constructor&&(g=i.constructor.name),g==="Map"||g==="Set")return Array.from(i);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return y(i,v)}}function y(i,v){(v==null||v>i.length)&&(v=i.length);for(var g=0,C=new Array(v);gg},m=function(v,g){var C=v.name,h=g.name;if(!C||!h)return 0;var N=C.match(p),b=h.match(p);if(N&&b&&C.replace(p,"")===h.replace(p,"")){var B=parseInt(N[1],10),I=parseInt(b[1],10);return B-I}return c(C,h)},l=function(v,g){var C=v.searchText,h=v.source,N=v.title,b=v.color,B=v.sorted,I=h.filter(d(C));return B&&I.sort(m),h.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+h.length+")",children:I.map(function(w){return(0,e.createComponentVNode)(2,u,{thing:w,color:b},w.name)})})},u=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=v.color,b=v.thing;return(0,e.createComponentVNode)(2,o.Button,{color:N,tooltip:b.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,V.classes)(["orbit_job16x16",b.assigned_role_sprite])})," ",b.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return h("orbit",{ref:b.ref})}return B}(),children:[b.name,b.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",b.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function i(v,g){for(var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.alive,B=N.antagonists,I=N.highlights,w=N.response_teams,T=N.auto_observe,A=N.dead,x=N.ghosts,E=N.misc,M=N.npcs,D=(0,t.useLocalState)(g,"searchText",""),O=D[0],R=D[1],j={},F=k(B),W;!(W=F()).done;){var K=W.value;j[K.antag]===void 0&&(j[K.antag]=[]),j[K.antag].push(K)}var z=Object.entries(j);z.sort(function(Y,X){return c(Y[0],X[0])});var $=function(){function Y(X){for(var J=0,le=[z.map(function(pe){var be=pe[0],te=pe[1];return te}),I,b,x,A,M,E];J0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:z.map(function(Y){var X=Y[0],J=Y[1];return(0,e.createComponentVNode)(2,o.Section,{title:X+" - ("+J.length+")",level:2,children:J.filter(d(O)).sort(m).map(function(le){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:le},le.name)})},X)})}),I.length>0&&(0,e.createComponentVNode)(2,l,{title:"Highlights",source:I,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,l,{title:"Response Teams",source:w,searchText:O,color:"purple"}),(0,e.createComponentVNode)(2,l,{title:"Alive",source:b,searchText:O,color:"good"}),(0,e.createComponentVNode)(2,l,{title:"Ghosts",source:x,searchText:O,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"Dead",source:A,searchText:O,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"NPCs",source:M,searchText:O,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"Misc",source:E,searchText:O,sorted:!1})]})})}return i}()},74015:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(81856);function k(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var S=(0,V.createLogger)("OreRedemption"),y=function(v){return v.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function i(v,g){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return i}(),d=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.id,B=N.points,I=N.disk,w=Object.assign({},(k(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{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:y(B)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.sheets,B=Object.assign({},(k(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},m=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.alloys,B=Object.assign({},(k(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},l=function(v,g){var C;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(C=v.columns)==null?void 0:C.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},u=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=v.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 b(B,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return b}()})})]})})},s=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",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 b(B,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return b}()})})]})})}},48824:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(70752),k=function(p){var d;try{d=V("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=d[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.app_template,s=l.app_icon,i=l.app_title,v=k(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),i,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function 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,v)})})})})})}return y}()},41565:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(59395),k=function(c){var m;try{m=V("./"+c+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw u}var l=m[c];return l||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function d(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.app,v=s.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=k(i.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:i.icon,mr:1}),i.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return d}(),y=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.idInserted,v=s.idLink,g=s.stationTime,C=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return u("Authenticate")}return h}(),content:i?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return u("Eject")}return h}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},p=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=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:[!!i.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:i.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return u("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:i.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){u("Home")}return v}()})})]})})}},78704:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(92986),V=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.active,l=c.anchored,u=c.broken,s=c.emagged,i=c.fuel_type,v=c.fuel_usage,g=c.fuel_stored,C=c.fuel_cap,h=c.is_ai,N=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/C,E=N/b,M=T*w,D=Math.round(g/v),O=Math.round(D/60),R=D>120?O+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!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 j(){return d("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(F,W){return d("change_power",{change_power:W})}return j}()}),"(",(0,f.formatPower)(M),")"]})})}),(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||h||!A,onClick:function(){function j(){return d("eject_fuel")}return j}()}),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:i}),(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:[v/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(v?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},6887:function(L,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PanDEMIC=function(){function l(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.beakerLoaded,C=v.beakerContainsBlood,h=v.beakerContainsVirus,N=v.resistances,b=N===void 0?[]:N,B;return g?C?C&&!h&&(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&&(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:B}),(b==null?void 0:b.length)>0&&(0,e.createComponentVNode)(2,m)]}),!!h&&(0,e.createComponentVNode)(2,y)]})})})}return l}(),V=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function h(){return v("eject_beaker")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!C,onClick:function(){function h(){return v("destroy_eject_beaker")}return h}()})],4)},k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.beakerContainsVirus,h=u.strain,N=h.commonName,b=h.description,B=h.diseaseAgent,I=h.bloodDNA,w=h.bloodType,T=h.possibleTreatments,A=h.transmissionRoute,x=h.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:w!=null?w:"Undetectable"}})})],4);if(!C)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var M;return x&&(N!=null&&N!=="Unknown"?M=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function D(){return v("print_release_forms",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}}):M=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function D(){return v("name_strain",{strain_index:u.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",M]})}),b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:b}),(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:T!=null?T:"None"})]})},S=function(u,s){var i,v=(0,a.useBackend)(s),g=v.act,C=v.data,h=!!C.synthesisCooldown,N=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:h?"spinner":"clone",iconSpin:h,content:"Clone",disabled:h,onClick:function(){function b(){return g("clone_strain",{strain_index:u.strainIndex})}return b}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(i=u.sectionTitle)!=null?i:"Strain Information",buttons:N,children:(0,e.createComponentVNode)(2,k,{strain:u.strain,strainIndex:u.strainIndex})})})},y=function(u,s){var i,v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.selectedStrainIndex,N=C.strains,b=N[h-1];if(N.length===0)return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),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,S,{strain:N[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,V)}),((B=N[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,d,{strain:N[0]})],0)}var I=(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:N.map(function(w,T){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:h-1===T,onClick:function(){function x(){return g("switch_strain",{strain_index:T+1})}return x}(),children:(A=w.commonName)!=null?A:"Unknown"},T)})})}),(0,e.createComponentVNode)(2,S,{strain:b,strainIndex:h}),((i=b.symptoms)==null?void 0:i.length)>0&&(0,e.createComponentVNode)(2,d,{className:"remove-section-bottom-padding",strain:b})]})})})},p=function(u){return u.reduce(function(s,i){return s+i},0)},d=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(i,v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.transmissibility})]},v)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.synthesisCooldown,h=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(b,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[B%c.length],disabled:!!C,onClick:function(){function I(){return v("clone_vaccine",{resistance_index:B+1})}return I}(),mr:"0.5em"}),b]},B)})})})})}},78643:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ParticleAccelerator=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.assembled,m=d.power,l=d.strength,u=d.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 p("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 p("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 p("remove_strength")}return s}(),mr:"4px"}),l,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||l===u,onClick:function(){function s(){return p("add_strength")}return s}(),ml:"4px"})]})]})})})})}return V}()},34026:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PdaPainter=function(){function y(p,d){var c=(0,a.useBackend)(d),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,k):(0,e.createComponentVNode)(2,V)})})}return y}(),V=function(p,d){var c=(0,a.useBackend)(d),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}()})]})})})},k=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=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,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function i(){return m("choose_pda",{selectedPda:s})}return i}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=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,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function i(){return m("eject_pda")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function i(){return m("paint_pda")}return i}()})]}),(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"}})})]})}},81378:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PersonalCrafting=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.busy,u=m.category,s=m.display_craftable_only,i=m.display_compact,v=m.prev_cat,g=m.next_cat,C=m.subcategory,h=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:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:i?"check-square-o":"square-o",selected:i,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),V=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:i.ref})}return v}()}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)}),!l&&s.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)})]})})},k=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:i.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)}),!l&&s.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)})]})}},58792:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Photocopier=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.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,V)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.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 u(){return c("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return c("scandocument")}return u}()}),!!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 u(){return c("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return c("ai_pic")}return u}()})],4)],0)},k=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.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 u(){return c("filecopy",{uid:l.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return c("deletefile",{uid:l.uid})}return u}()})]})},l.name)})})}},27902:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=["tempKey"];function V(p,d){if(p==null)return{};var c={},m=Object.keys(p),l,u;for(u=0;u=0)&&(c[l]=p[l]);return c}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(d,c){var m=d.tempKey,l=V(d,f),u=k[m];if(!u)return null;var s=(0,a.useBackend)(c),i=s.data,v=s.act,g=i.currentTemp,C=u.label,h=u.icon,N=m===g,b=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:b},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),C]})))},y=r.PoolController=function(){function p(d,c){for(var m=(0,a.useBackend)(c),l=m.data,u=l.emagged,s=l.currentTemp,i=k[s]||k.normal,v=i.label,g=i.color,C=[],h=0,N=Object.entries(k);h50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(C>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(v){var g,C,h=v.status;switch(h){case"AOn":g=!0,C=!0;break;case"AOff":g=!0,C=!1;break;case"On":g=!1,C=!0;break;case"Off":g=!1,C=!1;break}var N=(C?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:C?"good":"bad",content:g?void 0:"M",title:N})};s.defaultHooks=f.pureComponentHooks},27262:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),f=n(99665),V=n(68159),k=n(27527),S=n(45493),y=r.PrisonerImplantManager=function(){function p(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.loginState,i=u.prisonerInfo,v=u.chemicalInfo,g=u.trackingInfo,C;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.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:i.name?"eject":"id-card",selected:i.name,content:i.name?i.name:"-----",tooltip:i.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:[i.points!==null?i.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:i.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:[i.goal!==null?i.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:i.goal===null,content:"Edit",onClick:function(){function N(){return(0,f.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:i.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 b(){return(0,f.modalOpen)(c,"warn",{uid:N.uid})}return b}()})})]})]},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:v.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})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{asset:!0,imageAsset:"prize_counter64x64",image:g.imageID,title:g.name,content:g.desc,children:(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",fontSize:1.5,textColor:C&&"gray",content:g.cost,icon:"ticket",iconSize:1.6,iconColor:C?"bad":"good",tooltip:C&&"Not enough tickets",disabled:C,onClick:function(){function h(){return p("purchase",{purchase:g.itemID})}return h}()})},g.name)})})})})})})}return V}()},87963:function(L,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(57842),k=r.RCD=function(){function l(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})]})}return l}(),S=function(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.matter,C=v.max_matter,h=C*.7,N=C*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[h,1/0],average:[N,h],bad:[-1/0,N]},value:g,maxValue:C,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:g+" / "+C+" units"})})})})},y=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=u.mode_type,h=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:C,selected:h===C?1:0,onClick:function(){function N(){return v("mode",{mode:C})}return N}()})})},d=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.door_name,h=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,C,0)],0),onClick:function(){function b(){return(0,f.modalOpen)(s,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function b(){return v("electrochromic")}return b}()})})]})})})},c=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.tab,h=g.locked,N=g.one_access,b=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:C===1,onClick:function(){function I(){return v("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,icon:"list",onClick:function(){function I(){return v("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):C===2&&h?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return v("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,V.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return v("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function I(){return v("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function I(){return v("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:b,accessMod:function(){function I(w){return v("set",{access:w})}return I}(),grantAll:function(){function I(){return v("grant_all")}return I}(),denyAll:function(){function I(){return v("clear_all")}return I}(),grantDep:function(){function I(w){return v("grant_region",{region:w})}return I}(),denyDep:function(){function I(w){return v("deny_region",{region:w})}return I}()})})],4)},m=function(u,s){for(var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.door_types_ui_list,h=g.door_type,N=u.check_number,b=[],B=0;B0?"envelope-open-text":"envelope",onClick:function(){function B(){return v("setScreen",{setScreen:6})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function B(){return v("setScreen",{setScreen:1})}return B}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function B(){return v("setScreen",{setScreen:2})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function B(){return v("setScreen",{setScreen:11})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function B(){return v("setScreen",{setScreen:3})}return B}()})]})]}),(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,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function B(){return v("setScreen",{setScreen:9})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function B(){return v("setScreen",{setScreen:10})}return B}()})]})}),!!h&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function B(){return v("setScreen",{setScreen:8})}return B}()})})]})})},k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.department,h=[],N;switch(u.purpose){case"ASSISTANCE":h=g.assist_dept,N="Request assistance from another department";break;case"SUPPLIES":h=g.supply_dept,N="Request supplies from another department";break;case"INFO":h=g.info_dept,N="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:N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return v("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(b){return b!==C}).map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function B(){return v("writeInput",{write:b,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return v("writeInput",{write:b,priority:"2"})}return B}()})]},b)})})})})},S=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C;switch(u.type){case"SUCCESS":C="Message sent successfully";break;case"FAIL":C="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return v("setScreen",{setScreen:0})}return h}()})})},y=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C,h;switch(u.type){case"MESSAGES":C=g.message_log,h="Message Log";break;case"SHIPPING":C=g.shipping_log,h="Shipping label print log";break}return C.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return v("setScreen",{setScreen:0})}return N}()}),children:C.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[N.map(function(b,B){return(0,e.createVNode)(1,"div",null,b,0,null,B)}),(0,e.createVNode)(1,"hr")]},N)})})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.recipient,h=g.message,N=g.msgVerified,b=g.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 B(){return v("setScreen",{setScreen:0})}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:N}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:b})]})})}),(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 B(){return v("department",{department:C})}return B}()})})})],4)},d=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.message,h=g.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 N(){return v("setScreen",{setScreen:0})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function N(){return v("writeAnnouncement")}return N}()})],4),children:C})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?(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:!(h&&C),onClick:function(){function N(){return v("sendAnnouncement")}return N}()})]})})],4)},c=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.shipDest,h=g.msgVerified,N=g.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 b(){return v("setScreen",{setScreen:0})}return b}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(C&&h),onClick:function(){function b(){return v("printLabel")}return b}()})]})}),(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:N.map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:C===b?"Selected":"Select",selected:C===b,onClick:function(){function B(){return v("shipSelect",{shipSelect:b})}return B}()})},b)})})})})],4)},m=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.secondaryGoalAuth,h=g.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 N(){return v("setScreen",{setScreen:0})}return N}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?C?(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:!(C&&h),onClick:function(){function N(){return v("requestSecondaryGoal")}return N}()})]})})],4)}},89641:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),f=n(3422),V=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.data,l=m.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,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,f.MainMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function u(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function u(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DESTROY,render:function(){function u(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function u(s){return s===V.LATHE||s===V.IMPRINTER}return u}(),render:function(){function u(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.SETTINGS,render:function(){function u(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return u}()}),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]})})})}return y}()},19348:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.CurrentLevels=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(d,c){var m=d.name,l=d.level,u=d.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",u]})]},m)})]})}return f}()},338:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V="design",k="tech",S=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_data;return h?(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.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.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 N(){return C("updt_tech")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function N(){return C("clear_tech")}return N}()}),(0,e.createComponentVNode)(2,d)]})]}):null},y=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_data;if(!h)return null;var N=h.name,b=h.lathe_types,B=h.materials,I=b.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:N}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.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 w(){return C("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return C("clear_design")}return w}()}),(0,e.createComponentVNode)(2,d)]})]})},p=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:C===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,d)]})]})},d=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function N(){var b=h===k?"eject_tech":"eject_design";C(b)}return N}()}):null},c=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.disk_data,h=g.disk_type,N=function(){if(!C)return(0,e.createComponentVNode)(2,p);switch(h){case V:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:N()})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_type,N=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,I=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?C("copy_tech",{id:I}):C("copy_design",{id:I})}return w}()})},I)})})})})},l=r.DataDiskMenu=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.disk_type;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return u}()},90785:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.DeconstructionMenu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,d=y.loaded_item,c=y.linked_destroy;return c?d?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",d.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:d.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},34492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheCategory=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,d=y.act,c=p.category,m=p.matching_designs,l=p.menu,u=l===4,s=u?"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(i){var v=i.id,g=i.name,C=i.can_build,h=i.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:C<1,onClick:function(){function N(){return d(s,{id:v,amount:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function N(){return d(s,{id:v,amount:5})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function N(){return d(s,{id:v,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.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)})})]},v)})})]})}return V}()},84275:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheChemicalStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,d=y.loaded_chemicals,c=y.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var l=c?"disposeallP":"disposeallI";p(l)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(m){var l=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function i(){var v=c?"disposeP":"disposeI";p(v,{id:s})}return i}()})},s)})})]})}return f}()},12638:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheMainMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,d=y.act,c=p.menu,m=p.categories,l=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(u){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:u,onClick:function(){function s(){d("setCategory",{category:u})}return s}()})},u)})})]})}return V}()},89004:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterialStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,d=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:d.map(function(c){var m=c.id,l=c.amount,u=c.name,s=function(){function C(h){var N=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(N,{id:m,amount:h})}return C}(),i=Math.floor(l/2e3),v=l<1,g=i===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",i," 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 C(){return s(1)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function C(){return s("custom")}return C}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function C(){return s(5)}return C}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function C(){return s(50)}return C}()})],0):null})]},m)})})})}return f}()},73856:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterials=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.total_materials,d=y.max_materials,c=y.max_chemicals,m=y.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),d?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+d}):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 f}()},75955:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(96524),a=n(17899),t=n(78345),o=n(3422),f=n(24674),V=n(89641),k=r.LatheMenu=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.data,m=c.menu,l=c.linked_lathe,u=c.linked_imprinter;return m===4&&!l?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!u?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CATEGORY,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_MAT_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return s}()})]})}return S}()},72880:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheSearch=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(d,c){return y("search",{to_search:c})}return p}()})})}return f}()},62306:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.data,c=d.disk_type,m=d.linked_destroy,l=d.linked_lathe,u=d.linked_imprinter,s=d.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(i){var v=i.name,g=i.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v,children:g},v)})})]})}return k}()},99941:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.RndNavButton=function(){function f(V,k){var S=V.icon,y=V.children,p=V.disabled,d=V.content,c=(0,a.useBackend)(k),m=c.data,l=c.act,u=m.menu,s=m.submenu,i=u,v=s;return V.menu!==null&&V.menu!==void 0&&(i=V.menu),V.submenu!==null&&V.submenu!==void 0&&(v=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:d,icon:S,disabled:p,onClick:function(){function g(){l("nav",{menu:i,submenu:v})}return g}(),children:y})}return f}()},24448:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(96524),a=n(3422),t=n(24674),o=n(89641),f=r.RndNavbar=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return V}()},78345:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(17899),a=r.RndRoute=function(){function t(o,f){var V=o.render,k=(0,e.useBackend)(f),S=k.data,y=S.menu,p=S.submenu,d=function(){function m(l,u){return l==null?!0:typeof l=="function"?l(u):l===u}return m}(),c=d(o.menu,y)&&d(o.submenu,p);return c?V():null}return t}()},56454:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.data,c=p.act,m=d.sync,l=d.admin,u=d.linked_destroy,s=d.linked_lathe,i=d.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return v}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return v}()})]})}return k}()},3422:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(19348);r.CurrentLevels=e.CurrentLevels;var a=n(338);r.DataDiskMenu=a.DataDiskMenu;var t=n(90785);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(34492);r.LatheCategory=o.LatheCategory;var f=n(84275);r.LatheChemicalStorage=f.LatheChemicalStorage;var V=n(12638);r.LatheMainMenu=V.LatheMainMenu;var k=n(73856);r.LatheMaterials=k.LatheMaterials;var S=n(89004);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(75955);r.LatheMenu=y.LatheMenu;var p=n(72880);r.LatheSearch=p.LatheSearch;var d=n(62306);r.MainMenu=d.MainMenu;var c=n(24448);r.RndNavbar=c.RndNavbar;var m=n(99941);r.RndNavButton=m.RndNavButton;var l=n(78345);r.RndRoute=l.RndRoute;var u=n(56454);r.SettingsMenu=u.SettingsMenu},71123:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=function(y,p){var d=y/p;return d<=.2?"good":d<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.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,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.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:V(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:V(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"})]})})]})},u)})})})}return S}()},98951:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.RoboticsControlConsole=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.can_hack,l=c.safety,u=c.show_lock_all,s=c.cyborgs,i=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function v(){return d("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:l,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return d("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:i,can_hack:m})]})})}return k}(),V=function(S,y){var p=S.cyborgs,d=S.can_hack,c=(0,a.useBackend)(y),m=c.act,l=c.data,u="Detonate";return l.detonate_cooldown>0&&(u+=" ("+l.detonate_cooldown+"s)"),p.length?p.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 i(){return m("hackbot",{uid:s.uid})}return i}()}),(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 i(){return m("stopbot",{uid:s.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!l.auth||l.detonate_cooldown>0,color:"bad",onClick:function(){function i(){return m("killbot",{uid:s.uid})}return i}()})],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."})}},2289:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Safe=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.dial,s=l.open,i=l.locked,v=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,V),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return y}(),V=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.dial,s=l.open,i=l.locked,v=function(C,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||h&&!i,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+C,iconRight:h,onClick:function(){function N(){return m(h?"turnleft":"turnright",{num:C})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:i,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:[v(50),v(10),v(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[v(1,!0),v(10,!0),v(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},k=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:i+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(p,d){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."})]})}},49334:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SatelliteControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.satellites,m=d.notice,l=d.meteor_shield,u=d.meteor_shield_coverage,s=d.meteor_shield_coverage_max,i=d.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:i>=100?"good":"average",value:u,maxValue:s,children:[i," %"]})}),(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:d.notice}),c.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:v.id})}return g}()})]},v.id)})]})})]})})}return V}()},54892:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(5126),k=n(68100),S=r.SecureStorage=function(){function c(m,l){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})})})})}return c}(),y=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=window.event?m.which:m.keyCode;if(i===k.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(i===k.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(i===k.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(i>=k.KEY_0&&i<=k.KEY_9){m.preventDefault(),s("keypad",{digit:i-k.KEY_0});return}if(i>=k.KEY_NUMPAD_0&&i<=k.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:i-k.KEY_NUMPAD_0});return}},p=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,v=i.locked,g=i.no_passcode,C=i.emagged,h=i.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return y(I,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--"+b]),height:"100%",children:C?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,d,{number:I})},I)})},B[0])})})]})},d=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,v=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:v,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+v]),onClick:function(){function g(){return s("keypad",{digit:v})}return g}()})}},56798:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665),k=n(68159),S=n(27527),y=n(84537),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},d=function(h,N){(0,V.modalOpen)(h,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function C(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,l):T===2&&(A=(0,e.createComponentVNode)(2,i));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return C}(),m=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.currentPage,T=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},l=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.records,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(N,"sortId","name"),M=E[0],D=E[1],O=(0,t.useLocalState)(N,"sortOrder",!0),R=O[0],j=O[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,W){var K=R?1:-1;return F[M].localeCompare(W[M])*K}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[F.status],onClick:function(){function W(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},u=function(h,N){var b=(0,t.useLocalState)(N,"sortId","name"),B=b[0],I=b[1],w=(0,t.useLocalState)(N,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.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 M(){B===x?A(!T):(I(x),A(!0))}return M}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.isPrinting,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,V.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(M,D){return x(D)}return E}()})})]})},i=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,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,v)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return 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 M(){return d(N,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},v=function(h,N){var b=(0,t.useBackend)(N),B=b.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return d(N,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,w=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,V.modalOpen)(N,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},59981:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665);function k(u,s){var i=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(i)return(i=i.call(u)).next.bind(i);if(Array.isArray(u)||(i=S(u))||s&&u&&typeof u.length=="number"){i&&(u=i);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(u,s){if(u){if(typeof u=="string")return y(u,s);var i=Object.prototype.toString.call(u).slice(8,-1);if(i==="Object"&&u.constructor&&(i=u.constructor.name),i==="Map"||i==="Set")return Array.from(u);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return y(u,s)}}function y(u,s){(s==null||s>u.length)&&(s=u.length);for(var i=0,v=new Array(s);i=A},g=function(T,A){return T<=A},C=s.split(" "),h=[],N=function(){var T=I.value,A=T.split(":");if(A.length===0)return 0;if(A.length===1)return h.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function M(D){return!1}return M}()};var x,E=i;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=v,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function M(D){return!1}return M}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":h.push(function(M){return E(M.lifespan,x)});break;case"e":case"end":case"endurance":h.push(function(M){return E(M.endurance,x)});break;case"m":case"mat":case"maturation":h.push(function(M){return E(M.maturation,x)});break;case"pr":case"prod":case"production":h.push(function(M){return E(M.production,x)});break;case"y":case"yield":h.push(function(M){return E(M.yield,x)});break;case"po":case"pot":case"potency":h.push(function(M){return E(M.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":h.push(function(M){return E(M.amount,x)});break;default:return{v:function(){function M(D){return!1}return M}()}}},b,B=k(C),I;!(I=B()).done;)if(b=N(),b!==0&&b)return b.v;return function(w){for(var T=0,A=h;T=1?Number(E):1)}return A}()})]})]})}},33454:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:d.status?d.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!d.shuttle&&(!!d.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:d.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return p("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"})}),!!d.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:!d.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return V}()},50451:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleManipulator=function(){function y(p,d){var c=(0,a.useLocalState)(d,"tabIndex",0),m=c[0],l=c[1],u=function(){function s(i){switch(i){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return 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")]}),u(m)]})})})}return y}(),V=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return m("jump_to",{type:"mobile",id:s.id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function i(){return m("fast_travel",{id:s.id})}return i}()})]})]})},s.name)})})},k=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.templates_tabs,s=l.existing_shuttle,i=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===s.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:v})}return g}(),children:v},v)})}),!!s&&i[s.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return m("select_template",{shuttle_id:v.shuttle_id})}return g}()})})]})},v.name)})]})},S=function(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.existing_shuttle,s=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return m("jump_to",{type:"mobile",id:u.id})}return i}()})})]})}):(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 i(){return m("preview",{shuttle_id:s.shuttle_id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function i(){return m("load",{shuttle_id:s.shuttle_id})}return i}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},99050:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function i(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.hasOccupant,B=b?(0,e.createComponentVNode)(2,d):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return i}(),d=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},c=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=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 I(){return h("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return h("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[b.stat][0],children:V[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},m=function(v,g){var C=(0,t.useBackend)(g),h=C.data,N=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[b[1]]/100,ranges:S,children:(0,a.round)(N[b[1]],0)},B)},B)})})})},l=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.hasOccupant,B=N.isBeakerLoaded,I=N.beakerMaxSpace,w=N.beakerFreeSpace,T=N.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("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:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.occupant,B=N.chemicals,I=N.maxchem,w=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(M,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+M>I||b.stat===2,icon:"syringe",content:"Inject "+M+"u",title:"Inject "+M+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function O(){return h("chemical",{chemid:T.id,amount:M})}return O}()},D)})]})})},A)})})},s=function(v,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."]})})})}},37763:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SlotMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;if(d.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 d.plays===1?c=d.plays+" player has tried their luck today!":c=d.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:d.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:d.working,content:d.working?"Spinning...":"Spin",onClick:function(){function m(){return p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:d.resultlvl,children:d.result})]})})})}return V}()},26654:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Smartfridge=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.secure,m=d.can_dry,l=d.drying,u=d.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 p("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,i){return s.display_name.localeCompare(i.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 i(){return p("vend",{index:s.vend,amount:1})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function i(v,g){return p("vend",{index:s.vend,amount:g})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function i(){return p("vend",{index:s.vend,amount:s.quantity})}return i}()})]})]},s)})]})]})})})}return V}()},71124:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(92986),f=n(45493),V=1e3,k=r.Smes=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.capacityPercent,u=m.capacity,s=m.charge,i=m.inputAttempt,v=m.inputting,g=m.inputLevel,C=m.inputLevelMax,h=m.inputAvailable,N=m.outputPowernet,b=m.outputAttempt,B=m.outputting,I=m.outputLevel,w=m.outputLevelMax,T=m.outputUsed,A=l>=100&&"good"||v&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value: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:i?"sync-alt":"times",selected:i,onClick:function(){function E(){return c("tryinput")}return E}(),children:i?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled: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/V,fillValue:h/V,minValue:0,maxValue:C/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,D){return c("input",{target:D*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===C,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===C,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(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:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"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:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===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:I/V,minValue:0,maxValue:w/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,D){return c("output",{target:D*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},21786:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SolarControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=0,m=1,l=2,u=d.generated,s=d.generated_ratio,i=d.tracking_state,v=d.tracking_rate,g=d.connected_panels,C=d.connected_tracker,h=d.cdir,N=d.direction,b=d.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 p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:C?"good":"bad",children:C?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color: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:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),i===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",b,")"," "]}),i===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:[i!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(I,w){return p("cdir",{cdir:w})}return B}()}),i===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:i===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:i===m,onClick:function(){function B(){return p("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:i===l,disabled:!C,onClick:function(){function B(){return p("track",{track:l})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return p("tdir",{tdir:w})}return B}()}),i===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),i===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},31202:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpawnersMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.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 p("jump",{ID:m.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return p("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 V}()},84800:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpecMenu=function(){function p(d,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,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),V=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("hemomancer")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("umbrae")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("gargantua")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("dantalion")}return i}()}),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)]})})}},46501:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.data,c=d.alarms||[],m=c.Fire||[],l=c.Atmosphere||[],u=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,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return k}()},18565:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(96524),a=n(50640),t=n(67765),o=n(17899),f=n(24674),V=n(45493),k=function(d){return d[d.SetupFutureStationTraits=0]="SetupFutureStationTraits",d[d.ViewStationTraits=1]="ViewStationTraits",d}(k||{}),S=function(c,m){var l=(0,o.useBackend)(m),u=l.act,s=l.data,i=s.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=v[0],C=v[1],h=Object.fromEntries(s.valid_station_traits.map(function(b){return[b.name,b.path]})),N=Object.keys(h);return N.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:C,options:N,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(g){var B=h[g],I=[B];if(i){var w,T=i.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}u("setup_future_traits",{station_traits:I})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(i)?i.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:i.map(function(b){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){u("setup_future_traits",{station_traits:(0,a.filterMap)(i,function(I){if(I.path!==b.path)return I.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return u("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return u("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,m){var l=(0,o.useBackend)(m),u=l.act,s=l.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(i){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:i.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!i.can_revert,tooltip:!i.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return u("revert",{ref:i.ref})}return v}()})})]})},i.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function d(c,m){var l=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),u=l[0],s=l[1],i;switch(u){case k.SetupFutureStationTraits:i=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:i=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,V.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===k.ViewStationTraits,onClick:function(){function v(){return s(k.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===k.SetupFutureStationTraits,onClick:function(){function v(){return s(k.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),i]})]})})})}return d}()},95147:function(L,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(96524),a=n(50640),t=n(17442),o=n(17899),f=n(24674),V=n(45493),k=5,S=5,y="64px",p=function(i){return i[0]+"/"+i[1]},d=function(i){var v=i.align,g=i.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:g})},c={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"}},m={eyes:{displayName:"eyewear",gridSpot:p([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:p([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:p([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:p([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:p([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:p([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:p([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:p([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:p([1,4])},jumpsuit:{displayName:"uniform",gridSpot:p([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:p([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:p([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:p([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,d,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:p([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,d,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:p([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:p([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:p([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:p([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:p([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:p([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:p([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:p([4,4]),image:"inventory-pda.png"}},l=function(s){return s[s.Completely=1]="Completely",s[s.Hidden=2]="Hidden",s}(l||{}),u=r.StripMenu=function(){function s(i,v){for(var g=(0,o.useBackend)(v),C=g.act,h=g.data,N=new Map,b=0,B=Object.keys(h.items);b=.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,V.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,V.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:d(b),minValue:0,maxValue:d(1e4),ranges:{teal:[-1/0,d(80)],good:[d(80),d(373)],average:[d(373),d(1e3)],bad:[d(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:d(B),minValue:0,maxValue:d(5e4),ranges:{good:[d(1),d(300)],average:[-1/0,d(1e3)],bad:[d(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return v("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,V.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},30047:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SyndicateComputerSimple=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d.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 p(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 V}()},28830:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.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 d("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:[f(c.cold_inlet_temp)," K,"," ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K,"," ",f(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:[f(c.hot_inlet_temp)," K,"," ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K,"," ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(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 k}()},39903:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TachyonArray=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.records,l=m===void 0?[]:m,u=c.explosion_target,s=c.toxins_tech,i=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:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||i,align:"center",onClick:function(){function v(){return d("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function v(){return d("delete_logs")}return v}()})]})]})}),l.length?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),V=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.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(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return d("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return k}()},17068:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Tank=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c;return d.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:d.connected?"check":"times",content:d.connected?"Internals On":"Internals Off",selected:d.connected,onClick:function(){function m(){return p("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:d.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:d.ReleasePressure===d.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return p("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(d.releasePressure),width:"65px",unit:"kPa",minValue:d.minReleasePressure,maxValue:d.maxReleasePressure,onChange:function(){function m(l,u){return p("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:d.ReleasePressure===d.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return p("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:d.ReleasePressure===d.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},69161:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TankDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.o_tanks,m=d.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 p("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 p("plasma")}return l}()})})]})})})}return V}()},87394:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsCore=function(){function p(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.ion,i=(0,a.useLocalState)(c,"tabIndex",0),v=i[0],g=i[1],C=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();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,V),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),C(v)]})})}return p}(),V=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.active,i=u.sectors_available,v=u.nttc_toggle_jobs,g=u.nttc_toggle_job_color,C=u.nttc_toggle_name_color,h=u.nttc_toggle_command_bold,N=u.nttc_job_indicator_type,b=u.nttc_setting_language,B=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return l("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:i})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_jobs")}return I}()})}),(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 I(){return l("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function I(){return l("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"pencil-alt",onClick:function(){function I(){return l("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function I(){return l("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return l("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return l("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return l("export")}return I}()})]})],4)},S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.link_password,i=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function v(){return l("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return l("unlink",{addr:v.addr})}return g}()})})]},v.addr)})]})]})},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function i(){return l("add_filter")}return i}()}),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(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return l("remove_filter",{user:i})}return v}()})})]},i)})]})})}},55684:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsRelay=function(){function S(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function i(){return c("toggle_active")}return i}()})}),(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 i(){return c("network_id")}return i}()})}),(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,V):(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.data,l=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function i(){return c("toggle_hidden_link")}return i}()})}),(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 i(){return c("unlink")}return i}()})})]})})},k=function(y,p){var d=(0,a.useBackend)(p),c=d.act,m=d.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(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},81088:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Teleporter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.targetsTeleport?d.targetsTeleport:{},m=0,l=1,u=2,s=d.calibrated,i=d.calibrating,v=d.powerstation,g=d.regime,C=d.teleporterhub,h=d.target,N=d.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!v||!C)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[C,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&C&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",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:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===u&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(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 b(){return p("setregime",{regime:l})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===m?"good":null,onClick:function(){function b(){return p("setregime",{regime:m})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===u?"good":null,disabled:!N,onClick:function(){function b(){return p("setregime",{regime:u})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="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:i&&(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||i),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&v&&C&&g===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return V}()},96150:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.TempGun=function(){function p(d,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.target_temperature,i=u.temperature,v=u.max_temp,g=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:v,value:s,format:function(){function C(h){return(0,a.toFixed)(h,2)}return C}(),width:"50px",onDrag:function(){function C(h,N){return l("target_temperature",{target_temperature:N})}return C}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(i),bold:i>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(i,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(i),children:S(i)})})]})})})})}return p}(),k=function(d){return d<=-100?"blue":d<=0?"teal":d<=100?"green":d<=200?"orange":"red"},S=function(d){return d<=100-273.15?"High":d<=250-273.15?"Medium":d<=300-273.15?"Low":d<=400-273.15?"Medium":"High"},y=function(d){return d<=100-273.15?"red":d<=250-273.15?"orange":d<=300-273.15?"green":d<=400-273.15?"orange":"red"}},95484:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(17899),f=n(68100),V=n(24674),k=n(45493),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(m,l){var u=(0,o.useBackend)(l),s=u.act,i=u.data,v=i.max_length,g=i.message,C=g===void 0?"":g,h=i.multiline,N=i.placeholder,b=i.timeout,B=i.title,I=(0,o.useLocalState)(l,"input",N||""),w=I[0],T=I[1],A=function(){function M(D){if(D!==w){var O=h?S(D):y(D);T(O)}}return M}(),x=h||w.length>=40,E=130+(C.length>40?Math.ceil(C.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function M(D){var O=window.event?D.which:D.keyCode;O===f.KEY_ENTER&&(!x||!D.shiftKey)&&s("submit",{entry:w}),O===f.KEY_ESCAPE&&s("cancel")}return M}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d,{input:w,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+v})})]})})})]})}return c}(),d=function(m,l){var u=(0,o.useBackend)(l),s=u.act,i=u.data,v=i.max_length,g=i.multiline,C=m.input,h=m.onType,N=g||C.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:g||C.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function b(){return s("cancel")}return b}(),onEnter:function(){function b(B){N&&B.shiftKey||(B.preventDefault(),s("submit",{entry:C}))}return b}(),onInput:function(){function b(B,I){return h(I)}return b}(),placeholder:"Type something...",value:C})}},378:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),d=p.act,c=p.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value: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 d("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 d("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 d("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,u){return d("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return d("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 d("target",{target:c.initial})}return m}()})]})]})})]})})}return k}()},3365:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TransferValve=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.tank_one,m=d.tank_two,l=d.attached_device,u=d.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return p("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 p("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 p("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 p("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 p("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},13860:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(36121),V=r.TurbineComputer=function(){function y(p,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.compressor,s=l.compressor_broken,i=l.turbine,v=l.turbine_broken,g=l.online,C=!!(u&&!s&&i&&!v);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!C,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:C?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,d){var c=(0,a.useBackend)(d),m=c.data,l=m.compressor,u=m.compressor_broken,s=m.turbine,i=m.turbine_broken,v=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!l||u?"bad":"good",children:u?l?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||i?"bad":"good",children:i?s?"Offline":"Missing":"Online"})]})},S=function(p,d){var c=(0,a.useBackend)(d),m=c.data,l=m.rpm,u=m.temperature,s=m.power,i=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:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(i)+"%"})})]})}},22169:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(78234),f=n(17899),V=n(24674),k=n(45493),S=n(99665),y=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,i);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function v(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.cart,I=(0,f.useLocalState)(C,"tabIndex",0),w=I[0],T=I[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===1,onClick:function(){function M(){T(1),E("")}return M}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===2,onClick:function(){function M(){T(2),E("")}return M}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:y(w)})]})})]})}return v}(),d=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.crystals,I=b.cats,w=(0,f.useLocalState)(C,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(C,"searchText",""),E=x[0],M=x[1],D=function(K,z){z===void 0&&(z="");var $=(0,o.createSearch)(z,function(Y){var X=Y.hijack_only===1?"|hijack":"";return Y.name+"|"+Y.desc+"|"+Y.cost+"tc"+X});return(0,t.flow)([(0,a.filter)(function(Y){return Y==null?void 0:Y.name}),z&&(0,a.filter)($),(0,a.sortBy)(function(Y){return Y==null?void 0:Y.name})])(K)},O=function(K){if(M(K),K==="")return A(I[0].items);A(D(I.map(function(z){return z.items}).flat(),K))},R=(0,f.useLocalState)(C,"showDesc",1),j=R[0],F=R[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function W(){return F(!j)}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,z){O(z)}return W}(),value:E})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:I.map(function(W){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function K(){A(W.items),M("")}return K}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:T.map(function(W){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:W,showDecription:j},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.cart,I=b.crystals,w=b.cart_price,T=(0,f.useLocalState)(C,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return N("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,V.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,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.cats,I=b.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return N("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,V.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:w})},T)})})})})},l=function(g,C){var h=g.i,N=g.showDecription,b=N===void 0?1:N,B=g.buttons,I=B===void 0?(0,e.createComponentVNode)(2,u,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:I,children:b?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},u=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=g.i,I=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return N("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,V.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 w(){return N("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},s=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=g.i,I=b.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return N("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return N("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},i=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.exploitable,I=(0,f.useLocalState)(C,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1],M=function(R,j){j===void 0&&(j="");var F=(0,o.createSearch)(j,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),j&&(0,a.filter)(F),(0,a.sortBy)(function(W){return W.name})])(R)},D=M(B,x);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function O(R,j){return E(j)}return O}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:D.map(function(O){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:O===w,onClick:function(){function R(){return T(O)}return R}(),children:O.name},O)})})]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},70547:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=S.product,l=S.productStock,u=S.productImage,s=c.chargesMoney,i=c.user,v=c.usermoney,g=c.inserted_cash,C=c.vend_ready,h=c.inserted_item_name,N=!s||m.price===0,b="ERROR!",B="";N?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var I=!C||l===0||!N&&m.price>v&&m.price>g;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color: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:I,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return d("vend",{inum:m.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.user,l=c.usermoney,u=c.inserted_cash,s=c.chargesMoney,i=c.product_records,v=i===void 0?[]:i,g=c.hidden_records,C=g===void 0?[]:g,h=c.stock,N=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(v),c.extended_inventory&&(T=[].concat(T,C)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return d("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return d("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),","," ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[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:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return d("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},33045:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VolumeMixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.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 u(){return p("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,i){return p("volume",{channel:m.num,volume:i})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return p("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return V}()},53792:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VotePanel=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.remaining,m=d.question,l=d.choices,u=d.user_vote,s=d.counts,i=d.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(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:v,content:v+(i?" ("+(s[v]||0)+")":""),onClick:function(){function g(){return p("vote",{target:v})}return g}(),selected:v===u})},v)})]})})})}return V}()},64860:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Wires=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.wires||[],m=d.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(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return p("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return p("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return p("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return V}()},78262:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.WizardApprenticeContract=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.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 p("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 p("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 p("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 p("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 p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},57842:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674);function f(p,d){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=V(p))||d&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[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 V(p,d){if(p){if(typeof p=="string")return k(p,d);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,d)}}function k(p,d){(d==null||d>p.length)&&(d=p.length);for(var c=0,m=new Array(d);c0&&!b.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function F(){return B(j.ref)}return F}()},j.desc)})]})]})})}return p}()},79449:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),f=function(S,y,p,d,c){return Sd?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function k(S,y){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(d){return d.val!=="0"||d.entry==="Pressure"||d.entry==="Temperature"})(p).map(function(d){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:d.entry,color:f(d.val,d.bad_low,d.poor_low,d.poor_high,d.bad_high),children:[d.val,d.units]},d.entry)})})})}return k}()},1496:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(96524),a=n(24674),t=n(56099),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function V(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,d=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.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),!!d&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:d(c,m)})]},c.name)})]})}return V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},69521:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.BotStatus=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.locked,c=p.noaccess,m=p.maintpanel,l=p.on,u=p.autopatrol,s=p.canhack,i=p.emagged,v=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",d?"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 y("power")}return g}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return y("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:i?"bad":"good",children:i?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:i?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return y("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!v,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return y("disableremote")}return g}()})})]})})],4)}return f}()},99665:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(96524),a=n(17899),t=n(24674),o={},f=r.modalOpen=function(){function p(d,c,m){var l=(0,a.useBackend)(d),u=l.act,s=l.data,i=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:c,arguments:JSON.stringify(i)})}return p}(),V=r.modalRegisterBodyOverride=function(){function p(d,c){o[d]=c}return p}(),k=r.modalAnswer=function(){function p(d,c,m,l){var u=(0,a.useBackend)(d),s=u.act,i=u.data;if(i.modal){var v=Object.assign(i.modal.args||{},l||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(v)})}}return p}(),S=r.modalClose=function(){function p(d,c){var m=(0,a.useBackend)(d),l=m.act;l("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(d,c){var m=(0,a.useBackend)(c),l=m.data;if(l.modal){var u=l.modal,s=u.id,i=u.text,v=u.type,g,C=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,N,b="auto";if(o[s])h=o[s](l.modal,c);else if(v==="input"){var B=l.modal.value;g=function(){function w(T){return k(c,s,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),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 w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var I=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,s,T)}return w}()}),b="initial"}else v==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return k(c,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):v==="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 w(){return k(c,s,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:d.maxWidth||window.innerWidth/2+"px",maxHeight:d.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[i&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i}),o[s]&&C,h,N]})}}return p}()},98444:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(78234),f=n(38424),V=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},p=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:S(l.rank),bold:y(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)})]})},d=r.CrewManifest=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,i;if(m.data)i=m.data;else{var v=(0,a.useBackend)(l),g=v.data;i=g}var C=i,h=C.manifest,N=h.heads,b=h.sec,B=h.eng,I=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(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:p(x)})]})}return c}()},15113:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(96524),a=n(24674),t=n(17899),o=r.InputButtons=function(){function f(V,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,d=p.large_buttons,c=p.swapped_buttons,m=V.input,l=V.message,u=V.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!d,fluid:!!d,onClick:function(){function v(){return y("submit",{entry:m})}return v}(),textAlign:"center",tooltip:d&&l,disabled:u,width:!d&&6}),i=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!d,fluid:!!d,onClick:function(){function v(){return y("cancel")}return v}(),textAlign:"center",width:!d&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[d?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:i}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),!d&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),d?(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 f}()},26893:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.InterfaceLockNoticeBox=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=V.siliconUser,c=d===void 0?p.siliconUser:d,m=V.locked,l=m===void 0?p.locked:m,u=V.normallyLocked,s=u===void 0?p.normallyLocked:u,i=V.onLockStatusChange,v=i===void 0?function(){return y("lock")}:i,g=V.accessText,C=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 h(){v&&v(!l)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",C," to ",l?"unlock":"lock"," this interface."]})}return f}()},14299:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(96524),a=n(36121),t=n(24674),o=r.Loader=function(){function f(V){var k=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},68159:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginInfo=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.loginState;if(p)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: ",d.name," (",d.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!d.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return f}()},27527:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginScreen=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.loginState,c=p.isAI,m=p.isRobot,l=p.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:d.id?d.id:"----------",ml:"0.5rem",onClick:function(){function u(){return y("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!d.id,content:"Login",onClick:function(){function u(){return y("login_login",{login_type:1})}return u}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return y("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return y("login_login",{login_type:3})}return u}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return y("login_login",{login_type:4})}return u}()})]})})})}return f}()},75201:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(96524),a=n(24674),t=n(56099),o=r.Operating=function(){function f(V){var k=V.operating,S=V.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},65435:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=r.Signaler=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,d=k.data,c=d.code,m=d.frequency,l=d.minFrequency,u=d.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:u/10,value:m/10,format:function(){function s(i){return(0,a.toFixed)(i,1)}return s}(),width:"80px",onDrag:function(){function s(i,v){return p("freq",{freq:v})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(i,v){return p("code",{code:v})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return p("signal")}return s}()})]})}return V}()},77534:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(96524),a=n(17899),t=n(78234),o=n(74041),f=n(50640),V=n(24674),k=r.SimpleRecords=function(){function p(d,c){var m=d.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:d.data,recordType:d.recordType}):(0,e.createComponentVNode)(2,S,{data:d.data})})}return p}(),S=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=d.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),i=s[0],v=s[1],g=function(N,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(u)},C=g(u,i);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(N,b){return v(b)}return h}()}),C.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function N(){return l("Records",{target:h.uid})}return N}()})},h)})]})},y=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=d.data.records,s=u.general,i=u.medical,v=u.security,g;switch(d.recordType){case"MED":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:i?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:i.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:i.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:i.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},84537:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.TemporaryNotice=function(){function f(V,k){var S,y=(0,a.useBackend)(k),p=y.act,d=y.data,c=d.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function l(){return p("cleartemp")}return l}()})})]})})))}}return f}()},24704:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pai_atmosphere=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},4209:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_bioscan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.app_data,c=d.holder,m=d.dead,l=d.health,u=d.brute,s=d.oxy,i=d.tox,v=d.burn,g=d.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:i})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},44430:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_directives=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.app_data,c=d.master,m=d.dna,l=d.prime,u=d.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 y("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:u||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},3367:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_doorjack=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.app_data,c=d.cable,m=d.machine,l=d.inprogress,u=d.progress,s=d.aborted,i;m?i=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):i=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return y("cable")}return g}()});var v;return m&&(v=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:u,maxValue:100}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return y("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return y("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:i}),v]})}return f}()},73395:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_main_menu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.app_data,c=d.available_software,m=d.installed_software,l=d.installed_toggles,u=d.available_ram,s=d.emotions,i=d.current_emotion,v=d.speech_verbs,g=d.current_speech_verb,C=d.available_chassises,h=d.current_chassis,N=[];return m.map(function(b){return N[b.key]=b.name}),l.map(function(b){return N[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!N[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>u,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!N[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===i,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},37645:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pai_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},15836:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_medrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},91737:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(96524),a=n(17899),t=n(30709),o=r.pai_messenger=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.app_data.active_convo;return d?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},94077:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(96524),a=n(17899),t=n(36121),o=n(24674),f=r.pai_radio=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,d=y.data,c=d.app_data,m=c.minFrequency,l=c.maxFrequency,u=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:u/10,format:function(){function i(v){return(0,t.toFixed)(v,1)}return i}(),onChange:function(){function i(v,g){return p("freq",{freq:g})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function i(){return p("freq",{freq:"145.9"})}return i}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return p("toggleBroadcast")}return i}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return V}()},72621:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_secrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},53483:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(96524),a=n(17899),t=n(65435),o=r.pai_signaler=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},21606:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pda_atmos_scan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},12339:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_janitor=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,d=p.janitor,c=d.user_loc,m=d.mops,l=d.buckets,u=d.cleanbots,s=d.carts,i=d.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(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.direction_from_user,")"]},v)})})]})}return f}()},36615:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=r.pda_main_menu=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,d=y.data,c=d.owner,m=d.ownjob,l=d.idInserted,u=d.categories,s=d.pai,i=d.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 v(){return p("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(v){var g=d.apps[v];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:g.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.uid in i?C.notify_icon:C.icon,iconSpin:C.uid in i,color:C.uid in i?"red":"transparent",content:C.name,onClick:function(){function h(){return p("StartProgram",{program:C.uid})}return h}()},C.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return p("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return p("pai",{option:2})}return v}()})]})})]})}return V}()},99737:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pda_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},61597:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pda_medical=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},30709:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),f=r.pda_messenger=function(){function y(p,d){var c=(0,t.useBackend)(d),m=c.act,l=c.data,u=l.active_convo;return u?(0,e.createComponentVNode)(2,V,{data:l}):(0,e.createComponentVNode)(2,k,{data:l})}return y}(),V=r.ActiveConversation=function(){function y(p,d){var c=(0,t.useBackend)(d),m=c.act,l=p.data,u=l.convo_name,s=l.convo_job,i=l.messages,v=l.active_convo,g=(0,t.useLocalState)(d,"clipboardMode",!1),C=g[0],h=g[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!C)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:v})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===v})(i).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return C&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!C)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:v})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===v})(i).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.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 b(){return m("Clear",{option:"Convo"})}return b}()})})})}),N]})}return y}(),k=r.MessengerList=function(){function y(p,d){var c=(0,t.useBackend)(d),m=c.act,l=p.data,u=l.convopdas,s=l.pdas,i=l.charges,v=l.silent,g=l.toff,C=l.ringtone_list,h=l.ringtone,N=(0,t.useLocalState)(d,"searchTerm",""),b=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:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(C),onSelected:function(){function I(w){return m("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!i&&(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:[i," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:b,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:l,pdas:u,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:l,searchTerm:b})]})}return y}(),S=function(p,d){var c=(0,t.useBackend)(d),m=c.act,l=p.data,u=p.pdas,s=p.title,i=p.msgAct,v=p.searchTerm,g=l.charges,C=l.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(h){return h.Name.toLowerCase().includes(v.toLowerCase())}).map(function(h){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:h.Name,onClick:function(){function N(){return m(i,{target:h.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&C.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:N.uid,target:h.uid})}return b}()},N.uid)})})]},h.uid)})})}},68053:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_mule=function(){function k(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.mulebot,l=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.mulebot,l=m.bots;return l.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return d("control",{bot:u.uid})}return s}()})},u.Name)})},V=function(S,y){var p=(0,a.useBackend)(y),d=p.act,c=p.data,m=c.mulebot,l=m.botstatus,u=m.active,s=l.mode,i=l.loca,v=l.load,g=l.powr,C=l.dest,h=l.home,N=l.retn,b=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:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i}),(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:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Set)":"None (Set)",onClick:function(){function I(){return d("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function I(){return d("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function I(){return d("set_pickup_type",{autopick:b?0:1})}return I}()})}),(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 I(){return d("set_auto_return",{autoret:N?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return d("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return d("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return d("home")}return I}()})]})]})]})}},31728:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=r.pda_nanobank=function(){function c(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,v=i.logged_in,g=i.owner_name,C=i.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:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",C]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,d)}return c}(),V=function(m,l){var u=(0,t.useBackend)(l),s=u.data,i=(0,t.useLocalState)(l,"tabIndex",1),v=i[0],g=i[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===1,onClick:function(){function C(){return g(1)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===2,onClick:function(){function C(){return g(2)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===3,onClick:function(){function C(){return g(3)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,l){var u=(0,t.useLocalState)(l,"tabIndex",1),s=u[0],i=(0,t.useBackend)(l),v=i.data,g=v.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,l){var u,s=(0,t.useBackend)(l),i=s.act,v=s.data,g=v.requests,C=v.available_accounts,h=v.money,N=(0,t.useLocalState)(l,"selectedAccount"),b=N[0],B=N[1],I=(0,t.useLocalState)(l,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(l,"searchText",""),x=A[0],E=A[1],M=[];return C.map(function(D){return M[D.name]=D.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 D(O,R){return E(R)}return D}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:C.filter((0,a.createSearch)(x,function(D){return D.name})).map(function(D){return D.name}),selected:(u=C.filter(function(D){return D.UID===b})[0])==null?void 0:u.name,onSelected:function(){function D(O){return B(M[O])}return D}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function D(O,R){return T(R)}return D}()})}),(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:h0&&i.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&&u.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return f}()},61255:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(92700),f=["className","theme","children"],V=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -250,7 +250,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var i=(0,d.createLogger)("Window"),v=[400,600],g=r.Window=function(b){function B(){return b.apply(this,arguments)||this}u(B,b);var I=B.prototype;return I.componentDidMount=function(){function w(){var T=(0,f.useBackend)(this.context),A=T.suspended;A||(i.log("mounting"),this.updateGeometry())}return w}(),I.componentDidUpdate=function(){function w(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return w}(),I.updateGeometry=function(){function w(){var T,A=(0,f.useBackend)(this.context),x=A.config,E=Object.assign({size:v},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=x.window)!=null&&T.key&&(0,p.setWindowKey)(x.window.key),(0,p.recallWindowGeometry)(E)}return w}(),I.render=function(){function w(){var T,A=this.props,x=A.theme,E=A.title,M=A.children,D=(0,f.useBackend)(this.context),O=D.config,R=D.suspended,j=(0,S.useDebug)(this.context),F=j.debugLayout,U=(0,t.useDispatch)(this.context),K=(T=O.window)==null?void 0:T.fancy,z=O.user&&(O.user.observer?O.status>8&255]},be=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},te=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},Q=function(ge){return le(l(ge),23,4)},ne=function(ge){return le(ge,52,8)},me=function(ge,ye,Ve){k(ge[A],ye,{configurable:!0,get:function(){function Ie(){return Ve(this)[ye]}return Ie}()})},ae=function(ge,ye,Ve,Ie){var we=D(ge),xe=m(Ve),Pe=!!Ie;if(xe+ye>we.byteLength)throw new Y(E);var We=we.bytes,Ne=xe+we.byteOffset,re=g(We,Ne,Ne+ye);return Pe?re:J(re)},ue=function(ge,ye,Ve,Ie,we,xe){var Pe=D(ge),We=m(Ve),Ne=Ie(+we),re=!!xe;if(We+ye>Pe.byteLength)throw new Y(E);for(var de=Pe.bytes,he=We+Pe.byteOffset,se=0;sewe)throw new Y("Wrong offset");if(Ve=Ve===void 0?we-xe:c(Ve),xe+Ve>we)throw new Y(x);O(this,{type:T,buffer:ge,byteLength:Ve,byteOffset:xe,bytes:Ie.bytes}),t||(this.buffer=ge,this.byteLength=Ve,this.byteOffset=xe)}return ve}(),K=U[A],t&&(me(j,"byteLength",M),me(U,"buffer",D),me(U,"byteLength",D),me(U,"byteOffset",D)),S(K,{getInt8:function(){function ve(ge){return ae(this,1,ge)[0]<<24>>24}return ve}(),getUint8:function(){function ve(ge){return ae(this,1,ge)[0]}return ve}(),getInt16:function(){function ve(ge){var ye=ae(this,2,ge,arguments.length>1?arguments[1]:!1);return(ye[1]<<8|ye[0])<<16>>16}return ve}(),getUint16:function(){function ve(ge){var ye=ae(this,2,ge,arguments.length>1?arguments[1]:!1);return ye[1]<<8|ye[0]}return ve}(),getInt32:function(){function ve(ge){return te(ae(this,4,ge,arguments.length>1?arguments[1]:!1))}return ve}(),getUint32:function(){function ve(ge){return te(ae(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return ve}(),getFloat32:function(){function ve(ge){return ce(ae(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return ve}(),getFloat64:function(){function ve(ge){return ce(ae(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return ve}(),setInt8:function(){function ve(ge,ye){ue(this,1,ge,fe,ye)}return ve}(),setUint8:function(){function ve(ge,ye){ue(this,1,ge,fe,ye)}return ve}(),setInt16:function(){function ve(ge,ye){ue(this,2,ge,pe,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setUint16:function(){function ve(ge,ye){ue(this,2,ge,pe,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setInt32:function(){function ve(ge,ye){ue(this,4,ge,be,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setUint32:function(){function ve(ge,ye){ue(this,4,ge,be,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat32:function(){function ve(ge,ye){ue(this,4,ge,Q,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat64:function(){function ve(ge,ye){ue(this,8,ge,ne,ye,arguments.length>2?arguments[2]:!1)}return ve}()});else{var oe=B&&R.name!==w;!y(function(){R(1)})||!y(function(){new R(-1)})||y(function(){return new R,new R(1.5),new R(NaN),R.length!==1||oe&&!I})?(j=function(){function ve(ge){return p(this,F),C(new R(m(ge)),this,j)}return ve}(),j[A]=F,F.constructor=j,h(j,R)):oe&&I&&V(R,"name",w),i&&s(K)!==z&&i(K,z);var ke=new U(new j(2)),Be=a(K.setInt8);ke.setInt8(0,2147483648),ke.setInt8(1,2147483649),(ke.getInt8(0)||!ke.getInt8(1))&&S(K,{setInt8:function(){function ve(ge,ye){Be(this,ge,ye<<24>>24)}return ve}(),setUint8:function(){function ve(ge,ye){Be(this,ge,ye<<24>>24)}return ve}()},{unsafe:!0})}N(j,w),N(U,T),L.exports={ArrayBuffer:j,DataView:U}},42320:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333),o=n(58937),f=Math.min;L.exports=[].copyWithin||function(){function V(k,S){var y=e(this),p=t(y),d=a(k,p),c=a(S,p),m=arguments.length>2?arguments[2]:void 0,l=f((m===void 0?p:a(m,p))-c,p-d),u=1;for(c0;)c in y?y[d]=y[c]:o(y,d),d+=u,c+=u;return y}return V}()},59942:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333);L.exports=function(){function o(f){for(var V=e(this),k=t(V),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,d=p===void 0?k:a(p,k);d>y;)V[y++]=f;return V}return o}()},75420:function(L,r,n){"use strict";var e=n(67480).forEach,a=n(42309),t=a("forEach");L.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},6967:function(L,r,n){"use strict";var e=n(8333);L.exports=function(a,t,o){for(var f=0,V=arguments.length>2?o:e(t),k=new a(V);V>f;)k[f]=t[f++];return k}},80363:function(L,r,n){"use strict";var e=n(4509),a=n(62696),t=n(40076),o=n(17100),f=n(58482),V=n(60354),k=n(8333),S=n(12913),y=n(3438),p=n(76274),d=Array;L.exports=function(){function c(m){var l=t(m),u=V(this),s=arguments.length,i=s>1?arguments[1]:void 0,v=i!==void 0;v&&(i=e(i,s>2?arguments[2]:void 0));var g=p(l),C=0,h,N,b,B,I,w;if(g&&!(this===d&&f(g)))for(N=u?new this:[],B=y(l,g),I=B.next;!(b=a(I,B)).done;C++)w=v?o(B,i,[b.value,C],!0):b.value,S(N,C,w);else for(h=k(l),N=u?new this(h):d(h);h>C;C++)w=v?i(l[C],C):l[C],S(N,C,w);return N.length=C,N}return c}()},64210:function(L,r,n){"use strict";var e=n(96812),a=n(74067),t=n(8333),o=function(V){return function(k,S,y){var p=e(k),d=t(p);if(d===0)return!V&&-1;var c=a(y,d),m;if(V&&S!==S){for(;d>c;)if(m=p[c++],m!==m)return!0}else for(;d>c;c++)if((V||c in p)&&p[c]===S)return V||c||0;return!V&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},67480:function(L,r,n){"use strict";var e=n(4509),a=n(18161),t=n(26736),o=n(40076),f=n(8333),V=n(32878),k=a([].push),S=function(p){var d=p===1,c=p===2,m=p===3,l=p===4,u=p===6,s=p===7,i=p===5||u;return function(v,g,C,h){for(var N=o(v),b=t(N),B=f(b),I=e(g,C),w=0,T=h||V,A=d?T(v,B):c||s?T(v,0):void 0,x,E;B>w;w++)if((i||w in b)&&(x=b[w],E=I(x,w,N),p))if(d)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return u?-1:m||l?l:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16934:function(L,r,n){"use strict";var e=n(70918),a=n(96812),t=n(74952),o=n(8333),f=n(42309),V=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=f("lastIndexOf"),p=S||!y;L.exports=p?function(){function d(c){if(S)return e(k,this,arguments)||0;var m=a(this),l=o(m);if(l===0)return-1;var u=l-1;for(arguments.length>1&&(u=V(u,t(arguments[1]))),u<0&&(u=l+u);u>=0;u--)if(u in m&&m[u]===c)return u||0;return-1}return d}():k},55114:function(L,r,n){"use strict";var e=n(41746),a=n(66266),t=n(82709),o=a("species");L.exports=function(f){return t>=51||!e(function(){var V=[],k=V.constructor={};return k[o]=function(){return{foo:1}},V[f](Boolean).foo!==1})}},42309:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},98405:function(L,r,n){"use strict";var e=n(97361),a=n(40076),t=n(26736),o=n(8333),f=TypeError,V="Reduce of empty array with no initial value",k=function(y){return function(p,d,c,m){var l=a(p),u=t(l),s=o(l);if(e(d),s===0&&c<2)throw new f(V);var i=y?s-1:0,v=y?-1:1;if(c<2)for(;;){if(i in u){m=u[i],i+=v;break}if(i+=v,y?i<0:s<=i)throw new f(V)}for(;y?i>=0:s>i;i+=v)i in u&&(m=d(m,u[i],i,l));return m}};L.exports={left:k(!1),right:k(!0)}},72720:function(L,r,n){"use strict";var e=n(14141),a=n(62367),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}}();L.exports=f?function(V,k){if(a(V)&&!o(V,"length").writable)throw new t("Cannot set read only .length");return V.length=k}:function(V,k){return V.length=k}},77713:function(L,r,n){"use strict";var e=n(18161);L.exports=e([].slice)},44815:function(L,r,n){"use strict";var e=n(77713),a=Math.floor,t=function o(f,V){var k=f.length;if(k<8)for(var S=1,y,p;S0;)f[p]=f[--p];p!==S++&&(f[p]=y)}else for(var d=a(k/2),c=o(e(f,0,d),V),m=o(e(f,d),V),l=c.length,u=m.length,s=0,i=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 w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(N,g?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),d&&a(N,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return s}(),setStrong:function(){function s(i,v,g){var C=v+" Iterator",h=u(v),N=u(C);S(i,v,function(b,B){l(this,{type:C,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=N(this),B=b.kind,I=b.last;I&&I.removed;)I=I.previous;return!b.target||!(b.last=I=I?I.next:b.state.first)?(b.target=void 0,y(void 0,!0)):y(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},g?"entries":"values",!g,!0),p(v)}return s}()}},32920:function(L,r,n){"use strict";var e=n(18161),a=n(13648),t=n(29126).getWeakData,o=n(19870),f=n(39482),V=n(1022),k=n(56831),S=n(281),y=n(67480),p=n(89458),d=n(35086),c=d.set,m=d.getterFor,l=y.find,u=y.findIndex,s=e([].splice),i=0,v=function(N){return N.frozen||(N.frozen=new g)},g=function(){this.entries=[]},C=function(N,b){return l(N.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(N){var b=C(this,N);if(b)return b[1]}return h}(),has:function(){function h(N){return!!C(this,N)}return h}(),set:function(){function h(N,b){var B=C(this,N);B?B[1]=b:this.entries.push([N,b])}return h}(),delete:function(){function h(N){var b=u(this.entries,function(B){return B[0]===N});return~b&&s(this.entries,b,1),!!~b}return h}()},L.exports={getConstructor:function(){function h(N,b,B,I){var w=N(function(E,M){o(E,T),c(E,{type:b,id:i++,frozen:void 0}),V(M)||S(M,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(b),x=function(){function E(M,D,O){var R=A(M),j=t(f(D),!0);return j===!0?v(R).set(D,O):j[R.id]=O,M}return E}();return a(T,{delete:function(){function E(M){var D=A(this);if(!k(M))return!1;var O=t(M);return O===!0?v(D).delete(M):O&&p(O,D.id)&&delete O[D.id]}return E}(),has:function(){function E(M){var D=A(this);if(!k(M))return!1;var O=t(M);return O===!0?v(D).has(M):O&&p(O,D.id)}return E}()}),a(T,B?{get:function(){function E(M){var D=A(this);if(k(M)){var O=t(M);return O===!0?v(D).get(M):O?O[D.id]:void 0}}return E}(),set:function(){function E(M,D){return x(this,M,D)}return E}()}:{add:function(){function E(M){return x(this,M,!0)}return E}()}),w}return h}()}},93439:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(18161),o=n(95945),f=n(59173),V=n(29126),k=n(281),S=n(19870),y=n(7532),p=n(1022),d=n(56831),c=n(41746),m=n(52019),l=n(94234),u=n(2566);L.exports=function(s,i,v){var g=s.indexOf("Map")!==-1,C=s.indexOf("Weak")!==-1,h=g?"set":"add",N=a[s],b=N&&N.prototype,B=N,I={},w=function(R){var j=t(b[R]);f(b,R,R==="add"?function(){function F(U){return j(this,U===0?0:U),this}return F}():R==="delete"?function(F){return C&&!d(F)?!1:j(this,F===0?0:F)}:R==="get"?function(){function F(U){return C&&!d(U)?void 0:j(this,U===0?0:U)}return F}():R==="has"?function(){function F(U){return C&&!d(U)?!1:j(this,U===0?0:U)}return F}():function(){function F(U,K){return j(this,U===0?0:U,K),this}return F}())},T=o(s,!y(N)||!(C||b.forEach&&!c(function(){new N().entries().next()})));if(T)B=v.getConstructor(i,s,g,h),V.enable();else if(o(s,!0)){var A=new B,x=A[h](C?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=m(function(O){new N(O)}),D=!C&&c(function(){for(var O=new N,R=5;R--;)O[h](R,R);return!O.has(-0)});M||(B=i(function(O,R){S(O,b);var j=u(new N,O,B);return p(R)||k(R,j[h],{that:j,AS_ENTRIES:g}),j}),B.prototype=b,b.constructor=B),(E||D)&&(w("delete"),w("has"),g&&w("get")),(D||x)&&w(h),C&&b.clear&&delete b.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==N},I),l(B,s),C||v.setStrong(B,s,g),B}},70113:function(L,r,n){"use strict";var e=n(89458),a=n(93616),t=n(54168),o=n(56018);L.exports=function(f,V,k){for(var S=a(V),y=o.f,p=t.f,d=0;d"+p+""}},77056:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},16216:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=e?function(o,f,V){return a.f(o,f,t(1,V))}:function(o,f,V){return o[f]=V,o}},7539:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},12913:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=function(o,f,V){e?a.f(o,f,t(0,V)):o[f]=V}},74003:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(34086).start,o=RangeError,f=isFinite,V=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),p=e(k.getUTCDate),d=e(k.getUTCFullYear),c=e(k.getUTCHours),m=e(k.getUTCMilliseconds),l=e(k.getUTCMinutes),u=e(k.getUTCMonth),s=e(k.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function i(){if(!f(y(this)))throw new o("Invalid time value");var v=this,g=d(v),C=m(v),h=g<0?"-":g>9999?"+":"";return h+t(V(g),h?6:4,0)+"-"+t(u(v)+1,2,0)+"-"+t(p(v),2,0)+"T"+t(c(v),2,0)+":"+t(l(v),2,0)+":"+t(s(v),2,0)+"."+t(C,3,0)+"Z"}return i}():S},95865:function(L,r,n){"use strict";var e=n(39482),a=n(14991),t=TypeError;L.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)}},10069:function(L,r,n){"use strict";var e=n(76130),a=n(56018);L.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},59173:function(L,r,n){"use strict";var e=n(7532),a=n(56018),t=n(76130),o=n(93422);L.exports=function(f,V,k,S){S||(S={});var y=S.enumerable,p=S.name!==void 0?S.name:V;if(e(k)&&t(k,p,S),S.global)y?f[V]=k:o(V,k);else{try{S.unsafe?f[V]&&(y=!0):delete f[V]}catch(d){}y?f[V]=k:a.f(f,V,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},13648:function(L,r,n){"use strict";var e=n(59173);L.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},93422:function(L,r,n){"use strict";var e=n(40224),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},58937:function(L,r,n){"use strict";var e=n(62518),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},14141:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},85158:function(L,r,n){"use strict";var e=n(40224),a=n(56831),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(f){return o?t.createElement(f):{}}},72434:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},49847:function(L,r,n){"use strict";var e=n(15837),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},27955:function(L,r,n){"use strict";var e=n(2971),a=n(95823);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},2178:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},2971:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},56605:function(L,r,n){"use strict";var e=n(15837);L.exports=/MSIE|Trident/.test(e)},6647:function(L,r,n){"use strict";var e=n(15837);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},52426:function(L,r,n){"use strict";var e=n(15837);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},95823:function(L,r,n){"use strict";var e=n(40224),a=n(38817);L.exports=a(e.process)==="process"},25062:function(L,r,n){"use strict";var e=n(15837);L.exports=/web0s(?!.*chrome)/i.test(e)},15837:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},82709:function(L,r,n){"use strict";var e=n(40224),a=n(15837),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,V=f&&f.v8,k,S;V&&(k=V.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),L.exports=S},53125:function(L,r,n){"use strict";var e=n(15837),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},90298:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},77549:function(L,r,n){"use strict";var e=n(40224),a=n(54168).f,t=n(16216),o=n(59173),f=n(93422),V=n(70113),k=n(95945);L.exports=function(S,y){var p=S.target,d=S.global,c=S.stat,m,l,u,s,i,v;if(d?l=e:c?l=e[p]||f(p,{}):l=e[p]&&e[p].prototype,l)for(u in y){if(i=y[u],S.dontCallGetSet?(v=a(l,u),s=v&&v.value):s=l[u],m=k(d?u:p+(c?".":"#")+u,S.forced),!m&&s!==void 0){if(typeof i==typeof s)continue;V(i,s)}(S.sham||s&&s.sham)&&t(i,"sham",!0),o(l,u,i,S)}}},41746:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},85427:function(L,r,n){"use strict";n(95880);var e=n(62696),a=n(59173),t=n(72894),o=n(41746),f=n(66266),V=n(16216),k=f("species"),S=RegExp.prototype;L.exports=function(y,p,d,c){var m=f(y),l=!o(function(){var v={};return v[m]=function(){return 7},""[y](v)!==7}),u=l&&!o(function(){var v=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return v=!0,null},g[m](""),!v});if(!l||!u||d){var s=/./[m],i=p(m,""[y],function(v,g,C,h,N){var b=g.exec;return b===t||b===S.exec?l&&!N?{done:!0,value:e(s,g,C,h)}:{done:!0,value:e(v,C,g,h)}:{done:!1}});a(String.prototype,y,i[0]),a(S,m,i[1])}c&&V(S[m],"sham",!0)}},68864:function(L,r,n){"use strict";var e=n(62367),a=n(8333),t=n(72434),o=n(4509),f=function V(k,S,y,p,d,c,m,l){for(var u=d,s=0,i=m?o(m,l):!1,v,g;s0&&e(v)?(g=a(v),u=V(k,S,v,g,u,c-1)-1):(t(u+1),k[u]=v),u++),s++;return u};L.exports=f},56255:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},70918:function(L,r,n){"use strict";var e=n(76799),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},4509:function(L,r,n){"use strict";var e=n(85067),a=n(97361),t=n(76799),o=e(e.bind);L.exports=function(f,V){return a(f),V===void 0?f:t?o(f,V):function(){return f.apply(V,arguments)}}},76799:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},9379:function(L,r,n){"use strict";var e=n(18161),a=n(97361),t=n(56831),o=n(89458),f=n(77713),V=n(76799),k=Function,S=e([].concat),y=e([].join),p={},d=function(m,l,u){if(!o(p,l)){for(var s=[],i=0;i]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(y,p,d,c,m,l){var u=d+y.length,s=c.length,i=S;return m!==void 0&&(m=a(m),i=k),f(l,i,function(v,g){var C;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return V(p,0,d);case"'":return V(p,u);case"<":C=m[V(g,1,-1)];break;default:var h=+g;if(h===0)return v;if(h>s){var N=t(h/10);return N===0?v:N<=s?c[N-1]===void 0?o(g,1):c[N-1]+o(g,1):v}C=c[h-1]}return C===void 0?"":C})}},40224:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.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")()},89458:function(L,r,n){"use strict";var e=n(18161),a=n(40076),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(f,V){return t(a(f),V)}return o}()},21124:function(L){"use strict";L.exports={}},46122:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},54562:function(L,r,n){"use strict";var e=n(40164);L.exports=e("document","documentElement")},1606:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(85158);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},62263:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,y,p){var d=r(p),c=p*8-y-1,m=(1<>1,u=y===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,i=0,v,g,C;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,v=m):(v=a(t(S)/o),C=e(2,-v),S*C<1&&(v--,C*=2),v+l>=1?S+=u/C:S+=u*e(2,1-l),S*C>=2&&(v++,C/=2),v+l>=m?(g=0,v=m):v+l>=1?(g=(S*C-1)*e(2,y),v+=l):(g=S*e(2,l-1)*e(2,y),v=0));y>=8;)d[i++]=g&255,g/=256,y-=8;for(v=v<0;)d[i++]=v&255,v/=256,c-=8;return d[--i]|=s*128,d},V=function(S,y){var p=S.length,d=p*8-y-1,c=(1<>1,l=d-7,u=p-1,s=S[u--],i=s&127,v;for(s>>=7;l>0;)i=i*256+S[u--],l-=8;for(v=i&(1<<-l)-1,i>>=-l,l+=y;l>0;)v=v*256+S[u--],l-=8;if(i===0)i=1-m;else{if(i===c)return v?NaN:s?-1/0:1/0;v+=e(2,y),i-=m}return(s?-1:1)*v*e(2,i-y)};L.exports={pack:f,unpack:V}},26736:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(38817),o=Object,f=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?f(V,""):o(V)}:o},2566:function(L,r,n){"use strict";var e=n(7532),a=n(56831),t=n(42878);L.exports=function(o,f,V){var k,S;return t&&e(k=f.constructor)&&k!==V&&a(S=k.prototype)&&S!==V.prototype&&t(o,S),o}},43589:function(L,r,n){"use strict";var e=n(18161),a=n(7532),t=n(95046),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),L.exports=t.inspectSource},29126:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(21124),o=n(56831),f=n(89458),V=n(56018).f,k=n(34813),S=n(63797),y=n(57975),p=n(33345),d=n(56255),c=!1,m=p("meta"),l=0,u=function(N){V(N,m,{value:{objectID:"O"+l++,weakData:{}}})},s=function(N,b){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!y(N))return"F";if(!b)return"E";u(N)}return N[m].objectID},i=function(N,b){if(!f(N,m)){if(!y(N))return!0;if(!b)return!1;u(N)}return N[m].weakData},v=function(N){return d&&c&&y(N)&&!f(N,m)&&u(N),N},g=function(){C.enable=function(){},c=!0;var N=k.f,b=a([].splice),B={};B[m]=1,N(B).length&&(k.f=function(I){for(var w=N(I),T=0,A=w.length;TI;I++)if(T=M(l[I]),T&&k(m,T))return T;return new c(!1)}b=S(l,B)}for(A=g?l.next:b.next;!(x=a(A,b)).done;){try{T=M(x.value)}catch(D){p(b,"throw",D)}if(typeof T=="object"&&T&&k(m,T))return T}return new c(!1)}},14868:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(4817);L.exports=function(o,f,V){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw V;return V}k=e(k,o)}catch(y){S=!0,k=y}if(f==="throw")throw V;if(S)throw k;return a(k),V}},42599:function(L,r,n){"use strict";var e=n(85106).IteratorPrototype,a=n(28969),t=n(7539),o=n(94234),f=n(90604),V=function(){return this};L.exports=function(k,S,y,p){var d=S+" Iterator";return k.prototype=a(e,{next:t(+!p,y)}),o(k,d,!1,!0),f[d]=V,k}},2449:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(11478),o=n(26463),f=n(7532),V=n(42599),k=n(31658),S=n(42878),y=n(94234),p=n(16216),d=n(59173),c=n(66266),m=n(90604),l=n(85106),u=o.PROPER,s=o.CONFIGURABLE,i=l.IteratorPrototype,v=l.BUGGY_SAFARI_ITERATORS,g=c("iterator"),C="keys",h="values",N="entries",b=function(){return this};L.exports=function(B,I,w,T,A,x,E){V(w,I,T);var M=function(X){if(X===A&&F)return F;if(!v&&X&&X in R)return R[X];switch(X){case C:return function(){function J(){return new w(this,X)}return J}();case h:return function(){function J(){return new w(this,X)}return J}();case N:return function(){function J(){return new w(this,X)}return J}()}return function(){return new w(this)}},D=I+" Iterator",O=!1,R=B.prototype,j=R[g]||R["@@iterator"]||A&&R[A],F=!v&&j||M(A),U=I==="Array"&&R.entries||j,K,z,$;if(U&&(K=k(U.call(new B)),K!==Object.prototype&&K.next&&(!t&&k(K)!==i&&(S?S(K,i):f(K[g])||d(K,g,b)),y(K,D,!0,!0),t&&(m[D]=b))),u&&A===h&&j&&j.name!==h&&(!t&&s?p(R,"name",h):(O=!0,F=function(){function Y(){return a(j,this)}return Y}())),A)if(z={values:M(h),keys:x?F:M(C),entries:M(N)},E)for($ in z)(v||O||!($ in R))&&d(R,$,z[$]);else e({target:I,proto:!0,forced:v||O},z);return(!t||E)&&R[g]!==F&&d(R,g,F,{name:A}),m[I]=F,z}},85106:function(L,r,n){"use strict";var e=n(41746),a=n(7532),t=n(56831),o=n(28969),f=n(31658),V=n(59173),k=n(66266),S=n(11478),y=k("iterator"),p=!1,d,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(d=c)):p=!0);var l=!t(d)||e(function(){var u={};return d[y].call(u)!==u});l?d={}:S&&(d=o(d)),a(d[y])||V(d,y,function(){return this}),L.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:p}},90604:function(L){"use strict";L.exports={}},8333:function(L,r,n){"use strict";var e=n(10475);L.exports=function(a){return e(a.length)}},76130:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(7532),o=n(89458),f=n(14141),V=n(26463).CONFIGURABLE,k=n(43589),S=n(35086),y=S.enforce,p=S.get,d=String,c=Object.defineProperty,m=e("".slice),l=e("".replace),u=e([].join),s=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),i=String(String).split("String"),v=L.exports=function(g,C,h){m(d(C),0,7)==="Symbol("&&(C="["+l(d(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(C="get "+C),h&&h.setter&&(C="set "+C),(!o(g,"name")||V&&g.name!==C)&&(f?c(g,"name",{value:C,configurable:!0}):g.name=C),s&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var N=y(g);return o(N,"source")||(N.source=u(i,typeof C=="string"?C:"")),g};Function.prototype.toString=v(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},32813:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.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},23207:function(L,r,n){"use strict";var e=n(54307),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};L.exports=function(V,k,S,y){var p=+V,d=a(p),c=e(p);if(dS||l!==l?c*(1/0):c*l}},75988:function(L,r,n){"use strict";var e=n(23207),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function f(V){return e(V,a,t,o)}return f}()},53271:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},69143:function(L){"use strict";var r=Math.log;L.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}()},54307:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},34606:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},27150:function(L,r,n){"use strict";var e=n(40224),a=n(1156),t=n(4509),o=n(91314).set,f=n(23496),V=n(52426),k=n(6647),S=n(25062),y=n(95823),p=e.MutationObserver||e.WebKitMutationObserver,d=e.document,c=e.process,m=e.Promise,l=a("queueMicrotask"),u,s,i,v,g;if(!l){var C=new f,h=function(){var b,B;for(y&&(b=c.domain)&&b.exit();B=C.get();)try{B()}catch(I){throw C.head&&u(),I}b&&b.enter()};!V&&!y&&!S&&p&&d?(s=!0,i=d.createTextNode(""),new p(h).observe(i,{characterData:!0}),u=function(){i.data=s=!s}):!k&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,g=t(v.then,v),u=function(){g(h)}):y?u=function(){c.nextTick(h)}:(o=t(o,e),u=function(){o(h)}),l=function(b){C.head||u(),C.add(b)}}L.exports=l},48532:function(L,r,n){"use strict";var e=n(97361),a=TypeError,t=function(f){var V,k;this.promise=new f(function(S,y){if(V!==void 0||k!==void 0)throw new a("Bad Promise constructor");V=S,k=y}),this.resolve=e(V),this.reject=e(k)};L.exports.f=function(o){return new t(o)}},89140:function(L,r,n){"use strict";var e=n(80969),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},69079:function(L,r,n){"use strict";var e=n(40224),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},43283:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),k=t("".charAt),S=e.parseFloat,y=e.Symbol,p=y&&y.iterator,d=1/S(V+"-0")!==-1/0||p&&!a(function(){S(Object(p))});L.exports=d?function(){function c(m){var l=f(o(m)),u=S(l);return u===0&&k(l,0)==="-"?-0:u}return c}():S},11540:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,p=/^[+-]?0x/i,d=t(p.exec),c=k(V+"08")!==8||k(V+"0x16")!==22||y&&!a(function(){k(Object(y))});L.exports=c?function(){function m(l,u){var s=f(o(l));return k(s,u>>>0||(d(p,s)?16:10))}return m}():k},12752:function(L,r,n){"use strict";var e=n(14141),a=n(18161),t=n(62696),o=n(41746),f=n(84913),V=n(34220),k=n(9776),S=n(40076),y=n(26736),p=Object.assign,d=Object.defineProperty,c=a([].concat);L.exports=!p||o(function(){if(e&&p({b:1},p(d({},"a",{enumerable:!0,get:function(){function i(){d(this,"b",{value:3,enumerable:!1})}return i}()}),{b:2})).b!==1)return!0;var m={},l={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(i){l[i]=i}),p({},m)[u]!==7||f(p({},l)).join("")!==s})?function(){function m(l,u){for(var s=S(l),i=arguments.length,v=1,g=V.f,C=k.f;i>v;)for(var h=y(arguments[v++]),N=g?c(f(h),g(h)):f(h),b=N.length,B=0,I;b>B;)I=N[B++],(!e||t(C,h,I))&&(s[I]=h[I]);return s}return m}():p},28969:function(L,r,n){"use strict";var e=n(39482),a=n(65854),t=n(90298),o=n(21124),f=n(54562),V=n(85158),k=n(5160),S=">",y="<",p="prototype",d="script",c=k("IE_PROTO"),m=function(){},l=function(C){return y+d+S+C+y+"/"+d+S},u=function(C){C.write(l("")),C.close();var h=C.parentWindow.Object;return C=null,h},s=function(){var C=V("iframe"),h="java"+d+":",N;return C.style.display="none",f.appendChild(C),C.src=String(h),N=C.contentWindow.document,N.open(),N.write(l("document.F=Object")),N.close(),N.F},i,v=function(){try{i=new ActiveXObject("htmlfile")}catch(h){}v=typeof document!="undefined"?document.domain&&i?u(i):s():u(i);for(var C=t.length;C--;)delete v[p][t[C]];return v()};o[c]=!0,L.exports=Object.create||function(){function g(C,h){var N;return C!==null?(m[p]=e(C),N=new m,m[p]=null,N[c]=C):N=v(),h===void 0?N:a.f(N,h)}return g}()},65854:function(L,r,n){"use strict";var e=n(14141),a=n(83411),t=n(56018),o=n(39482),f=n(96812),V=n(84913);r.f=e&&!a?Object.defineProperties:function(){function k(S,y){o(S);for(var p=f(y),d=V(y),c=d.length,m=0,l;c>m;)t.f(S,l=d[m++],p[l]);return S}return k}()},56018:function(L,r,n){"use strict";var e=n(14141),a=n(1606),t=n(83411),o=n(39482),f=n(57640),V=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",p="configurable",d="writable";r.f=e?t?function(){function c(m,l,u){if(o(m),l=f(l),o(u),typeof m=="function"&&l==="prototype"&&"value"in u&&d in u&&!u[d]){var s=S(m,l);s&&s[d]&&(m[l]=u.value,u={configurable:p in u?u[p]:s[p],enumerable:y in u?u[y]:s[y],writable:!1})}return k(m,l,u)}return c}():k:function(){function c(m,l,u){if(o(m),l=f(l),o(u),a)try{return k(m,l,u)}catch(s){}if("get"in u||"set"in u)throw new V("Accessors not supported");return"value"in u&&(m[l]=u.value),m}return c}()},54168:function(L,r,n){"use strict";var e=n(14141),a=n(62696),t=n(9776),o=n(7539),f=n(96812),V=n(57640),k=n(89458),S=n(1606),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function p(d,c){if(d=f(d),c=V(c),S)try{return y(d,c)}catch(m){}if(k(d,c))return o(!a(t.f,d,c),d[c])}return p}()},63797:function(L,r,n){"use strict";var e=n(38817),a=n(96812),t=n(34813).f,o=n(77713),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],V=function(S){try{return t(S)}catch(y){return o(f)}};L.exports.f=function(){function k(S){return f&&e(S)==="Window"?V(S):t(a(S))}return k}()},34813:function(L,r,n){"use strict";var e=n(62995),a=n(90298),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},34220:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},31658:function(L,r,n){"use strict";var e=n(89458),a=n(7532),t=n(40076),o=n(5160),f=n(58776),V=o("IE_PROTO"),k=Object,S=k.prototype;L.exports=f?k.getPrototypeOf:function(y){var p=t(y);if(e(p,V))return p[V];var d=p.constructor;return a(d)&&p instanceof d?d.prototype:p instanceof k?S:null}},57975:function(L,r,n){"use strict";var e=n(41746),a=n(56831),t=n(38817),o=n(65693),f=Object.isExtensible,V=e(function(){f(1)});L.exports=V||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},33314:function(L,r,n){"use strict";var e=n(18161);L.exports=e({}.isPrototypeOf)},62995:function(L,r,n){"use strict";var e=n(18161),a=n(89458),t=n(96812),o=n(64210).indexOf,f=n(21124),V=e([].push);L.exports=function(k,S){var y=t(k),p=0,d=[],c;for(c in y)!a(f,c)&&a(y,c)&&V(d,c);for(;S.length>p;)a(y,c=S[p++])&&(~o(d,c)||V(d,c));return d}},84913:function(L,r,n){"use strict";var e=n(62995),a=n(90298);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},9776:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},33030:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(41746),o=n(53125);L.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},42878:function(L,r,n){"use strict";var e=n(9553),a=n(56831),t=n(91029),o=n(51689);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,V={},k;try{k=e(Object.prototype,"__proto__","set"),k(V,[]),f=V instanceof Array}catch(S){}return function(){function S(y,p){return t(y),o(p),a(y)&&(f?k(y,p):y.__proto__=p),y}return S}()}():void 0)},97452:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(18161),o=n(31658),f=n(84913),V=n(96812),k=n(9776).f,S=t(k),y=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),d=function(m){return function(l){for(var u=V(l),s=f(u),i=p&&o(u)===null,v=s.length,g=0,C=[],h;v>g;)h=s[g++],(!e||(i?h in u:S(u,h)))&&y(C,m?[h,u[h]]:u[h]);return C}};L.exports={entries:d(!0),values:d(!1)}},66628:function(L,r,n){"use strict";var e=n(82161),a=n(27806);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},14991:function(L,r,n){"use strict";var e=n(62696),a=n(7532),t=n(56831),o=TypeError;L.exports=function(f,V){var k,S;if(V==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||V!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},93616:function(L,r,n){"use strict";var e=n(40164),a=n(18161),t=n(34813),o=n(34220),f=n(39482),V=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(f(S)),p=o.f;return p?V(y,p(S)):y}return k}()},5376:function(L,r,n){"use strict";var e=n(40224);L.exports=e},91114:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},49669:function(L,r,n){"use strict";var e=n(40224),a=n(35973),t=n(7532),o=n(95945),f=n(43589),V=n(66266),k=n(27955),S=n(2971),y=n(11478),p=n(82709),d=a&&a.prototype,c=V("species"),m=!1,l=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),i=s!==String(a);if(!i&&p===66||y&&!(d.catch&&d.finally))return!0;if(!p||p<51||!/native code/.test(s)){var v=new a(function(h){h(1)}),g=function(N){N(function(){},function(){})},C=v.constructor={};if(C[c]=g,m=v.then(function(){})instanceof g,!m)return!0}return!i&&(k||S)&&!l});L.exports={CONSTRUCTOR:u,REJECTION_EVENT:l,SUBCLASSING:m}},35973:function(L,r,n){"use strict";var e=n(40224);L.exports=e.Promise},43827:function(L,r,n){"use strict";var e=n(39482),a=n(56831),t=n(48532);L.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var V=t.f(o),k=V.resolve;return k(f),V.promise}},95044:function(L,r,n){"use strict";var e=n(35973),a=n(52019),t=n(49669).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},77495:function(L,r,n){"use strict";var e=n(56018).f;L.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(V){t[o]=V}return f}()})}},23496:function(L){"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}()},L.exports=r},35553:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(7532),o=n(38817),f=n(72894),V=TypeError;L.exports=function(k,S){var y=k.exec;if(t(y)){var p=e(y,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(f,k,S);throw new V("RegExp#exec called on incompatible receiver")}},72894:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(26602),o=n(65844),f=n(1064),V=n(75130),k=n(28969),S=n(35086).get,y=n(89604),p=n(5489),d=V("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,l=a("".charAt),u=a("".indexOf),s=a("".replace),i=a("".slice),v=function(){var N=/a/,b=/b*/g;return e(c,N,"a"),e(c,b,"a"),N.lastIndex!==0||b.lastIndex!==0}(),g=f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,h=v||C||g||y||p;h&&(m=function(){function N(b){var B=this,I=S(B),w=t(b),T=I.raw,A,x,E,M,D,O,R;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=I.groups,F=g&&B.sticky,U=e(o,B),K=B.source,z=0,$=w;if(F&&(U=s(U,"y",""),u(U,"g")===-1&&(U+="g"),$=i(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&l(w,B.lastIndex-1)!=="\n")&&(K="(?: "+K+")",$=" "+$,z++),x=new RegExp("^(?:"+K+")",U)),C&&(x=new RegExp("^"+K+"$(?!\\s)",U)),v&&(E=B.lastIndex),M=e(c,F?x:B,$),F?M?(M.input=i(M.input,z),M[0]=i(M[0],z),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:v&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),C&&M&&M.length>1&&e(d,M[0],x,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},91029:function(L,r,n){"use strict";var e=n(1022),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},1156:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},37309:function(L){"use strict";L.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},83827:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(7532),o=n(2178),f=n(15837),V=n(77713),k=n(22789),S=e.Function,y=/MSIE .\./.test(f)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();L.exports=function(p,d){var c=d?2:1;return y?function(m,l){var u=k(arguments.length,1)>c,s=t(m)?m:S(m),i=u?V(arguments,c):[],v=u?function(){a(s,this,i)}:s;return d?p(v,l):p(v)}:p}},67420:function(L,r,n){"use strict";var e=n(40164),a=n(10069),t=n(66266),o=n(14141),f=t("species");L.exports=function(V){var k=e(V);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},94234:function(L,r,n){"use strict";var e=n(56018).f,a=n(89458),t=n(66266),o=t("toStringTag");L.exports=function(f,V,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:V})}},5160:function(L,r,n){"use strict";var e=n(75130),a=n(33345),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},95046:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(93422),o="__core-js_shared__",f=L.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.36.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},75130:function(L,r,n){"use strict";var e=n(95046);L.exports=function(a,t){return e[a]||(e[a]=t||{})}},78412:function(L,r,n){"use strict";var e=n(39482),a=n(76833),t=n(1022),o=n(66266),f=o("species");L.exports=function(V,k){var S=e(V).constructor,y;return S===void 0||t(y=e(S)[f])?k:a(y)}},32086:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},56852:function(L,r,n){"use strict";var e=n(18161),a=n(74952),t=n(26602),o=n(91029),f=e("".charAt),V=e("".charCodeAt),k=e("".slice),S=function(p){return function(d,c){var m=t(o(d)),l=a(c),u=m.length,s,i;return l<0||l>=u?p?"":void 0:(s=V(m,l),s<55296||s>56319||l+1===u||(i=V(m,l+1))<56320||i>57343?p?f(m,l):s:p?k(m,l,l+2):(s-55296<<10)+(i-56320)+65536)}};L.exports={codeAt:S(!1),charAt:S(!0)}},33038:function(L,r,n){"use strict";var e=n(15837);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},34086:function(L,r,n){"use strict";var e=n(18161),a=n(10475),t=n(26602),o=n(84948),f=n(91029),V=e(o),k=e("".slice),S=Math.ceil,y=function(d){return function(c,m,l){var u=t(f(c)),s=a(m),i=u.length,v=l===void 0?" ":t(l),g,C;return s<=i||v===""?u:(g=s-i,C=V(v,S(g/v.length)),C.length>g&&(C=k(C,0,g)),d?u+C:C+u)}};L.exports={start:y(!1),end:y(!0)}},84948:function(L,r,n){"use strict";var e=n(74952),a=n(26602),t=n(91029),o=RangeError;L.exports=function(){function f(V){var k=a(t(this)),S="",y=e(V);if(y<0||y===1/0)throw new o("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(k+=k))y&1&&(S+=k);return S}return f}()},11775:function(L,r,n){"use strict";var e=n(35171).end,a=n(93817);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},93817:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(41746),t=n(137),o="\u200B\x85\u180E";L.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},26402:function(L,r,n){"use strict";var e=n(35171).start,a=n(93817);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},35171:function(L,r,n){"use strict";var e=n(18161),a=n(91029),t=n(26602),o=n(137),f=e("".replace),V=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(d){var c=t(a(d));return p&1&&(c=f(c,V,"")),p&2&&(c=f(c,k,"$1")),c}};L.exports={start:S(1),end:S(2),trim:S(3)}},70640:function(L,r,n){"use strict";var e=n(82709),a=n(41746),t=n(40224),o=t.String;L.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},75429:function(L,r,n){"use strict";var e=n(62696),a=n(40164),t=n(66266),o=n(59173);L.exports=function(){var f=a("Symbol"),V=f&&f.prototype,k=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(y){return e(k,this)},{arity:1})}},80353:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},91314:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(4509),o=n(7532),f=n(89458),V=n(41746),k=n(54562),S=n(77713),y=n(85158),p=n(22789),d=n(52426),c=n(95823),m=e.setImmediate,l=e.clearImmediate,u=e.process,s=e.Dispatch,i=e.Function,v=e.MessageChannel,g=e.String,C=0,h={},N="onreadystatechange",b,B,I,w;V(function(){b=e.location});var T=function(D){if(f(h,D)){var O=h[D];delete h[D],O()}},A=function(D){return function(){T(D)}},x=function(D){T(D.data)},E=function(D){e.postMessage(g(D),b.protocol+"//"+b.host)};(!m||!l)&&(m=function(){function M(D){p(arguments.length,1);var O=o(D)?D:i(D),R=S(arguments,1);return h[++C]=function(){a(O,void 0,R)},B(C),C}return M}(),l=function(){function M(D){delete h[D]}return M}(),c?B=function(D){u.nextTick(A(D))}:s&&s.now?B=function(D){s.now(A(D))}:v&&!d?(I=new v,w=I.port2,I.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!V(E)?(B=E,e.addEventListener("message",x,!1)):N in y("script")?B=function(D){k.appendChild(y("script"))[N]=function(){k.removeChild(this),T(D)}}:B=function(D){setTimeout(A(D),0)}),L.exports={set:m,clear:l}},37497:function(L,r,n){"use strict";var e=n(18161);L.exports=e(1 .valueOf)},74067:function(L,r,n){"use strict";var e=n(74952),a=Math.max,t=Math.min;L.exports=function(o,f){var V=e(o);return V<0?a(V+f,0):t(V,f)}},757:function(L,r,n){"use strict";var e=n(4370),a=TypeError;L.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},90835:function(L,r,n){"use strict";var e=n(74952),a=n(10475),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var f=e(o),V=a(f);if(f!==V)throw new t("Wrong length or index");return V}},96812:function(L,r,n){"use strict";var e=n(26736),a=n(91029);L.exports=function(t){return e(a(t))}},74952:function(L,r,n){"use strict";var e=n(34606);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10475:function(L,r,n){"use strict";var e=n(74952),a=Math.min;L.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},40076:function(L,r,n){"use strict";var e=n(91029),a=Object;L.exports=function(t){return a(e(t))}},65264:function(L,r,n){"use strict";var e=n(43627),a=RangeError;L.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},43627:function(L,r,n){"use strict";var e=n(74952),a=RangeError;L.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},4370:function(L,r,n){"use strict";var e=n(62696),a=n(56831),t=n(74352),o=n(4817),f=n(14991),V=n(66266),k=TypeError,S=V("toPrimitive");L.exports=function(y,p){if(!a(y)||t(y))return y;var d=o(y,S),c;if(d){if(p===void 0&&(p="default"),c=e(d,y,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),f(y,p)}},57640:function(L,r,n){"use strict";var e=n(4370),a=n(74352);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},82161:function(L,r,n){"use strict";var e=n(66266),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},26602:function(L,r,n){"use strict";var e=n(27806),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},78828:function(L){"use strict";var r=Math.round;L.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},62518:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},12218:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(14141),f=n(66220),V=n(72951),k=n(46185),S=n(19870),y=n(7539),p=n(16216),d=n(57696),c=n(10475),m=n(90835),l=n(65264),u=n(78828),s=n(57640),i=n(89458),v=n(27806),g=n(56831),C=n(74352),h=n(28969),N=n(33314),b=n(42878),B=n(34813).f,I=n(7996),w=n(67480).forEach,T=n(67420),A=n(10069),x=n(56018),E=n(54168),M=n(6967),D=n(35086),O=n(2566),R=D.get,j=D.set,F=D.enforce,U=x.f,K=E.f,z=a.RangeError,$=k.ArrayBuffer,Y=$.prototype,X=k.DataView,J=V.NATIVE_ARRAY_BUFFER_VIEWS,le=V.TYPED_ARRAY_TAG,ce=V.TypedArray,fe=V.TypedArrayPrototype,pe=V.isTypedArray,be="BYTES_PER_ELEMENT",te="Wrong length",Q=function(ke,Be){A(ke,Be,{configurable:!0,get:function(){function ve(){return R(this)[Be]}return ve}()})},ne=function(ke){var Be;return N(Y,ke)||(Be=v(ke))==="ArrayBuffer"||Be==="SharedArrayBuffer"},me=function(ke,Be){return pe(ke)&&!C(Be)&&Be in ke&&d(+Be)&&Be>=0},ae=function(){function oe(ke,Be){return Be=s(Be),me(ke,Be)?y(2,ke[Be]):K(ke,Be)}return oe}(),ue=function(){function oe(ke,Be,ve){return Be=s(Be),me(ke,Be)&&g(ve)&&i(ve,"value")&&!i(ve,"get")&&!i(ve,"set")&&!ve.configurable&&(!i(ve,"writable")||ve.writable)&&(!i(ve,"enumerable")||ve.enumerable)?(ke[Be]=ve.value,ke):U(ke,Be,ve)}return oe}();o?(J||(E.f=ae,x.f=ue,Q(fe,"buffer"),Q(fe,"byteOffset"),Q(fe,"byteLength"),Q(fe,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:ae,defineProperty:ue}),L.exports=function(oe,ke,Be){var ve=oe.match(/\d+/)[0]/8,ge=oe+(Be?"Clamped":"")+"Array",ye="get"+oe,Ve="set"+oe,Ie=a[ge],we=Ie,xe=we&&we.prototype,Pe={},We=function(se,Ce){var Ae=R(se);return Ae.view[ye](Ce*ve+Ae.byteOffset,!0)},Ne=function(se,Ce,Ae){var De=R(se);De.view[Ve](Ce*ve+De.byteOffset,Be?u(Ae):Ae,!0)},re=function(se,Ce){U(se,Ce,{get:function(){function Ae(){return We(this,Ce)}return Ae}(),set:function(){function Ae(De){return Ne(this,Ce,De)}return Ae}(),enumerable:!0})};J?f&&(we=ke(function(he,se,Ce,Ae){return S(he,xe),O(function(){return g(se)?ne(se)?Ae!==void 0?new Ie(se,l(Ce,ve),Ae):Ce!==void 0?new Ie(se,l(Ce,ve)):new Ie(se):pe(se)?M(we,se):t(I,we,se):new Ie(m(se))}(),he,we)}),b&&b(we,ce),w(B(Ie),function(he){he in we||p(we,he,Ie[he])}),we.prototype=xe):(we=ke(function(he,se,Ce,Ae){S(he,xe);var De=0,je=0,Ke,Ue,_e;if(!g(se))_e=m(se),Ue=_e*ve,Ke=new $(Ue);else if(ne(se)){Ke=se,je=l(Ce,ve);var $e=se.byteLength;if(Ae===void 0){if($e%ve)throw new z(te);if(Ue=$e-je,Ue<0)throw new z(te)}else if(Ue=c(Ae)*ve,Ue+je>$e)throw new z(te);_e=Ue/ve}else return pe(se)?M(we,se):t(I,we,se);for(j(he,{buffer:Ke,byteOffset:je,byteLength:Ue,length:_e,view:new X(Ke)});De<_e;)re(he,De++)}),b&&b(we,ce),xe=we.prototype=h(fe)),xe.constructor!==we&&p(xe,"constructor",we),F(xe).TypedArrayConstructor=we,le&&p(xe,le,ge);var de=we!==Ie;Pe[ge]=we,e({global:!0,constructor:!0,forced:de,sham:!J},Pe),be in we||p(we,be,ve),be in xe||p(xe,be,ve),T(ge)}):L.exports=function(){}},66220:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(52019),o=n(72951).NATIVE_ARRAY_BUFFER_VIEWS,f=e.ArrayBuffer,V=e.Int8Array;L.exports=!o||!a(function(){V(1)})||!a(function(){new V(-1)})||!t(function(k){new V,new V(null),new V(1.5),new V(k)},!0)||a(function(){return new V(new f(2),1,void 0).length!==1})},80936:function(L,r,n){"use strict";var e=n(6967),a=n(489);L.exports=function(t,o){return e(a(t),o)}},7996:function(L,r,n){"use strict";var e=n(4509),a=n(62696),t=n(76833),o=n(40076),f=n(8333),V=n(3438),k=n(76274),S=n(58482),y=n(5080),p=n(72951).aTypedArrayConstructor,d=n(757);L.exports=function(){function c(m){var l=t(this),u=o(m),s=arguments.length,i=s>1?arguments[1]:void 0,v=i!==void 0,g=k(u),C,h,N,b,B,I,w,T;if(g&&!S(g))for(w=V(u,g),T=w.next,u=[];!(I=a(T,w)).done;)u.push(I.value);for(v&&s>2&&(i=e(i,arguments[2])),h=f(u),N=new(p(l))(h),b=y(N),C=0;h>C;C++)B=v?i(u[C],C):u[C],N[C]=b?d(B):+B;return N}return c}()},489:function(L,r,n){"use strict";var e=n(72951),a=n(78412),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(f){return t(a(f,o(f)))}},33345:function(L,r,n){"use strict";var e=n(18161),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},81457:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},83411:function(L,r,n){"use strict";var e=n(14141),a=n(41746);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},22789:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n=51||!a(function(){var i=[];return i[m]=!1,i.concat()[0]!==i}),u=function(v){if(!o(v))return!1;var g=v[m];return g!==void 0?!!g:t(v)},s=!l||!p("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function i(v){var g=f(this),C=y(g,0),h=0,N,b,B,I,w;for(N=-1,B=arguments.length;N1?arguments[1]:void 0)}return f}()})},24974:function(L,r,n){"use strict";var e=n(77549),a=n(59942),t=n(91138);e({target:"Array",proto:!0},{fill:a}),t("fill")},6297:function(L,r,n){"use strict";var e=n(77549),a=n(67480).filter,t=n(55114),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},35173:function(L,r,n){"use strict";var e=n(77549),a=n(67480).findIndex,t=n(91138),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},5364:function(L,r,n){"use strict";var e=n(77549),a=n(67480).find,t=n(91138),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},88707:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(97361),o=n(40076),f=n(8333),V=n(32878);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var y=o(this),p=f(y),d;return t(S),d=V(y,0),d.length=a(d,y,y,p,0,1,S,arguments.length>1?arguments[1]:void 0),d}return k}()})},16576:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(40076),o=n(8333),f=n(74952),V=n(32878);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,y=t(this),p=o(y),d=V(y,0);return d.length=a(d,y,y,p,0,S===void 0?1:f(S)),d}return k}()})},21508:function(L,r,n){"use strict";var e=n(77549),a=n(75420);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},86339:function(L,r,n){"use strict";var e=n(77549),a=n(80363),t=n(52019),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},81850:function(L,r,n){"use strict";var e=n(77549),a=n(64210).includes,t=n(41746),o=n(91138),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},98661:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(64210).indexOf,o=n(42309),f=a([].indexOf),V=!!f&&1/f([1],1,-0)<0,k=V||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(y){var p=arguments.length>1?arguments[1]:void 0;return V?f(this,y,p)||0:t(this,y,p)}return S}()})},13431:function(L,r,n){"use strict";var e=n(77549),a=n(62367);e({target:"Array",stat:!0},{isArray:a})},65809:function(L,r,n){"use strict";var e=n(96812),a=n(91138),t=n(90604),o=n(35086),f=n(56018).f,V=n(2449),k=n(77056),S=n(11478),y=n(14141),p="Array Iterator",d=o.set,c=o.getterFor(p);L.exports=V(Array,"Array",function(l,u){d(this,{type:p,target:e(l),index:0,kind:u})},function(){var l=c(this),u=l.target,s=l.index++;if(!u||s>=u.length)return l.target=void 0,k(void 0,!0);switch(l.kind){case"keys":return k(s,!1);case"values":return k(u[s],!1)}return k([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&y&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(l){}},8611:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(26736),o=n(96812),f=n(42309),V=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(p){return V(o(this),p===void 0?",":p)}return y}()})},97246:function(L,r,n){"use strict";var e=n(77549),a=n(16934);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},48741:function(L,r,n){"use strict";var e=n(77549),a=n(67480).map,t=n(55114),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},90446:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(60354),o=n(12913),f=Array,V=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:V},{of:function(){function k(){for(var S=0,y=arguments.length,p=new(t(this)?this:f)(y);y>S;)o(p,S,arguments[S++]);return p.length=y,p}return k}()})},61902:function(L,r,n){"use strict";var e=n(77549),a=n(98405).right,t=n(42309),o=n(82709),f=n(95823),V=!f&&o>79&&o<83,k=V||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},509:function(L,r,n){"use strict";var e=n(77549),a=n(98405).left,t=n(42309),o=n(82709),f=n(95823),V=!f&&o>79&&o<83,k=V||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(y){var p=arguments.length;return a(this,y,p,p>1?arguments[1]:void 0)}return S}()})},96149:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(62367),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},66617:function(L,r,n){"use strict";var e=n(77549),a=n(62367),t=n(60354),o=n(56831),f=n(74067),V=n(8333),k=n(96812),S=n(12913),y=n(66266),p=n(55114),d=n(77713),c=p("slice"),m=y("species"),l=Array,u=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(i,v){var g=k(this),C=V(g),h=f(i,C),N=f(v===void 0?C:v,C),b,B,I;if(a(g)&&(b=g.constructor,t(b)&&(b===l||a(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===l||b===void 0))return d(g,h,N);for(B=new(b===void 0?l:b)(u(N-h,0)),I=0;h1?arguments[1]:void 0)}return f}()})},56855:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(97361),o=n(40076),f=n(8333),V=n(58937),k=n(26602),S=n(41746),y=n(44815),p=n(42309),d=n(49847),c=n(56605),m=n(82709),l=n(53125),u=[],s=a(u.sort),i=a(u.push),v=S(function(){u.sort(void 0)}),g=S(function(){u.sort(null)}),C=p("sort"),h=!S(function(){if(m)return m<70;if(!(d&&d>3)){if(c)return!0;if(l)return l<603;var B="",I,w,T,A;for(I=65;I<76;I++){switch(w=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)u.push({k:w+A,v:T})}for(u.sort(function(x,E){return E.v-x.v}),A=0;Ak(T)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function B(I){I!==void 0&&t(I);var w=o(this);if(h)return I===void 0?s(w):s(w,I);var T=[],A=f(w),x,E;for(E=0;Eg-b+N;I--)p(v,I-1)}else if(N>b)for(I=g-b;I>C;I--)w=I+b-1,T=I+N-1,w in v?v[T]=v[w]:p(v,T);for(I=0;I9490626562425156e-8?o(p)+V:a(p-1+f(p-1)*f(p+1))}return S}()})},86551:function(L,r,n){"use strict";var e=n(77549),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:f})},10940:function(L,r,n){"use strict";var e=n(77549),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(V){var k=+V;return k===0?k:t((1+k)/(1-k))/2}return f}()})},73763:function(L,r,n){"use strict";var e=n(77549),a=n(54307),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(V){var k=+V;return a(k)*o(t(k),.3333333333333333)}return f}()})},3372:function(L,r,n){"use strict";var e=n(77549),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(V){var k=V>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},51629:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.cosh,o=Math.abs,f=Math.E,V=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:V},{cosh:function(){function k(S){var y=a(o(S)-1)+1;return(y+1/(y*f*f))*(f/2)}return k}()})},69727:function(L,r,n){"use strict";var e=n(77549),a=n(32813);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},27482:function(L,r,n){"use strict";var e=n(77549),a=n(75988);e({target:"Math",stat:!0},{fround:a})},7108:function(L,r,n){"use strict";var e=n(77549),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function V(k,S){for(var y=0,p=0,d=arguments.length,c=0,m,l;p0?(l=m/c,y+=l*l):y+=m;return c===1/0?1/0:c*o(y)}return V}()})},4115:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(V,k){var S=65535,y=+V,p=+k,d=S&y,c=S&p;return 0|d*c+((S&y>>>16)*c+d*(S&p>>>16)<<16>>>0)}return f}()})},63953:function(L,r,n){"use strict";var e=n(77549),a=n(53271);e({target:"Math",stat:!0},{log10:a})},71377:function(L,r,n){"use strict";var e=n(77549),a=n(69143);e({target:"Math",stat:!0},{log1p:a})},63956:function(L,r,n){"use strict";var e=n(77549),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},90037:function(L,r,n){"use strict";var e=n(77549),a=n(54307);e({target:"Math",stat:!0},{sign:a})},46818:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(32813),o=Math.abs,f=Math.exp,V=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(y){var p=+y;return o(p)<1?(t(p)-t(-p))/2:(f(p-1)-f(-p-1))*(V/2)}return S}()})},26681:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var V=+f,k=a(V),S=a(-V);return k===1/0?1:S===1/0?-1:(k-S)/(t(V)+t(-V))}return o}()})},83646:function(L,r,n){"use strict";var e=n(94234);e(Math,"Math",!0)},28876:function(L,r,n){"use strict";var e=n(77549),a=n(34606);e({target:"Math",stat:!0},{trunc:a})},36385:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(14141),o=n(40224),f=n(5376),V=n(18161),k=n(95945),S=n(89458),y=n(2566),p=n(33314),d=n(74352),c=n(4370),m=n(41746),l=n(34813).f,u=n(54168).f,s=n(56018).f,i=n(37497),v=n(35171).trim,g="Number",C=o[g],h=f[g],N=C.prototype,b=o.TypeError,B=V("".slice),I=V("".charCodeAt),w=function(O){var R=c(O,"number");return typeof R=="bigint"?R:T(R)},T=function(O){var R=c(O,"number"),j,F,U,K,z,$,Y,X;if(d(R))throw new b("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),j=I(R,0),j===43||j===45){if(F=I(R,2),F===88||F===120)return NaN}else if(j===48){switch(I(R,1)){case 66:case 98:U=2,K=49;break;case 79:case 111:U=8,K=55;break;default:return+R}for(z=B(R,2),$=z.length,Y=0;Y<$;Y++)if(X=I(z,Y),X<48||X>K)return NaN;return parseInt(z,U)}}return+R},A=k(g,!C(" 0o1")||!C("0b1")||C("+0x1")),x=function(O){return p(N,O)&&m(function(){i(O)})},E=function(){function D(O){var R=arguments.length<1?0:C(w(O));return x(this)?y(Object(R),this,E):R}return D}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var M=function(O,R){for(var j=t?l(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,U;j.length>F;F++)S(R,U=j[F])&&!S(O,U)&&s(O,U,u(R,U))};a&&h&&M(f[g],h),(A||a)&&M(f[g],C)},84295:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59785:function(L,r,n){"use strict";var e=n(77549),a=n(69079);e({target:"Number",stat:!0},{isFinite:a})},8846:function(L,r,n){"use strict";var e=n(77549),a=n(57696);e({target:"Number",stat:!0},{isInteger:a})},50237:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},6436:function(L,r,n){"use strict";var e=n(77549),a=n(57696),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},68286:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},23940:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},82425:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},82118:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7419:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74952),o=n(37497),f=n(84948),V=n(41746),k=RangeError,S=String,y=Math.floor,p=a(f),d=a("".slice),c=a(1 .toFixed),m=function g(C,h,N){return h===0?N:h%2===1?g(C,h-1,N*C):g(C*C,h/2,N)},l=function(C){for(var h=0,N=C;N>=4096;)h+=12,N/=4096;for(;N>=2;)h+=1,N/=2;return h},u=function(C,h,N){for(var b=-1,B=N;++b<6;)B+=h*C[b],C[b]=B%1e7,B=y(B/1e7)},s=function(C,h){for(var N=6,b=0;--N>=0;)b+=C[N],C[N]=y(b/h),b=b%h*1e7},i=function(C){for(var h=6,N="";--h>=0;)if(N!==""||h===0||C[h]!==0){var b=S(C[h]);N=N===""?b:N+p("0",7-b.length)+b}return N},v=V(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!V(function(){c({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function g(C){var h=o(this),N=t(C),b=[0,0,0,0,0,0],B="",I="0",w,T,A,x;if(N<0||N>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=l(h*m(2,69,1))-69,T=w<0?h*m(2,-w,1):h/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(u(b,0,T),A=N;A>=7;)u(b,1e7,0),A-=7;for(u(b,m(10,A,1),0),A=w-1;A>=23;)s(b,8388608),A-=23;s(b,1<0?(x=I.length,I=B+(x<=N?"0."+p("0",N-x)+I:d(I,0,x-N)+"."+d(I,x-N))):I=B+I,I}return g}()})},42409:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(41746),o=n(37497),f=a(1 .toPrecision),V=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},29002:function(L,r,n){"use strict";var e=n(77549),a=n(12752);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},85795:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(28969);e({target:"Object",stat:!0,sham:!a},{create:t})},74722:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,y){V.f(f(this),S,{get:o(y),enumerable:!0,configurable:!0})}return k}()})},5300:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(65854).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},85684:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(56018).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},36014:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,y){V.f(f(this),S,{set:o(y),enumerable:!0,configurable:!0})}return k}()})},98551:function(L,r,n){"use strict";var e=n(77549),a=n(97452).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},66288:function(L,r,n){"use strict";var e=n(77549),a=n(56255),t=n(41746),o=n(56831),f=n(29126).onFreeze,V=Object.freeze,k=t(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(y){return V&&o(y)?V(f(y)):y}return S}()})},26862:function(L,r,n){"use strict";var e=n(77549),a=n(281),t=n(12913);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var V={};return a(f,function(k,S){t(V,k,S)},{AS_ENTRIES:!0}),V}return o}()})},78686:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(96812),o=n(54168).f,f=n(14141),V=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getOwnPropertyDescriptor:function(){function k(S,y){return o(t(S),y)}return k}()})},36789:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(93616),o=n(96812),f=n(54168),V=n(12913);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var y=o(S),p=f.f,d=t(y),c={},m=0,l,u;d.length>m;)u=p(y,l=d[m++]),u!==void 0&&V(c,l,u);return c}return k}()})},82707:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(63797).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},93146:function(L,r,n){"use strict";var e=n(77549),a=n(70640),t=n(41746),o=n(34220),f=n(40076),V=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:V},{getOwnPropertySymbols:function(){function k(S){var y=o.f;return y?y(f(S)):[]}return k}()})},69740:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(40076),o=n(31658),f=n(58776),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},54789:function(L,r,n){"use strict";var e=n(77549),a=n(57975);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},49626:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isFrozen,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:V?V(y):!1}return S}()})},67660:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isSealed,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:V?V(y):!1}return S}()})},87847:function(L,r,n){"use strict";var e=n(77549),a=n(37309);e({target:"Object",stat:!0},{is:a})},43619:function(L,r,n){"use strict";var e=n(77549),a=n(40076),t=n(84913),o=n(41746),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function V(k){return t(a(k))}return V}()})},42777:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),k=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var p=o(this),d=f(y),c;do if(c=k(p,d))return c.get;while(p=V(p))}return S}()})},13045:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),k=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var p=o(this),d=f(y),c;do if(c=k(p,d))return c.set;while(p=V(p))}return S}()})},38664:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.preventExtensions,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(y){return V&&a(y)?V(t(y)):y}return S}()})},29650:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.seal,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(y){return V&&a(y)?V(t(y)):y}return S}()})},58176:function(L,r,n){"use strict";var e=n(77549),a=n(42878);e({target:"Object",stat:!0},{setPrototypeOf:a})},35286:function(L,r,n){"use strict";var e=n(82161),a=n(59173),t=n(66628);e||a(Object.prototype,"toString",t,{unsafe:!0})},13313:function(L,r,n){"use strict";var e=n(77549),a=n(97452).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},26528:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},54959:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({global:!0,forced:parseInt!==a},{parseInt:a})},34344:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),k=n(95044);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(y){var p=this,d=o.f(p),c=d.resolve,m=d.reject,l=f(function(){var u=t(p.resolve),s=[],i=0,v=1;V(y,function(g){var C=i++,h=!1;v++,a(u,p,g).then(function(N){h||(h=!0,s[C]=N,--v||c(s))},m)}),--v||c(s)});return l.error&&m(l.value),d.promise}return S}()})},60:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(49669).CONSTRUCTOR,o=n(35973),f=n(40164),V=n(7532),k=n(59173),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(d){return this.then(void 0,d)}return p}()}),!a&&V(o)){var y=f("Promise").prototype.catch;S.catch!==y&&k(S,"catch",y,{unsafe:!0})}},7803:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(95823),o=n(40224),f=n(62696),V=n(59173),k=n(42878),S=n(94234),y=n(67420),p=n(97361),d=n(7532),c=n(56831),m=n(19870),l=n(78412),u=n(91314).set,s=n(27150),i=n(46122),v=n(91114),g=n(23496),C=n(35086),h=n(35973),N=n(49669),b=n(48532),B="Promise",I=N.CONSTRUCTOR,w=N.REJECTION_EVENT,T=N.SUBCLASSING,A=C.getterFor(B),x=C.set,E=h&&h.prototype,M=h,D=E,O=o.TypeError,R=o.document,j=o.process,F=b.f,U=F,K=!!(R&&R.createEvent&&o.dispatchEvent),z="unhandledrejection",$="rejectionhandled",Y=0,X=1,J=2,le=1,ce=2,fe,pe,be,te,Q=function(Ve){var Ie;return c(Ve)&&d(Ie=Ve.then)?Ie:!1},ne=function(Ve,Ie){var we=Ie.value,xe=Ie.state===X,Pe=xe?Ve.ok:Ve.fail,We=Ve.resolve,Ne=Ve.reject,re=Ve.domain,de,he,se;try{Pe?(xe||(Ie.rejection===ce&&ke(Ie),Ie.rejection=le),Pe===!0?de=we:(re&&re.enter(),de=Pe(we),re&&(re.exit(),se=!0)),de===Ve.promise?Ne(new O("Promise-chain cycle")):(he=Q(de))?f(he,de,We,Ne):We(de)):Ne(we)}catch(Ce){re&&!se&&re.exit(),Ne(Ce)}},me=function(Ve,Ie){Ve.notified||(Ve.notified=!0,s(function(){for(var we=Ve.reactions,xe;xe=we.get();)ne(xe,Ve);Ve.notified=!1,Ie&&!Ve.rejection&&ue(Ve)}))},ae=function(Ve,Ie,we){var xe,Pe;K?(xe=R.createEvent("Event"),xe.promise=Ie,xe.reason=we,xe.initEvent(Ve,!1,!0),o.dispatchEvent(xe)):xe={promise:Ie,reason:we},!w&&(Pe=o["on"+Ve])?Pe(xe):Ve===z&&i("Unhandled promise rejection",we)},ue=function(Ve){f(u,o,function(){var Ie=Ve.facade,we=Ve.value,xe=oe(Ve),Pe;if(xe&&(Pe=v(function(){t?j.emit("unhandledRejection",we,Ie):ae(z,Ie,we)}),Ve.rejection=t||oe(Ve)?ce:le,Pe.error))throw Pe.value})},oe=function(Ve){return Ve.rejection!==le&&!Ve.parent},ke=function(Ve){f(u,o,function(){var Ie=Ve.facade;t?j.emit("rejectionHandled",Ie):ae($,Ie,Ve.value)})},Be=function(Ve,Ie,we){return function(xe){Ve(Ie,xe,we)}},ve=function(Ve,Ie,we){Ve.done||(Ve.done=!0,we&&(Ve=we),Ve.value=Ie,Ve.state=J,me(Ve,!0))},ge=function ye(Ve,Ie,we){if(!Ve.done){Ve.done=!0,we&&(Ve=we);try{if(Ve.facade===Ie)throw new O("Promise can't be resolved itself");var xe=Q(Ie);xe?s(function(){var Pe={done:!1};try{f(xe,Ie,Be(ye,Pe,Ve),Be(ve,Pe,Ve))}catch(We){ve(Pe,We,Ve)}}):(Ve.value=Ie,Ve.state=X,me(Ve,!1))}catch(Pe){ve({done:!1},Pe,Ve)}}};if(I&&(M=function(){function ye(Ve){m(this,D),p(Ve),f(fe,this);var Ie=A(this);try{Ve(Be(ge,Ie),Be(ve,Ie))}catch(we){ve(Ie,we)}}return ye}(),D=M.prototype,fe=function(){function ye(Ve){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:Y,value:void 0})}return ye}(),fe.prototype=V(D,"then",function(){function ye(Ve,Ie){var we=A(this),xe=F(l(this,M));return we.parent=!0,xe.ok=d(Ve)?Ve:!0,xe.fail=d(Ie)&&Ie,xe.domain=t?j.domain:void 0,we.state===Y?we.reactions.add(xe):s(function(){ne(xe,we)}),xe.promise}return ye}()),pe=function(){var Ve=new fe,Ie=A(Ve);this.promise=Ve,this.resolve=Be(ge,Ie),this.reject=Be(ve,Ie)},b.f=F=function(Ve){return Ve===M||Ve===be?new pe(Ve):U(Ve)},!a&&d(h)&&E!==Object.prototype)){te=E.then,T||V(E,"then",function(){function ye(Ve,Ie){var we=this;return new M(function(xe,Pe){f(te,we,xe,Pe)}).then(Ve,Ie)}return ye}(),{unsafe:!0});try{delete E.constructor}catch(ye){}k&&k(E,D)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:M}),S(M,B,!1,!0),y(B)},54412:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(35973),o=n(41746),f=n(40164),V=n(7532),k=n(78412),S=n(43827),y=n(59173),p=t&&t.prototype,d=!!t&&o(function(){p.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(){function m(l){var u=k(this,f("Promise")),s=V(l);return this.then(s?function(i){return S(u,l()).then(function(){return i})}:l,s?function(i){return S(u,l()).then(function(){throw i})}:l)}return m}()}),!a&&V(t)){var c=f("Promise").prototype.finally;p.finally!==c&&y(p,"finally",c,{unsafe:!0})}},78129:function(L,r,n){"use strict";n(7803),n(34344),n(60),n(61270),n(82248),n(30347)},61270:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),k=n(95044);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(y){var p=this,d=o.f(p),c=d.reject,m=f(function(){var l=t(p.resolve);V(y,function(u){a(l,p,u).then(d.resolve,c)})});return m.error&&c(m.value),d.promise}return S}()})},82248:function(L,r,n){"use strict";var e=n(77549),a=n(48532),t=n(49669).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var V=a.f(this),k=V.reject;return k(f),V.promise}return o}()})},30347:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(11478),o=n(35973),f=n(49669).CONSTRUCTOR,V=n(43827),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function y(p){return V(S&&this===k?o:this,p)}return y}()})},82427:function(L,r,n){"use strict";var e=n(77549),a=n(70918),t=n(97361),o=n(39482),f=n(41746),V=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function k(S,y,p){return a(t(S),y,o(p))}return k}()})},8390:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(70918),o=n(9379),f=n(76833),V=n(39482),k=n(56831),S=n(28969),y=n(41746),p=a("Reflect","construct"),d=Object.prototype,c=[].push,m=y(function(){function s(){}return!(p(function(){},[],s)instanceof s)}),l=!y(function(){p(function(){})}),u=m||l;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(i,v){f(i),V(v);var g=arguments.length<3?i:f(arguments[2]);if(l&&!m)return p(i,v,g);if(i===g){switch(v.length){case 0:return new i;case 1:return new i(v[0]);case 2:return new i(v[0],v[1]);case 3:return new i(v[0],v[1],v[2]);case 4:return new i(v[0],v[1],v[2],v[3])}var C=[null];return t(c,C,v),new(t(o,i,C))}var h=g.prototype,N=S(k(h)?h:d),b=t(i,N,v);return k(b)?b:N}return s}()})},68260:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(57640),f=n(56018),V=n(41746),k=V(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(y,p,d){t(y);var c=o(p);t(d);try{return f.f(y,c,d),!0}catch(m){return!1}}return S}()})},86508:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(54168).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,V){var k=t(a(f),V);return k&&!k.configurable?!1:delete f[V]}return o}()})},17134:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(54168);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(V,k){return o.f(t(V),k)}return f}()})},18972:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(31658),o=n(58776);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(V){return t(a(V))}return f}()})},65971:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(56831),o=n(39482),f=n(35892),V=n(54168),k=n(31658);function S(y,p){var d=arguments.length<3?y:arguments[2],c,m;if(o(y)===d)return y[p];if(c=V.f(y,p),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,d);if(t(m=k(y)))return S(m,p,d)}e({target:"Reflect",stat:!0},{get:S})},78623:function(L,r,n){"use strict";var e=n(77549);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},60149:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(57975);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},56380:function(L,r,n){"use strict";var e=n(77549),a=n(93616);e({target:"Reflect",stat:!0},{ownKeys:a})},72792:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(39482),o=n(56255);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(V){t(V);try{var k=a("Object","preventExtensions");return k&&k(V),!0}catch(S){return!1}}return f}()})},25168:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(51689),o=n(42878);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(V,k){a(V),t(k);try{return o(V,k),!0}catch(S){return!1}}return f}()})},60631:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(39482),o=n(56831),f=n(35892),V=n(41746),k=n(56018),S=n(54168),y=n(31658),p=n(7539);function d(m,l,u){var s=arguments.length<4?m:arguments[3],i=S.f(t(m),l),v,g,C;if(!i){if(o(g=y(m)))return d(g,l,u,s);i=p(0)}if(f(i)){if(i.writable===!1||!o(s))return!1;if(v=S.f(s,l)){if(v.get||v.set||v.writable===!1)return!1;v.value=u,k.f(s,l,v)}else k.f(s,l,p(0,u))}else{if(C=i.set,C===void 0)return!1;a(C,s,u)}return!0}var c=V(function(){var m=function(){},l=k.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:d})},85177:function(L,r,n){"use strict";var e=n(14141),a=n(40224),t=n(18161),o=n(95945),f=n(2566),V=n(16216),k=n(28969),S=n(34813).f,y=n(33314),p=n(80969),d=n(26602),c=n(60425),m=n(1064),l=n(77495),u=n(59173),s=n(41746),i=n(89458),v=n(35086).enforce,g=n(67420),C=n(66266),h=n(89604),N=n(5489),b=C("match"),B=a.RegExp,I=B.prototype,w=a.SyntaxError,T=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),M=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,O=/a/g,R=/a/g,j=new B(O)!==O,F=m.MISSED_STICKY,U=m.UNSUPPORTED_Y,K=e&&(!j||F||h||N||s(function(){return R[b]=!1,B(O)!==O||B(R)===R||String(B(O,"i"))!=="/a/i"})),z=function(ce){for(var fe=ce.length,pe=0,be="",te=!1,Q;pe<=fe;pe++){if(Q=A(ce,pe),Q==="\\"){be+=Q+A(ce,++pe);continue}!te&&Q==="."?be+="[\\s\\S]":(Q==="["?te=!0:Q==="]"&&(te=!1),be+=Q)}return be},$=function(ce){for(var fe=ce.length,pe=0,be="",te=[],Q=k(null),ne=!1,me=!1,ae=0,ue="",oe;pe<=fe;pe++){if(oe=A(ce,pe),oe==="\\")oe+=A(ce,++pe);else if(oe==="]")ne=!1;else if(!ne)switch(!0){case oe==="[":ne=!0;break;case oe==="(":T(D,M(ce,pe+1))&&(pe+=2,me=!0),be+=oe,ae++;continue;case(oe===">"&&me):if(ue===""||i(Q,ue))throw new w("Invalid capture group name");Q[ue]=!0,te[te.length]=[ue,ae],me=!1,ue="";continue}me?ue+=oe:be+=oe}return[be,te]};if(o("RegExp",K)){for(var Y=function(){function le(ce,fe){var pe=y(I,this),be=p(ce),te=fe===void 0,Q=[],ne=ce,me,ae,ue,oe,ke,Be;if(!pe&&be&&te&&ce.constructor===Y)return ce;if((be||y(I,ce))&&(ce=ce.source,te&&(fe=c(ne))),ce=ce===void 0?"":d(ce),fe=fe===void 0?"":d(fe),ne=ce,h&&"dotAll"in O&&(ae=!!fe&&E(fe,"s")>-1,ae&&(fe=x(fe,/s/g,""))),me=fe,F&&"sticky"in O&&(ue=!!fe&&E(fe,"y")>-1,ue&&U&&(fe=x(fe,/y/g,""))),N&&(oe=$(ce),ce=oe[0],Q=oe[1]),ke=f(B(ce,fe),pe?this:I,Y),(ae||ue||Q.length)&&(Be=v(ke),ae&&(Be.dotAll=!0,Be.raw=Y(z(ce),me)),ue&&(Be.sticky=!0),Q.length&&(Be.groups=Q)),ce!==ne)try{V(ke,"source",ne===""?"(?:)":ne)}catch(ve){}return ke}return le}(),X=S(B),J=0;X.length>J;)l(Y,B,X[J++]);I.constructor=Y,Y.prototype=I,u(a,"RegExp",Y,{constructor:!0})}g("RegExp")},95880:function(L,r,n){"use strict";var e=n(77549),a=n(72894);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},59978:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=n(10069),o=n(65844),f=n(41746),V=e.RegExp,k=V.prototype,S=a&&f(function(){var y=!0;try{V(".","d")}catch(i){y=!1}var p={},d="",c=y?"dgimsy":"gimsy",m=function(v,g){Object.defineProperty(p,v,{get:function(){function C(){return d+=g,!0}return C}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};y&&(l.hasIndices="d");for(var u in l)m(u,l[u]);var s=Object.getOwnPropertyDescriptor(k,"flags").get.call(p);return s!==c||d!==c});S&&t(k,"flags",{configurable:!0,get:o})},96360:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(59173),t=n(39482),o=n(26602),f=n(41746),V=n(60425),k="toString",S=RegExp.prototype,y=S[k],p=f(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),d=e&&y.name!==k;(p||d)&&a(S,k,function(){function c(){var m=t(this),l=o(m.source),u=o(V(m));return"/"+l+"/"+u}return c}(),{unsafe:!0})},47338:function(L,r,n){"use strict";var e=n(93439),a=n(10623);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},43108:function(L,r,n){"use strict";n(47338)},36:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},30519:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},33547:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},53426:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},37801:function(L,r,n){"use strict";var e=n(77549),a=n(56852).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},3044:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(54168).f,o=n(10475),f=n(26602),V=n(89140),k=n(91029),S=n(93321),y=n(11478),p=a("".slice),d=Math.min,c=S("endsWith"),m=!y&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function l(u){var s=f(k(this));V(u);var i=arguments.length>1?arguments[1]:void 0,v=s.length,g=i===void 0?v:d(o(i),v),C=f(u);return p(s,g-C.length,g)===C}return l}()})},32031:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},13153:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},21953:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},48432:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74067),o=RangeError,f=String.fromCharCode,V=String.fromCodePoint,k=a([].join),S=!!V&&V.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(p){for(var d=[],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");d[m]=l<65536?f(l):f(((l-=65536)>>10)+55296,l%1024+56320)}return k(d,"")}return y}()})},54564:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(89140),o=n(91029),f=n(26602),V=n(93321),k=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(y){return!!~k(f(o(this)),f(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},83560:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},58179:function(L,r,n){"use strict";var e=n(56852).charAt,a=n(26602),t=n(35086),o=n(2449),f=n(77056),V="String Iterator",k=t.set,S=t.getterFor(V);o(String,"String",function(y){k(this,{type:V,string:a(y),index:0})},function(){function y(){var p=S(this),d=p.string,c=p.index,m;return c>=d.length?f(void 0,!0):(m=e(d,c),p.index+=m.length,f(m,!1))}return y}())},63465:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},68164:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(10475),V=n(26602),k=n(91029),S=n(4817),y=n(62970),p=n(35553);a("match",function(d,c,m){return[function(){function l(u){var s=k(this),i=o(u)?void 0:S(u,d);return i?e(i,u,s):new RegExp(u)[d](V(s))}return l}(),function(l){var u=t(this),s=V(l),i=m(c,u,s);if(i.done)return i.value;if(!u.global)return p(u,s);var v=u.unicode;u.lastIndex=0;for(var g=[],C=0,h;(h=p(u,s))!==null;){var N=V(h[0]);g[C]=N,N===""&&(u.lastIndex=y(s,f(u.lastIndex),v)),C++}return C===0?null:g}]})},58880:function(L,r,n){"use strict";var e=n(77549),a=n(34086).end,t=n(33038);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},54465:function(L,r,n){"use strict";var e=n(77549),a=n(34086).start,t=n(33038);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},97327:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(96812),o=n(40076),f=n(26602),V=n(8333),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(p){var d=t(o(p).raw),c=V(d);if(!c)return"";for(var m=arguments.length,l=[],u=0;;){if(k(l,f(d[u++])),u===c)return S(l,"");u")!=="7"});o("replace",function(x,E,M){var D=T?"$":"$0";return[function(){function O(R,j){var F=c(this),U=S(R)?void 0:l(R,v);return U?a(U,R,F,j):a(E,d(F),R,j)}return O}(),function(O,R){var j=V(this),F=d(O);if(typeof R=="string"&&b(R,D)===-1&&b(R,"$<")===-1){var U=M(E,j,F,R);if(U.done)return U.value}var K=k(R);K||(R=d(R));var z=j.global,$;z&&($=j.unicode,j.lastIndex=0);for(var Y=[],X;X=s(j,F),!(X===null||(N(Y,X),!z));){var J=d(X[0]);J===""&&(j.lastIndex=m(F,p(j.lastIndex),$))}for(var le="",ce=0,fe=0;fe=ce&&(le+=B(F,ce,be)+Q,ce=be+pe.length)}return le+B(F,ce)}]},!A||!w||T)},17337:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(91029),V=n(37309),k=n(26602),S=n(4817),y=n(35553);a("search",function(p,d,c){return[function(){function m(l){var u=f(this),s=o(l)?void 0:S(l,p);return s?e(s,l,u):new RegExp(l)[p](k(u))}return m}(),function(m){var l=t(this),u=k(m),s=c(d,l,u);if(s.done)return s.value;var i=l.lastIndex;V(i,0)||(l.lastIndex=0);var v=y(l,u);return V(l.lastIndex,i)||(l.lastIndex=i),v===null?-1:v.index}]})},98998:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},53713:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(85427),o=n(39482),f=n(1022),V=n(91029),k=n(78412),S=n(62970),y=n(10475),p=n(26602),d=n(4817),c=n(35553),m=n(1064),l=n(41746),u=m.UNSUPPORTED_Y,s=4294967295,i=Math.min,v=a([].push),g=a("".slice),C=!l(function(){var N=/(?:)/,b=N.exec;N.exec=function(){return b.apply(this,arguments)};var B="ab".split(N);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),h="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,b,B){var I="0".split(void 0,0).length?function(w,T){return w===void 0&&T===0?[]:e(b,this,w,T)}:b;return[function(){function w(T,A){var x=V(this),E=f(T)?void 0:d(T,N);return E?e(E,T,x,A):e(I,p(x),T,A)}return w}(),function(w,T){var A=o(this),x=p(w);if(!h){var E=B(I,A,x,T,I!==b);if(E.done)return E.value}var M=k(A,RegExp),D=A.unicode,O=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(u?"g":"y"),R=new M(u?"^(?:"+A.source+")":A,O),j=T===void 0?s:T>>>0;if(j===0)return[];if(x.length===0)return c(R,x)===null?[x]:[];for(var F=0,U=0,K=[];U1?arguments[1]:void 0,s.length)),v=f(u);return p(s,i,i+v.length)===v}return l}()})},96227:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15483:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},86829:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},93073:function(L,r,n){"use strict";n(17434);var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},69107:function(L,r,n){"use strict";var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},17434:function(L,r,n){"use strict";var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},50800:function(L,r,n){"use strict";n(69107);var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},11121:function(L,r,n){"use strict";var e=n(77549),a=n(35171).trim,t=n(93817);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},46951:function(L,r,n){"use strict";var e=n(15388);e("asyncIterator")},9056:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(18161),f=n(11478),V=n(14141),k=n(70640),S=n(41746),y=n(89458),p=n(33314),d=n(39482),c=n(96812),m=n(57640),l=n(26602),u=n(7539),s=n(28969),i=n(84913),v=n(34813),g=n(63797),C=n(34220),h=n(54168),N=n(56018),b=n(65854),B=n(9776),I=n(59173),w=n(10069),T=n(75130),A=n(5160),x=n(21124),E=n(33345),M=n(66266),D=n(32938),O=n(15388),R=n(75429),j=n(94234),F=n(35086),U=n(67480).forEach,K=A("hidden"),z="Symbol",$="prototype",Y=F.set,X=F.getterFor(z),J=Object[$],le=a.Symbol,ce=le&&le[$],fe=a.RangeError,pe=a.TypeError,be=a.QObject,te=h.f,Q=N.f,ne=g.f,me=B.f,ae=o([].push),ue=T("symbols"),oe=T("op-symbols"),ke=T("wks"),Be=!be||!be[$]||!be[$].findChild,ve=function(de,he,se){var Ce=te(J,he);Ce&&delete J[he],Q(de,he,se),Ce&&de!==J&&Q(J,he,Ce)},ge=V&&S(function(){return s(Q({},"a",{get:function(){function re(){return Q(this,"a",{value:7}).a}return re}()})).a!==7})?ve:Q,ye=function(de,he){var se=ue[de]=s(ce);return Y(se,{type:z,tag:de,description:he}),V||(se.description=he),se},Ve=function(){function re(de,he,se){de===J&&Ve(oe,he,se),d(de);var Ce=m(he);return d(se),y(ue,Ce)?(se.enumerable?(y(de,K)&&de[K][Ce]&&(de[K][Ce]=!1),se=s(se,{enumerable:u(0,!1)})):(y(de,K)||Q(de,K,u(1,s(null))),de[K][Ce]=!0),ge(de,Ce,se)):Q(de,Ce,se)}return re}(),Ie=function(){function re(de,he){d(de);var se=c(he),Ce=i(se).concat(Ne(se));return U(Ce,function(Ae){(!V||t(xe,se,Ae))&&Ve(de,Ae,se[Ae])}),de}return re}(),we=function(){function re(de,he){return he===void 0?s(de):Ie(s(de),he)}return re}(),xe=function(){function re(de){var he=m(de),se=t(me,this,he);return this===J&&y(ue,he)&&!y(oe,he)?!1:se||!y(this,he)||!y(ue,he)||y(this,K)&&this[K][he]?se:!0}return re}(),Pe=function(){function re(de,he){var se=c(de),Ce=m(he);if(!(se===J&&y(ue,Ce)&&!y(oe,Ce))){var Ae=te(se,Ce);return Ae&&y(ue,Ce)&&!(y(se,K)&&se[K][Ce])&&(Ae.enumerable=!0),Ae}}return re}(),We=function(){function re(de){var he=ne(c(de)),se=[];return U(he,function(Ce){!y(ue,Ce)&&!y(x,Ce)&&ae(se,Ce)}),se}return re}(),Ne=function(de){var he=de===J,se=ne(he?oe:c(de)),Ce=[];return U(se,function(Ae){y(ue,Ae)&&(!he||y(J,Ae))&&ae(Ce,ue[Ae])}),Ce};k||(le=function(){function re(){if(p(ce,this))throw new pe("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),he=E(de),se=function(){function Ce(Ae){var De=this===void 0?a:this;De===J&&t(Ce,oe,Ae),y(De,K)&&y(De[K],he)&&(De[K][he]=!1);var je=u(1,Ae);try{ge(De,he,je)}catch(Ke){if(!(Ke instanceof fe))throw Ke;ve(De,he,je)}}return Ce}();return V&&Be&&ge(J,he,{configurable:!0,set:se}),ye(he,de)}return re}(),ce=le[$],I(ce,"toString",function(){function re(){return X(this).tag}return re}()),I(le,"withoutSetter",function(re){return ye(E(re),re)}),B.f=xe,N.f=Ve,b.f=Ie,h.f=Pe,v.f=g.f=We,C.f=Ne,D.f=function(re){return ye(M(re),re)},V&&(w(ce,"description",{configurable:!0,get:function(){function re(){return X(this).description}return re}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:le}),U(i(ke),function(re){O(re)}),e({target:z,stat:!0,forced:!k},{useSetter:function(){function re(){Be=!0}return re}(),useSimple:function(){function re(){Be=!1}return re}()}),e({target:"Object",stat:!0,forced:!k,sham:!V},{create:we,defineProperty:Ve,defineProperties:Ie,getOwnPropertyDescriptor:Pe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:We}),R(),j(le,z),x[K]=!0},27718:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(40224),o=n(18161),f=n(89458),V=n(7532),k=n(33314),S=n(26602),y=n(10069),p=n(70113),d=t.Symbol,c=d&&d.prototype;if(a&&V(d)&&(!("description"in c)||d().description!==void 0)){var m={},l=function(){function h(){var N=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=k(c,this)?new d(N):N===void 0?d():d(N);return N===""&&(m[b]=!0),b}return h}();p(l,d),l.prototype=c,c.constructor=l;var u=String(d("description detection"))==="Symbol(description detection)",s=o(c.valueOf),i=o(c.toString),v=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),C=o("".slice);y(c,"description",{configurable:!0,get:function(){function h(){var N=s(this);if(f(m,N))return"";var b=i(N),B=u?C(b,7,-1):g(b,v,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},18611:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(89458),o=n(26602),f=n(75130),V=n(80353),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function y(p){var d=o(p);if(t(k,d))return k[d];var c=a("Symbol")(d);return k[d]=c,S[c]=d,c}return y}()})},86042:function(L,r,n){"use strict";var e=n(15388);e("hasInstance")},93267:function(L,r,n){"use strict";var e=n(15388);e("isConcatSpreadable")},41664:function(L,r,n){"use strict";var e=n(15388);e("iterator")},99414:function(L,r,n){"use strict";n(9056),n(18611),n(30661),n(12183),n(93146)},30661:function(L,r,n){"use strict";var e=n(77549),a=n(89458),t=n(74352),o=n(62518),f=n(75130),V=n(80353),k=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{keyFor:function(){function S(y){if(!t(y))throw new TypeError(o(y)+" is not a symbol");if(a(k,y))return k[y]}return S}()})},48965:function(L,r,n){"use strict";var e=n(15388);e("match")},44844:function(L,r,n){"use strict";var e=n(15388);e("replace")},25030:function(L,r,n){"use strict";var e=n(15388);e("search")},96454:function(L,r,n){"use strict";var e=n(15388);e("species")},77564:function(L,r,n){"use strict";var e=n(15388);e("split")},44875:function(L,r,n){"use strict";var e=n(15388),a=n(75429);e("toPrimitive"),a()},77904:function(L,r,n){"use strict";var e=n(40164),a=n(15388),t=n(94234);a("toStringTag"),t(e("Symbol"),"Symbol")},35723:function(L,r,n){"use strict";var e=n(15388);e("unscopables")},84805:function(L,r,n){"use strict";var e=n(18161),a=n(72951),t=n(42320),o=e(t),f=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function k(S,y){return o(f(this),S,y,arguments.length>2?arguments[2]:void 0)}return k}())},79305:function(L,r,n){"use strict";var e=n(72951),a=n(67480).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},71573:function(L,r,n){"use strict";var e=n(72951),a=n(59942),t=n(757),o=n(27806),f=n(62696),V=n(18161),k=n(41746),S=e.aTypedArray,y=e.exportTypedArrayMethod,p=V("".slice),d=k(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});y("fill",function(){function c(m){var l=arguments.length;S(this);var u=p(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),d)},47910:function(L,r,n){"use strict";var e=n(72951),a=n(67480).filter,t=n(80936),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function V(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return V}())},99662:function(L,r,n){"use strict";var e=n(72951),a=n(67480).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},48447:function(L,r,n){"use strict";var e=n(72951),a=n(67480).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68265:function(L,r,n){"use strict";var e=n(12218);e("Float32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},36030:function(L,r,n){"use strict";var e=n(12218);e("Float64",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},57371:function(L,r,n){"use strict";var e=n(72951),a=n(67480).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68220:function(L,r,n){"use strict";var e=n(66220),a=n(72951).exportTypedArrayStaticMethod,t=n(7996);a("from",t,e)},15745:function(L,r,n){"use strict";var e=n(72951),a=n(64210).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},43398:function(L,r,n){"use strict";var e=n(72951),a=n(64210).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},25888:function(L,r,n){"use strict";var e=n(12218);e("Int16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},35718:function(L,r,n){"use strict";var e=n(12218);e("Int32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},32791:function(L,r,n){"use strict";var e=n(12218);e("Int8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97722:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(72951),f=n(65809),V=n(66266),k=V("iterator"),S=e.Uint8Array,y=t(f.values),p=t(f.keys),d=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,l=S&&S.prototype,u=!a(function(){l[k].call([1])}),s=!!l&&l.values&&l[k]===l.values&&l.values.name==="values",i=function(){function v(){return y(c(this))}return v}();m("entries",function(){function v(){return d(c(this))}return v}(),u),m("keys",function(){function v(){return p(c(this))}return v}(),u),m("values",i,u||!s,{name:"values"}),m(k,i,u||!s,{name:"values"})},79088:function(L,r,n){"use strict";var e=n(72951),a=n(18161),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function V(k){return f(t(this),k)}return V}())},6075:function(L,r,n){"use strict";var e=n(72951),a=n(70918),t=n(16934),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function V(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return V}())},46896:function(L,r,n){"use strict";var e=n(72951),a=n(67480).map,t=n(489),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function V(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return V}())},47145:function(L,r,n){"use strict";var e=n(72951),a=n(66220),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var V=0,k=arguments.length,S=new(t(this))(k);k>V;)S[V]=arguments[V++];return S}return f}(),a)},349:function(L,r,n){"use strict";var e=n(72951),a=n(98405).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},72606:function(L,r,n){"use strict";var e=n(72951),a=n(98405).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},28292:function(L,r,n){"use strict";var e=n(72951),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var V=this,k=a(V).length,S=o(k/2),y=0,p;y1?arguments[1]:void 0,1),g=V(i);if(l)return a(d,this,g,v);var C=this.length,h=o(g),N=0;if(h+v>C)throw new S("Wrong length");for(;Nm;)u[m]=d[m++];return u}return S}(),k)},74188:function(L,r,n){"use strict";var e=n(72951),a=n(67480).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},81976:function(L,r,n){"use strict";var e=n(40224),a=n(85067),t=n(41746),o=n(97361),f=n(44815),V=n(72951),k=n(49847),S=n(56605),y=n(82709),p=n(53125),d=V.aTypedArray,c=V.exportTypedArrayMethod,m=e.Uint16Array,l=m&&a(m.prototype.sort),u=!!l&&!(t(function(){l(new m(2),null)})&&t(function(){l(new m(2),{})})),s=!!l&&!t(function(){if(y)return y<74;if(k)return k<67;if(S)return!0;if(p)return p<602;var v=new m(516),g=Array(516),C,h;for(C=0;C<516;C++)h=C%4,v[C]=515-C,g[C]=C-2*h+3;for(l(v,function(N,b){return(N/4|0)-(b/4|0)}),C=0;C<516;C++)if(v[C]!==g[C])return!0}),i=function(g){return function(C,h){return g!==void 0?+g(C,h)||0:h!==h?-1:C!==C?1:C===0&&h===0?1/C>0&&1/h<0?1:-1:C>h}};c("sort",function(){function v(g){return g!==void 0&&o(g),s?l(this,g):f(d(this),i(g))}return v}(),!s||u)},78651:function(L,r,n){"use strict";var e=n(72951),a=n(10475),t=n(74067),o=n(489),f=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function k(S,y){var p=f(this),d=p.length,c=t(S,d),m=o(p);return new m(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((y===void 0?d:t(y,d))-c))}return k}())},81664:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(72951),o=n(41746),f=n(77713),V=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,p=!!V&&o(function(){y.call(new V(1))}),d=o(function(){return[1,2].toLocaleString()!==new V([1,2]).toLocaleString()})||!o(function(){V.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(y,p?f(k(this)):k(this),f(arguments))}return c}(),d)},35579:function(L,r,n){"use strict";var e=n(72951).exportTypedArrayMethod,a=n(41746),t=n(40224),o=n(18161),f=t.Uint8Array,V=f&&f.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var y=V.toString!==k;e("toString",k,y)},99683:function(L,r,n){"use strict";var e=n(12218);e("Uint16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},80941:function(L,r,n){"use strict";var e=n(12218);e("Uint32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},45338:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},40737:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()},!0)},74283:function(L,r,n){"use strict";var e=n(56255),a=n(40224),t=n(18161),o=n(13648),f=n(29126),V=n(93439),k=n(32920),S=n(56831),y=n(35086).enforce,p=n(41746),d=n(90777),c=Object,m=Array.isArray,l=c.isExtensible,u=c.isFrozen,s=c.isSealed,i=c.freeze,v=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,C,h=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},N=V("WeakMap",h,k),b=N.prototype,B=t(b.set),I=function(){return e&&p(function(){var E=i([]);return B(new N,E,1),!u(E)})};if(d)if(g){C=k.getConstructor(h,"WeakMap",!0),f.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!l(E)){var M=y(this);return M.frozen||(M.frozen=new C),w(this,E)||M.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!l(E)){var M=y(this);return M.frozen||(M.frozen=new C),T(this,E)||M.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!l(E)){var M=y(this);return M.frozen||(M.frozen=new C),T(this,E)?A(this,E):M.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,M){if(S(E)&&!l(E)){var D=y(this);D.frozen||(D.frozen=new C),T(this,E)?B(this,E,M):D.frozen.set(E,M)}else B(this,E,M);return this}return x}()})}else I()&&o(b,{set:function(){function x(E,M){var D;return m(E)&&(u(E)?D=i:s(E)&&(D=v)),B(this,E,M),D&&D(E),this}return x}()})},84033:function(L,r,n){"use strict";n(74283)},82389:function(L,r,n){"use strict";var e=n(93439),a=n(32920);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},71863:function(L,r,n){"use strict";n(82389)},73993:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},55457:function(L,r,n){"use strict";n(73993),n(72532)},57399:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(27150),o=n(97361),f=n(22789),V=n(41746),k=n(14141),S=V(function(){return k&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function y(p){f(arguments.length,1),t(o(p))}return y}()})},72532:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).set,o=n(83827),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},48112:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},82274:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},65836:function(L,r,n){"use strict";n(48112),n(82274)},50719:function(L){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},21965:function(){},28169:function(){},36487:function(){},35739:function(){},33631:function(){},74785:function(){},6895:function(){},3251:function(){},38265:function(){},7455:function(){},58823:function(){},49265:function(){},55350:function(){},45503:function(){},36557:function(){},70555:function(){},70752:function(L,r,n){var e={"./pai_atmosphere.js":24704,"./pai_bioscan.js":4209,"./pai_directives.js":44430,"./pai_doorjack.js":3367,"./pai_main_menu.js":73395,"./pai_manifest.js":37645,"./pai_medrecords.js":15836,"./pai_messenger.js":91737,"./pai_radio.js":94077,"./pai_secrecords.js":72621,"./pai_signaler.js":53483};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=70752},59395:function(L,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mule.js":68053,"./pda_nanobank.js":31728,"./pda_notes.js":29415,"./pda_power.js":52363,"./pda_secbot.js":23914,"./pda_security.js":68878,"./pda_signaler.js":95135,"./pda_status_display.js":20835,"./pda_supplyrecords.js":11741};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=59395},32054:function(L,r,n){var e={"./AICard":29732,"./AICard.js":29732,"./AIFixer":78468,"./AIFixer.js":78468,"./APC":73544,"./APC.js":73544,"./ATM":79098,"./ATM.js":79098,"./AccountsUplinkTerminal":64613,"./AccountsUplinkTerminal.js":64613,"./AiAirlock":56839,"./AiAirlock.js":56839,"./AirAlarm":5565,"./AirAlarm.js":5565,"./AirlockAccessController":82915,"./AirlockAccessController.js":82915,"./AirlockElectronics":14962,"./AirlockElectronics.js":14962,"./AlertModal":99327,"./AlertModal.tsx":99327,"./AppearanceChanger":88642,"./AppearanceChanger.js":88642,"./AtmosAlertConsole":51731,"./AtmosAlertConsole.js":51731,"./AtmosControl":57467,"./AtmosControl.js":57467,"./AtmosFilter":41550,"./AtmosFilter.js":41550,"./AtmosMixer":70151,"./AtmosMixer.js":70151,"./AtmosPump":54090,"./AtmosPump.js":54090,"./AtmosTankControl":31335,"./AtmosTankControl.js":31335,"./Autolathe":85909,"./Autolathe.js":85909,"./BioChipPad":81617,"./BioChipPad.js":81617,"./Biogenerator":26215,"./Biogenerator.js":26215,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BookBinder":99449,"./BookBinder.js":99449,"./BotCall":85951,"./BotCall.js":85951,"./BotClean":43506,"./BotClean.js":43506,"./BotFloor":89593,"./BotFloor.js":89593,"./BotHonk":89513,"./BotHonk.js":89513,"./BotMed":19297,"./BotMed.js":19297,"./BotSecurity":4249,"./BotSecurity.js":4249,"./BrigCells":27267,"./BrigCells.js":27267,"./BrigTimer":26623,"./BrigTimer.js":26623,"./CameraConsole":43542,"./CameraConsole.js":43542,"./Canister":95513,"./Canister.js":95513,"./CardComputer":60463,"./CardComputer.js":60463,"./CargoConsole":16377,"./CargoConsole.js":16377,"./ChangelogView":89917,"./ChangelogView.js":89917,"./ChemDispenser":71254,"./ChemDispenser.js":71254,"./ChemHeater":27004,"./ChemHeater.js":27004,"./ChemMaster":41099,"./ChemMaster.tsx":41099,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CloningPod":66373,"./CloningPod.js":66373,"./CoinMint":38781,"./CoinMint.tsx":38781,"./ColourMatrixTester":11866,"./ColourMatrixTester.js":11866,"./CommunicationsComputer":22420,"./CommunicationsComputer.js":22420,"./CompostBin":46868,"./CompostBin.js":46868,"./Contractor":64707,"./Contractor.js":64707,"./ConveyorSwitch":52141,"./ConveyorSwitch.js":52141,"./CrewMonitor":94187,"./CrewMonitor.js":94187,"./Cryo":60561,"./Cryo.js":60561,"./CryopodConsole":27889,"./CryopodConsole.js":27889,"./DNAModifier":81434,"./DNAModifier.js":81434,"./DestinationTagger":99127,"./DestinationTagger.js":99127,"./DisposalBin":93430,"./DisposalBin.js":93430,"./DnaVault":31491,"./DnaVault.js":31491,"./DroneConsole":30747,"./DroneConsole.js":30747,"./EFTPOS":74781,"./EFTPOS.js":74781,"./ERTManager":30672,"./ERTManager.js":30672,"./EconomyManager":24503,"./EconomyManager.js":24503,"./Electropack":15543,"./Electropack.js":15543,"./Emojipedia":57013,"./Emojipedia.tsx":57013,"./EvolutionMenu":99012,"./EvolutionMenu.js":99012,"./ExosuitFabricator":37504,"./ExosuitFabricator.js":37504,"./ExperimentConsole":9466,"./ExperimentConsole.js":9466,"./ExternalAirlockController":77284,"./ExternalAirlockController.js":77284,"./FaxMachine":52516,"./FaxMachine.js":52516,"./FilingCabinet":24777,"./FilingCabinet.js":24777,"./FloorPainter":88361,"./FloorPainter.js":88361,"./GPS":70078,"./GPS.js":70078,"./GeneModder":92246,"./GeneModder.js":92246,"./GenericCrewManifest":27163,"./GenericCrewManifest.js":27163,"./GhostHudPanel":53808,"./GhostHudPanel.js":53808,"./GlandDispenser":32035,"./GlandDispenser.js":32035,"./GravityGen":33004,"./GravityGen.js":33004,"./GuestPass":39775,"./GuestPass.js":39775,"./HandheldChemDispenser":22480,"./HandheldChemDispenser.js":22480,"./HealthSensor":22616,"./HealthSensor.js":22616,"./Holodeck":76861,"./Holodeck.js":76861,"./Instrument":96729,"./Instrument.js":96729,"./KeycardAuth":53385,"./KeycardAuth.js":53385,"./KitchenMachine":58553,"./KitchenMachine.js":58553,"./LawManager":14047,"./LawManager.js":14047,"./LibraryComputer":5872,"./LibraryComputer.js":5872,"./LibraryManager":37782,"./LibraryManager.js":37782,"./ListInputModal":26133,"./ListInputModal.tsx":26133,"./MODsuit":71963,"./MODsuit.js":71963,"./MagnetController":84274,"./MagnetController.js":84274,"./MechBayConsole":95752,"./MechBayConsole.js":95752,"./MechaControlConsole":53668,"./MechaControlConsole.js":53668,"./MedicalRecords":96467,"./MedicalRecords.js":96467,"./MerchVendor":68211,"./MerchVendor.js":68211,"./MiningVendor":14162,"./MiningVendor.js":14162,"./NTRecruiter":68977,"./NTRecruiter.js":68977,"./Newscaster":17067,"./Newscaster.js":17067,"./Noticeboard":26148,"./Noticeboard.tsx":26148,"./NuclearBomb":46940,"./NuclearBomb.js":46940,"./NumberInputModal":35478,"./NumberInputModal.tsx":35478,"./OperatingComputer":98476,"./OperatingComputer.js":98476,"./Orbit":98702,"./Orbit.js":98702,"./OreRedemption":74015,"./OreRedemption.js":74015,"./PAI":48824,"./PAI.js":48824,"./PDA":41565,"./PDA.js":41565,"./Pacman":78704,"./Pacman.js":78704,"./PanDEMIC":6887,"./PanDEMIC.tsx":6887,"./ParticleAccelerator":78643,"./ParticleAccelerator.js":78643,"./PdaPainter":34026,"./PdaPainter.js":34026,"./PersonalCrafting":81378,"./PersonalCrafting.js":81378,"./Photocopier":58792,"./Photocopier.js":58792,"./PoolController":27902,"./PoolController.js":27902,"./PortablePump":52025,"./PortablePump.js":52025,"./PortableScrubber":57827,"./PortableScrubber.js":57827,"./PortableTurret":63825,"./PortableTurret.js":63825,"./PowerMonitor":70373,"./PowerMonitor.js":70373,"./PrisonerImplantManager":27262,"./PrisonerImplantManager.js":27262,"./PrisonerShuttleConsole":22046,"./PrisonerShuttleConsole.js":22046,"./PrizeCounter":92014,"./PrizeCounter.tsx":92014,"./RCD":87963,"./RCD.js":87963,"./RPD":84364,"./RPD.js":84364,"./Radio":14641,"./Radio.js":14641,"./ReagentGrinder":40483,"./ReagentGrinder.js":40483,"./ReagentsEditor":70976,"./ReagentsEditor.tsx":70976,"./RemoteSignaler":94049,"./RemoteSignaler.js":94049,"./RequestConsole":12326,"./RequestConsole.js":12326,"./RndConsole":89641,"./RndConsole.js":89641,"./RndConsoleComponents":3422,"./RndConsoleComponents/":3422,"./RndConsoleComponents/CurrentLevels":19348,"./RndConsoleComponents/CurrentLevels.js":19348,"./RndConsoleComponents/DataDiskMenu":338,"./RndConsoleComponents/DataDiskMenu.js":338,"./RndConsoleComponents/DeconstructionMenu":90785,"./RndConsoleComponents/DeconstructionMenu.js":90785,"./RndConsoleComponents/LatheCategory":34492,"./RndConsoleComponents/LatheCategory.js":34492,"./RndConsoleComponents/LatheChemicalStorage":84275,"./RndConsoleComponents/LatheChemicalStorage.js":84275,"./RndConsoleComponents/LatheMainMenu":12638,"./RndConsoleComponents/LatheMainMenu.js":12638,"./RndConsoleComponents/LatheMaterialStorage":89004,"./RndConsoleComponents/LatheMaterialStorage.js":89004,"./RndConsoleComponents/LatheMaterials":73856,"./RndConsoleComponents/LatheMaterials.js":73856,"./RndConsoleComponents/LatheMenu":75955,"./RndConsoleComponents/LatheMenu.js":75955,"./RndConsoleComponents/LatheSearch":72880,"./RndConsoleComponents/LatheSearch.js":72880,"./RndConsoleComponents/MainMenu":62306,"./RndConsoleComponents/MainMenu.js":62306,"./RndConsoleComponents/RndNavButton":99941,"./RndConsoleComponents/RndNavButton.js":99941,"./RndConsoleComponents/RndNavbar":24448,"./RndConsoleComponents/RndNavbar.js":24448,"./RndConsoleComponents/RndRoute":78345,"./RndConsoleComponents/RndRoute.js":78345,"./RndConsoleComponents/SettingsMenu":56454,"./RndConsoleComponents/SettingsMenu.js":56454,"./RndConsoleComponents/index":3422,"./RndConsoleComponents/index.js":3422,"./RobotSelfDiagnosis":71123,"./RobotSelfDiagnosis.js":71123,"./RoboticsControlConsole":98951,"./RoboticsControlConsole.js":98951,"./Safe":2289,"./Safe.js":2289,"./SatelliteControl":49334,"./SatelliteControl.js":49334,"./SecureStorage":54892,"./SecureStorage.js":54892,"./SecurityRecords":56798,"./SecurityRecords.js":56798,"./SeedExtractor":59981,"./SeedExtractor.js":59981,"./ShuttleConsole":33454,"./ShuttleConsole.js":33454,"./ShuttleManipulator":50451,"./ShuttleManipulator.js":50451,"./Sleeper":99050,"./Sleeper.js":99050,"./SlotMachine":37763,"./SlotMachine.js":37763,"./Smartfridge":26654,"./Smartfridge.js":26654,"./Smes":71124,"./Smes.js":71124,"./SolarControl":21786,"./SolarControl.js":21786,"./SpawnersMenu":31202,"./SpawnersMenu.js":31202,"./SpecMenu":84800,"./SpecMenu.js":84800,"./StationAlertConsole":46501,"./StationAlertConsole.js":46501,"./StationTraitsPanel":18565,"./StationTraitsPanel.tsx":18565,"./StripMenu":95147,"./StripMenu.tsx":95147,"./SuitStorage":61284,"./SuitStorage.js":61284,"./SupermatterMonitor":19796,"./SupermatterMonitor.js":19796,"./SyndicateComputerSimple":30047,"./SyndicateComputerSimple.js":30047,"./TEG":28830,"./TEG.js":28830,"./TachyonArray":39903,"./TachyonArray.js":39903,"./Tank":17068,"./Tank.js":17068,"./TankDispenser":69161,"./TankDispenser.js":69161,"./TcommsCore":87394,"./TcommsCore.js":87394,"./TcommsRelay":55684,"./TcommsRelay.js":55684,"./Teleporter":81088,"./Teleporter.js":81088,"./TempGun":96150,"./TempGun.js":96150,"./TextInputModal":95484,"./TextInputModal.tsx":95484,"./ThermoMachine":378,"./ThermoMachine.js":378,"./TransferValve":3365,"./TransferValve.js":3365,"./TurbineComputer":13860,"./TurbineComputer.js":13860,"./Uplink":22169,"./Uplink.js":22169,"./Vending":70547,"./Vending.js":70547,"./VolumeMixer":33045,"./VolumeMixer.js":33045,"./VotePanel":53792,"./VotePanel.js":53792,"./Wires":64860,"./Wires.js":64860,"./WizardApprenticeContract":78262,"./WizardApprenticeContract.js":78262,"./common/AccessList":57842,"./common/AccessList.js":57842,"./common/AtmosScan":79449,"./common/AtmosScan.js":79449,"./common/BeakerContents":1496,"./common/BeakerContents.js":1496,"./common/BotStatus":69521,"./common/BotStatus.js":69521,"./common/ComplexModal":99665,"./common/ComplexModal.js":99665,"./common/CrewManifest":98444,"./common/CrewManifest.js":98444,"./common/InputButtons":15113,"./common/InputButtons.tsx":15113,"./common/InterfaceLockNoticeBox":26893,"./common/InterfaceLockNoticeBox.js":26893,"./common/Loader":14299,"./common/Loader.tsx":14299,"./common/LoginInfo":68159,"./common/LoginInfo.js":68159,"./common/LoginScreen":27527,"./common/LoginScreen.js":27527,"./common/Operating":75201,"./common/Operating.js":75201,"./common/Signaler":65435,"./common/Signaler.js":65435,"./common/SimpleRecords":77534,"./common/SimpleRecords.js":77534,"./common/TemporaryNotice":84537,"./common/TemporaryNotice.js":84537,"./pai/pai_atmosphere":24704,"./pai/pai_atmosphere.js":24704,"./pai/pai_bioscan":4209,"./pai/pai_bioscan.js":4209,"./pai/pai_directives":44430,"./pai/pai_directives.js":44430,"./pai/pai_doorjack":3367,"./pai/pai_doorjack.js":3367,"./pai/pai_main_menu":73395,"./pai/pai_main_menu.js":73395,"./pai/pai_manifest":37645,"./pai/pai_manifest.js":37645,"./pai/pai_medrecords":15836,"./pai/pai_medrecords.js":15836,"./pai/pai_messenger":91737,"./pai/pai_messenger.js":91737,"./pai/pai_radio":94077,"./pai/pai_radio.js":94077,"./pai/pai_secrecords":72621,"./pai/pai_secrecords.js":72621,"./pai/pai_signaler":53483,"./pai/pai_signaler.js":53483,"./pda/pda_atmos_scan":21606,"./pda/pda_atmos_scan.js":21606,"./pda/pda_janitor":12339,"./pda/pda_janitor.js":12339,"./pda/pda_main_menu":36615,"./pda/pda_main_menu.js":36615,"./pda/pda_manifest":99737,"./pda/pda_manifest.js":99737,"./pda/pda_medical":61597,"./pda/pda_medical.js":61597,"./pda/pda_messenger":30709,"./pda/pda_messenger.js":30709,"./pda/pda_mule":68053,"./pda/pda_mule.js":68053,"./pda/pda_nanobank":31728,"./pda/pda_nanobank.js":31728,"./pda/pda_notes":29415,"./pda/pda_notes.js":29415,"./pda/pda_power":52363,"./pda/pda_power.js":52363,"./pda/pda_secbot":23914,"./pda/pda_secbot.js":23914,"./pda/pda_security":68878,"./pda/pda_security.js":68878,"./pda/pda_signaler":95135,"./pda/pda_signaler.js":95135,"./pda/pda_status_display":20835,"./pda/pda_status_display.js":20835,"./pda/pda_supplyrecords":11741,"./pda/pda_supplyrecords.js":11741};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=32054},4085:function(L,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./ImageButton.stories.js":16189,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=4085},97361:function(L,r,n){"use strict";var e=n(7532),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},76833:function(L,r,n){"use strict";var e=n(60354),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},51689:function(L,r,n){"use strict";var e=n(41224),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},91138:function(L,r,n){"use strict";var e=n(66266),a=n(28969),t=n(56018).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),L.exports=function(V){f[o][V]=!0}},62970:function(L,r,n){"use strict";var e=n(56852).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},19870:function(L,r,n){"use strict";var e=n(33314),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},39482:function(L,r,n){"use strict";var e=n(56831),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},67404:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},65693:function(L,r,n){"use strict";var e=n(41746);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},72951:function(L,r,n){"use strict";var e=n(67404),a=n(14141),t=n(40224),o=n(7532),f=n(56831),V=n(89458),k=n(27806),S=n(62518),y=n(16216),p=n(59173),d=n(10069),c=n(33314),m=n(31658),l=n(42878),u=n(66266),s=n(33345),i=n(35086),v=i.enforce,g=i.get,C=t.Int8Array,h=C&&C.prototype,N=t.Uint8ClampedArray,b=N&&N.prototype,B=C&&m(C),I=h&&m(h),w=Object.prototype,T=t.TypeError,A=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!l&&k(t.opera)!=="Opera",D=!1,O,R,j,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},K=function(){function ce(fe){if(!f(fe))return!1;var pe=k(fe);return pe==="DataView"||V(F,pe)||V(W,pe)}return ce}(),z=function ce(fe){var pe=m(fe);if(f(pe)){var be=g(pe);return be&&V(be,E)?be[E]:ce(pe)}},$=function(fe){if(!f(fe))return!1;var pe=k(fe);return V(F,pe)||V(W,pe)},Y=function(fe){if($(fe))return fe;throw new T("Target is not a typed array")},X=function(fe){if(o(fe)&&(!l||c(B,fe)))return fe;throw new T(S(fe)+" is not a typed array constructor")},J=function(fe,pe,be,te){if(a){if(be)for(var Q in F){var ne=t[Q];if(ne&&V(ne.prototype,fe))try{delete ne.prototype[fe]}catch(me){try{ne.prototype[fe]=pe}catch(ae){}}}(!I[fe]||be)&&p(I,fe,be?pe:M&&h[fe]||pe,te)}},le=function(fe,pe,be){var te,Q;if(a){if(l){if(be){for(te in F)if(Q=t[te],Q&&V(Q,fe))try{delete Q[fe]}catch(ne){}}if(!B[fe]||be)try{return p(B,fe,be?pe:M&&B[fe]||pe)}catch(ne){}else return}for(te in F)Q=t[te],Q&&(!Q[fe]||be)&&p(Q,fe,pe)}};for(O in F)R=t[O],j=R&&R.prototype,j?v(j)[E]=R:M=!1;for(O in W)R=t[O],j=R&&R.prototype,j&&(v(j)[E]=R);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function ce(){throw new T("Incorrect invocation")}return ce}(),M))for(O in F)t[O]&&l(t[O],B);if((!M||!I||I===w)&&(I=B.prototype,M))for(O in F)t[O]&&l(t[O].prototype,I);if(M&&m(b)!==I&&l(b,I),a&&!V(I,A)){D=!0,d(I,A,{configurable:!0,get:function(){function ce(){return f(this)?this[x]:void 0}return ce}()});for(O in F)t[O]&&y(t[O],x,O)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:D&&x,aTypedArray:Y,aTypedArrayConstructor:X,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:le,getTypedArrayConstructor:z,isView:K,isTypedArray:$,TypedArray:B,TypedArrayPrototype:I}},46185:function(L,r,n){"use strict";var e=n(40224),a=n(18161),t=n(14141),o=n(67404),f=n(26463),V=n(16216),k=n(10069),S=n(13648),y=n(41746),p=n(19870),d=n(74952),c=n(10475),m=n(90835),l=n(75988),u=n(62263),s=n(31658),i=n(42878),v=n(59942),g=n(77713),C=n(2566),h=n(70113),N=n(94234),b=n(35086),B=f.PROPER,I=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",M=b.getterFor(w),D=b.getterFor(T),O=b.set,R=e[w],j=R,F=j&&j[A],W=e[T],K=W&&W[A],z=Object.prototype,$=e.Array,Y=e.RangeError,X=a(v),J=a([].reverse),le=u.pack,ce=u.unpack,fe=function(ge){return[ge&255]},pe=function(ge){return[ge&255,ge>>8&255]},be=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},te=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},Q=function(ge){return le(l(ge),23,4)},ne=function(ge){return le(ge,52,8)},me=function(ge,ye,Ve){k(ge[A],ye,{configurable:!0,get:function(){function Ie(){return Ve(this)[ye]}return Ie}()})},ae=function(ge,ye,Ve,Ie){var we=D(ge),xe=m(Ve),Pe=!!Ie;if(xe+ye>we.byteLength)throw new Y(E);var Ue=we.bytes,Ne=xe+we.byteOffset,re=g(Ue,Ne,Ne+ye);return Pe?re:J(re)},ue=function(ge,ye,Ve,Ie,we,xe){var Pe=D(ge),Ue=m(Ve),Ne=Ie(+we),re=!!xe;if(Ue+ye>Pe.byteLength)throw new Y(E);for(var de=Pe.bytes,he=Ue+Pe.byteOffset,se=0;sewe)throw new Y("Wrong offset");if(Ve=Ve===void 0?we-xe:c(Ve),xe+Ve>we)throw new Y(x);O(this,{type:T,buffer:ge,byteLength:Ve,byteOffset:xe,bytes:Ie.bytes}),t||(this.buffer=ge,this.byteLength=Ve,this.byteOffset=xe)}return ve}(),K=W[A],t&&(me(j,"byteLength",M),me(W,"buffer",D),me(W,"byteLength",D),me(W,"byteOffset",D)),S(K,{getInt8:function(){function ve(ge){return ae(this,1,ge)[0]<<24>>24}return ve}(),getUint8:function(){function ve(ge){return ae(this,1,ge)[0]}return ve}(),getInt16:function(){function ve(ge){var ye=ae(this,2,ge,arguments.length>1?arguments[1]:!1);return(ye[1]<<8|ye[0])<<16>>16}return ve}(),getUint16:function(){function ve(ge){var ye=ae(this,2,ge,arguments.length>1?arguments[1]:!1);return ye[1]<<8|ye[0]}return ve}(),getInt32:function(){function ve(ge){return te(ae(this,4,ge,arguments.length>1?arguments[1]:!1))}return ve}(),getUint32:function(){function ve(ge){return te(ae(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return ve}(),getFloat32:function(){function ve(ge){return ce(ae(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return ve}(),getFloat64:function(){function ve(ge){return ce(ae(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return ve}(),setInt8:function(){function ve(ge,ye){ue(this,1,ge,fe,ye)}return ve}(),setUint8:function(){function ve(ge,ye){ue(this,1,ge,fe,ye)}return ve}(),setInt16:function(){function ve(ge,ye){ue(this,2,ge,pe,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setUint16:function(){function ve(ge,ye){ue(this,2,ge,pe,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setInt32:function(){function ve(ge,ye){ue(this,4,ge,be,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setUint32:function(){function ve(ge,ye){ue(this,4,ge,be,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat32:function(){function ve(ge,ye){ue(this,4,ge,Q,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat64:function(){function ve(ge,ye){ue(this,8,ge,ne,ye,arguments.length>2?arguments[2]:!1)}return ve}()});else{var oe=B&&R.name!==w;!y(function(){R(1)})||!y(function(){new R(-1)})||y(function(){return new R,new R(1.5),new R(NaN),R.length!==1||oe&&!I})?(j=function(){function ve(ge){return p(this,F),C(new R(m(ge)),this,j)}return ve}(),j[A]=F,F.constructor=j,h(j,R)):oe&&I&&V(R,"name",w),i&&s(K)!==z&&i(K,z);var ke=new W(new j(2)),Be=a(K.setInt8);ke.setInt8(0,2147483648),ke.setInt8(1,2147483649),(ke.getInt8(0)||!ke.getInt8(1))&&S(K,{setInt8:function(){function ve(ge,ye){Be(this,ge,ye<<24>>24)}return ve}(),setUint8:function(){function ve(ge,ye){Be(this,ge,ye<<24>>24)}return ve}()},{unsafe:!0})}N(j,w),N(W,T),L.exports={ArrayBuffer:j,DataView:W}},42320:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333),o=n(58937),f=Math.min;L.exports=[].copyWithin||function(){function V(k,S){var y=e(this),p=t(y),d=a(k,p),c=a(S,p),m=arguments.length>2?arguments[2]:void 0,l=f((m===void 0?p:a(m,p))-c,p-d),u=1;for(c0;)c in y?y[d]=y[c]:o(y,d),d+=u,c+=u;return y}return V}()},59942:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333);L.exports=function(){function o(f){for(var V=e(this),k=t(V),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,d=p===void 0?k:a(p,k);d>y;)V[y++]=f;return V}return o}()},75420:function(L,r,n){"use strict";var e=n(67480).forEach,a=n(42309),t=a("forEach");L.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},6967:function(L,r,n){"use strict";var e=n(8333);L.exports=function(a,t,o){for(var f=0,V=arguments.length>2?o:e(t),k=new a(V);V>f;)k[f]=t[f++];return k}},80363:function(L,r,n){"use strict";var e=n(4509),a=n(62696),t=n(40076),o=n(17100),f=n(58482),V=n(60354),k=n(8333),S=n(12913),y=n(3438),p=n(76274),d=Array;L.exports=function(){function c(m){var l=t(m),u=V(this),s=arguments.length,i=s>1?arguments[1]:void 0,v=i!==void 0;v&&(i=e(i,s>2?arguments[2]:void 0));var g=p(l),C=0,h,N,b,B,I,w;if(g&&!(this===d&&f(g)))for(N=u?new this:[],B=y(l,g),I=B.next;!(b=a(I,B)).done;C++)w=v?o(B,i,[b.value,C],!0):b.value,S(N,C,w);else for(h=k(l),N=u?new this(h):d(h);h>C;C++)w=v?i(l[C],C):l[C],S(N,C,w);return N.length=C,N}return c}()},64210:function(L,r,n){"use strict";var e=n(96812),a=n(74067),t=n(8333),o=function(V){return function(k,S,y){var p=e(k),d=t(p);if(d===0)return!V&&-1;var c=a(y,d),m;if(V&&S!==S){for(;d>c;)if(m=p[c++],m!==m)return!0}else for(;d>c;c++)if((V||c in p)&&p[c]===S)return V||c||0;return!V&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},67480:function(L,r,n){"use strict";var e=n(4509),a=n(18161),t=n(26736),o=n(40076),f=n(8333),V=n(32878),k=a([].push),S=function(p){var d=p===1,c=p===2,m=p===3,l=p===4,u=p===6,s=p===7,i=p===5||u;return function(v,g,C,h){for(var N=o(v),b=t(N),B=f(b),I=e(g,C),w=0,T=h||V,A=d?T(v,B):c||s?T(v,0):void 0,x,E;B>w;w++)if((i||w in b)&&(x=b[w],E=I(x,w,N),p))if(d)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return u?-1:m||l?l:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16934:function(L,r,n){"use strict";var e=n(70918),a=n(96812),t=n(74952),o=n(8333),f=n(42309),V=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=f("lastIndexOf"),p=S||!y;L.exports=p?function(){function d(c){if(S)return e(k,this,arguments)||0;var m=a(this),l=o(m);if(l===0)return-1;var u=l-1;for(arguments.length>1&&(u=V(u,t(arguments[1]))),u<0&&(u=l+u);u>=0;u--)if(u in m&&m[u]===c)return u||0;return-1}return d}():k},55114:function(L,r,n){"use strict";var e=n(41746),a=n(66266),t=n(82709),o=a("species");L.exports=function(f){return t>=51||!e(function(){var V=[],k=V.constructor={};return k[o]=function(){return{foo:1}},V[f](Boolean).foo!==1})}},42309:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},98405:function(L,r,n){"use strict";var e=n(97361),a=n(40076),t=n(26736),o=n(8333),f=TypeError,V="Reduce of empty array with no initial value",k=function(y){return function(p,d,c,m){var l=a(p),u=t(l),s=o(l);if(e(d),s===0&&c<2)throw new f(V);var i=y?s-1:0,v=y?-1:1;if(c<2)for(;;){if(i in u){m=u[i],i+=v;break}if(i+=v,y?i<0:s<=i)throw new f(V)}for(;y?i>=0:s>i;i+=v)i in u&&(m=d(m,u[i],i,l));return m}};L.exports={left:k(!1),right:k(!0)}},72720:function(L,r,n){"use strict";var e=n(14141),a=n(62367),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}}();L.exports=f?function(V,k){if(a(V)&&!o(V,"length").writable)throw new t("Cannot set read only .length");return V.length=k}:function(V,k){return V.length=k}},77713:function(L,r,n){"use strict";var e=n(18161);L.exports=e([].slice)},44815:function(L,r,n){"use strict";var e=n(77713),a=Math.floor,t=function o(f,V){var k=f.length;if(k<8)for(var S=1,y,p;S0;)f[p]=f[--p];p!==S++&&(f[p]=y)}else for(var d=a(k/2),c=o(e(f,0,d),V),m=o(e(f,d),V),l=c.length,u=m.length,s=0,i=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 w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(N,g?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),d&&a(N,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return s}(),setStrong:function(){function s(i,v,g){var C=v+" Iterator",h=u(v),N=u(C);S(i,v,function(b,B){l(this,{type:C,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=N(this),B=b.kind,I=b.last;I&&I.removed;)I=I.previous;return!b.target||!(b.last=I=I?I.next:b.state.first)?(b.target=void 0,y(void 0,!0)):y(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},g?"entries":"values",!g,!0),p(v)}return s}()}},32920:function(L,r,n){"use strict";var e=n(18161),a=n(13648),t=n(29126).getWeakData,o=n(19870),f=n(39482),V=n(1022),k=n(56831),S=n(281),y=n(67480),p=n(89458),d=n(35086),c=d.set,m=d.getterFor,l=y.find,u=y.findIndex,s=e([].splice),i=0,v=function(N){return N.frozen||(N.frozen=new g)},g=function(){this.entries=[]},C=function(N,b){return l(N.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(N){var b=C(this,N);if(b)return b[1]}return h}(),has:function(){function h(N){return!!C(this,N)}return h}(),set:function(){function h(N,b){var B=C(this,N);B?B[1]=b:this.entries.push([N,b])}return h}(),delete:function(){function h(N){var b=u(this.entries,function(B){return B[0]===N});return~b&&s(this.entries,b,1),!!~b}return h}()},L.exports={getConstructor:function(){function h(N,b,B,I){var w=N(function(E,M){o(E,T),c(E,{type:b,id:i++,frozen:void 0}),V(M)||S(M,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(b),x=function(){function E(M,D,O){var R=A(M),j=t(f(D),!0);return j===!0?v(R).set(D,O):j[R.id]=O,M}return E}();return a(T,{delete:function(){function E(M){var D=A(this);if(!k(M))return!1;var O=t(M);return O===!0?v(D).delete(M):O&&p(O,D.id)&&delete O[D.id]}return E}(),has:function(){function E(M){var D=A(this);if(!k(M))return!1;var O=t(M);return O===!0?v(D).has(M):O&&p(O,D.id)}return E}()}),a(T,B?{get:function(){function E(M){var D=A(this);if(k(M)){var O=t(M);return O===!0?v(D).get(M):O?O[D.id]:void 0}}return E}(),set:function(){function E(M,D){return x(this,M,D)}return E}()}:{add:function(){function E(M){return x(this,M,!0)}return E}()}),w}return h}()}},93439:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(18161),o=n(95945),f=n(59173),V=n(29126),k=n(281),S=n(19870),y=n(7532),p=n(1022),d=n(56831),c=n(41746),m=n(52019),l=n(94234),u=n(2566);L.exports=function(s,i,v){var g=s.indexOf("Map")!==-1,C=s.indexOf("Weak")!==-1,h=g?"set":"add",N=a[s],b=N&&N.prototype,B=N,I={},w=function(R){var j=t(b[R]);f(b,R,R==="add"?function(){function F(W){return j(this,W===0?0:W),this}return F}():R==="delete"?function(F){return C&&!d(F)?!1:j(this,F===0?0:F)}:R==="get"?function(){function F(W){return C&&!d(W)?void 0:j(this,W===0?0:W)}return F}():R==="has"?function(){function F(W){return C&&!d(W)?!1:j(this,W===0?0:W)}return F}():function(){function F(W,K){return j(this,W===0?0:W,K),this}return F}())},T=o(s,!y(N)||!(C||b.forEach&&!c(function(){new N().entries().next()})));if(T)B=v.getConstructor(i,s,g,h),V.enable();else if(o(s,!0)){var A=new B,x=A[h](C?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=m(function(O){new N(O)}),D=!C&&c(function(){for(var O=new N,R=5;R--;)O[h](R,R);return!O.has(-0)});M||(B=i(function(O,R){S(O,b);var j=u(new N,O,B);return p(R)||k(R,j[h],{that:j,AS_ENTRIES:g}),j}),B.prototype=b,b.constructor=B),(E||D)&&(w("delete"),w("has"),g&&w("get")),(D||x)&&w(h),C&&b.clear&&delete b.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==N},I),l(B,s),C||v.setStrong(B,s,g),B}},70113:function(L,r,n){"use strict";var e=n(89458),a=n(93616),t=n(54168),o=n(56018);L.exports=function(f,V,k){for(var S=a(V),y=o.f,p=t.f,d=0;d"+p+""}},77056:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},16216:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=e?function(o,f,V){return a.f(o,f,t(1,V))}:function(o,f,V){return o[f]=V,o}},7539:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},12913:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=function(o,f,V){e?a.f(o,f,t(0,V)):o[f]=V}},74003:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(34086).start,o=RangeError,f=isFinite,V=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),p=e(k.getUTCDate),d=e(k.getUTCFullYear),c=e(k.getUTCHours),m=e(k.getUTCMilliseconds),l=e(k.getUTCMinutes),u=e(k.getUTCMonth),s=e(k.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function i(){if(!f(y(this)))throw new o("Invalid time value");var v=this,g=d(v),C=m(v),h=g<0?"-":g>9999?"+":"";return h+t(V(g),h?6:4,0)+"-"+t(u(v)+1,2,0)+"-"+t(p(v),2,0)+"T"+t(c(v),2,0)+":"+t(l(v),2,0)+":"+t(s(v),2,0)+"."+t(C,3,0)+"Z"}return i}():S},95865:function(L,r,n){"use strict";var e=n(39482),a=n(14991),t=TypeError;L.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)}},10069:function(L,r,n){"use strict";var e=n(76130),a=n(56018);L.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},59173:function(L,r,n){"use strict";var e=n(7532),a=n(56018),t=n(76130),o=n(93422);L.exports=function(f,V,k,S){S||(S={});var y=S.enumerable,p=S.name!==void 0?S.name:V;if(e(k)&&t(k,p,S),S.global)y?f[V]=k:o(V,k);else{try{S.unsafe?f[V]&&(y=!0):delete f[V]}catch(d){}y?f[V]=k:a.f(f,V,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},13648:function(L,r,n){"use strict";var e=n(59173);L.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},93422:function(L,r,n){"use strict";var e=n(40224),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},58937:function(L,r,n){"use strict";var e=n(62518),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},14141:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},85158:function(L,r,n){"use strict";var e=n(40224),a=n(56831),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(f){return o?t.createElement(f):{}}},72434:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},49847:function(L,r,n){"use strict";var e=n(15837),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},27955:function(L,r,n){"use strict";var e=n(2971),a=n(95823);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},2178:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},2971:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},56605:function(L,r,n){"use strict";var e=n(15837);L.exports=/MSIE|Trident/.test(e)},6647:function(L,r,n){"use strict";var e=n(15837);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},52426:function(L,r,n){"use strict";var e=n(15837);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},95823:function(L,r,n){"use strict";var e=n(40224),a=n(38817);L.exports=a(e.process)==="process"},25062:function(L,r,n){"use strict";var e=n(15837);L.exports=/web0s(?!.*chrome)/i.test(e)},15837:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},82709:function(L,r,n){"use strict";var e=n(40224),a=n(15837),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,V=f&&f.v8,k,S;V&&(k=V.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),L.exports=S},53125:function(L,r,n){"use strict";var e=n(15837),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},90298:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},77549:function(L,r,n){"use strict";var e=n(40224),a=n(54168).f,t=n(16216),o=n(59173),f=n(93422),V=n(70113),k=n(95945);L.exports=function(S,y){var p=S.target,d=S.global,c=S.stat,m,l,u,s,i,v;if(d?l=e:c?l=e[p]||f(p,{}):l=e[p]&&e[p].prototype,l)for(u in y){if(i=y[u],S.dontCallGetSet?(v=a(l,u),s=v&&v.value):s=l[u],m=k(d?u:p+(c?".":"#")+u,S.forced),!m&&s!==void 0){if(typeof i==typeof s)continue;V(i,s)}(S.sham||s&&s.sham)&&t(i,"sham",!0),o(l,u,i,S)}}},41746:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},85427:function(L,r,n){"use strict";n(95880);var e=n(62696),a=n(59173),t=n(72894),o=n(41746),f=n(66266),V=n(16216),k=f("species"),S=RegExp.prototype;L.exports=function(y,p,d,c){var m=f(y),l=!o(function(){var v={};return v[m]=function(){return 7},""[y](v)!==7}),u=l&&!o(function(){var v=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return v=!0,null},g[m](""),!v});if(!l||!u||d){var s=/./[m],i=p(m,""[y],function(v,g,C,h,N){var b=g.exec;return b===t||b===S.exec?l&&!N?{done:!0,value:e(s,g,C,h)}:{done:!0,value:e(v,C,g,h)}:{done:!1}});a(String.prototype,y,i[0]),a(S,m,i[1])}c&&V(S[m],"sham",!0)}},68864:function(L,r,n){"use strict";var e=n(62367),a=n(8333),t=n(72434),o=n(4509),f=function V(k,S,y,p,d,c,m,l){for(var u=d,s=0,i=m?o(m,l):!1,v,g;s0&&e(v)?(g=a(v),u=V(k,S,v,g,u,c-1)-1):(t(u+1),k[u]=v),u++),s++;return u};L.exports=f},56255:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},70918:function(L,r,n){"use strict";var e=n(76799),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},4509:function(L,r,n){"use strict";var e=n(85067),a=n(97361),t=n(76799),o=e(e.bind);L.exports=function(f,V){return a(f),V===void 0?f:t?o(f,V):function(){return f.apply(V,arguments)}}},76799:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},9379:function(L,r,n){"use strict";var e=n(18161),a=n(97361),t=n(56831),o=n(89458),f=n(77713),V=n(76799),k=Function,S=e([].concat),y=e([].join),p={},d=function(m,l,u){if(!o(p,l)){for(var s=[],i=0;i]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(y,p,d,c,m,l){var u=d+y.length,s=c.length,i=S;return m!==void 0&&(m=a(m),i=k),f(l,i,function(v,g){var C;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return V(p,0,d);case"'":return V(p,u);case"<":C=m[V(g,1,-1)];break;default:var h=+g;if(h===0)return v;if(h>s){var N=t(h/10);return N===0?v:N<=s?c[N-1]===void 0?o(g,1):c[N-1]+o(g,1):v}C=c[h-1]}return C===void 0?"":C})}},40224:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.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")()},89458:function(L,r,n){"use strict";var e=n(18161),a=n(40076),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(f,V){return t(a(f),V)}return o}()},21124:function(L){"use strict";L.exports={}},46122:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},54562:function(L,r,n){"use strict";var e=n(40164);L.exports=e("document","documentElement")},1606:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(85158);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},62263:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,y,p){var d=r(p),c=p*8-y-1,m=(1<>1,u=y===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,i=0,v,g,C;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,v=m):(v=a(t(S)/o),C=e(2,-v),S*C<1&&(v--,C*=2),v+l>=1?S+=u/C:S+=u*e(2,1-l),S*C>=2&&(v++,C/=2),v+l>=m?(g=0,v=m):v+l>=1?(g=(S*C-1)*e(2,y),v+=l):(g=S*e(2,l-1)*e(2,y),v=0));y>=8;)d[i++]=g&255,g/=256,y-=8;for(v=v<0;)d[i++]=v&255,v/=256,c-=8;return d[--i]|=s*128,d},V=function(S,y){var p=S.length,d=p*8-y-1,c=(1<>1,l=d-7,u=p-1,s=S[u--],i=s&127,v;for(s>>=7;l>0;)i=i*256+S[u--],l-=8;for(v=i&(1<<-l)-1,i>>=-l,l+=y;l>0;)v=v*256+S[u--],l-=8;if(i===0)i=1-m;else{if(i===c)return v?NaN:s?-1/0:1/0;v+=e(2,y),i-=m}return(s?-1:1)*v*e(2,i-y)};L.exports={pack:f,unpack:V}},26736:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(38817),o=Object,f=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?f(V,""):o(V)}:o},2566:function(L,r,n){"use strict";var e=n(7532),a=n(56831),t=n(42878);L.exports=function(o,f,V){var k,S;return t&&e(k=f.constructor)&&k!==V&&a(S=k.prototype)&&S!==V.prototype&&t(o,S),o}},43589:function(L,r,n){"use strict";var e=n(18161),a=n(7532),t=n(95046),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),L.exports=t.inspectSource},29126:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(21124),o=n(56831),f=n(89458),V=n(56018).f,k=n(34813),S=n(63797),y=n(57975),p=n(33345),d=n(56255),c=!1,m=p("meta"),l=0,u=function(N){V(N,m,{value:{objectID:"O"+l++,weakData:{}}})},s=function(N,b){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!y(N))return"F";if(!b)return"E";u(N)}return N[m].objectID},i=function(N,b){if(!f(N,m)){if(!y(N))return!0;if(!b)return!1;u(N)}return N[m].weakData},v=function(N){return d&&c&&y(N)&&!f(N,m)&&u(N),N},g=function(){C.enable=function(){},c=!0;var N=k.f,b=a([].splice),B={};B[m]=1,N(B).length&&(k.f=function(I){for(var w=N(I),T=0,A=w.length;TI;I++)if(T=M(l[I]),T&&k(m,T))return T;return new c(!1)}b=S(l,B)}for(A=g?l.next:b.next;!(x=a(A,b)).done;){try{T=M(x.value)}catch(D){p(b,"throw",D)}if(typeof T=="object"&&T&&k(m,T))return T}return new c(!1)}},14868:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(4817);L.exports=function(o,f,V){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw V;return V}k=e(k,o)}catch(y){S=!0,k=y}if(f==="throw")throw V;if(S)throw k;return a(k),V}},42599:function(L,r,n){"use strict";var e=n(85106).IteratorPrototype,a=n(28969),t=n(7539),o=n(94234),f=n(90604),V=function(){return this};L.exports=function(k,S,y,p){var d=S+" Iterator";return k.prototype=a(e,{next:t(+!p,y)}),o(k,d,!1,!0),f[d]=V,k}},2449:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(11478),o=n(26463),f=n(7532),V=n(42599),k=n(31658),S=n(42878),y=n(94234),p=n(16216),d=n(59173),c=n(66266),m=n(90604),l=n(85106),u=o.PROPER,s=o.CONFIGURABLE,i=l.IteratorPrototype,v=l.BUGGY_SAFARI_ITERATORS,g=c("iterator"),C="keys",h="values",N="entries",b=function(){return this};L.exports=function(B,I,w,T,A,x,E){V(w,I,T);var M=function(X){if(X===A&&F)return F;if(!v&&X&&X in R)return R[X];switch(X){case C:return function(){function J(){return new w(this,X)}return J}();case h:return function(){function J(){return new w(this,X)}return J}();case N:return function(){function J(){return new w(this,X)}return J}()}return function(){return new w(this)}},D=I+" Iterator",O=!1,R=B.prototype,j=R[g]||R["@@iterator"]||A&&R[A],F=!v&&j||M(A),W=I==="Array"&&R.entries||j,K,z,$;if(W&&(K=k(W.call(new B)),K!==Object.prototype&&K.next&&(!t&&k(K)!==i&&(S?S(K,i):f(K[g])||d(K,g,b)),y(K,D,!0,!0),t&&(m[D]=b))),u&&A===h&&j&&j.name!==h&&(!t&&s?p(R,"name",h):(O=!0,F=function(){function Y(){return a(j,this)}return Y}())),A)if(z={values:M(h),keys:x?F:M(C),entries:M(N)},E)for($ in z)(v||O||!($ in R))&&d(R,$,z[$]);else e({target:I,proto:!0,forced:v||O},z);return(!t||E)&&R[g]!==F&&d(R,g,F,{name:A}),m[I]=F,z}},85106:function(L,r,n){"use strict";var e=n(41746),a=n(7532),t=n(56831),o=n(28969),f=n(31658),V=n(59173),k=n(66266),S=n(11478),y=k("iterator"),p=!1,d,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(d=c)):p=!0);var l=!t(d)||e(function(){var u={};return d[y].call(u)!==u});l?d={}:S&&(d=o(d)),a(d[y])||V(d,y,function(){return this}),L.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:p}},90604:function(L){"use strict";L.exports={}},8333:function(L,r,n){"use strict";var e=n(10475);L.exports=function(a){return e(a.length)}},76130:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(7532),o=n(89458),f=n(14141),V=n(26463).CONFIGURABLE,k=n(43589),S=n(35086),y=S.enforce,p=S.get,d=String,c=Object.defineProperty,m=e("".slice),l=e("".replace),u=e([].join),s=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),i=String(String).split("String"),v=L.exports=function(g,C,h){m(d(C),0,7)==="Symbol("&&(C="["+l(d(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(C="get "+C),h&&h.setter&&(C="set "+C),(!o(g,"name")||V&&g.name!==C)&&(f?c(g,"name",{value:C,configurable:!0}):g.name=C),s&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var N=y(g);return o(N,"source")||(N.source=u(i,typeof C=="string"?C:"")),g};Function.prototype.toString=v(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},32813:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.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},23207:function(L,r,n){"use strict";var e=n(54307),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};L.exports=function(V,k,S,y){var p=+V,d=a(p),c=e(p);if(dS||l!==l?c*(1/0):c*l}},75988:function(L,r,n){"use strict";var e=n(23207),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function f(V){return e(V,a,t,o)}return f}()},53271:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},69143:function(L){"use strict";var r=Math.log;L.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}()},54307:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},34606:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},27150:function(L,r,n){"use strict";var e=n(40224),a=n(1156),t=n(4509),o=n(91314).set,f=n(23496),V=n(52426),k=n(6647),S=n(25062),y=n(95823),p=e.MutationObserver||e.WebKitMutationObserver,d=e.document,c=e.process,m=e.Promise,l=a("queueMicrotask"),u,s,i,v,g;if(!l){var C=new f,h=function(){var b,B;for(y&&(b=c.domain)&&b.exit();B=C.get();)try{B()}catch(I){throw C.head&&u(),I}b&&b.enter()};!V&&!y&&!S&&p&&d?(s=!0,i=d.createTextNode(""),new p(h).observe(i,{characterData:!0}),u=function(){i.data=s=!s}):!k&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,g=t(v.then,v),u=function(){g(h)}):y?u=function(){c.nextTick(h)}:(o=t(o,e),u=function(){o(h)}),l=function(b){C.head||u(),C.add(b)}}L.exports=l},48532:function(L,r,n){"use strict";var e=n(97361),a=TypeError,t=function(f){var V,k;this.promise=new f(function(S,y){if(V!==void 0||k!==void 0)throw new a("Bad Promise constructor");V=S,k=y}),this.resolve=e(V),this.reject=e(k)};L.exports.f=function(o){return new t(o)}},89140:function(L,r,n){"use strict";var e=n(80969),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},69079:function(L,r,n){"use strict";var e=n(40224),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},43283:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),k=t("".charAt),S=e.parseFloat,y=e.Symbol,p=y&&y.iterator,d=1/S(V+"-0")!==-1/0||p&&!a(function(){S(Object(p))});L.exports=d?function(){function c(m){var l=f(o(m)),u=S(l);return u===0&&k(l,0)==="-"?-0:u}return c}():S},11540:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,p=/^[+-]?0x/i,d=t(p.exec),c=k(V+"08")!==8||k(V+"0x16")!==22||y&&!a(function(){k(Object(y))});L.exports=c?function(){function m(l,u){var s=f(o(l));return k(s,u>>>0||(d(p,s)?16:10))}return m}():k},12752:function(L,r,n){"use strict";var e=n(14141),a=n(18161),t=n(62696),o=n(41746),f=n(84913),V=n(34220),k=n(9776),S=n(40076),y=n(26736),p=Object.assign,d=Object.defineProperty,c=a([].concat);L.exports=!p||o(function(){if(e&&p({b:1},p(d({},"a",{enumerable:!0,get:function(){function i(){d(this,"b",{value:3,enumerable:!1})}return i}()}),{b:2})).b!==1)return!0;var m={},l={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(i){l[i]=i}),p({},m)[u]!==7||f(p({},l)).join("")!==s})?function(){function m(l,u){for(var s=S(l),i=arguments.length,v=1,g=V.f,C=k.f;i>v;)for(var h=y(arguments[v++]),N=g?c(f(h),g(h)):f(h),b=N.length,B=0,I;b>B;)I=N[B++],(!e||t(C,h,I))&&(s[I]=h[I]);return s}return m}():p},28969:function(L,r,n){"use strict";var e=n(39482),a=n(65854),t=n(90298),o=n(21124),f=n(54562),V=n(85158),k=n(5160),S=">",y="<",p="prototype",d="script",c=k("IE_PROTO"),m=function(){},l=function(C){return y+d+S+C+y+"/"+d+S},u=function(C){C.write(l("")),C.close();var h=C.parentWindow.Object;return C=null,h},s=function(){var C=V("iframe"),h="java"+d+":",N;return C.style.display="none",f.appendChild(C),C.src=String(h),N=C.contentWindow.document,N.open(),N.write(l("document.F=Object")),N.close(),N.F},i,v=function(){try{i=new ActiveXObject("htmlfile")}catch(h){}v=typeof document!="undefined"?document.domain&&i?u(i):s():u(i);for(var C=t.length;C--;)delete v[p][t[C]];return v()};o[c]=!0,L.exports=Object.create||function(){function g(C,h){var N;return C!==null?(m[p]=e(C),N=new m,m[p]=null,N[c]=C):N=v(),h===void 0?N:a.f(N,h)}return g}()},65854:function(L,r,n){"use strict";var e=n(14141),a=n(83411),t=n(56018),o=n(39482),f=n(96812),V=n(84913);r.f=e&&!a?Object.defineProperties:function(){function k(S,y){o(S);for(var p=f(y),d=V(y),c=d.length,m=0,l;c>m;)t.f(S,l=d[m++],p[l]);return S}return k}()},56018:function(L,r,n){"use strict";var e=n(14141),a=n(1606),t=n(83411),o=n(39482),f=n(57640),V=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",p="configurable",d="writable";r.f=e?t?function(){function c(m,l,u){if(o(m),l=f(l),o(u),typeof m=="function"&&l==="prototype"&&"value"in u&&d in u&&!u[d]){var s=S(m,l);s&&s[d]&&(m[l]=u.value,u={configurable:p in u?u[p]:s[p],enumerable:y in u?u[y]:s[y],writable:!1})}return k(m,l,u)}return c}():k:function(){function c(m,l,u){if(o(m),l=f(l),o(u),a)try{return k(m,l,u)}catch(s){}if("get"in u||"set"in u)throw new V("Accessors not supported");return"value"in u&&(m[l]=u.value),m}return c}()},54168:function(L,r,n){"use strict";var e=n(14141),a=n(62696),t=n(9776),o=n(7539),f=n(96812),V=n(57640),k=n(89458),S=n(1606),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function p(d,c){if(d=f(d),c=V(c),S)try{return y(d,c)}catch(m){}if(k(d,c))return o(!a(t.f,d,c),d[c])}return p}()},63797:function(L,r,n){"use strict";var e=n(38817),a=n(96812),t=n(34813).f,o=n(77713),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],V=function(S){try{return t(S)}catch(y){return o(f)}};L.exports.f=function(){function k(S){return f&&e(S)==="Window"?V(S):t(a(S))}return k}()},34813:function(L,r,n){"use strict";var e=n(62995),a=n(90298),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},34220:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},31658:function(L,r,n){"use strict";var e=n(89458),a=n(7532),t=n(40076),o=n(5160),f=n(58776),V=o("IE_PROTO"),k=Object,S=k.prototype;L.exports=f?k.getPrototypeOf:function(y){var p=t(y);if(e(p,V))return p[V];var d=p.constructor;return a(d)&&p instanceof d?d.prototype:p instanceof k?S:null}},57975:function(L,r,n){"use strict";var e=n(41746),a=n(56831),t=n(38817),o=n(65693),f=Object.isExtensible,V=e(function(){f(1)});L.exports=V||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},33314:function(L,r,n){"use strict";var e=n(18161);L.exports=e({}.isPrototypeOf)},62995:function(L,r,n){"use strict";var e=n(18161),a=n(89458),t=n(96812),o=n(64210).indexOf,f=n(21124),V=e([].push);L.exports=function(k,S){var y=t(k),p=0,d=[],c;for(c in y)!a(f,c)&&a(y,c)&&V(d,c);for(;S.length>p;)a(y,c=S[p++])&&(~o(d,c)||V(d,c));return d}},84913:function(L,r,n){"use strict";var e=n(62995),a=n(90298);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},9776:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},33030:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(41746),o=n(53125);L.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},42878:function(L,r,n){"use strict";var e=n(9553),a=n(56831),t=n(91029),o=n(51689);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,V={},k;try{k=e(Object.prototype,"__proto__","set"),k(V,[]),f=V instanceof Array}catch(S){}return function(){function S(y,p){return t(y),o(p),a(y)&&(f?k(y,p):y.__proto__=p),y}return S}()}():void 0)},97452:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(18161),o=n(31658),f=n(84913),V=n(96812),k=n(9776).f,S=t(k),y=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),d=function(m){return function(l){for(var u=V(l),s=f(u),i=p&&o(u)===null,v=s.length,g=0,C=[],h;v>g;)h=s[g++],(!e||(i?h in u:S(u,h)))&&y(C,m?[h,u[h]]:u[h]);return C}};L.exports={entries:d(!0),values:d(!1)}},66628:function(L,r,n){"use strict";var e=n(82161),a=n(27806);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},14991:function(L,r,n){"use strict";var e=n(62696),a=n(7532),t=n(56831),o=TypeError;L.exports=function(f,V){var k,S;if(V==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||V!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},93616:function(L,r,n){"use strict";var e=n(40164),a=n(18161),t=n(34813),o=n(34220),f=n(39482),V=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(f(S)),p=o.f;return p?V(y,p(S)):y}return k}()},5376:function(L,r,n){"use strict";var e=n(40224);L.exports=e},91114:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},49669:function(L,r,n){"use strict";var e=n(40224),a=n(35973),t=n(7532),o=n(95945),f=n(43589),V=n(66266),k=n(27955),S=n(2971),y=n(11478),p=n(82709),d=a&&a.prototype,c=V("species"),m=!1,l=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),i=s!==String(a);if(!i&&p===66||y&&!(d.catch&&d.finally))return!0;if(!p||p<51||!/native code/.test(s)){var v=new a(function(h){h(1)}),g=function(N){N(function(){},function(){})},C=v.constructor={};if(C[c]=g,m=v.then(function(){})instanceof g,!m)return!0}return!i&&(k||S)&&!l});L.exports={CONSTRUCTOR:u,REJECTION_EVENT:l,SUBCLASSING:m}},35973:function(L,r,n){"use strict";var e=n(40224);L.exports=e.Promise},43827:function(L,r,n){"use strict";var e=n(39482),a=n(56831),t=n(48532);L.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var V=t.f(o),k=V.resolve;return k(f),V.promise}},95044:function(L,r,n){"use strict";var e=n(35973),a=n(52019),t=n(49669).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},77495:function(L,r,n){"use strict";var e=n(56018).f;L.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(V){t[o]=V}return f}()})}},23496:function(L){"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}()},L.exports=r},35553:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(7532),o=n(38817),f=n(72894),V=TypeError;L.exports=function(k,S){var y=k.exec;if(t(y)){var p=e(y,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(f,k,S);throw new V("RegExp#exec called on incompatible receiver")}},72894:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(26602),o=n(65844),f=n(1064),V=n(75130),k=n(28969),S=n(35086).get,y=n(89604),p=n(5489),d=V("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,l=a("".charAt),u=a("".indexOf),s=a("".replace),i=a("".slice),v=function(){var N=/a/,b=/b*/g;return e(c,N,"a"),e(c,b,"a"),N.lastIndex!==0||b.lastIndex!==0}(),g=f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,h=v||C||g||y||p;h&&(m=function(){function N(b){var B=this,I=S(B),w=t(b),T=I.raw,A,x,E,M,D,O,R;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=I.groups,F=g&&B.sticky,W=e(o,B),K=B.source,z=0,$=w;if(F&&(W=s(W,"y",""),u(W,"g")===-1&&(W+="g"),$=i(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&l(w,B.lastIndex-1)!=="\n")&&(K="(?: "+K+")",$=" "+$,z++),x=new RegExp("^(?:"+K+")",W)),C&&(x=new RegExp("^"+K+"$(?!\\s)",W)),v&&(E=B.lastIndex),M=e(c,F?x:B,$),F?M?(M.input=i(M.input,z),M[0]=i(M[0],z),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:v&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),C&&M&&M.length>1&&e(d,M[0],x,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},91029:function(L,r,n){"use strict";var e=n(1022),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},1156:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},37309:function(L){"use strict";L.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},83827:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(7532),o=n(2178),f=n(15837),V=n(77713),k=n(22789),S=e.Function,y=/MSIE .\./.test(f)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();L.exports=function(p,d){var c=d?2:1;return y?function(m,l){var u=k(arguments.length,1)>c,s=t(m)?m:S(m),i=u?V(arguments,c):[],v=u?function(){a(s,this,i)}:s;return d?p(v,l):p(v)}:p}},67420:function(L,r,n){"use strict";var e=n(40164),a=n(10069),t=n(66266),o=n(14141),f=t("species");L.exports=function(V){var k=e(V);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},94234:function(L,r,n){"use strict";var e=n(56018).f,a=n(89458),t=n(66266),o=t("toStringTag");L.exports=function(f,V,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:V})}},5160:function(L,r,n){"use strict";var e=n(75130),a=n(33345),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},95046:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(93422),o="__core-js_shared__",f=L.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.36.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},75130:function(L,r,n){"use strict";var e=n(95046);L.exports=function(a,t){return e[a]||(e[a]=t||{})}},78412:function(L,r,n){"use strict";var e=n(39482),a=n(76833),t=n(1022),o=n(66266),f=o("species");L.exports=function(V,k){var S=e(V).constructor,y;return S===void 0||t(y=e(S)[f])?k:a(y)}},32086:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},56852:function(L,r,n){"use strict";var e=n(18161),a=n(74952),t=n(26602),o=n(91029),f=e("".charAt),V=e("".charCodeAt),k=e("".slice),S=function(p){return function(d,c){var m=t(o(d)),l=a(c),u=m.length,s,i;return l<0||l>=u?p?"":void 0:(s=V(m,l),s<55296||s>56319||l+1===u||(i=V(m,l+1))<56320||i>57343?p?f(m,l):s:p?k(m,l,l+2):(s-55296<<10)+(i-56320)+65536)}};L.exports={codeAt:S(!1),charAt:S(!0)}},33038:function(L,r,n){"use strict";var e=n(15837);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},34086:function(L,r,n){"use strict";var e=n(18161),a=n(10475),t=n(26602),o=n(84948),f=n(91029),V=e(o),k=e("".slice),S=Math.ceil,y=function(d){return function(c,m,l){var u=t(f(c)),s=a(m),i=u.length,v=l===void 0?" ":t(l),g,C;return s<=i||v===""?u:(g=s-i,C=V(v,S(g/v.length)),C.length>g&&(C=k(C,0,g)),d?u+C:C+u)}};L.exports={start:y(!1),end:y(!0)}},84948:function(L,r,n){"use strict";var e=n(74952),a=n(26602),t=n(91029),o=RangeError;L.exports=function(){function f(V){var k=a(t(this)),S="",y=e(V);if(y<0||y===1/0)throw new o("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(k+=k))y&1&&(S+=k);return S}return f}()},11775:function(L,r,n){"use strict";var e=n(35171).end,a=n(93817);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},93817:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(41746),t=n(137),o="\u200B\x85\u180E";L.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},26402:function(L,r,n){"use strict";var e=n(35171).start,a=n(93817);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},35171:function(L,r,n){"use strict";var e=n(18161),a=n(91029),t=n(26602),o=n(137),f=e("".replace),V=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(d){var c=t(a(d));return p&1&&(c=f(c,V,"")),p&2&&(c=f(c,k,"$1")),c}};L.exports={start:S(1),end:S(2),trim:S(3)}},70640:function(L,r,n){"use strict";var e=n(82709),a=n(41746),t=n(40224),o=t.String;L.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},75429:function(L,r,n){"use strict";var e=n(62696),a=n(40164),t=n(66266),o=n(59173);L.exports=function(){var f=a("Symbol"),V=f&&f.prototype,k=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(y){return e(k,this)},{arity:1})}},80353:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},91314:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(4509),o=n(7532),f=n(89458),V=n(41746),k=n(54562),S=n(77713),y=n(85158),p=n(22789),d=n(52426),c=n(95823),m=e.setImmediate,l=e.clearImmediate,u=e.process,s=e.Dispatch,i=e.Function,v=e.MessageChannel,g=e.String,C=0,h={},N="onreadystatechange",b,B,I,w;V(function(){b=e.location});var T=function(D){if(f(h,D)){var O=h[D];delete h[D],O()}},A=function(D){return function(){T(D)}},x=function(D){T(D.data)},E=function(D){e.postMessage(g(D),b.protocol+"//"+b.host)};(!m||!l)&&(m=function(){function M(D){p(arguments.length,1);var O=o(D)?D:i(D),R=S(arguments,1);return h[++C]=function(){a(O,void 0,R)},B(C),C}return M}(),l=function(){function M(D){delete h[D]}return M}(),c?B=function(D){u.nextTick(A(D))}:s&&s.now?B=function(D){s.now(A(D))}:v&&!d?(I=new v,w=I.port2,I.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!V(E)?(B=E,e.addEventListener("message",x,!1)):N in y("script")?B=function(D){k.appendChild(y("script"))[N]=function(){k.removeChild(this),T(D)}}:B=function(D){setTimeout(A(D),0)}),L.exports={set:m,clear:l}},37497:function(L,r,n){"use strict";var e=n(18161);L.exports=e(1 .valueOf)},74067:function(L,r,n){"use strict";var e=n(74952),a=Math.max,t=Math.min;L.exports=function(o,f){var V=e(o);return V<0?a(V+f,0):t(V,f)}},757:function(L,r,n){"use strict";var e=n(4370),a=TypeError;L.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},90835:function(L,r,n){"use strict";var e=n(74952),a=n(10475),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var f=e(o),V=a(f);if(f!==V)throw new t("Wrong length or index");return V}},96812:function(L,r,n){"use strict";var e=n(26736),a=n(91029);L.exports=function(t){return e(a(t))}},74952:function(L,r,n){"use strict";var e=n(34606);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10475:function(L,r,n){"use strict";var e=n(74952),a=Math.min;L.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},40076:function(L,r,n){"use strict";var e=n(91029),a=Object;L.exports=function(t){return a(e(t))}},65264:function(L,r,n){"use strict";var e=n(43627),a=RangeError;L.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},43627:function(L,r,n){"use strict";var e=n(74952),a=RangeError;L.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},4370:function(L,r,n){"use strict";var e=n(62696),a=n(56831),t=n(74352),o=n(4817),f=n(14991),V=n(66266),k=TypeError,S=V("toPrimitive");L.exports=function(y,p){if(!a(y)||t(y))return y;var d=o(y,S),c;if(d){if(p===void 0&&(p="default"),c=e(d,y,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),f(y,p)}},57640:function(L,r,n){"use strict";var e=n(4370),a=n(74352);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},82161:function(L,r,n){"use strict";var e=n(66266),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},26602:function(L,r,n){"use strict";var e=n(27806),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},78828:function(L){"use strict";var r=Math.round;L.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},62518:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},12218:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(14141),f=n(66220),V=n(72951),k=n(46185),S=n(19870),y=n(7539),p=n(16216),d=n(57696),c=n(10475),m=n(90835),l=n(65264),u=n(78828),s=n(57640),i=n(89458),v=n(27806),g=n(56831),C=n(74352),h=n(28969),N=n(33314),b=n(42878),B=n(34813).f,I=n(7996),w=n(67480).forEach,T=n(67420),A=n(10069),x=n(56018),E=n(54168),M=n(6967),D=n(35086),O=n(2566),R=D.get,j=D.set,F=D.enforce,W=x.f,K=E.f,z=a.RangeError,$=k.ArrayBuffer,Y=$.prototype,X=k.DataView,J=V.NATIVE_ARRAY_BUFFER_VIEWS,le=V.TYPED_ARRAY_TAG,ce=V.TypedArray,fe=V.TypedArrayPrototype,pe=V.isTypedArray,be="BYTES_PER_ELEMENT",te="Wrong length",Q=function(ke,Be){A(ke,Be,{configurable:!0,get:function(){function ve(){return R(this)[Be]}return ve}()})},ne=function(ke){var Be;return N(Y,ke)||(Be=v(ke))==="ArrayBuffer"||Be==="SharedArrayBuffer"},me=function(ke,Be){return pe(ke)&&!C(Be)&&Be in ke&&d(+Be)&&Be>=0},ae=function(){function oe(ke,Be){return Be=s(Be),me(ke,Be)?y(2,ke[Be]):K(ke,Be)}return oe}(),ue=function(){function oe(ke,Be,ve){return Be=s(Be),me(ke,Be)&&g(ve)&&i(ve,"value")&&!i(ve,"get")&&!i(ve,"set")&&!ve.configurable&&(!i(ve,"writable")||ve.writable)&&(!i(ve,"enumerable")||ve.enumerable)?(ke[Be]=ve.value,ke):W(ke,Be,ve)}return oe}();o?(J||(E.f=ae,x.f=ue,Q(fe,"buffer"),Q(fe,"byteOffset"),Q(fe,"byteLength"),Q(fe,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:ae,defineProperty:ue}),L.exports=function(oe,ke,Be){var ve=oe.match(/\d+/)[0]/8,ge=oe+(Be?"Clamped":"")+"Array",ye="get"+oe,Ve="set"+oe,Ie=a[ge],we=Ie,xe=we&&we.prototype,Pe={},Ue=function(se,Ce){var Ae=R(se);return Ae.view[ye](Ce*ve+Ae.byteOffset,!0)},Ne=function(se,Ce,Ae){var De=R(se);De.view[Ve](Ce*ve+De.byteOffset,Be?u(Ae):Ae,!0)},re=function(se,Ce){W(se,Ce,{get:function(){function Ae(){return Ue(this,Ce)}return Ae}(),set:function(){function Ae(De){return Ne(this,Ce,De)}return Ae}(),enumerable:!0})};J?f&&(we=ke(function(he,se,Ce,Ae){return S(he,xe),O(function(){return g(se)?ne(se)?Ae!==void 0?new Ie(se,l(Ce,ve),Ae):Ce!==void 0?new Ie(se,l(Ce,ve)):new Ie(se):pe(se)?M(we,se):t(I,we,se):new Ie(m(se))}(),he,we)}),b&&b(we,ce),w(B(Ie),function(he){he in we||p(we,he,Ie[he])}),we.prototype=xe):(we=ke(function(he,se,Ce,Ae){S(he,xe);var De=0,je=0,Ke,We,_e;if(!g(se))_e=m(se),We=_e*ve,Ke=new $(We);else if(ne(se)){Ke=se,je=l(Ce,ve);var $e=se.byteLength;if(Ae===void 0){if($e%ve)throw new z(te);if(We=$e-je,We<0)throw new z(te)}else if(We=c(Ae)*ve,We+je>$e)throw new z(te);_e=We/ve}else return pe(se)?M(we,se):t(I,we,se);for(j(he,{buffer:Ke,byteOffset:je,byteLength:We,length:_e,view:new X(Ke)});De<_e;)re(he,De++)}),b&&b(we,ce),xe=we.prototype=h(fe)),xe.constructor!==we&&p(xe,"constructor",we),F(xe).TypedArrayConstructor=we,le&&p(xe,le,ge);var de=we!==Ie;Pe[ge]=we,e({global:!0,constructor:!0,forced:de,sham:!J},Pe),be in we||p(we,be,ve),be in xe||p(xe,be,ve),T(ge)}):L.exports=function(){}},66220:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(52019),o=n(72951).NATIVE_ARRAY_BUFFER_VIEWS,f=e.ArrayBuffer,V=e.Int8Array;L.exports=!o||!a(function(){V(1)})||!a(function(){new V(-1)})||!t(function(k){new V,new V(null),new V(1.5),new V(k)},!0)||a(function(){return new V(new f(2),1,void 0).length!==1})},80936:function(L,r,n){"use strict";var e=n(6967),a=n(489);L.exports=function(t,o){return e(a(t),o)}},7996:function(L,r,n){"use strict";var e=n(4509),a=n(62696),t=n(76833),o=n(40076),f=n(8333),V=n(3438),k=n(76274),S=n(58482),y=n(5080),p=n(72951).aTypedArrayConstructor,d=n(757);L.exports=function(){function c(m){var l=t(this),u=o(m),s=arguments.length,i=s>1?arguments[1]:void 0,v=i!==void 0,g=k(u),C,h,N,b,B,I,w,T;if(g&&!S(g))for(w=V(u,g),T=w.next,u=[];!(I=a(T,w)).done;)u.push(I.value);for(v&&s>2&&(i=e(i,arguments[2])),h=f(u),N=new(p(l))(h),b=y(N),C=0;h>C;C++)B=v?i(u[C],C):u[C],N[C]=b?d(B):+B;return N}return c}()},489:function(L,r,n){"use strict";var e=n(72951),a=n(78412),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(f){return t(a(f,o(f)))}},33345:function(L,r,n){"use strict";var e=n(18161),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},81457:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},83411:function(L,r,n){"use strict";var e=n(14141),a=n(41746);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},22789:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n=51||!a(function(){var i=[];return i[m]=!1,i.concat()[0]!==i}),u=function(v){if(!o(v))return!1;var g=v[m];return g!==void 0?!!g:t(v)},s=!l||!p("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function i(v){var g=f(this),C=y(g,0),h=0,N,b,B,I,w;for(N=-1,B=arguments.length;N1?arguments[1]:void 0)}return f}()})},24974:function(L,r,n){"use strict";var e=n(77549),a=n(59942),t=n(91138);e({target:"Array",proto:!0},{fill:a}),t("fill")},6297:function(L,r,n){"use strict";var e=n(77549),a=n(67480).filter,t=n(55114),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},35173:function(L,r,n){"use strict";var e=n(77549),a=n(67480).findIndex,t=n(91138),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},5364:function(L,r,n){"use strict";var e=n(77549),a=n(67480).find,t=n(91138),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},88707:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(97361),o=n(40076),f=n(8333),V=n(32878);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var y=o(this),p=f(y),d;return t(S),d=V(y,0),d.length=a(d,y,y,p,0,1,S,arguments.length>1?arguments[1]:void 0),d}return k}()})},16576:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(40076),o=n(8333),f=n(74952),V=n(32878);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,y=t(this),p=o(y),d=V(y,0);return d.length=a(d,y,y,p,0,S===void 0?1:f(S)),d}return k}()})},21508:function(L,r,n){"use strict";var e=n(77549),a=n(75420);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},86339:function(L,r,n){"use strict";var e=n(77549),a=n(80363),t=n(52019),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},81850:function(L,r,n){"use strict";var e=n(77549),a=n(64210).includes,t=n(41746),o=n(91138),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},98661:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(64210).indexOf,o=n(42309),f=a([].indexOf),V=!!f&&1/f([1],1,-0)<0,k=V||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(y){var p=arguments.length>1?arguments[1]:void 0;return V?f(this,y,p)||0:t(this,y,p)}return S}()})},13431:function(L,r,n){"use strict";var e=n(77549),a=n(62367);e({target:"Array",stat:!0},{isArray:a})},65809:function(L,r,n){"use strict";var e=n(96812),a=n(91138),t=n(90604),o=n(35086),f=n(56018).f,V=n(2449),k=n(77056),S=n(11478),y=n(14141),p="Array Iterator",d=o.set,c=o.getterFor(p);L.exports=V(Array,"Array",function(l,u){d(this,{type:p,target:e(l),index:0,kind:u})},function(){var l=c(this),u=l.target,s=l.index++;if(!u||s>=u.length)return l.target=void 0,k(void 0,!0);switch(l.kind){case"keys":return k(s,!1);case"values":return k(u[s],!1)}return k([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&y&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(l){}},8611:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(26736),o=n(96812),f=n(42309),V=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(p){return V(o(this),p===void 0?",":p)}return y}()})},97246:function(L,r,n){"use strict";var e=n(77549),a=n(16934);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},48741:function(L,r,n){"use strict";var e=n(77549),a=n(67480).map,t=n(55114),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},90446:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(60354),o=n(12913),f=Array,V=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:V},{of:function(){function k(){for(var S=0,y=arguments.length,p=new(t(this)?this:f)(y);y>S;)o(p,S,arguments[S++]);return p.length=y,p}return k}()})},61902:function(L,r,n){"use strict";var e=n(77549),a=n(98405).right,t=n(42309),o=n(82709),f=n(95823),V=!f&&o>79&&o<83,k=V||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},509:function(L,r,n){"use strict";var e=n(77549),a=n(98405).left,t=n(42309),o=n(82709),f=n(95823),V=!f&&o>79&&o<83,k=V||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(y){var p=arguments.length;return a(this,y,p,p>1?arguments[1]:void 0)}return S}()})},96149:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(62367),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},66617:function(L,r,n){"use strict";var e=n(77549),a=n(62367),t=n(60354),o=n(56831),f=n(74067),V=n(8333),k=n(96812),S=n(12913),y=n(66266),p=n(55114),d=n(77713),c=p("slice"),m=y("species"),l=Array,u=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(i,v){var g=k(this),C=V(g),h=f(i,C),N=f(v===void 0?C:v,C),b,B,I;if(a(g)&&(b=g.constructor,t(b)&&(b===l||a(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===l||b===void 0))return d(g,h,N);for(B=new(b===void 0?l:b)(u(N-h,0)),I=0;h1?arguments[1]:void 0)}return f}()})},56855:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(97361),o=n(40076),f=n(8333),V=n(58937),k=n(26602),S=n(41746),y=n(44815),p=n(42309),d=n(49847),c=n(56605),m=n(82709),l=n(53125),u=[],s=a(u.sort),i=a(u.push),v=S(function(){u.sort(void 0)}),g=S(function(){u.sort(null)}),C=p("sort"),h=!S(function(){if(m)return m<70;if(!(d&&d>3)){if(c)return!0;if(l)return l<603;var B="",I,w,T,A;for(I=65;I<76;I++){switch(w=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)u.push({k:w+A,v:T})}for(u.sort(function(x,E){return E.v-x.v}),A=0;Ak(T)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function B(I){I!==void 0&&t(I);var w=o(this);if(h)return I===void 0?s(w):s(w,I);var T=[],A=f(w),x,E;for(E=0;Eg-b+N;I--)p(v,I-1)}else if(N>b)for(I=g-b;I>C;I--)w=I+b-1,T=I+N-1,w in v?v[T]=v[w]:p(v,T);for(I=0;I9490626562425156e-8?o(p)+V:a(p-1+f(p-1)*f(p+1))}return S}()})},86551:function(L,r,n){"use strict";var e=n(77549),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:f})},10940:function(L,r,n){"use strict";var e=n(77549),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(V){var k=+V;return k===0?k:t((1+k)/(1-k))/2}return f}()})},73763:function(L,r,n){"use strict";var e=n(77549),a=n(54307),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(V){var k=+V;return a(k)*o(t(k),.3333333333333333)}return f}()})},3372:function(L,r,n){"use strict";var e=n(77549),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(V){var k=V>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},51629:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.cosh,o=Math.abs,f=Math.E,V=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:V},{cosh:function(){function k(S){var y=a(o(S)-1)+1;return(y+1/(y*f*f))*(f/2)}return k}()})},69727:function(L,r,n){"use strict";var e=n(77549),a=n(32813);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},27482:function(L,r,n){"use strict";var e=n(77549),a=n(75988);e({target:"Math",stat:!0},{fround:a})},7108:function(L,r,n){"use strict";var e=n(77549),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function V(k,S){for(var y=0,p=0,d=arguments.length,c=0,m,l;p0?(l=m/c,y+=l*l):y+=m;return c===1/0?1/0:c*o(y)}return V}()})},4115:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(V,k){var S=65535,y=+V,p=+k,d=S&y,c=S&p;return 0|d*c+((S&y>>>16)*c+d*(S&p>>>16)<<16>>>0)}return f}()})},63953:function(L,r,n){"use strict";var e=n(77549),a=n(53271);e({target:"Math",stat:!0},{log10:a})},71377:function(L,r,n){"use strict";var e=n(77549),a=n(69143);e({target:"Math",stat:!0},{log1p:a})},63956:function(L,r,n){"use strict";var e=n(77549),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},90037:function(L,r,n){"use strict";var e=n(77549),a=n(54307);e({target:"Math",stat:!0},{sign:a})},46818:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(32813),o=Math.abs,f=Math.exp,V=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(y){var p=+y;return o(p)<1?(t(p)-t(-p))/2:(f(p-1)-f(-p-1))*(V/2)}return S}()})},26681:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var V=+f,k=a(V),S=a(-V);return k===1/0?1:S===1/0?-1:(k-S)/(t(V)+t(-V))}return o}()})},83646:function(L,r,n){"use strict";var e=n(94234);e(Math,"Math",!0)},28876:function(L,r,n){"use strict";var e=n(77549),a=n(34606);e({target:"Math",stat:!0},{trunc:a})},36385:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(14141),o=n(40224),f=n(5376),V=n(18161),k=n(95945),S=n(89458),y=n(2566),p=n(33314),d=n(74352),c=n(4370),m=n(41746),l=n(34813).f,u=n(54168).f,s=n(56018).f,i=n(37497),v=n(35171).trim,g="Number",C=o[g],h=f[g],N=C.prototype,b=o.TypeError,B=V("".slice),I=V("".charCodeAt),w=function(O){var R=c(O,"number");return typeof R=="bigint"?R:T(R)},T=function(O){var R=c(O,"number"),j,F,W,K,z,$,Y,X;if(d(R))throw new b("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),j=I(R,0),j===43||j===45){if(F=I(R,2),F===88||F===120)return NaN}else if(j===48){switch(I(R,1)){case 66:case 98:W=2,K=49;break;case 79:case 111:W=8,K=55;break;default:return+R}for(z=B(R,2),$=z.length,Y=0;Y<$;Y++)if(X=I(z,Y),X<48||X>K)return NaN;return parseInt(z,W)}}return+R},A=k(g,!C(" 0o1")||!C("0b1")||C("+0x1")),x=function(O){return p(N,O)&&m(function(){i(O)})},E=function(){function D(O){var R=arguments.length<1?0:C(w(O));return x(this)?y(Object(R),this,E):R}return D}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var M=function(O,R){for(var j=t?l(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,W;j.length>F;F++)S(R,W=j[F])&&!S(O,W)&&s(O,W,u(R,W))};a&&h&&M(f[g],h),(A||a)&&M(f[g],C)},84295:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59785:function(L,r,n){"use strict";var e=n(77549),a=n(69079);e({target:"Number",stat:!0},{isFinite:a})},8846:function(L,r,n){"use strict";var e=n(77549),a=n(57696);e({target:"Number",stat:!0},{isInteger:a})},50237:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},6436:function(L,r,n){"use strict";var e=n(77549),a=n(57696),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},68286:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},23940:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},82425:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},82118:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7419:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74952),o=n(37497),f=n(84948),V=n(41746),k=RangeError,S=String,y=Math.floor,p=a(f),d=a("".slice),c=a(1 .toFixed),m=function g(C,h,N){return h===0?N:h%2===1?g(C,h-1,N*C):g(C*C,h/2,N)},l=function(C){for(var h=0,N=C;N>=4096;)h+=12,N/=4096;for(;N>=2;)h+=1,N/=2;return h},u=function(C,h,N){for(var b=-1,B=N;++b<6;)B+=h*C[b],C[b]=B%1e7,B=y(B/1e7)},s=function(C,h){for(var N=6,b=0;--N>=0;)b+=C[N],C[N]=y(b/h),b=b%h*1e7},i=function(C){for(var h=6,N="";--h>=0;)if(N!==""||h===0||C[h]!==0){var b=S(C[h]);N=N===""?b:N+p("0",7-b.length)+b}return N},v=V(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!V(function(){c({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function g(C){var h=o(this),N=t(C),b=[0,0,0,0,0,0],B="",I="0",w,T,A,x;if(N<0||N>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=l(h*m(2,69,1))-69,T=w<0?h*m(2,-w,1):h/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(u(b,0,T),A=N;A>=7;)u(b,1e7,0),A-=7;for(u(b,m(10,A,1),0),A=w-1;A>=23;)s(b,8388608),A-=23;s(b,1<0?(x=I.length,I=B+(x<=N?"0."+p("0",N-x)+I:d(I,0,x-N)+"."+d(I,x-N))):I=B+I,I}return g}()})},42409:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(41746),o=n(37497),f=a(1 .toPrecision),V=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},29002:function(L,r,n){"use strict";var e=n(77549),a=n(12752);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},85795:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(28969);e({target:"Object",stat:!0,sham:!a},{create:t})},74722:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,y){V.f(f(this),S,{get:o(y),enumerable:!0,configurable:!0})}return k}()})},5300:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(65854).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},85684:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(56018).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},36014:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,y){V.f(f(this),S,{set:o(y),enumerable:!0,configurable:!0})}return k}()})},98551:function(L,r,n){"use strict";var e=n(77549),a=n(97452).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},66288:function(L,r,n){"use strict";var e=n(77549),a=n(56255),t=n(41746),o=n(56831),f=n(29126).onFreeze,V=Object.freeze,k=t(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(y){return V&&o(y)?V(f(y)):y}return S}()})},26862:function(L,r,n){"use strict";var e=n(77549),a=n(281),t=n(12913);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var V={};return a(f,function(k,S){t(V,k,S)},{AS_ENTRIES:!0}),V}return o}()})},78686:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(96812),o=n(54168).f,f=n(14141),V=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getOwnPropertyDescriptor:function(){function k(S,y){return o(t(S),y)}return k}()})},36789:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(93616),o=n(96812),f=n(54168),V=n(12913);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var y=o(S),p=f.f,d=t(y),c={},m=0,l,u;d.length>m;)u=p(y,l=d[m++]),u!==void 0&&V(c,l,u);return c}return k}()})},82707:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(63797).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},93146:function(L,r,n){"use strict";var e=n(77549),a=n(70640),t=n(41746),o=n(34220),f=n(40076),V=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:V},{getOwnPropertySymbols:function(){function k(S){var y=o.f;return y?y(f(S)):[]}return k}()})},69740:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(40076),o=n(31658),f=n(58776),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},54789:function(L,r,n){"use strict";var e=n(77549),a=n(57975);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},49626:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isFrozen,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:V?V(y):!1}return S}()})},67660:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isSealed,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:V?V(y):!1}return S}()})},87847:function(L,r,n){"use strict";var e=n(77549),a=n(37309);e({target:"Object",stat:!0},{is:a})},43619:function(L,r,n){"use strict";var e=n(77549),a=n(40076),t=n(84913),o=n(41746),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function V(k){return t(a(k))}return V}()})},42777:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),k=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var p=o(this),d=f(y),c;do if(c=k(p,d))return c.get;while(p=V(p))}return S}()})},13045:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),k=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var p=o(this),d=f(y),c;do if(c=k(p,d))return c.set;while(p=V(p))}return S}()})},38664:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.preventExtensions,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(y){return V&&a(y)?V(t(y)):y}return S}()})},29650:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.seal,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(y){return V&&a(y)?V(t(y)):y}return S}()})},58176:function(L,r,n){"use strict";var e=n(77549),a=n(42878);e({target:"Object",stat:!0},{setPrototypeOf:a})},35286:function(L,r,n){"use strict";var e=n(82161),a=n(59173),t=n(66628);e||a(Object.prototype,"toString",t,{unsafe:!0})},13313:function(L,r,n){"use strict";var e=n(77549),a=n(97452).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},26528:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},54959:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({global:!0,forced:parseInt!==a},{parseInt:a})},34344:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),k=n(95044);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(y){var p=this,d=o.f(p),c=d.resolve,m=d.reject,l=f(function(){var u=t(p.resolve),s=[],i=0,v=1;V(y,function(g){var C=i++,h=!1;v++,a(u,p,g).then(function(N){h||(h=!0,s[C]=N,--v||c(s))},m)}),--v||c(s)});return l.error&&m(l.value),d.promise}return S}()})},60:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(49669).CONSTRUCTOR,o=n(35973),f=n(40164),V=n(7532),k=n(59173),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(d){return this.then(void 0,d)}return p}()}),!a&&V(o)){var y=f("Promise").prototype.catch;S.catch!==y&&k(S,"catch",y,{unsafe:!0})}},7803:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(95823),o=n(40224),f=n(62696),V=n(59173),k=n(42878),S=n(94234),y=n(67420),p=n(97361),d=n(7532),c=n(56831),m=n(19870),l=n(78412),u=n(91314).set,s=n(27150),i=n(46122),v=n(91114),g=n(23496),C=n(35086),h=n(35973),N=n(49669),b=n(48532),B="Promise",I=N.CONSTRUCTOR,w=N.REJECTION_EVENT,T=N.SUBCLASSING,A=C.getterFor(B),x=C.set,E=h&&h.prototype,M=h,D=E,O=o.TypeError,R=o.document,j=o.process,F=b.f,W=F,K=!!(R&&R.createEvent&&o.dispatchEvent),z="unhandledrejection",$="rejectionhandled",Y=0,X=1,J=2,le=1,ce=2,fe,pe,be,te,Q=function(Ve){var Ie;return c(Ve)&&d(Ie=Ve.then)?Ie:!1},ne=function(Ve,Ie){var we=Ie.value,xe=Ie.state===X,Pe=xe?Ve.ok:Ve.fail,Ue=Ve.resolve,Ne=Ve.reject,re=Ve.domain,de,he,se;try{Pe?(xe||(Ie.rejection===ce&&ke(Ie),Ie.rejection=le),Pe===!0?de=we:(re&&re.enter(),de=Pe(we),re&&(re.exit(),se=!0)),de===Ve.promise?Ne(new O("Promise-chain cycle")):(he=Q(de))?f(he,de,Ue,Ne):Ue(de)):Ne(we)}catch(Ce){re&&!se&&re.exit(),Ne(Ce)}},me=function(Ve,Ie){Ve.notified||(Ve.notified=!0,s(function(){for(var we=Ve.reactions,xe;xe=we.get();)ne(xe,Ve);Ve.notified=!1,Ie&&!Ve.rejection&&ue(Ve)}))},ae=function(Ve,Ie,we){var xe,Pe;K?(xe=R.createEvent("Event"),xe.promise=Ie,xe.reason=we,xe.initEvent(Ve,!1,!0),o.dispatchEvent(xe)):xe={promise:Ie,reason:we},!w&&(Pe=o["on"+Ve])?Pe(xe):Ve===z&&i("Unhandled promise rejection",we)},ue=function(Ve){f(u,o,function(){var Ie=Ve.facade,we=Ve.value,xe=oe(Ve),Pe;if(xe&&(Pe=v(function(){t?j.emit("unhandledRejection",we,Ie):ae(z,Ie,we)}),Ve.rejection=t||oe(Ve)?ce:le,Pe.error))throw Pe.value})},oe=function(Ve){return Ve.rejection!==le&&!Ve.parent},ke=function(Ve){f(u,o,function(){var Ie=Ve.facade;t?j.emit("rejectionHandled",Ie):ae($,Ie,Ve.value)})},Be=function(Ve,Ie,we){return function(xe){Ve(Ie,xe,we)}},ve=function(Ve,Ie,we){Ve.done||(Ve.done=!0,we&&(Ve=we),Ve.value=Ie,Ve.state=J,me(Ve,!0))},ge=function ye(Ve,Ie,we){if(!Ve.done){Ve.done=!0,we&&(Ve=we);try{if(Ve.facade===Ie)throw new O("Promise can't be resolved itself");var xe=Q(Ie);xe?s(function(){var Pe={done:!1};try{f(xe,Ie,Be(ye,Pe,Ve),Be(ve,Pe,Ve))}catch(Ue){ve(Pe,Ue,Ve)}}):(Ve.value=Ie,Ve.state=X,me(Ve,!1))}catch(Pe){ve({done:!1},Pe,Ve)}}};if(I&&(M=function(){function ye(Ve){m(this,D),p(Ve),f(fe,this);var Ie=A(this);try{Ve(Be(ge,Ie),Be(ve,Ie))}catch(we){ve(Ie,we)}}return ye}(),D=M.prototype,fe=function(){function ye(Ve){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:Y,value:void 0})}return ye}(),fe.prototype=V(D,"then",function(){function ye(Ve,Ie){var we=A(this),xe=F(l(this,M));return we.parent=!0,xe.ok=d(Ve)?Ve:!0,xe.fail=d(Ie)&&Ie,xe.domain=t?j.domain:void 0,we.state===Y?we.reactions.add(xe):s(function(){ne(xe,we)}),xe.promise}return ye}()),pe=function(){var Ve=new fe,Ie=A(Ve);this.promise=Ve,this.resolve=Be(ge,Ie),this.reject=Be(ve,Ie)},b.f=F=function(Ve){return Ve===M||Ve===be?new pe(Ve):W(Ve)},!a&&d(h)&&E!==Object.prototype)){te=E.then,T||V(E,"then",function(){function ye(Ve,Ie){var we=this;return new M(function(xe,Pe){f(te,we,xe,Pe)}).then(Ve,Ie)}return ye}(),{unsafe:!0});try{delete E.constructor}catch(ye){}k&&k(E,D)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:M}),S(M,B,!1,!0),y(B)},54412:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(35973),o=n(41746),f=n(40164),V=n(7532),k=n(78412),S=n(43827),y=n(59173),p=t&&t.prototype,d=!!t&&o(function(){p.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(){function m(l){var u=k(this,f("Promise")),s=V(l);return this.then(s?function(i){return S(u,l()).then(function(){return i})}:l,s?function(i){return S(u,l()).then(function(){throw i})}:l)}return m}()}),!a&&V(t)){var c=f("Promise").prototype.finally;p.finally!==c&&y(p,"finally",c,{unsafe:!0})}},78129:function(L,r,n){"use strict";n(7803),n(34344),n(60),n(61270),n(82248),n(30347)},61270:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),k=n(95044);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(y){var p=this,d=o.f(p),c=d.reject,m=f(function(){var l=t(p.resolve);V(y,function(u){a(l,p,u).then(d.resolve,c)})});return m.error&&c(m.value),d.promise}return S}()})},82248:function(L,r,n){"use strict";var e=n(77549),a=n(48532),t=n(49669).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var V=a.f(this),k=V.reject;return k(f),V.promise}return o}()})},30347:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(11478),o=n(35973),f=n(49669).CONSTRUCTOR,V=n(43827),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function y(p){return V(S&&this===k?o:this,p)}return y}()})},82427:function(L,r,n){"use strict";var e=n(77549),a=n(70918),t=n(97361),o=n(39482),f=n(41746),V=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function k(S,y,p){return a(t(S),y,o(p))}return k}()})},8390:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(70918),o=n(9379),f=n(76833),V=n(39482),k=n(56831),S=n(28969),y=n(41746),p=a("Reflect","construct"),d=Object.prototype,c=[].push,m=y(function(){function s(){}return!(p(function(){},[],s)instanceof s)}),l=!y(function(){p(function(){})}),u=m||l;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(i,v){f(i),V(v);var g=arguments.length<3?i:f(arguments[2]);if(l&&!m)return p(i,v,g);if(i===g){switch(v.length){case 0:return new i;case 1:return new i(v[0]);case 2:return new i(v[0],v[1]);case 3:return new i(v[0],v[1],v[2]);case 4:return new i(v[0],v[1],v[2],v[3])}var C=[null];return t(c,C,v),new(t(o,i,C))}var h=g.prototype,N=S(k(h)?h:d),b=t(i,N,v);return k(b)?b:N}return s}()})},68260:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(57640),f=n(56018),V=n(41746),k=V(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(y,p,d){t(y);var c=o(p);t(d);try{return f.f(y,c,d),!0}catch(m){return!1}}return S}()})},86508:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(54168).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,V){var k=t(a(f),V);return k&&!k.configurable?!1:delete f[V]}return o}()})},17134:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(54168);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(V,k){return o.f(t(V),k)}return f}()})},18972:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(31658),o=n(58776);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(V){return t(a(V))}return f}()})},65971:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(56831),o=n(39482),f=n(35892),V=n(54168),k=n(31658);function S(y,p){var d=arguments.length<3?y:arguments[2],c,m;if(o(y)===d)return y[p];if(c=V.f(y,p),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,d);if(t(m=k(y)))return S(m,p,d)}e({target:"Reflect",stat:!0},{get:S})},78623:function(L,r,n){"use strict";var e=n(77549);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},60149:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(57975);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},56380:function(L,r,n){"use strict";var e=n(77549),a=n(93616);e({target:"Reflect",stat:!0},{ownKeys:a})},72792:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(39482),o=n(56255);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(V){t(V);try{var k=a("Object","preventExtensions");return k&&k(V),!0}catch(S){return!1}}return f}()})},25168:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(51689),o=n(42878);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(V,k){a(V),t(k);try{return o(V,k),!0}catch(S){return!1}}return f}()})},60631:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(39482),o=n(56831),f=n(35892),V=n(41746),k=n(56018),S=n(54168),y=n(31658),p=n(7539);function d(m,l,u){var s=arguments.length<4?m:arguments[3],i=S.f(t(m),l),v,g,C;if(!i){if(o(g=y(m)))return d(g,l,u,s);i=p(0)}if(f(i)){if(i.writable===!1||!o(s))return!1;if(v=S.f(s,l)){if(v.get||v.set||v.writable===!1)return!1;v.value=u,k.f(s,l,v)}else k.f(s,l,p(0,u))}else{if(C=i.set,C===void 0)return!1;a(C,s,u)}return!0}var c=V(function(){var m=function(){},l=k.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:d})},85177:function(L,r,n){"use strict";var e=n(14141),a=n(40224),t=n(18161),o=n(95945),f=n(2566),V=n(16216),k=n(28969),S=n(34813).f,y=n(33314),p=n(80969),d=n(26602),c=n(60425),m=n(1064),l=n(77495),u=n(59173),s=n(41746),i=n(89458),v=n(35086).enforce,g=n(67420),C=n(66266),h=n(89604),N=n(5489),b=C("match"),B=a.RegExp,I=B.prototype,w=a.SyntaxError,T=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),M=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,O=/a/g,R=/a/g,j=new B(O)!==O,F=m.MISSED_STICKY,W=m.UNSUPPORTED_Y,K=e&&(!j||F||h||N||s(function(){return R[b]=!1,B(O)!==O||B(R)===R||String(B(O,"i"))!=="/a/i"})),z=function(ce){for(var fe=ce.length,pe=0,be="",te=!1,Q;pe<=fe;pe++){if(Q=A(ce,pe),Q==="\\"){be+=Q+A(ce,++pe);continue}!te&&Q==="."?be+="[\\s\\S]":(Q==="["?te=!0:Q==="]"&&(te=!1),be+=Q)}return be},$=function(ce){for(var fe=ce.length,pe=0,be="",te=[],Q=k(null),ne=!1,me=!1,ae=0,ue="",oe;pe<=fe;pe++){if(oe=A(ce,pe),oe==="\\")oe+=A(ce,++pe);else if(oe==="]")ne=!1;else if(!ne)switch(!0){case oe==="[":ne=!0;break;case oe==="(":T(D,M(ce,pe+1))&&(pe+=2,me=!0),be+=oe,ae++;continue;case(oe===">"&&me):if(ue===""||i(Q,ue))throw new w("Invalid capture group name");Q[ue]=!0,te[te.length]=[ue,ae],me=!1,ue="";continue}me?ue+=oe:be+=oe}return[be,te]};if(o("RegExp",K)){for(var Y=function(){function le(ce,fe){var pe=y(I,this),be=p(ce),te=fe===void 0,Q=[],ne=ce,me,ae,ue,oe,ke,Be;if(!pe&&be&&te&&ce.constructor===Y)return ce;if((be||y(I,ce))&&(ce=ce.source,te&&(fe=c(ne))),ce=ce===void 0?"":d(ce),fe=fe===void 0?"":d(fe),ne=ce,h&&"dotAll"in O&&(ae=!!fe&&E(fe,"s")>-1,ae&&(fe=x(fe,/s/g,""))),me=fe,F&&"sticky"in O&&(ue=!!fe&&E(fe,"y")>-1,ue&&W&&(fe=x(fe,/y/g,""))),N&&(oe=$(ce),ce=oe[0],Q=oe[1]),ke=f(B(ce,fe),pe?this:I,Y),(ae||ue||Q.length)&&(Be=v(ke),ae&&(Be.dotAll=!0,Be.raw=Y(z(ce),me)),ue&&(Be.sticky=!0),Q.length&&(Be.groups=Q)),ce!==ne)try{V(ke,"source",ne===""?"(?:)":ne)}catch(ve){}return ke}return le}(),X=S(B),J=0;X.length>J;)l(Y,B,X[J++]);I.constructor=Y,Y.prototype=I,u(a,"RegExp",Y,{constructor:!0})}g("RegExp")},95880:function(L,r,n){"use strict";var e=n(77549),a=n(72894);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},59978:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=n(10069),o=n(65844),f=n(41746),V=e.RegExp,k=V.prototype,S=a&&f(function(){var y=!0;try{V(".","d")}catch(i){y=!1}var p={},d="",c=y?"dgimsy":"gimsy",m=function(v,g){Object.defineProperty(p,v,{get:function(){function C(){return d+=g,!0}return C}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};y&&(l.hasIndices="d");for(var u in l)m(u,l[u]);var s=Object.getOwnPropertyDescriptor(k,"flags").get.call(p);return s!==c||d!==c});S&&t(k,"flags",{configurable:!0,get:o})},96360:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(59173),t=n(39482),o=n(26602),f=n(41746),V=n(60425),k="toString",S=RegExp.prototype,y=S[k],p=f(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),d=e&&y.name!==k;(p||d)&&a(S,k,function(){function c(){var m=t(this),l=o(m.source),u=o(V(m));return"/"+l+"/"+u}return c}(),{unsafe:!0})},47338:function(L,r,n){"use strict";var e=n(93439),a=n(10623);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},43108:function(L,r,n){"use strict";n(47338)},36:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},30519:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},33547:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},53426:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},37801:function(L,r,n){"use strict";var e=n(77549),a=n(56852).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},3044:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(54168).f,o=n(10475),f=n(26602),V=n(89140),k=n(91029),S=n(93321),y=n(11478),p=a("".slice),d=Math.min,c=S("endsWith"),m=!y&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function l(u){var s=f(k(this));V(u);var i=arguments.length>1?arguments[1]:void 0,v=s.length,g=i===void 0?v:d(o(i),v),C=f(u);return p(s,g-C.length,g)===C}return l}()})},32031:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},13153:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},21953:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},48432:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74067),o=RangeError,f=String.fromCharCode,V=String.fromCodePoint,k=a([].join),S=!!V&&V.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(p){for(var d=[],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");d[m]=l<65536?f(l):f(((l-=65536)>>10)+55296,l%1024+56320)}return k(d,"")}return y}()})},54564:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(89140),o=n(91029),f=n(26602),V=n(93321),k=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(y){return!!~k(f(o(this)),f(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},83560:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},58179:function(L,r,n){"use strict";var e=n(56852).charAt,a=n(26602),t=n(35086),o=n(2449),f=n(77056),V="String Iterator",k=t.set,S=t.getterFor(V);o(String,"String",function(y){k(this,{type:V,string:a(y),index:0})},function(){function y(){var p=S(this),d=p.string,c=p.index,m;return c>=d.length?f(void 0,!0):(m=e(d,c),p.index+=m.length,f(m,!1))}return y}())},63465:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},68164:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(10475),V=n(26602),k=n(91029),S=n(4817),y=n(62970),p=n(35553);a("match",function(d,c,m){return[function(){function l(u){var s=k(this),i=o(u)?void 0:S(u,d);return i?e(i,u,s):new RegExp(u)[d](V(s))}return l}(),function(l){var u=t(this),s=V(l),i=m(c,u,s);if(i.done)return i.value;if(!u.global)return p(u,s);var v=u.unicode;u.lastIndex=0;for(var g=[],C=0,h;(h=p(u,s))!==null;){var N=V(h[0]);g[C]=N,N===""&&(u.lastIndex=y(s,f(u.lastIndex),v)),C++}return C===0?null:g}]})},58880:function(L,r,n){"use strict";var e=n(77549),a=n(34086).end,t=n(33038);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},54465:function(L,r,n){"use strict";var e=n(77549),a=n(34086).start,t=n(33038);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},97327:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(96812),o=n(40076),f=n(26602),V=n(8333),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(p){var d=t(o(p).raw),c=V(d);if(!c)return"";for(var m=arguments.length,l=[],u=0;;){if(k(l,f(d[u++])),u===c)return S(l,"");u")!=="7"});o("replace",function(x,E,M){var D=T?"$":"$0";return[function(){function O(R,j){var F=c(this),W=S(R)?void 0:l(R,v);return W?a(W,R,F,j):a(E,d(F),R,j)}return O}(),function(O,R){var j=V(this),F=d(O);if(typeof R=="string"&&b(R,D)===-1&&b(R,"$<")===-1){var W=M(E,j,F,R);if(W.done)return W.value}var K=k(R);K||(R=d(R));var z=j.global,$;z&&($=j.unicode,j.lastIndex=0);for(var Y=[],X;X=s(j,F),!(X===null||(N(Y,X),!z));){var J=d(X[0]);J===""&&(j.lastIndex=m(F,p(j.lastIndex),$))}for(var le="",ce=0,fe=0;fe=ce&&(le+=B(F,ce,be)+Q,ce=be+pe.length)}return le+B(F,ce)}]},!A||!w||T)},17337:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(91029),V=n(37309),k=n(26602),S=n(4817),y=n(35553);a("search",function(p,d,c){return[function(){function m(l){var u=f(this),s=o(l)?void 0:S(l,p);return s?e(s,l,u):new RegExp(l)[p](k(u))}return m}(),function(m){var l=t(this),u=k(m),s=c(d,l,u);if(s.done)return s.value;var i=l.lastIndex;V(i,0)||(l.lastIndex=0);var v=y(l,u);return V(l.lastIndex,i)||(l.lastIndex=i),v===null?-1:v.index}]})},98998:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},53713:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(85427),o=n(39482),f=n(1022),V=n(91029),k=n(78412),S=n(62970),y=n(10475),p=n(26602),d=n(4817),c=n(35553),m=n(1064),l=n(41746),u=m.UNSUPPORTED_Y,s=4294967295,i=Math.min,v=a([].push),g=a("".slice),C=!l(function(){var N=/(?:)/,b=N.exec;N.exec=function(){return b.apply(this,arguments)};var B="ab".split(N);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),h="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,b,B){var I="0".split(void 0,0).length?function(w,T){return w===void 0&&T===0?[]:e(b,this,w,T)}:b;return[function(){function w(T,A){var x=V(this),E=f(T)?void 0:d(T,N);return E?e(E,T,x,A):e(I,p(x),T,A)}return w}(),function(w,T){var A=o(this),x=p(w);if(!h){var E=B(I,A,x,T,I!==b);if(E.done)return E.value}var M=k(A,RegExp),D=A.unicode,O=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(u?"g":"y"),R=new M(u?"^(?:"+A.source+")":A,O),j=T===void 0?s:T>>>0;if(j===0)return[];if(x.length===0)return c(R,x)===null?[x]:[];for(var F=0,W=0,K=[];W1?arguments[1]:void 0,s.length)),v=f(u);return p(s,i,i+v.length)===v}return l}()})},96227:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15483:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},86829:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},93073:function(L,r,n){"use strict";n(17434);var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},69107:function(L,r,n){"use strict";var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},17434:function(L,r,n){"use strict";var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},50800:function(L,r,n){"use strict";n(69107);var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},11121:function(L,r,n){"use strict";var e=n(77549),a=n(35171).trim,t=n(93817);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},46951:function(L,r,n){"use strict";var e=n(15388);e("asyncIterator")},9056:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(18161),f=n(11478),V=n(14141),k=n(70640),S=n(41746),y=n(89458),p=n(33314),d=n(39482),c=n(96812),m=n(57640),l=n(26602),u=n(7539),s=n(28969),i=n(84913),v=n(34813),g=n(63797),C=n(34220),h=n(54168),N=n(56018),b=n(65854),B=n(9776),I=n(59173),w=n(10069),T=n(75130),A=n(5160),x=n(21124),E=n(33345),M=n(66266),D=n(32938),O=n(15388),R=n(75429),j=n(94234),F=n(35086),W=n(67480).forEach,K=A("hidden"),z="Symbol",$="prototype",Y=F.set,X=F.getterFor(z),J=Object[$],le=a.Symbol,ce=le&&le[$],fe=a.RangeError,pe=a.TypeError,be=a.QObject,te=h.f,Q=N.f,ne=g.f,me=B.f,ae=o([].push),ue=T("symbols"),oe=T("op-symbols"),ke=T("wks"),Be=!be||!be[$]||!be[$].findChild,ve=function(de,he,se){var Ce=te(J,he);Ce&&delete J[he],Q(de,he,se),Ce&&de!==J&&Q(J,he,Ce)},ge=V&&S(function(){return s(Q({},"a",{get:function(){function re(){return Q(this,"a",{value:7}).a}return re}()})).a!==7})?ve:Q,ye=function(de,he){var se=ue[de]=s(ce);return Y(se,{type:z,tag:de,description:he}),V||(se.description=he),se},Ve=function(){function re(de,he,se){de===J&&Ve(oe,he,se),d(de);var Ce=m(he);return d(se),y(ue,Ce)?(se.enumerable?(y(de,K)&&de[K][Ce]&&(de[K][Ce]=!1),se=s(se,{enumerable:u(0,!1)})):(y(de,K)||Q(de,K,u(1,s(null))),de[K][Ce]=!0),ge(de,Ce,se)):Q(de,Ce,se)}return re}(),Ie=function(){function re(de,he){d(de);var se=c(he),Ce=i(se).concat(Ne(se));return W(Ce,function(Ae){(!V||t(xe,se,Ae))&&Ve(de,Ae,se[Ae])}),de}return re}(),we=function(){function re(de,he){return he===void 0?s(de):Ie(s(de),he)}return re}(),xe=function(){function re(de){var he=m(de),se=t(me,this,he);return this===J&&y(ue,he)&&!y(oe,he)?!1:se||!y(this,he)||!y(ue,he)||y(this,K)&&this[K][he]?se:!0}return re}(),Pe=function(){function re(de,he){var se=c(de),Ce=m(he);if(!(se===J&&y(ue,Ce)&&!y(oe,Ce))){var Ae=te(se,Ce);return Ae&&y(ue,Ce)&&!(y(se,K)&&se[K][Ce])&&(Ae.enumerable=!0),Ae}}return re}(),Ue=function(){function re(de){var he=ne(c(de)),se=[];return W(he,function(Ce){!y(ue,Ce)&&!y(x,Ce)&&ae(se,Ce)}),se}return re}(),Ne=function(de){var he=de===J,se=ne(he?oe:c(de)),Ce=[];return W(se,function(Ae){y(ue,Ae)&&(!he||y(J,Ae))&&ae(Ce,ue[Ae])}),Ce};k||(le=function(){function re(){if(p(ce,this))throw new pe("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),he=E(de),se=function(){function Ce(Ae){var De=this===void 0?a:this;De===J&&t(Ce,oe,Ae),y(De,K)&&y(De[K],he)&&(De[K][he]=!1);var je=u(1,Ae);try{ge(De,he,je)}catch(Ke){if(!(Ke instanceof fe))throw Ke;ve(De,he,je)}}return Ce}();return V&&Be&&ge(J,he,{configurable:!0,set:se}),ye(he,de)}return re}(),ce=le[$],I(ce,"toString",function(){function re(){return X(this).tag}return re}()),I(le,"withoutSetter",function(re){return ye(E(re),re)}),B.f=xe,N.f=Ve,b.f=Ie,h.f=Pe,v.f=g.f=Ue,C.f=Ne,D.f=function(re){return ye(M(re),re)},V&&(w(ce,"description",{configurable:!0,get:function(){function re(){return X(this).description}return re}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:le}),W(i(ke),function(re){O(re)}),e({target:z,stat:!0,forced:!k},{useSetter:function(){function re(){Be=!0}return re}(),useSimple:function(){function re(){Be=!1}return re}()}),e({target:"Object",stat:!0,forced:!k,sham:!V},{create:we,defineProperty:Ve,defineProperties:Ie,getOwnPropertyDescriptor:Pe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:Ue}),R(),j(le,z),x[K]=!0},27718:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(40224),o=n(18161),f=n(89458),V=n(7532),k=n(33314),S=n(26602),y=n(10069),p=n(70113),d=t.Symbol,c=d&&d.prototype;if(a&&V(d)&&(!("description"in c)||d().description!==void 0)){var m={},l=function(){function h(){var N=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=k(c,this)?new d(N):N===void 0?d():d(N);return N===""&&(m[b]=!0),b}return h}();p(l,d),l.prototype=c,c.constructor=l;var u=String(d("description detection"))==="Symbol(description detection)",s=o(c.valueOf),i=o(c.toString),v=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),C=o("".slice);y(c,"description",{configurable:!0,get:function(){function h(){var N=s(this);if(f(m,N))return"";var b=i(N),B=u?C(b,7,-1):g(b,v,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},18611:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(89458),o=n(26602),f=n(75130),V=n(80353),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function y(p){var d=o(p);if(t(k,d))return k[d];var c=a("Symbol")(d);return k[d]=c,S[c]=d,c}return y}()})},86042:function(L,r,n){"use strict";var e=n(15388);e("hasInstance")},93267:function(L,r,n){"use strict";var e=n(15388);e("isConcatSpreadable")},41664:function(L,r,n){"use strict";var e=n(15388);e("iterator")},99414:function(L,r,n){"use strict";n(9056),n(18611),n(30661),n(12183),n(93146)},30661:function(L,r,n){"use strict";var e=n(77549),a=n(89458),t=n(74352),o=n(62518),f=n(75130),V=n(80353),k=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{keyFor:function(){function S(y){if(!t(y))throw new TypeError(o(y)+" is not a symbol");if(a(k,y))return k[y]}return S}()})},48965:function(L,r,n){"use strict";var e=n(15388);e("match")},44844:function(L,r,n){"use strict";var e=n(15388);e("replace")},25030:function(L,r,n){"use strict";var e=n(15388);e("search")},96454:function(L,r,n){"use strict";var e=n(15388);e("species")},77564:function(L,r,n){"use strict";var e=n(15388);e("split")},44875:function(L,r,n){"use strict";var e=n(15388),a=n(75429);e("toPrimitive"),a()},77904:function(L,r,n){"use strict";var e=n(40164),a=n(15388),t=n(94234);a("toStringTag"),t(e("Symbol"),"Symbol")},35723:function(L,r,n){"use strict";var e=n(15388);e("unscopables")},84805:function(L,r,n){"use strict";var e=n(18161),a=n(72951),t=n(42320),o=e(t),f=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function k(S,y){return o(f(this),S,y,arguments.length>2?arguments[2]:void 0)}return k}())},79305:function(L,r,n){"use strict";var e=n(72951),a=n(67480).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},71573:function(L,r,n){"use strict";var e=n(72951),a=n(59942),t=n(757),o=n(27806),f=n(62696),V=n(18161),k=n(41746),S=e.aTypedArray,y=e.exportTypedArrayMethod,p=V("".slice),d=k(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});y("fill",function(){function c(m){var l=arguments.length;S(this);var u=p(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),d)},47910:function(L,r,n){"use strict";var e=n(72951),a=n(67480).filter,t=n(80936),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function V(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return V}())},99662:function(L,r,n){"use strict";var e=n(72951),a=n(67480).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},48447:function(L,r,n){"use strict";var e=n(72951),a=n(67480).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68265:function(L,r,n){"use strict";var e=n(12218);e("Float32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},36030:function(L,r,n){"use strict";var e=n(12218);e("Float64",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},57371:function(L,r,n){"use strict";var e=n(72951),a=n(67480).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68220:function(L,r,n){"use strict";var e=n(66220),a=n(72951).exportTypedArrayStaticMethod,t=n(7996);a("from",t,e)},15745:function(L,r,n){"use strict";var e=n(72951),a=n(64210).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},43398:function(L,r,n){"use strict";var e=n(72951),a=n(64210).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},25888:function(L,r,n){"use strict";var e=n(12218);e("Int16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},35718:function(L,r,n){"use strict";var e=n(12218);e("Int32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},32791:function(L,r,n){"use strict";var e=n(12218);e("Int8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97722:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(72951),f=n(65809),V=n(66266),k=V("iterator"),S=e.Uint8Array,y=t(f.values),p=t(f.keys),d=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,l=S&&S.prototype,u=!a(function(){l[k].call([1])}),s=!!l&&l.values&&l[k]===l.values&&l.values.name==="values",i=function(){function v(){return y(c(this))}return v}();m("entries",function(){function v(){return d(c(this))}return v}(),u),m("keys",function(){function v(){return p(c(this))}return v}(),u),m("values",i,u||!s,{name:"values"}),m(k,i,u||!s,{name:"values"})},79088:function(L,r,n){"use strict";var e=n(72951),a=n(18161),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function V(k){return f(t(this),k)}return V}())},6075:function(L,r,n){"use strict";var e=n(72951),a=n(70918),t=n(16934),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function V(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return V}())},46896:function(L,r,n){"use strict";var e=n(72951),a=n(67480).map,t=n(489),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function V(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return V}())},47145:function(L,r,n){"use strict";var e=n(72951),a=n(66220),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var V=0,k=arguments.length,S=new(t(this))(k);k>V;)S[V]=arguments[V++];return S}return f}(),a)},349:function(L,r,n){"use strict";var e=n(72951),a=n(98405).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},72606:function(L,r,n){"use strict";var e=n(72951),a=n(98405).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},28292:function(L,r,n){"use strict";var e=n(72951),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var V=this,k=a(V).length,S=o(k/2),y=0,p;y1?arguments[1]:void 0,1),g=V(i);if(l)return a(d,this,g,v);var C=this.length,h=o(g),N=0;if(h+v>C)throw new S("Wrong length");for(;Nm;)u[m]=d[m++];return u}return S}(),k)},74188:function(L,r,n){"use strict";var e=n(72951),a=n(67480).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},81976:function(L,r,n){"use strict";var e=n(40224),a=n(85067),t=n(41746),o=n(97361),f=n(44815),V=n(72951),k=n(49847),S=n(56605),y=n(82709),p=n(53125),d=V.aTypedArray,c=V.exportTypedArrayMethod,m=e.Uint16Array,l=m&&a(m.prototype.sort),u=!!l&&!(t(function(){l(new m(2),null)})&&t(function(){l(new m(2),{})})),s=!!l&&!t(function(){if(y)return y<74;if(k)return k<67;if(S)return!0;if(p)return p<602;var v=new m(516),g=Array(516),C,h;for(C=0;C<516;C++)h=C%4,v[C]=515-C,g[C]=C-2*h+3;for(l(v,function(N,b){return(N/4|0)-(b/4|0)}),C=0;C<516;C++)if(v[C]!==g[C])return!0}),i=function(g){return function(C,h){return g!==void 0?+g(C,h)||0:h!==h?-1:C!==C?1:C===0&&h===0?1/C>0&&1/h<0?1:-1:C>h}};c("sort",function(){function v(g){return g!==void 0&&o(g),s?l(this,g):f(d(this),i(g))}return v}(),!s||u)},78651:function(L,r,n){"use strict";var e=n(72951),a=n(10475),t=n(74067),o=n(489),f=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function k(S,y){var p=f(this),d=p.length,c=t(S,d),m=o(p);return new m(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((y===void 0?d:t(y,d))-c))}return k}())},81664:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(72951),o=n(41746),f=n(77713),V=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,p=!!V&&o(function(){y.call(new V(1))}),d=o(function(){return[1,2].toLocaleString()!==new V([1,2]).toLocaleString()})||!o(function(){V.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(y,p?f(k(this)):k(this),f(arguments))}return c}(),d)},35579:function(L,r,n){"use strict";var e=n(72951).exportTypedArrayMethod,a=n(41746),t=n(40224),o=n(18161),f=t.Uint8Array,V=f&&f.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var y=V.toString!==k;e("toString",k,y)},99683:function(L,r,n){"use strict";var e=n(12218);e("Uint16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},80941:function(L,r,n){"use strict";var e=n(12218);e("Uint32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},45338:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},40737:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()},!0)},74283:function(L,r,n){"use strict";var e=n(56255),a=n(40224),t=n(18161),o=n(13648),f=n(29126),V=n(93439),k=n(32920),S=n(56831),y=n(35086).enforce,p=n(41746),d=n(90777),c=Object,m=Array.isArray,l=c.isExtensible,u=c.isFrozen,s=c.isSealed,i=c.freeze,v=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,C,h=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},N=V("WeakMap",h,k),b=N.prototype,B=t(b.set),I=function(){return e&&p(function(){var E=i([]);return B(new N,E,1),!u(E)})};if(d)if(g){C=k.getConstructor(h,"WeakMap",!0),f.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!l(E)){var M=y(this);return M.frozen||(M.frozen=new C),w(this,E)||M.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!l(E)){var M=y(this);return M.frozen||(M.frozen=new C),T(this,E)||M.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!l(E)){var M=y(this);return M.frozen||(M.frozen=new C),T(this,E)?A(this,E):M.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,M){if(S(E)&&!l(E)){var D=y(this);D.frozen||(D.frozen=new C),T(this,E)?B(this,E,M):D.frozen.set(E,M)}else B(this,E,M);return this}return x}()})}else I()&&o(b,{set:function(){function x(E,M){var D;return m(E)&&(u(E)?D=i:s(E)&&(D=v)),B(this,E,M),D&&D(E),this}return x}()})},84033:function(L,r,n){"use strict";n(74283)},82389:function(L,r,n){"use strict";var e=n(93439),a=n(32920);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},71863:function(L,r,n){"use strict";n(82389)},73993:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},55457:function(L,r,n){"use strict";n(73993),n(72532)},57399:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(27150),o=n(97361),f=n(22789),V=n(41746),k=n(14141),S=V(function(){return k&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function y(p){f(arguments.length,1),t(o(p))}return y}()})},72532:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).set,o=n(83827),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},48112:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},82274:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},65836:function(L,r,n){"use strict";n(48112),n(82274)},50719:function(L){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT diff --git a/tools/UpdatePaths/Scripts/21565_common_access_helpers.txt b/tools/UpdatePaths/Scripts/21565_common_access_helpers.txt index 9f60816638ad..741dec96420c 100644 --- a/tools/UpdatePaths/Scripts/21565_common_access_helpers.txt +++ b/tools/UpdatePaths/Scripts/21565_common_access_helpers.txt @@ -53,7 +53,7 @@ /obj/machinery/door/airlock/@SUBTYPES{req_access_txt="57"} : /obj/machinery/door/airlock/@SUBTYPES {@OLD;req_access_txt=@SKIP}, /obj/effect/mapping_helpers/airlock/access/all/command/hop /obj/machinery/door/airlock/@SUBTYPES{req_access_txt="58"} : /obj/machinery/door/airlock/@SUBTYPES {@OLD;req_access_txt=@SKIP}, /obj/effect/mapping_helpers/airlock/access/all/security/hos /obj/machinery/door/airlock/@SUBTYPES{req_access_txt="61"} : /obj/machinery/door/airlock/@SUBTYPES {@OLD;req_access_txt=@SKIP}, /obj/effect/mapping_helpers/airlock/access/all/engineering/tcoms -/obj/machinery/door/airlock/@SUBTYPES{req_access_txt="62"} : /obj/machinery/door/airlock/@SUBTYPES {@OLD;req_access_txt=@SKIP}, /obj/effect/mapping_helpers/airlock/access/all/command/expedition +/obj/machinery/door/airlock/@SUBTYPES{req_access_txt="62"} : /obj/machinery/door/airlock/@SUBTYPES {@OLD;req_access_txt=@SKIP}, /obj/effect/mapping_helpers/airlock/access/all/supply/expedition /obj/machinery/door/airlock/@SUBTYPES{req_access_txt="63"} : /obj/machinery/door/airlock/@SUBTYPES {@OLD;req_access_txt=@SKIP}, /obj/effect/mapping_helpers/airlock/access/all/security/doors /obj/machinery/door/airlock/@SUBTYPES{req_access_txt="64"} : /obj/machinery/door/airlock/@SUBTYPES {@OLD;req_access_txt=@SKIP}, /obj/effect/mapping_helpers/airlock/access/all/medical/psychology /obj/machinery/door/airlock/@SUBTYPES{req_access_txt="66"} : /obj/machinery/door/airlock/@SUBTYPES {@OLD;req_access_txt=@SKIP}, /obj/effect/mapping_helpers/airlock/access/all/medical/paramedic diff --git a/tools/UpdatePaths/Scripts/21681_areas.txt b/tools/UpdatePaths/Scripts/21681_areas.txt index 908a4a57909f..3a340a8c7339 100644 --- a/tools/UpdatePaths/Scripts/21681_areas.txt +++ b/tools/UpdatePaths/Scripts/21681_areas.txt @@ -162,7 +162,7 @@ /area/bridge/hall : /area/station/hallway/secondary/bridge{@OLD} -/area/expedition : /area/station/service/expedition +/area/expedition : /area/station/supply/expedition /area/security/@SUBTYPES : /area/station/security/@SUBTYPES{@OLD} /area/quartermaster/@SUBTYPES : /area/station/supply/@SUBTYPES{@OLD} diff --git a/tools/ci/check_map_sizes.py b/tools/ci/check_map_sizes.py new file mode 100644 index 000000000000..0f45b5177ae2 --- /dev/null +++ b/tools/ci/check_map_sizes.py @@ -0,0 +1,91 @@ +import glob +import os +import sys +import subprocess +import platform +import json +import time + +parent_directory = "_maps/**/*.dmm" + +MAX_X_SIZE = 255 +MAX_Y_SIZE = 255 +MAX_Z_SIZE = 1 + +how_to_fix_message = f"Please make sure maps are <= {MAX_X_SIZE}x{MAX_Y_SIZE}x{MAX_Z_SIZE}." + +def green(text): + return "\033[32m" + str(text) + "\033[0m" + +def red(text): + return "\033[31m" + str(text) + "\033[0m" + +def blue(text): + return "\033[34m" + str(text) + "\033[0m" + +def post_error(file, map_data, github_error_style): + if github_error_style: + print(f"::error file={file},title=Map Size::{file} is >{MAX_X_SIZE}x{MAX_Y_SIZE}x{MAX_Z_SIZE} (Found: {map_data['x']},{map_data['y']},{map_data['z']})!") + else: + print(f"- Failure: {red(file)} is is >{MAX_X_SIZE}x{MAX_Y_SIZE}x{MAX_Z_SIZE} (Found: {map_data['x']},{map_data['y']},{map_data['z']})") + +def do_dmmtools_call(file): + # Windows - hopefully local + exec_path = None + if platform.system() == 'Windows': + exec_path = "dmm-tools.exe" + # Linux - CI + else: + exec_path = "tools/github-actions/nanomap-renderer" + + exec_args = f"{exec_path} map-info \"{file}\"" + result = subprocess.run(exec_args, shell=True, capture_output=True, text=True) + + res_obj = json.loads(result.stdout) + + return_obj = { + "x": res_obj[file]["size"][0], + "y": res_obj[file]["size"][1], + "z": res_obj[file]["size"][2] + } + + return return_obj + +def main(): + start = time.time() + # simple way to check if we're running on github actions, or on a local machine + on_github = os.getenv("GITHUB_ACTIONS") == "true" + + maps_greater_than_allowed = [] + + map_count = 0 + + for map_file in glob.glob(parent_directory, recursive=True): + map_count += 1 + # Open the map in the nanomap dmm tools - it works + map_data = do_dmmtools_call(map_file) + + if map_data["x"] > MAX_X_SIZE or map_data["y"] > MAX_Y_SIZE or map_data["z"] > MAX_Z_SIZE: + maps_greater_than_allowed.append((map_file, map_data)) + + if len(maps_greater_than_allowed): + for error in maps_greater_than_allowed: + post_error(error[0], error[1], on_github) + + print(red(how_to_fix_message)) + + end = time.time() + print(f"\ncheck_map_sizes.py completed in {(end - start):.2f}s\n") + + sys.exit(1) + + else: + print(green(f"No oversized maps found (checked {map_count} maps).")) + + end = time.time() + print(f"\ncheck_map_sizes.py completed in {(end - start):.2f}s\n") + +if __name__ == "__main__": + main() + +