diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 12bb3ab6097..c5e57df7794 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -81,6 +81,7 @@ add: new lavaland elite mob - **bugfix:** если Вы исправили некий баг - **code_imp:** если имплементируете новое для билда, не меняя при этом ничего в самой игре. - **config:** если меняете перестановку конфигов или меняете работу SQL. (По этому поводу обращаться стоит с хосту) +- **map** если вы меняете только карту - **imageadd:** если просто поменяли спрайты, без затрагивания кода - **soundadd:** если просто добавили новые звуки, без затрагивания кода - **spellcheck:** если исправляете грамматику в коде. diff --git a/.gitignore b/.gitignore index 2de803a5dca..0a0cedc0107 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,5 @@ stddef.dm #Ignore cached sound files. /sound/tts_cache/**/* /sound/tts_scrambled/**/* +.vscode/launch.json +.gitignore diff --git a/_maps/map_files/Delta/delta.dmm b/_maps/map_files/Delta/delta.dmm index eaba878e5b2..1d8827891b7 100644 --- a/_maps/map_files/Delta/delta.dmm +++ b/_maps/map_files/Delta/delta.dmm @@ -446,8 +446,8 @@ "adj" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -816,11 +816,11 @@ /obj/machinery/atmospherics/pipe/manifold/hidden/supply, /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, /obj/effect/decal/cleanable{ + color = "yellow"; icon = 'icons/effects/crayondecal.dmi'; icon_state = "n"; - color = "yellow"; - pixel_y = 8; - pixel_x = -15 + pixel_x = -15; + pixel_y = 8 }, /turf/simulated/floor/glass/reinforced, /area/maintenance/fpmaint) @@ -851,9 +851,9 @@ /area/toxins/launch) "aiA" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 8 + dir = 8; + icon_state = "grass_edge_medium_corner" }, /turf/simulated/floor/plating, /area/maintenance/fpmaint) @@ -1262,9 +1262,9 @@ "amL" = ( /obj/structure/table/wood, /obj/item/reagent_containers/food/snacks/candy/gummybear/purple{ - pixel_y = 1; + name = "Jo"; pixel_x = 13; - name = "Jo" + pixel_y = 1 }, /obj/item/twohanded/required/kirbyplants{ pixel_y = 12; @@ -1444,9 +1444,9 @@ "aoe" = ( /obj/structure/plasticflaps, /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 4 + dir = 4; + icon_state = "grass_edge_medium_corner" }, /obj/machinery/door/poddoor/shutters/preopen{ dir = 1; @@ -1463,7 +1463,7 @@ dir = 8; icon_state = "darkbluecorners" }, -/area/construction/hallway) +/area/aisat/aihallway) "aon" = ( /obj/structure/table/wood, /obj/machinery/fishtank/bowl{ @@ -5245,8 +5245,8 @@ dir = 1 }, /obj/item/seeds/grass{ - pixel_y = 6; - pixel_x = -6 + pixel_x = -6; + pixel_y = 6 }, /turf/simulated/floor/plating, /area/maintenance/fpmaint) @@ -5306,8 +5306,8 @@ /area/solar/auxport) "aOL" = ( /turf/simulated/floor/plasteel{ - icon_state = "darkred"; - dir = 6 + dir = 6; + icon_state = "darkred" }, /area/hallway/secondary/entry/commercial) "aON" = ( @@ -5512,9 +5512,9 @@ "aPY" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 4 + dir = 4; + icon_state = "grass_edge_medium_corner" }, /obj/structure/cable{ icon_state = "1-2" @@ -5529,20 +5529,20 @@ /area/maintenance/fpmaint) "aQb" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium_corner" }, /obj/effect/decal/cleanable/dirt, /obj/item/trash/candy, /obj/effect/decal/cleanable{ + color = "yellow"; icon = 'icons/effects/crayondecal.dmi'; - icon_state = "c"; - color = "yellow" + icon_state = "c" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -6031,9 +6031,9 @@ /area/engineering/mechanic_workshop/hangar) "aTA" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 8; - color = "" + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dirt, /obj/item/trash/cheesie, @@ -6166,9 +6166,9 @@ /area/crew_quarters/kitchen) "aUv" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 8; - color = "" + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dirt, /obj/structure/cable{ @@ -6688,9 +6688,9 @@ req_access = list(12) }, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium" }, /obj/structure/cable{ icon_state = "1-2" @@ -7727,9 +7727,9 @@ /area/janitor) "bfc" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 4 + dir = 4; + icon_state = "grass_edge_medium_corner" }, /obj/structure/cable{ icon_state = "1-2" @@ -7742,8 +7742,8 @@ }, /obj/structure/disposalpipe/junction/reversed, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -9888,9 +9888,9 @@ /area/crew_quarters/serviceyard) "bsb" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 8 + dir = 8; + icon_state = "grass_edge_medium_corner" }, /obj/structure/cable{ d1 = 4; @@ -11143,8 +11143,8 @@ dir = 8 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -11154,8 +11154,8 @@ "bxr" = ( /obj/item/shard{ icon_state = "small"; - pixel_y = 9; - pixel_x = 5 + pixel_x = 5; + pixel_y = 9 }, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 9 @@ -11201,8 +11201,8 @@ "bxx" = ( /obj/item/paper/crumpled, /obj/item/trash/can{ - pixel_y = -6; - pixel_x = 6 + pixel_x = 6; + pixel_y = -6 }, /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ @@ -11725,8 +11725,8 @@ dir = 4 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -11869,14 +11869,14 @@ /area/hallway/secondary/entry/lounge) "bAn" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 8; - color = "" + icon_state = "grass_edge_medium" }, /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium_corner" }, /turf/simulated/floor/glass/reinforced, /area/maintenance/fpmaint) @@ -11884,8 +11884,8 @@ /obj/effect/decal/cleanable/dirt, /obj/effect/spawner/random_spawners/grille_50, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -12610,8 +12610,8 @@ icon_state = "pipe-c" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -12623,8 +12623,8 @@ }, /obj/item/camera_assembly, /obj/item/reagent_containers/food/drinks/drinkingglass{ - pixel_y = 18; - pixel_x = -8 + pixel_x = -8; + pixel_y = 18 }, /turf/simulated/floor/plating, /area/maintenance/trading) @@ -12872,7 +12872,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "bEr" = ( /obj/structure/window/reinforced, /obj/structure/window/reinforced{ @@ -14582,8 +14582,8 @@ /area/maintenance/bar) "bNK" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; - color = "" + color = ""; + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dust, /turf/simulated/floor/plating, @@ -14612,7 +14612,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "bNS" = ( /obj/machinery/door/firedoor, /obj/effect/decal/warning_stripes/yellow, @@ -15077,7 +15077,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "bPU" = ( /obj/machinery/atmospherics/pipe/simple/heat_exchanging{ dir = 4 @@ -15247,8 +15247,8 @@ dir = 8 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -15357,8 +15357,8 @@ /obj/structure/closet/cardboard, /obj/effect/spawner/lootdrop/maintenance, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -15542,7 +15542,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "bRF" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/power/emitter{ @@ -15587,7 +15587,7 @@ dir = 6; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "bRT" = ( /obj/structure/cable{ icon_state = "1-2" @@ -15788,14 +15788,14 @@ "bSM" = ( /obj/effect/decal/cleanable/dust, /obj/effect/decal/cleanable{ + color = "yellow"; icon = 'icons/effects/crayondecal.dmi'; icon_state = "l"; - color = "yellow"; pixel_x = -10 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -15874,9 +15874,9 @@ /area/aisat/maintenance) "bTv" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium_corner" }, /turf/simulated/wall, /area/maintenance/fpmaint) @@ -17927,9 +17927,9 @@ /area/maintenance/casino) "ccK" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 8; - color = "" + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden{ @@ -17941,8 +17941,8 @@ }, /obj/item/trash/raisins, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -17990,8 +17990,8 @@ dir = 4 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -18346,12 +18346,12 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/effect/decal/cleanable/dust, /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; - color = "" + color = ""; + icon_state = "grass_edge_medium_corner" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -18864,8 +18864,8 @@ /obj/effect/decal/cleanable/dirt, /obj/structure/reagent_dispensers/watertank, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -19393,9 +19393,9 @@ /area/space) "clp" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 4; - color = "" + icon_state = "grass_edge_medium" }, /obj/structure/disposalpipe/segment, /obj/structure/cable{ @@ -19406,8 +19406,8 @@ /obj/structure/rack, /obj/effect/spawner/lootdrop/maintenance/double, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -19608,8 +19608,8 @@ /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/unary/vent_scrubber/on, /turf/simulated/floor/plasteel{ - icon_state = "darkyellow"; - dir = 10 + dir = 10; + icon_state = "darkyellow" }, /area/maintenance/fpmaint) "cmi" = ( @@ -19736,8 +19736,8 @@ }, /obj/machinery/vending/plasmaresearch, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -19768,8 +19768,8 @@ /obj/item/stack/sheet/cardboard, /obj/effect/spawner/lootdrop/maintenance, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -19812,9 +19812,9 @@ "cno" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 6; - color = "" + icon_state = "grass_edge_medium" }, /obj/item/grown/bananapeel, /obj/item/trash/can{ @@ -19823,8 +19823,8 @@ /obj/item/trash/candy, /obj/effect/spawner/random_spawners/grille_13, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -21048,9 +21048,9 @@ }, /obj/machinery/door/airlock/maintenance, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 4; - color = "" + icon_state = "grass_edge_medium" }, /turf/simulated/floor/plating, /area/maintenance/fpmaint) @@ -21587,7 +21587,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "cwL" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 8 @@ -22401,16 +22401,16 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/effect/decal/cleanable/dust, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium" }, /obj/machinery/light/small{ dir = 4 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -22531,9 +22531,9 @@ /area/engineering/hardsuitstorage) "cAK" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 4; - color = "" + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dirt, /obj/structure/girder, @@ -22930,7 +22930,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "cCE" = ( /turf/simulated/wall/rust, /area/space) @@ -25361,8 +25361,8 @@ dir = 1 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -26218,8 +26218,8 @@ icon_state = "1-4" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -28027,7 +28027,6 @@ network = list("Engineering","SS13"); pixel_y = -22 }, -/obj/machinery/station_map/engineering/directional/west, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "yellow" @@ -28454,7 +28453,7 @@ dir = 9; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "cZU" = ( /obj/item/trash/pistachios, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -28509,7 +28508,7 @@ dir = 5; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "daj" = ( /obj/structure/window/reinforced{ dir = 8 @@ -29461,7 +29460,7 @@ dir = 1; icon_state = "darkbluecorners" }, -/area/construction/hallway) +/area/aisat/aihallway) "deB" = ( /obj/structure/cable{ icon_state = "1-2" @@ -29598,7 +29597,7 @@ dir = 4; icon_state = "darkbluecorners" }, -/area/construction/hallway) +/area/aisat/aihallway) "deX" = ( /obj/effect/decal/cleanable/dirt, /mob/living/simple_animal/moth, @@ -30203,7 +30202,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dhw" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -30545,7 +30544,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "diY" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -31169,7 +31168,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dlL" = ( /obj/structure/cable{ icon_state = "0-8" @@ -31378,8 +31377,8 @@ dir = 4 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -31398,7 +31397,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dmB" = ( /obj/machinery/access_button{ command = "cycle_exterior"; @@ -32257,7 +32256,7 @@ dir = 6; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "dpR" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 1 @@ -32466,13 +32465,13 @@ /area/crew_quarters/courtroom) "dre" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 5; - color = "" + icon_state = "grass_edge_medium" }, /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; - color = "" + color = ""; + icon_state = "grass_edge_medium_corner" }, /turf/simulated/floor/plating, /area/maintenance/fpmaint) @@ -32751,7 +32750,7 @@ dir = 10; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "dsz" = ( /obj/machinery/papershredder, /obj/machinery/newscaster{ @@ -32846,7 +32845,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "dsR" = ( /obj/item/radio/intercom{ pixel_x = -28 @@ -32935,7 +32934,7 @@ dir = 6; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "dte" = ( /obj/structure/table/wood, /obj/item/flashlight/lamp, @@ -33956,7 +33955,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dxT" = ( /obj/structure/cable{ icon_state = "1-2" @@ -34000,7 +33999,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dyn" = ( /obj/structure/cable{ icon_state = "0-4" @@ -34106,9 +34105,9 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 4; - color = "" + icon_state = "grass_edge_medium" }, /obj/machinery/light/small{ dir = 4 @@ -34625,8 +34624,8 @@ /obj/structure/flora/grass/jungle, /obj/item/seeds/grass, /obj/item/reagent_containers/glass/bottle/nutrient/rh{ - pixel_y = 18; - pixel_x = -10 + pixel_x = -10; + pixel_y = 18 }, /turf/simulated/floor/grass, /area/maintenance/fpmaint) @@ -37862,8 +37861,8 @@ /obj/effect/decal/cleanable/dirt, /obj/effect/decal/cleanable/dust, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -39398,9 +39397,9 @@ /area/crew_quarters/bar/atrium) "dWf" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 6; - color = "" + icon_state = "grass_edge_medium" }, /obj/structure/cable{ icon_state = "1-2" @@ -39538,9 +39537,9 @@ /area/crew_quarters/kitchen) "dWC" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dirt, /obj/structure/table/wood, @@ -39548,8 +39547,8 @@ dir = 1 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -40048,7 +40047,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dYd" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 9 @@ -40133,7 +40132,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dYz" = ( /obj/effect/decal/warning_stripes/south, /obj/machinery/atmospherics/pipe/simple/visible{ @@ -40319,7 +40318,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dZk" = ( /obj/structure/lattice/catwalk, /obj/structure/disposalpipe/segment{ @@ -42318,7 +42317,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "evo" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ @@ -43644,13 +43643,13 @@ /area/atmos) "eLR" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; - color = "" + color = ""; + icon_state = "grass_edge_medium" }, /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 8 + dir = 8; + icon_state = "grass_edge_medium_corner" }, /obj/item/shard{ icon_state = "medium"; @@ -43659,8 +43658,8 @@ }, /obj/effect/spawner/random_spawners/blood_5, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -43955,19 +43954,19 @@ /area/hallway/primary/central/sw) "eOd" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; - color = "" + color = ""; + icon_state = "grass_edge_medium" }, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dirt, /obj/effect/spawner/random_spawners/rodent, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -44379,7 +44378,7 @@ dir = 10; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "eTz" = ( /obj/structure/grille, /obj/effect/decal/cleanable/dirt, @@ -45862,7 +45861,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "fkX" = ( /obj/effect/decal/warning_stripes/east, /obj/machinery/atmospherics/unary/vent_scrubber/on{ @@ -45957,7 +45956,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "fmF" = ( /obj/effect/decal/warning_stripes/north, /obj/machinery/hologram/holopad, @@ -46572,8 +46571,8 @@ "fvs" = ( /obj/structure/table/wood, /obj/item/flashlight/lamp{ - pixel_y = 15; - pixel_x = -2 + pixel_x = -2; + pixel_y = 15 }, /obj/item/paper{ pixel_x = -5 @@ -47480,8 +47479,8 @@ /obj/effect/decal/cleanable/dirt, /obj/effect/turf_decal/bot, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -47784,13 +47783,13 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/effect/decal/cleanable/dust, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; color = ""; - dir = 10 + dir = 10; + icon_state = "grass_edge_medium" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -47831,7 +47830,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "fLz" = ( /obj/effect/spawner/window/reinforced, /obj/machinery/atmospherics/pipe/simple/visible/yellow{ @@ -48105,11 +48104,11 @@ dir = 8 }, /obj/effect/decal/cleanable{ + color = "yellow"; icon = 'icons/effects/crayondecal.dmi'; icon_state = "w"; - color = "yellow"; - pixel_y = 7; - pixel_x = -4 + pixel_x = -4; + pixel_y = 7 }, /turf/simulated/floor/glass/reinforced, /area/maintenance/fpmaint) @@ -48327,15 +48326,15 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/effect/decal/cleanable{ + color = "771919"; icon = 'icons/effects/crayondecal.dmi'; icon_state = "d"; - color = "771919"; pixel_x = 31 }, /obj/structure/grille/broken, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -48847,9 +48846,9 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/effect/decal/cleanable{ + color = "771919"; icon = 'icons/effects/crayondecal.dmi'; icon_state = "i"; - color = "771919"; pixel_x = 36 }, /obj/structure/grille, @@ -48896,9 +48895,9 @@ /area/crew_quarters/bar/atrium) "fXu" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 4; - color = "" + icon_state = "grass_edge_medium" }, /obj/structure/cable{ icon_state = "0-4" @@ -53181,7 +53180,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/construction/hallway) +/area/aisat/aihallway) "gXi" = ( /obj/effect/decal/warning_stripes/red/hollow, /obj/structure/rack{ @@ -53795,7 +53794,7 @@ name = "Escape Pod Airlock" }, /turf/simulated/floor/plating, -/area/construction/hallway) +/area/aisat/aihallway) "heZ" = ( /obj/structure/cable{ icon_state = "1-2" @@ -54128,8 +54127,8 @@ /obj/structure/bed, /obj/item/clothing/mask/gas, /obj/item/trash/can{ - pixel_y = -6; - pixel_x = 6 + pixel_x = 6; + pixel_y = -6 }, /obj/machinery/atmospherics/unary/vent_pump/on, /mob/living/simple_animal/moth, @@ -54980,8 +54979,8 @@ pixel_y = 17 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -58852,9 +58851,9 @@ /area/bridge) "irI" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 4 + dir = 4; + icon_state = "grass_edge_medium_corner" }, /obj/effect/spawner/random_spawners/rodent, /obj/structure/disposalpipe/segment, @@ -58864,13 +58863,13 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium_corner" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -60538,8 +60537,8 @@ /area/engineering/engine) "iNh" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; - color = "" + color = ""; + icon_state = "grass_edge_medium_corner" }, /obj/structure/cable{ icon_state = "1-2" @@ -61319,9 +61318,9 @@ /area/toxins/sm_test_chamber) "iXx" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dirt, /obj/machinery/light/small{ @@ -62112,8 +62111,8 @@ }, /obj/item/shard{ icon_state = "small"; - pixel_y = -13; - pixel_x = 5 + pixel_x = 5; + pixel_y = -13 }, /obj/effect/spawner/random_spawners/rodent, /obj/structure/statue/chickenstatue, @@ -63649,7 +63648,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "jxT" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/plasteel{ @@ -66737,7 +66736,7 @@ dir = 4; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "knb" = ( /obj/structure/disposalpipe/segment, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -68202,9 +68201,9 @@ /area/medical/research/restroom) "kHa" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 8 + dir = 8; + icon_state = "grass_edge_medium_corner" }, /obj/structure/cable{ icon_state = "1-2" @@ -71358,9 +71357,9 @@ /area/security/warden) "lyE" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 8 + dir = 8; + icon_state = "grass_edge_medium_corner" }, /obj/effect/decal/cleanable/dirt, /obj/machinery/portable_atmospherics/canister/air, @@ -71432,8 +71431,8 @@ id = "comdel" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -71817,8 +71816,8 @@ /obj/effect/decal/cleanable/dust, /obj/item/chair, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -74828,7 +74827,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "mpt" = ( /obj/structure/cable{ icon_state = "4-8" @@ -75084,7 +75083,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "mss" = ( /obj/item/chair/wood/wings{ dir = 1 @@ -75289,7 +75288,7 @@ dir = 5; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "muV" = ( /obj/machinery/door_control{ id = "RnDChem"; @@ -76266,14 +76265,14 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/effect/decal/cleanable{ + color = "771919"; icon = 'icons/effects/crayondecal.dmi'; icon_state = "e"; - color = "771919"; pixel_x = 35 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -80016,9 +80015,9 @@ /area/security/prison/cell_block/A) "nxF" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 9; - color = "" + icon_state = "grass_edge_medium" }, /obj/structure/disposalpipe/segment{ dir = 4 @@ -80335,8 +80334,8 @@ }, /obj/effect/spawner/lootdrop/maintenance, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -82118,7 +82117,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "nWY" = ( /obj/machinery/atmospherics/unary/portables_connector{ dir = 1 @@ -86823,9 +86822,9 @@ /area/crew_quarters/theatre) "pcJ" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dirt, /obj/structure/table/wood, @@ -87437,7 +87436,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "pjD" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 8 @@ -87676,12 +87675,12 @@ /obj/structure/rack, /obj/effect/spawner/lootdrop/maintenance, /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; - color = "" + color = ""; + icon_state = "grass_edge_medium_corner" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -88326,9 +88325,9 @@ /obj/effect/decal/cleanable/dirt, /obj/structure/girder, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 8; - color = "" + icon_state = "grass_edge_medium" }, /turf/simulated/floor/plating, /area/maintenance/fpmaint) @@ -88429,7 +88428,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "puB" = ( /turf/simulated/wall/r_wall, /area/toxins/storage) @@ -89847,8 +89846,8 @@ /obj/effect/decal/cleanable/dirt, /obj/item/vending_refill/youtool, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -90365,8 +90364,8 @@ "pOX" = ( /obj/effect/decal/cleanable/dust, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -90384,6 +90383,13 @@ icon_state = "dark" }, /area/crew_quarters/serviceyard) +"pPA" = ( +/obj/machinery/station_map/engineering/directional/north, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "yellow" + }, +/area/engineering/break_room) "pPB" = ( /obj/structure/safe, /obj/item/soap, @@ -90759,7 +90765,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "pUL" = ( /obj/effect/spawner/window/reinforced, /obj/structure/cable{ @@ -95112,8 +95118,8 @@ dir = 1 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -97102,8 +97108,8 @@ /obj/structure/table/wood, /obj/item/book/random, /turf/simulated/floor/plasteel{ - icon_state = "darkred"; - dir = 10 + dir = 10; + icon_state = "darkred" }, /area/hallway/secondary/entry/commercial) "rpj" = ( @@ -97398,7 +97404,7 @@ dir = 9; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "rtb" = ( /obj/structure/closet/coffin, /obj/effect/decal/warning_stripes/yellow/hollow, @@ -99535,6 +99541,15 @@ icon_state = "whitepurple" }, /area/toxins/lab) +"rTM" = ( +/obj/structure/window/reinforced, +/obj/structure/window/reinforced{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/aisat/aihallway) "rTW" = ( /obj/effect/spawner/window/reinforced, /obj/machinery/door/poddoor/preopen{ @@ -99928,8 +99943,8 @@ dir = 1 }, /obj/item/trash/can{ - pixel_y = -6; - pixel_x = 6 + pixel_x = 6; + pixel_y = -6 }, /turf/simulated/floor/plating, /area/maintenance/trading) @@ -102235,15 +102250,15 @@ "sAw" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; - color = "" + color = ""; + icon_state = "grass_edge_medium" }, /obj/structure/cable{ icon_state = "1-2" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -102264,7 +102279,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "sAK" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -102346,13 +102361,13 @@ /area/toxins/xenobiology) "sBE" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; - color = "" + color = ""; + icon_state = "grass_edge_medium" }, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dirt, /obj/item/reagent_containers/glass/bottle/nutrient/l4z{ @@ -102706,7 +102721,7 @@ dir = 5; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "sGl" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -105862,7 +105877,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "tuS" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/light_switch{ @@ -107778,7 +107793,7 @@ "tOj" = ( /obj/effect/spawner/window/reinforced, /turf/simulated/floor/plating, -/area/construction/hallway) +/area/aisat/aihallway) "tOp" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -108756,8 +108771,8 @@ }, /obj/random/tool, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -109254,7 +109269,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "ufo" = ( /obj/structure/cable{ icon_state = "1-2" @@ -110218,9 +110233,9 @@ /area/maintenance/kitchen) "ura" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 8 + dir = 8; + icon_state = "grass_edge_medium_corner" }, /obj/effect/decal/cleanable/dirt, /obj/machinery/constructable_frame/machine_frame, @@ -110241,7 +110256,7 @@ dir = 6; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "urC" = ( /obj/machinery/atmospherics/pipe/simple/heat_exchanging/junction, /turf/simulated/wall/r_wall/coated, @@ -110511,8 +110526,8 @@ "uvd" = ( /obj/random/tool, /turf/simulated/floor/plasteel{ - icon_state = "darkyellow"; - dir = 6 + dir = 6; + icon_state = "darkyellow" }, /area/maintenance/fpmaint) "uve" = ( @@ -110648,7 +110663,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "uwZ" = ( /obj/machinery/ai_slipper, /obj/structure/cable{ @@ -111271,7 +111286,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "uEQ" = ( /turf/simulated/floor/plasteel{ dir = 4; @@ -111725,9 +111740,9 @@ /area/maintenance/starboard) "uJA" = ( /obj/effect/turf_decal/siding/green/corner{ - icon_state = "grass_edge_medium_corner"; color = ""; - dir = 4 + dir = 4; + icon_state = "grass_edge_medium_corner" }, /obj/structure/cable{ d1 = 4; @@ -112024,7 +112039,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "uNn" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -112106,7 +112121,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/construction/hallway) +/area/aisat/aihallway) "uOt" = ( /turf/simulated/floor/plasteel{ dir = 10; @@ -112320,6 +112335,10 @@ /obj/effect/decal/warning_stripes/yellow/hollow, /turf/simulated/floor/plasteel, /area/storage/primary) +"uQJ" = ( +/obj/machinery/status_display, +/turf/simulated/wall, +/area/engineering/break_room) "uQL" = ( /obj/machinery/camera{ c_tag = "Robotics Lab"; @@ -112538,7 +112557,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/construction/hallway) +/area/aisat/aihallway) "uTj" = ( /obj/structure/table/glass, /obj/effect/decal/warning_stripes/north, @@ -112984,7 +113003,7 @@ dir = 9; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "uYT" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -113027,7 +113046,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "uZl" = ( /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, /obj/machinery/atmospherics/pipe/manifold/hidden/supply, @@ -113312,8 +113331,8 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/effect/decal/cleanable/dust, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -113403,7 +113422,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "vfb" = ( /obj/machinery/door/airlock/security/glass{ name = "Briefing Room"; @@ -114309,7 +114328,7 @@ dir = 10; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "vpK" = ( /obj/structure/lattice/catwalk, /obj/machinery/atmospherics/pipe/simple/visible/yellow{ @@ -115983,8 +116002,8 @@ /area/security/securehallway) "vJo" = ( /obj/item/storage/box/large{ - pixel_y = 17; - pixel_x = 9 + pixel_x = 9; + pixel_y = 17 }, /obj/item/storage/fancy/glowsticks_box{ pixel_x = -17 @@ -115995,8 +116014,8 @@ /obj/effect/spawner/lootdrop/maintenance, /obj/structure/table/wood, /turf/simulated/floor/plasteel{ - icon_state = "neutral"; - dir = 6 + dir = 6; + icon_state = "neutral" }, /area/maintenance/trading) "vJr" = ( @@ -117054,9 +117073,9 @@ "vVH" = ( /obj/effect/decal/cleanable/dust, /obj/effect/decal/cleanable{ + color = "yellow"; icon = 'icons/effects/crayondecal.dmi'; icon_state = "o"; - color = "yellow"; pixel_x = -14 }, /obj/item/clothing/mask/gas/clown_hat/pennywise{ @@ -117064,8 +117083,8 @@ pixel_y = -10 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -117538,7 +117557,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "wcr" = ( /obj/structure/lattice/catwalk, /obj/machinery/access_button{ @@ -117849,7 +117868,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "whc" = ( /obj/structure/cable{ icon_state = "4-8" @@ -118821,7 +118840,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "wsN" = ( /obj/structure/window/reinforced{ dir = 4 @@ -118952,8 +118971,8 @@ "wud" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ - icon_state = "neutral"; - dir = 10 + dir = 10; + icon_state = "neutral" }, /area/maintenance/trading) "wuf" = ( @@ -120198,8 +120217,8 @@ /obj/effect/spawner/random_spawners/rodent, /obj/effect/decal/cleanable/dust, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -120300,7 +120319,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "wKB" = ( /obj/effect/spawner/window/reinforced, /obj/structure/cable{ @@ -120427,7 +120446,7 @@ dir = 8; icon_state = "vault" }, -/area/construction/hallway) +/area/aisat/aihallway) "wLN" = ( /obj/structure/bed, /obj/effect/decal/cleanable/dirt, @@ -120869,7 +120888,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluecorners" }, -/area/construction/hallway) +/area/aisat/aihallway) "wRH" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -121037,12 +121056,12 @@ /area/security/permabrig) "wTO" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; - color = "" + color = ""; + icon_state = "grass_edge_medium" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -121191,7 +121210,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "wVP" = ( /obj/structure/falsewall, /turf/simulated/floor/plating, @@ -121264,7 +121283,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/construction/hallway) +/area/aisat/aihallway) "wWA" = ( /obj/structure/table/reinforced, /obj/item/stack/packageWrap, @@ -122332,8 +122351,8 @@ pixel_x = -32 }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -122355,7 +122374,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "xkm" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -123555,7 +123574,7 @@ dir = 6; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "xwJ" = ( /obj/structure/cable/yellow{ icon_state = "4-8" @@ -124061,7 +124080,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "xBS" = ( /obj/effect/decal/warning_stripes/northeastcorner, /obj/machinery/atmospherics/unary/vent_pump/on{ @@ -125802,7 +125821,7 @@ dir = 8; icon_state = "vault" }, -/area/construction/hallway) +/area/aisat/aihallway) "xTh" = ( /obj/machinery/camera{ c_tag = "Server Room"; @@ -125972,7 +125991,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "xUL" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/spawner/random_spawners/cobweb_left_frequent, @@ -126015,9 +126034,9 @@ /area/maintenance/library) "xVe" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium" }, /obj/structure/chair{ dir = 4 @@ -126046,18 +126065,18 @@ /area/atmos) "xVl" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; - color = "" + color = ""; + icon_state = "grass_edge_medium" }, /obj/effect/decal/cleanable/dirt, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; color = ""; - dir = 1 + dir = 1; + icon_state = "grass_edge_medium" }, /turf/simulated/floor/plasteel{ - icon_state = "dark"; dir = 5; + icon_state = "dark"; tag = "icon-vault (NORTHEAST)" }, /area/maintenance/fpmaint) @@ -126337,9 +126356,9 @@ /area/ntrep) "xYs" = ( /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 4; - color = "" + icon_state = "grass_edge_medium" }, /obj/structure/cable{ icon_state = "2-4" @@ -126619,7 +126638,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "ybJ" = ( /obj/machinery/power/emitter{ dir = 8 @@ -127280,9 +127299,9 @@ "yhV" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/turf_decal/siding/green{ - icon_state = "grass_edge_medium"; + color = ""; dir = 4; - color = "" + icon_state = "grass_edge_medium" }, /obj/structure/closet, /obj/effect/decal/cleanable/cobweb2, @@ -127360,7 +127379,7 @@ dir = 5; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "yiC" = ( /obj/structure/cable{ icon_state = "1-2" @@ -127434,7 +127453,7 @@ dir = 10; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "yjA" = ( /obj/structure/particle_accelerator/particle_emitter/left{ dir = 8 @@ -133508,7 +133527,7 @@ aaq aaq dZq cgA -sOt +rTM dtv wKp iGo @@ -133524,7 +133543,7 @@ iGo wKp iGo daj -sOt +rTM bUT dZq aaq @@ -133765,7 +133784,7 @@ aaq aaq dZq oKs -sOt +rTM bXR coE coE @@ -133781,7 +133800,7 @@ coE coE coE oKs -sOt +rTM bXR dZq aaq @@ -134022,7 +134041,7 @@ aaq aaq coE cgA -sOt +rTM bUT aaq coE @@ -134038,7 +134057,7 @@ coE aaq coE cgA -sOt +rTM bUT dZq dZq @@ -134279,7 +134298,7 @@ aaq aaq dZq cgA -sOt +rTM bUT aaq coE @@ -134295,7 +134314,7 @@ coE aaq coE cgA -sOt +rTM dsq dse dxZ @@ -134536,7 +134555,7 @@ coE dZq dZq oKs -sOt +rTM bXR coE coE @@ -134787,13 +134806,13 @@ iGo iGo iGo oJo -sOt +rTM dsq dse dse dxZ cZL -sOt +rTM tSb aaq vtK @@ -134816,7 +134835,7 @@ iGo wKp iGo daj -sOt +rTM bUT dZq aaq @@ -135073,7 +135092,7 @@ coE coE coE oKs -sOt +rTM bXR dZq aaq @@ -135844,7 +135863,7 @@ dEP kNO coE oKs -sOt +rTM tqu coE dZq @@ -138414,7 +138433,7 @@ dEP tKL coE oKs -sOt +rTM wVe coE dZq @@ -138928,7 +138947,7 @@ coE aaq coE cgA -sOt +rTM bUT coE aaq @@ -139185,7 +139204,7 @@ coE coE coE oKs -sOt +rTM bXR dZq aaq @@ -139419,7 +139438,7 @@ wKp wKp iGo daj -sOt +rTM bXR aaq vxh @@ -139442,7 +139461,7 @@ dxZ dse dxZ hDH -sOt +rTM bUT dZq aaq @@ -139676,7 +139695,7 @@ dZq dZq coE oKs -sOt +rTM bXR coE coE @@ -139933,7 +139952,7 @@ aaq aaq coE cgA -sOt +rTM bUT aaq coE @@ -139949,7 +139968,7 @@ coE aaq coE cgA -sOt +rTM uWl wKp iGo @@ -140190,7 +140209,7 @@ aaq aaq dZq cgA -sOt +rTM bUT aaq coE @@ -140206,7 +140225,7 @@ coE aaq coE cgA -sOt +rTM bUT dZq dZq @@ -140447,7 +140466,7 @@ aaq aaq dZq oKs -sOt +rTM bXR coE coE @@ -140463,7 +140482,7 @@ coE coE coE oKs -sOt +rTM bXR dZq aaq @@ -140704,7 +140723,7 @@ aaq aaq dZq cgA -sOt +rTM lwR dse dxZ @@ -140720,7 +140739,7 @@ dxZ dse dxZ hDH -sOt +rTM bUT dZq aaq @@ -150214,7 +150233,7 @@ kLP rZU sMk bPK -lsT +uQJ uOE pqZ cTM @@ -152268,8 +152287,8 @@ frD frD frD frD -jJA -cKe +frD +pPA ofQ oPZ aLM diff --git a/_maps/map_files/event/Station/coldcolony.dmm b/_maps/map_files/event/Station/coldcolony.dmm index 4242930539c..7b28ab19dd6 100644 --- a/_maps/map_files/event/Station/coldcolony.dmm +++ b/_maps/map_files/event/Station/coldcolony.dmm @@ -11267,9 +11267,6 @@ icon_state = "neutralfull" }, /area/quartermaster/office) -"ejn" = ( -/turf/simulated/wall/indestructible/reinforced, -/area/medical/virology/lab) "ejr" = ( /obj/machinery/atmospherics/pipe/simple/visible/green{ desc = "Труба проводящая газ по фильтрам, где он перемещается в камеры хранения"; @@ -16759,7 +16756,7 @@ /area/crew_quarters/mrchangs) "gsD" = ( /obj/machinery/status_display, -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/bridge) "gsG" = ( /turf/simulated/wall, @@ -17622,7 +17619,7 @@ }, /area/security/processing) "gKk" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/tcommsat/chamber) "gKn" = ( /turf/simulated/floor/plasteel{ @@ -21060,7 +21057,7 @@ }, /area/coldcolony/ruin/abandoned_garage) "icb" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/maintenance/maintcentral) "icn" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ @@ -27480,7 +27477,7 @@ }, /area/crew_quarters/chief) "kua" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/medical/cmo) "kue" = ( /obj/structure/table, @@ -27508,7 +27505,7 @@ }, /area/hallway/primary/central/north) "kuG" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/crew_quarters/heads/hop) "kuQ" = ( /obj/effect/decal/cleanable/dirt, @@ -29542,7 +29539,7 @@ /area/assembly/robotics) "ljY" = ( /obj/machinery/status_display, -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/crew_quarters/heads/hop) "lkm" = ( /obj/effect/landmark/start/engineer, @@ -35487,6 +35484,10 @@ }, /area/hydroponics) "nCl" = ( +/obj/machinery/alarm{ + dir = 8; + pixel_x = 22 + }, /turf/simulated/floor/wood/fancy/light{ icon_state = "light-fancy-wood-broken2" }, @@ -36817,7 +36818,7 @@ /turf/simulated/floor/plasteel, /area/crew_quarters/locker) "obp" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/blueshield) "obw" = ( /obj/machinery/computer/arcade/battle, @@ -39929,9 +39930,6 @@ temperature = 180 }, /area/ruin/unpowered) -"pjc" = ( -/turf/simulated/wall/indestructible/reinforced, -/area/ntrep) "pjd" = ( /obj/structure/chair/office/dark{ dir = 4 @@ -45515,7 +45513,7 @@ /turf/simulated/floor/plating, /area/medical/research/shallway) "rjr" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/bridge/meeting_room) "rjt" = ( /obj/effect/decal/cleanable/dirt, @@ -52760,7 +52758,7 @@ }, /area/hallway/primary/central/north) "tYA" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/crew_quarters/captain/bedroom) "tYF" = ( /obj/structure/table, @@ -55053,7 +55051,7 @@ }, /area/security/permabrig) "uTD" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/crew_quarters/captain) "uTG" = ( /obj/machinery/suit_storage_unit/lavaland, @@ -55344,7 +55342,7 @@ /turf/simulated/floor/carpet/black, /area/bridge/meeting_room) "uYL" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/bridge/vip) "uYP" = ( /obj/effect/spawner/random_spawners/rodent, @@ -56226,7 +56224,7 @@ /turf/simulated/floor/plating, /area/maintenance/fore) "voL" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/hallway/primary/fore) "vpd" = ( /obj/machinery/door/window/eastleft{ @@ -58424,7 +58422,7 @@ }, /area/medical/medbay2) "wdw" = ( -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/bridge) "wdY" = ( /obj/structure/sign/poster/contraband/random{ @@ -61333,7 +61331,7 @@ /obj/structure/sign/comand{ name = "\improper COMMAND" }, -/turf/simulated/wall/indestructible/reinforced, +/turf/simulated/wall/r_wall, /area/hallway/primary/fore) "xhw" = ( /obj/effect/turf_decal/siding/wood{ @@ -112104,7 +112102,7 @@ whV bhu gnj qPW -ejn +whV dGf tBa kWx @@ -112406,7 +112404,7 @@ whV jVh nIv tgo -ejn +whV nJW rmU jzD @@ -129563,14 +129561,14 @@ uYI diR anq jgP -pjc +lXT lXT rcs grM jlD wNP lXT -pjc +lXT uYw icb icb @@ -129865,14 +129863,14 @@ rEr waq hKw uhC -pjc +lXT bFq nbY xQl fCV sKl xHG -pjc +lXT dOU qAX icb @@ -130174,7 +130172,7 @@ nxK aml nLc aUo -pjc +lXT gZt oab icb @@ -130469,14 +130467,14 @@ gKn gKn hKw reE -pjc +lXT arv jqy qii cRn fwP ewv -pjc +lXT gZt keU icb @@ -130771,14 +130769,14 @@ qmI wLm kBV oaw -pjc +lXT fwP fwP dpQ fwP fwP tDC -pjc +lXT pAH gZt icb @@ -131073,14 +131071,14 @@ emZ emZ kgd dFy -pjc +lXT vGX sDh sDO fss neF wsH -pjc +lXT cSj uYw icb @@ -131375,14 +131373,14 @@ efi emZ mJs nbX -pjc -pjc -pjc -pjc -pjc -pjc -pjc -pjc +lXT +lXT +lXT +lXT +lXT +lXT +lXT +lXT aFw dOU icb diff --git a/_maps/map_files/event/Station/delta_old.dmm b/_maps/map_files/event/Station/delta_old.dmm index 3e47c7a2aaf..3a156f1f907 100644 --- a/_maps/map_files/event/Station/delta_old.dmm +++ b/_maps/map_files/event/Station/delta_old.dmm @@ -940,7 +940,7 @@ dir = 8; icon_state = "darkbluecorners" }, -/area/construction/hallway) +/area/aisat/aihallway) "aon" = ( /obj/structure/table/wood, /obj/item/camera, @@ -12015,7 +12015,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "bEr" = ( /obj/structure/window/reinforced, /obj/structure/window/reinforced{ @@ -13713,7 +13713,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "bNS" = ( /obj/machinery/door/firedoor, /obj/effect/decal/warning_stripes/yellow, @@ -14154,7 +14154,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "bPU" = ( /obj/machinery/atmospherics/pipe/simple/heat_exchanging{ dir = 4 @@ -14587,7 +14587,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "bRF" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/power/emitter{ @@ -14617,7 +14617,7 @@ dir = 6; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "bRT" = ( /obj/structure/cable{ icon_state = "1-2" @@ -17034,7 +17034,7 @@ /obj/structure/lattice, /obj/machinery/light/small, /turf/space, -/area/aisat) +/area/aisat/aihallway) "ccC" = ( /obj/machinery/status_display{ pixel_y = 32 @@ -21093,7 +21093,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "cwL" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 8 @@ -22504,7 +22504,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "cCE" = ( /turf/simulated/wall/rust, /area/space/nearstation) @@ -23877,7 +23877,7 @@ network = list("SS13","MiniSat") }, /turf/space, -/area/aisat) +/area/aisat/aihallway) "cHJ" = ( /obj/structure/cable{ icon_state = "4-8" @@ -28246,7 +28246,7 @@ dir = 9; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "cZS" = ( /obj/structure/cable{ icon_state = "4-8" @@ -28320,7 +28320,7 @@ dir = 5; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "daj" = ( /obj/structure/window/reinforced{ dir = 8 @@ -29252,7 +29252,7 @@ dir = 1; icon_state = "darkbluecorners" }, -/area/construction/hallway) +/area/aisat/aihallway) "deB" = ( /obj/structure/cable{ icon_state = "1-2" @@ -29440,7 +29440,7 @@ dir = 4; icon_state = "darkbluecorners" }, -/area/construction/hallway) +/area/aisat/aihallway) "deX" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/wood, @@ -29524,7 +29524,7 @@ dir = 5; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "dfr" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -30087,7 +30087,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dhw" = ( /obj/structure/table/wood, /obj/machinery/light{ @@ -30423,7 +30423,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "diX" = ( /obj/machinery/computer/aiupload/cyborg, /obj/item/radio/intercom/private{ @@ -31084,7 +31084,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dlL" = ( /obj/machinery/reagentgrinder, /obj/structure/table/reinforced, @@ -31324,7 +31324,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dmz" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -32249,7 +32249,7 @@ dir = 6; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "dpR" = ( /obj/machinery/door/airlock/public{ name = "Bar"; @@ -32838,7 +32838,7 @@ dir = 10; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "dsx" = ( /obj/item/twohanded/required/kirbyplants, /turf/simulated/floor/plasteel{ @@ -32936,7 +32936,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "dsR" = ( /obj/item/radio/intercom{ pixel_x = -32 @@ -33033,7 +33033,7 @@ dir = 6; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "dte" = ( /obj/structure/table/wood, /obj/item/flashlight/lamp, @@ -34022,7 +34022,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dxT" = ( /obj/structure/cable{ icon_state = "1-2" @@ -34074,7 +34074,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dyn" = ( /obj/structure/cable{ icon_state = "0-4" @@ -35603,7 +35603,7 @@ network = list("SS13","MiniSat") }, /turf/space, -/area/maintenance/ai) +/area/aisat/aihallway) "dFa" = ( /obj/structure/table/wood, /obj/item/paper_bin, @@ -38716,16 +38716,6 @@ icon_state = "dark" }, /area/security/permabrig) -"dSb" = ( -/obj/structure/window/reinforced{ - dir = 8 - }, -/obj/structure/lattice, -/obj/machinery/light/small{ - dir = 4 - }, -/turf/space, -/area/aisat) "dSc" = ( /obj/structure/window/reinforced, /obj/structure/closet/coffin, @@ -39274,16 +39264,6 @@ icon_state = "neutralcorner" }, /area/crew_quarters/locker) -"dTT" = ( -/obj/structure/window/reinforced{ - dir = 4 - }, -/obj/structure/lattice, -/obj/machinery/light/small{ - dir = 8 - }, -/turf/space, -/area/aisat) "dTW" = ( /obj/effect/decal/warning_stripes/yellow/hollow, /obj/structure/chair, @@ -40482,7 +40462,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dYc" = ( /obj/machinery/camera{ c_tag = "Central Ring Hallway West 4"; @@ -40624,7 +40604,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dYz" = ( /obj/effect/decal/warning_stripes/south, /obj/machinery/atmospherics/pipe/simple/visible{ @@ -40829,7 +40809,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "dZk" = ( /obj/structure/lattice/catwalk, /obj/structure/disposalpipe/segment{ @@ -42531,7 +42511,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "evo" = ( /obj/structure/chair/wood{ dir = 1 @@ -44297,7 +44277,7 @@ dir = 10; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "eTz" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -45520,7 +45500,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "fkX" = ( /obj/effect/decal/warning_stripes/east, /obj/machinery/atmospherics/unary/vent_scrubber{ @@ -45610,7 +45590,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "fmF" = ( /obj/effect/decal/warning_stripes/north, /obj/machinery/hologram/holopad, @@ -47237,7 +47217,7 @@ network = list("SS13","MiniSat") }, /turf/space, -/area/aisat) +/area/aisat/aihallway) "fKF" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/portable_atmospherics/canister/oxygen, @@ -47341,7 +47321,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "fLz" = ( /obj/effect/spawner/window/reinforced, /obj/machinery/atmospherics/pipe/simple/visible/yellow{ @@ -52342,7 +52322,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/construction/hallway) +/area/aisat/aihallway) "gXk" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -52866,7 +52846,7 @@ "heT" = ( /obj/machinery/door/airlock/external, /turf/simulated/floor/plating, -/area/construction/hallway) +/area/aisat/aihallway) "heZ" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -60215,7 +60195,7 @@ network = list("SS13","MiniSat") }, /turf/space, -/area/aisat) +/area/aisat/aihallway) "jiS" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -61429,7 +61409,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "jxS" = ( /obj/machinery/alarm{ dir = 8; @@ -63672,7 +63652,7 @@ dir = 4 }, /turf/space, -/area/maintenance/ai) +/area/aisat/aihallway) "kgz" = ( /obj/structure/girder, /turf/simulated/floor/plating, @@ -63976,7 +63956,7 @@ dir = 8 }, /turf/space, -/area/maintenance/ai) +/area/aisat/aihallway) "klw" = ( /turf/simulated/floor/engine/n20, /area/atmos) @@ -64172,7 +64152,7 @@ dir = 4; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "kna" = ( /turf/simulated/wall/r_wall, /area/atmos/control) @@ -66996,7 +66976,7 @@ network = list("SS13","MiniSat") }, /turf/space, -/area/maintenance/ai) +/area/aisat/aihallway) "liE" = ( /obj/item/twohanded/required/kirbyplants, /turf/simulated/floor/plasteel{ @@ -67179,7 +67159,7 @@ dir = 1 }, /turf/space, -/area/aisat) +/area/aisat/aihallway) "llN" = ( /obj/machinery/atmospherics/pipe/manifold4w/hidden/scrubbers, /obj/machinery/atmospherics/pipe/manifold4w/hidden/supply, @@ -71108,7 +71088,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "mpA" = ( /obj/structure/cable{ icon_state = "4-8" @@ -71352,7 +71332,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "msG" = ( /obj/structure/window/reinforced, /obj/structure/chair/comfy/black{ @@ -71528,7 +71508,7 @@ dir = 5; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "muV" = ( /obj/structure/cable{ icon_state = "4-8" @@ -71904,7 +71884,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "mzZ" = ( /obj/structure/sign/science{ icon_state = "doors" @@ -77365,7 +77345,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "nWY" = ( /obj/effect/decal/warning_stripes/west, /turf/simulated/floor/plating, @@ -81973,7 +81953,7 @@ network = list("SS13","MiniSat") }, /turf/space, -/area/aisat) +/area/aisat/aihallway) "pjj" = ( /obj/structure/disposalpipe/segment, /obj/structure/cable{ @@ -81998,7 +81978,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "pjI" = ( /obj/machinery/access_button{ command = "cycle_exterior"; @@ -82951,7 +82931,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "puB" = ( /turf/simulated/wall/r_wall, /area/toxins/storage) @@ -84923,7 +84903,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "pUL" = ( /obj/effect/spawner/window/reinforced, /obj/structure/cable{ @@ -90543,7 +90523,7 @@ dir = 9; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "rtb" = ( /obj/structure/closet/coffin, /obj/effect/decal/warning_stripes/yellow/hollow, @@ -94749,7 +94729,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "sAQ" = ( /obj/effect/decal/warning_stripes/north, /turf/simulated/floor/plasteel{ @@ -95166,7 +95146,7 @@ dir = 5; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "sGl" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -95703,7 +95683,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "sOC" = ( /obj/structure/closet/secure_closet/exile, /obj/effect/decal/warning_stripes/yellow/hollow, @@ -99386,7 +99366,7 @@ "tOj" = ( /obj/effect/spawner/window/reinforced, /turf/simulated/floor/plating, -/area/construction/hallway) +/area/aisat/aihallway) "tOq" = ( /obj/machinery/camera{ c_tag = "Arrivals South End"; @@ -100545,7 +100525,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "ufo" = ( /obj/structure/cable{ icon_state = "1-2" @@ -101416,7 +101396,7 @@ dir = 6; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "urC" = ( /obj/machinery/atmospherics/pipe/simple/heat_exchanging/junction, /turf/simulated/wall/r_wall/coated, @@ -101789,7 +101769,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "uwZ" = ( /obj/machinery/ai_slipper, /obj/structure/cable{ @@ -102267,7 +102247,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "uEV" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -102969,7 +102949,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "uNn" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -103051,7 +103031,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/construction/hallway) +/area/aisat/aihallway) "uOt" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -103433,7 +103413,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/construction/hallway) +/area/aisat/aihallway) "uTm" = ( /obj/structure/table/wood, /obj/item/paper_bin, @@ -103886,7 +103866,7 @@ dir = 9; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "uYT" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -103926,7 +103906,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "uZl" = ( /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, /obj/machinery/atmospherics/pipe/manifold/hidden/supply, @@ -104276,7 +104256,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "vfb" = ( /obj/machinery/door/airlock/security/glass{ name = "Briefing Room"; @@ -105066,7 +105046,7 @@ dir = 10; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "vpK" = ( /obj/structure/lattice/catwalk, /obj/machinery/atmospherics/pipe/simple/visible/yellow{ @@ -105341,7 +105321,7 @@ network = list("SS13","MiniSat") }, /turf/space, -/area/maintenance/ai) +/area/aisat/aihallway) "vtR" = ( /obj/machinery/light/small{ dir = 1 @@ -105643,7 +105623,7 @@ network = list("SS13","MiniSat") }, /turf/space, -/area/maintenance/ai) +/area/aisat/aihallway) "vxk" = ( /obj/structure/chair/office/dark{ dir = 1 @@ -108002,7 +107982,7 @@ dir = 4 }, /turf/space, -/area/maintenance/ai) +/area/aisat/aihallway) "waS" = ( /obj/structure/window/reinforced{ dir = 4 @@ -108102,7 +108082,7 @@ dir = 8 }, /turf/space, -/area/maintenance/ai) +/area/aisat/aihallway) "wcl" = ( /obj/machinery/door/airlock/external{ frequency = 1379; @@ -108114,7 +108094,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "wcr" = ( /obj/structure/lattice/catwalk, /obj/machinery/access_button{ @@ -108435,7 +108415,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "whc" = ( /obj/structure/cable{ icon_state = "4-8" @@ -109314,7 +109294,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "wsN" = ( /obj/structure/cable{ icon_state = "4-8" @@ -110615,7 +110595,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "wKB" = ( /obj/effect/spawner/window/reinforced, /obj/structure/cable{ @@ -110698,7 +110678,7 @@ dir = 8; icon_state = "vault" }, -/area/construction/hallway) +/area/aisat/aihallway) "wMm" = ( /obj/effect/decal/warning_stripes/yellow, /obj/machinery/navbeacon{ @@ -111144,7 +111124,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluecorners" }, -/area/construction/hallway) +/area/aisat/aihallway) "wRB" = ( /obj/item/twohanded/required/kirbyplants, /obj/machinery/light_switch{ @@ -111515,7 +111495,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, -/area/construction/hallway) +/area/aisat/aihallway) "wWK" = ( /turf/simulated/floor/plasteel{ dir = 4; @@ -112614,7 +112594,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "xkm" = ( /obj/structure/disposalpipe/segment{ dir = 5 @@ -113725,7 +113705,7 @@ dir = 6; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "xwM" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -114175,7 +114155,7 @@ /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/construction/hallway) +/area/aisat/aihallway) "xBS" = ( /obj/effect/decal/warning_stripes/northeastcorner, /obj/machinery/atmospherics/unary/vent_pump/on{ @@ -115651,7 +115631,7 @@ dir = 8; icon_state = "vault" }, -/area/construction/hallway) +/area/aisat/aihallway) "xTh" = ( /obj/machinery/camera{ c_tag = "Server Room"; @@ -115763,7 +115743,7 @@ dir = 1; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "xUL" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/spawner/random_spawners/cobweb_left_frequent, @@ -116288,7 +116268,7 @@ /turf/simulated/floor/plasteel{ icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "ybL" = ( /obj/structure/table/reinforced, /obj/item/wrench, @@ -116865,7 +116845,7 @@ dir = 5; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "yiC" = ( /obj/structure/cable{ icon_state = "1-2" @@ -116922,7 +116902,7 @@ dir = 10; icon_state = "darkblue" }, -/area/construction/hallway) +/area/aisat/aihallway) "yjA" = ( /obj/structure/particle_accelerator/particle_emitter/left{ dir = 8 @@ -122956,7 +122936,7 @@ dYy wVe iGo fFm -dSb +kfX iGo iGo iGo @@ -123208,7 +123188,7 @@ iGo iGo iGo iGo -dSb +kfX iGo iGw iGw @@ -127834,7 +127814,7 @@ dxZ dxZ dxZ dxZ -dTT +klv dxZ iGw iGw @@ -128096,7 +128076,7 @@ dZj eER dxZ fHS -dTT +klv dxZ dxZ dxZ diff --git a/code/__DEFINES/alerts.dm b/code/__DEFINES/alerts.dm index 8a98697925e..473b539206f 100644 --- a/code/__DEFINES/alerts.dm +++ b/code/__DEFINES/alerts.dm @@ -26,6 +26,7 @@ #define ALERT_EMBEDDED "embedded" #define ALERT_NUTRITION "nutrition" #define ALERT_DIRECTION_LOCK "direction_lock" +#define ALERT_UNPOSSESS_OBJECT "unpossess_object" /** Silicon related */ #define ALERT_LOCKED "locked" diff --git a/code/__DEFINES/dcs/signals.dm b/code/__DEFINES/dcs/signals.dm index 879ea09134e..7e09eecd099 100644 --- a/code/__DEFINES/dcs/signals.dm +++ b/code/__DEFINES/dcs/signals.dm @@ -686,6 +686,11 @@ /// From base of /client/Move(): (direction, old_dir) #define COMSIG_MOB_CLIENT_MOVED "mob_client_moved" +/// From base of /client/Move(), invoked when a non-living mob is attempting to move: (list/move_args) +#define COMSIG_MOB_CLIENT_PRE_NON_LIVING_MOVE "mob_client_pre_non_living_move" + /// Cancels the move attempt + #define COMSIG_MOB_CLIENT_BLOCK_PRE_NON_LIVING_MOVE COMPONENT_MOVABLE_BLOCK_PRE_MOVE + /// From base of /client/Move(): (list/move_args) #define COMSIG_MOB_CLIENT_PRE_LIVING_MOVE "mob_client_pre_living_move" /// Should we stop the current living movement attempt @@ -1287,3 +1292,6 @@ /// Source: /proc/random_hair_style (mob/living/carbon/human/human, valid_hairstyles, robohead) #define COMSIG_RANDOM_HAIR_STYLE "random_hair_style" + +/// Source: /datum/component/object_possession/proc/on_move (mob/mob, new_loc, direct) +#define COMSIG_POSSESSED_MOVEMENT "possessed_movement" diff --git a/code/__DEFINES/dcs/signals_silicon.dm b/code/__DEFINES/dcs/signals_silicon.dm new file mode 100644 index 00000000000..34c557659eb --- /dev/null +++ b/code/__DEFINES/dcs/signals_silicon.dm @@ -0,0 +1,2 @@ +///from base of /mob/camera/aiEye/setLoc: (/turf/destination) +#define COMSIG_AI_EYE_MOVED "ai_eye_moved" diff --git a/code/__DEFINES/ert.dm b/code/__DEFINES/ert.dm new file mode 100644 index 00000000000..8587e08d0ba --- /dev/null +++ b/code/__DEFINES/ert.dm @@ -0,0 +1,7 @@ +#define ERT_ROLE_COMMANDER "Командир" +#define ERT_ROLE_SECURITY "Боец" +#define ERT_ROLE_MEDIC "Медик" +#define ERT_ROLE_ENGINEER "Инженер" +#define ERT_ROLE_JANITOR "Уборщик" +#define ERT_ROLE_PARANORMAL "Паранормал" +#define ERT_ROLE_CYBORG "Борг" diff --git a/code/__DEFINES/is_helpers.dm b/code/__DEFINES/is_helpers.dm index 4de13d17dd6..abdf6d2953d 100644 --- a/code/__DEFINES/is_helpers.dm +++ b/code/__DEFINES/is_helpers.dm @@ -143,6 +143,8 @@ GLOBAL_LIST_INIT(glass_sheet_types, typecacheof(list( #define ischasm(A) (istype(A, /turf/simulated/floor/chasm)) +#define issingularity(atom) (istype(atom, /obj/singularity)) + //Structures #define isstructure(A) (istype(A, /obj/structure)) diff --git a/code/__DEFINES/subsystems.dm b/code/__DEFINES/subsystems.dm index d68dcf08a4f..64c6aa569f4 100644 --- a/code/__DEFINES/subsystems.dm +++ b/code/__DEFINES/subsystems.dm @@ -102,6 +102,7 @@ #define INIT_ORDER_NIGHTSHIFT -24 #define INIT_ORDER_GAME_EVENTS -26 #define INIT_ORDER_PATH -50 +#define INIT_ORDER_EXPLOSIONS -69 #define INIT_ORDER_PERSISTENCE -95 #define INIT_ORDER_STATPANELS -98 #define INIT_ORDER_DEMO -99 // To avoid a bunch of changes related to initialization being written, do this last @@ -139,6 +140,7 @@ #define FIRE_PRIORITY_CHAT 400 #define FIRE_PRIORITY_RUNECHAT 410 // I hate how high the fire priority on this is -aa #define FIRE_PRIORITY_OVERLAYS 500 +#define FIRE_PRIORITY_EXPLOSIONS 666 #define FIRE_PRIORITY_TIMER 700 #define FIRE_PRIORITY_SPEECH_CONTROLLER 900 #define FIRE_PRIORITY_DELAYED_VERBS 950 diff --git a/code/__HELPERS/data_struct/priority_queue.dm b/code/__HELPERS/data_struct/priority_queue.dm new file mode 100644 index 00000000000..f2a0808fb04 --- /dev/null +++ b/code/__HELPERS/data_struct/priority_queue.dm @@ -0,0 +1,69 @@ +/priority_queue + var/list/priority_node/heap = list() + +/priority_node + var/item + var/priority + +/priority_node/New(item, priority) + . = ..() + src.item = item + src.priority = priority + +/priority_queue/proc/enqueue(value, priority) + heap += list(new /priority_node(value, priority)) + bubble_up(heap.len) + +/priority_queue/proc/dequeue() + if (heap.len == 0) + return null + + var/priority_node/top = heap[1] + var/bottom = heap[heap.len] + var/item = top.item + heap -= bottom + if(!heap.len) + qdel(top) + return item + heap[1] = bottom + bubble_down(1) + qdel(top) + return item + +/priority_queue/proc/peek() + if (heap.len == 0) + return null + return heap[1].item + +/priority_queue/proc/is_empty() + return heap.len == 0 + +/priority_queue/proc/bubble_up(index) + while(index > 1) + var/parent = round(index / 2) + + if (heap[parent].priority < heap[index].priority) + break + + swap(index, parent) + index = parent + + +/priority_queue/proc/bubble_down(index) + while(index * 2 <= heap.len) + var/child = index * 2 + + if (child + 1 <= heap.len && heap[child + 1].priority < heap[child].priority) + child++ + + if (heap[index].priority < heap[child].priority) + break + + swap(index, child) + index = child + + +/priority_queue/proc/swap(a, b) + var/list/temp = heap[a] + heap[a] = heap[b] + heap[b] = temp diff --git a/code/__HELPERS/data_struct/queue.dm b/code/__HELPERS/data_struct/queue.dm new file mode 100644 index 00000000000..11f03adf0ff --- /dev/null +++ b/code/__HELPERS/data_struct/queue.dm @@ -0,0 +1,73 @@ +/* +* Double linked list node +*/ +/node + var/value + var/prev + var/next + +/* +* Defining a queue based on a double linked list +*/ +/queue + /// Link to the beginning of the list + var/node/head + /// Link to end of list + var/node/tail + /// Number of elements in queue + var/count = 0 + +/* +* Adding an element to the end of the queue +*/ +/queue/proc/enqueue(value) + var/node/new_node = new + new_node.value = value + + if (!tail) + head = new_node + tail = new_node + else + tail.next = new_node + new_node.prev = tail + tail = new_node + count++ +/* + * Retrieving an element from the head of the queue + */ +/queue/proc/dequeue() + if (!head) + return null + + var/value = head.value + var/node/old_head = head + + head = head.next + if (head) + head.prev = null + else + tail = null + old_head.value = null + old_head.next = null + qdel(old_head) + count-- + return value +/* +* Returns an element from the beginning of the queue without removing it +*/ +/queue/proc/peek() + if (!head) + return null + return head.value + +/* +* Checking if the queue is empty +*/ +/queue/proc/is_empty() + return count == 0 + +/* +* Returns the number of elements in the queue +*/ +/queue/proc/size() + return count diff --git a/code/__HELPERS/level_check.dm b/code/__HELPERS/level_check.dm deleted file mode 100644 index 2e8ad669f79..00000000000 --- a/code/__HELPERS/level_check.dm +++ /dev/null @@ -1,20 +0,0 @@ -/proc/is_on_level_name(atom/A,name) - var/datum/space_level/S = GLOB.space_manager.get_zlev_by_name(name) - return A.z == S.zpos - -// For expansion later -/proc/atoms_share_level(atom/A, atom/B) - return A && B && A.z == B.z - -/** - * Checks if source_loc and checking_loc is both on the station, or on the same z level. - * This is because the station's several levels aren't considered the same z, so multi-z stations need this special case. - * returns TRUE if connection is valid, FALSE otherwise. - */ -/proc/is_valid_z_level(turf/source_loc, turf/checking_loc) - // if we're both on "station", regardless of multi-z, we'll pass by. - if(is_station_level(source_loc.z) && is_station_level(checking_loc.z)) - return TRUE - if(source_loc.z == checking_loc.z) - return TRUE - return FALSE diff --git a/code/__HELPERS/level_traits.dm b/code/__HELPERS/level_traits.dm index a7807445229..7b6a047d397 100644 --- a/code/__HELPERS/level_traits.dm +++ b/code/__HELPERS/level_traits.dm @@ -86,3 +86,11 @@ GLOBAL_LIST_INIT(default_map_traits, MAP_TRANSITION_CONFIG) if(SL.linkage == CROSSLINKED && !is_taipan(SL.zpos)) znums |= SL.zpos return znums + +/// Checks if both atoms are in same z or in connected z-levels. +/proc/are_zs_connected(atom/A, atom/B) + A = get_turf(A) + B = get_turf(B) + if(A.z == B.z) + return TRUE + return (B.z in SSmapping.get_connected_levels(A)) diff --git a/code/_globalvars/lists/holomaps.dm b/code/_globalvars/lists/holomaps.dm index 5712f51f33f..80f2cad3b77 100644 --- a/code/_globalvars/lists/holomaps.dm +++ b/code/_globalvars/lists/holomaps.dm @@ -13,9 +13,9 @@ GLOBAL_LIST_INIT(holomap_color_to_name, list( HOLOMAP_AREACOLOR_CARGO = "Снабжение", HOLOMAP_AREACOLOR_HALLWAYS = "Коридоры", HOLOMAP_AREACOLOR_MAINTENANCE = "Тех. тоннели", - HOLOMAP_AREACOLOR_ARRIVALS = "Зона прибытия", - HOLOMAP_AREACOLOR_ESCAPE = "Зона отбытия", - HOLOMAP_AREACOLOR_DORMS = "Зона отдыха", + HOLOMAP_AREACOLOR_ARRIVALS = "Прибытие", + HOLOMAP_AREACOLOR_ESCAPE = "Отбытие", + HOLOMAP_AREACOLOR_DORMS = "Дормиторий", HOLOMAP_AREACOLOR_SERVICE = "Сервис", HOLOMAP_AREACOLOR_HANGAR = "Ангар", )) diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm index 3a8e66de69b..a6a8a11acf2 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -872,14 +872,18 @@ so as to remain in compliance with the most up-to-date laws." /atom/movable/screen/alert/Click(location, control, params) if(!usr || !usr.client) - return + 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 + return FALSE + if(master) return usr.client.Click(master, location, control, params) + return TRUE + /atom/movable/screen/alert/Destroy() severity = 0 master = null @@ -899,3 +903,16 @@ so as to remain in compliance with the most up-to-date laws." if(!istype(usr)) return living_owner.do_succumb(TRUE) + +/atom/movable/screen/alert/unpossess_object + name = "Unpossess" + desc = "Этот объект под вашим контролем. Нажмите сюда для прекращения контроля." + icon_state = "buckled" + +/atom/movable/screen/alert/unpossess_object/Click(location, control, params) + . = ..() + + if(!.) + return + + qdel(usr.GetComponent(/datum/component/object_possession)) diff --git a/code/controllers/subsystem/augury.dm b/code/controllers/subsystem/augury.dm new file mode 100644 index 00000000000..2ebd6f8c740 --- /dev/null +++ b/code/controllers/subsystem/augury.dm @@ -0,0 +1,78 @@ +SUBSYSTEM_DEF(augury) + name = "Augury" + flags = SS_NO_INIT + runlevels = RUNLEVEL_GAME | RUNLEVEL_POSTGAME + + var/list/watchers = list() + var/list/doombringers = list() + + var/list/observers_given_action = list() + +/datum/controller/subsystem/augury/stat_entry(msg) + msg = "W:[watchers.len]|D:[length(doombringers)]" + return ..() + +/datum/controller/subsystem/augury/proc/register_doom(atom/A, severity) + doombringers[A] = severity + RegisterSignal(A, COMSIG_QDELETING, PROC_REF(unregister_doom)) + +/datum/controller/subsystem/augury/proc/unregister_doom(atom/A) + SIGNAL_HANDLER + UnregisterSignal(A, COMSIG_QDELETING) + doombringers -= A + +/datum/controller/subsystem/augury/fire() + var/biggest_doom = null + var/biggest_threat = null + + for(var/db in doombringers) + var/datum/d = db + if(!d || QDELETED(d)) + doombringers -= d + continue + var/threat = doombringers[d] + if((biggest_threat == null) || (biggest_threat < threat)) + biggest_doom = d + biggest_threat = threat + + if(doombringers.len) + for(var/i in GLOB.player_list) + if(isobserver(i) && (!(observers_given_action[i]))) + var/datum/action/innate/augury/A = new + A.Grant(i) + observers_given_action[i] = TRUE + else + for(var/i in observers_given_action) + if(observers_given_action[i] && isobserver(i)) + var/mob/dead/observer/O = i + for(var/datum/action/innate/augury/A in O.actions) + qdel(A) + observers_given_action -= i + + for(var/w in watchers) + if(!w) + watchers -= w + continue + var/mob/dead/observer/O = w + if(biggest_doom && (!O.orbiting || O.orbiting != biggest_doom)) + O.ManualFollow(biggest_doom) + +/datum/action/innate/augury + name = "Авто-отслеживание обломок" + icon_icon = 'icons/obj/meteor.dmi' + button_icon_state = "flaming" + +/datum/action/innate/augury/Destroy() + if(owner) + SSaugury.watchers -= owner + return ..() + +/datum/action/innate/augury/Activate() + SSaugury.watchers += owner + to_chat(owner, span_notice("Вы теперь автоматически отслеживаете обломки.")) + active = TRUE + +/datum/action/innate/augury/Deactivate() + SSaugury.watchers -= owner + to_chat(owner, span_notice("Вы больше не отслеживаете обломки.")) + active = FALSE diff --git a/code/controllers/subsystem/explosions.dm b/code/controllers/subsystem/explosions.dm new file mode 100644 index 00000000000..157cf9f452f --- /dev/null +++ b/code/controllers/subsystem/explosions.dm @@ -0,0 +1,476 @@ +//TODO: Flash range does nothing currently + +#define CREAK_DELAY 5 SECONDS //Time taken for the creak to play after explosion, if applicable. +#define DEVASTATION_PROB 30 //The probability modifier for devistation, maths! +#define HEAVY_IMPACT_PROB 5 //ditto +#define FAR_UPPER 60 //Upper limit for the far_volume, distance, clamped. +#define FAR_LOWER 40 //lower limit for the far_volume, distance, clamped. +#define PROB_SOUND 75 //The probability modifier for a sound to be an echo, or a far sound. (0-100) +#define SHAKE_CLAMP 2.5 //The limit for how much the camera can shake for out of view booms. +#define FREQ_UPPER 40 //The upper limit for the randomly selected frequency. +#define FREQ_LOWER 25 //The lower of the above. + +GLOBAL_LIST_EMPTY(explosions) + +SUBSYSTEM_DEF(explosions) + name = "Explosions" + init_order = INIT_ORDER_EXPLOSIONS + priority = FIRE_PRIORITY_EXPLOSIONS + wait = 1 + flags = SS_TICKER + runlevels = RUNLEVEL_GAME | RUNLEVEL_POSTGAME + + var/priority_queue/explosion_queue + + var/reactionary_explosions = FALSE + var/multiz_explosions = FALSE + + // Explosion sounds cache + var/sound/explosion_sound + var/sound/far_explosion_sound + var/sound/creaking_explosion_sound + var/sound/hull_creaking_sound + var/sound/explosion_echo_sound + + +/datum/controller/subsystem/explosions/Initialize() + if(CONFIG_GET(flag/multiz_explosions)) + multiz_explosions = TRUE + if(CONFIG_GET(flag/reactionary_explosions)) + reactionary_explosions = TRUE + explosion_sound = sound(get_sfx("explosion")) + far_explosion_sound = sound('sound/effects/explosionfar.ogg') + creaking_explosion_sound = sound(get_sfx("explosion_creaking")) + hull_creaking_sound = sound(get_sfx("hull_creaking")) + explosion_echo_sound = sound('sound/effects/explosion_distant.ogg') + explosion_queue = new() + return SS_INIT_SUCCESS + + +/datum/controller/subsystem/explosions/fire(resumed = 0) + while(!explosion_queue.is_empty()) + var/datum/explosion_data/data = explosion_queue.peek() + while(!data.affected_turfs_queue.is_empty()) + var/turf/T = data.affected_turfs_queue.dequeue() + if(QDELETED(T)) + continue + var/dist = HYPOTENUSE(T.x, T.y, data.x0, data.y0) + + if(reactionary_explosions) + var/turf_block + var/total_cords = "[T.x],[T.y],[T.z]" + var/prev_block + if(data.multiz_explosion) + turf_block = data.cached_turf_vert_exp_block[T] ? data.cached_turf_vert_exp_block[T] : count_turf_vert_block(T) + if(T != data.epicenter) + var/turf/next_turf = get_step_towards_multiz(T, data.epicenter) + var/next_cords = "[next_turf.x],[next_turf.y],[next_turf.z]" + if(next_turf.z != T.z) + prev_block = data.cached_exp_block[next_cords] ? data.cached_exp_block[next_cords] : count_turf_vert_block(next_turf) + else + prev_block = data.cached_exp_block[next_cords] ? data.cached_exp_block[next_cords] : count_turf_block(next_turf) + + else + turf_block = data.cached_turf_exp_block[T] ? data.cached_turf_exp_block[T] : count_turf_block(T) + + if(T != data.epicenter) + var/turf/next_turf = get_step_towards(T, data.epicenter) + var/next_cords = "[next_turf.x],[next_turf.y],[next_turf.z]" + prev_block = data.cached_exp_block[next_cords] ? data.cached_exp_block[next_cords] : count_turf_block(next_turf) + + if(T == data.epicenter) + data.cached_exp_block[total_cords] = turf_block + dist += prev_block + data.cached_exp_block[total_cords] = prev_block + turf_block + + var/flame_dist = 0 + + if(dist < data.flame_range) + flame_dist = 1 + + if(dist < data.devastation_range) dist = 1 + else if(dist < data.heavy_impact_range) dist = 2 + else if(dist < data.light_impact_range) dist = 3 + else dist = 0 + + //------- TURF FIRES ------- + + if(flame_dist && prob(40) && !isspaceturf(T) && !T.density) + new /obj/effect/hotspot(T) //Mostly for ambience! + if(dist > 0) + if(issimulatedturf(T)) + var/turf/simulated/S = T + var/affecting_level + if(dist == 1) + affecting_level = 1 + else + affecting_level = S.is_shielded() ? 2 : (S.intact ? 2 : 1) + for(var/atom/AM as anything in S) //bypass type checking since only atom can be contained by turfs anyway + if(!QDELETED(AM) && AM.simulated) + if(AM.level >= affecting_level) + AM.ex_act(dist, data.epicenter) + else + for(var/atom/AM as anything in T) //see above + if(!QDELETED(AM) && AM.simulated) + AM.ex_act(dist, data.epicenter) + if(data.breach) + T.ex_act(dist, data.epicenter) + else + T.ex_act(3, data.epicenter) + if(MC_TICK_CHECK) + return + + var/took = stop_watch(data.watch) + //You need to press the DebugGame verb to see these now....they were getting annoying and we've collected a fair bit of data. Just -test- changes to explosion code using this please so we can compare + log_world("## DEBUG: Explosion([data.x0],[data.y0],[data.z0])(d[data.devastation_range],h[data.heavy_impact_range],l[data.light_impact_range]): Took [took] seconds.") + data.log_explosions_machines(took) + qdel(explosion_queue.dequeue()) + if(MC_TICK_CHECK) + return + +/datum/controller/subsystem/explosions/proc/start_explosion(datum/explosion_data/data, adminlog, cause, smoke, silent) + if(adminlog) + data.explosion_log(cause) + if(!silent) + data.play_sounds_and_shake() + data.create_effect(smoke) + data.enqueue_affected_turfs(reactionary_explosions) + explosion_queue.enqueue(data, data.affected_turfs_queue.count) + +/datum/controller/subsystem/explosions/proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, adminlog = TRUE, ignorecap = FALSE, flame_range = 0, silent = FALSE, smoke = TRUE, cause = null, breach = TRUE, protect_epicenter, explosion_direction, explosion_arc) + if(!epicenter) + return FALSE + + var/datum/explosion_data/data = new(epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, ignorecap, flame_range, breach, multiz_explosions, protect_epicenter, explosion_direction, explosion_arc) + INVOKE_ASYNC(src, PROC_REF(start_explosion), data, adminlog, cause, smoke, silent) + + return TRUE + + +/proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, adminlog, ignorecap, flame_range, silent, smoke, cause, breach, protect_epicenter = FALSE, explosion_direction = 0, explosion_arc = 360) + SSexplosions.explosion(epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, adminlog, ignorecap, flame_range, silent, smoke, cause, breach, protect_epicenter, explosion_direction, explosion_arc) + +/* +* DON'T USE THIS!!! It is not processed by the system and has no radius restrictions. +*/ +/proc/secondaryexplosion(turf/epicenter, range) + for(var/turf/tile in prepare_explosion_turfs(range, epicenter)) + tile.ex_act(2, epicenter) + +/datum/explosion_data + var/orig_dev_range + var/orig_heavy_range + var/orig_light_range + var/orig_max_distance + + var/turf/epicenter + + var/max_range + var/x0 + var/y0 + var/z0 + var/min_z + var/max_z + var/far_dist = 0 + var/flame_range + var/flash_range + var/devastation_range + var/heavy_impact_range + var/light_impact_range + var/explosion_direction = 0 + var/explosion_arc = 360 + var/protect_epicenter = FALSE + var/breach + var/multiz_explosion = FALSE + var/queue/affected_turfs_queue = new() + var/list/cached_turf_exp_block = list() + var/list/cached_turf_vert_exp_block = list() + var/list/cached_exp_block = list() + var/list/epicenter_list = list() + var/watch + +/datum/explosion_data/New(turf/epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, ignorecap = FALSE, flame_range = 0, breach = TRUE, multiz = FALSE, protect_epicenter = FALSE, explosion_direction = 0, explosion_arc = 360) + . = ..() + src.epicenter = get_turf(epicenter) + src.flame_range = flame_range + src.flash_range = flash_range + src.devastation_range = devastation_range + src.heavy_impact_range = heavy_impact_range + src.light_impact_range = light_impact_range + src.breach = breach + src.max_range = max(devastation_range, heavy_impact_range, light_impact_range, flame_range) + src.explosion_arc = explosion_arc + src.explosion_direction = explosion_direction + src.protect_epicenter = protect_epicenter + + orig_dev_range = devastation_range + orig_heavy_range = heavy_impact_range + orig_light_range = light_impact_range + + orig_max_distance = max(devastation_range, heavy_impact_range, light_impact_range, flash_range, flame_range) + + if(multiz) + var/turf/top_turf = get_highest_turf(epicenter) + var/turf/low_turf = get_lowest_turf(epicenter) + max_z = min(top_turf.z, epicenter.z + orig_max_distance) + min_z = max(low_turf.z, epicenter.z - orig_max_distance) + multiz_explosion = multiz && max_z != min_z + + x0 = epicenter.x + y0 = epicenter.y + z0 = epicenter.z + + far_dist = 0 + far_dist += heavy_impact_range * 15 + far_dist += devastation_range * 20 + if(!ignorecap) + clamp_ranges() + epicenter_list += epicenter + watch = start_watch() + +/datum/explosion_data/Destroy() + qdel(affected_turfs_queue) + LAZYCLEARLIST(epicenter_list) + LAZYNULL(epicenter_list) + LAZYCLEARLIST(cached_exp_block) + LAZYNULL(cached_exp_block) + LAZYCLEARLIST(cached_turf_exp_block) + LAZYNULL(cached_turf_exp_block) + LAZYCLEARLIST(cached_turf_vert_exp_block) + LAZYNULL(cached_turf_vert_exp_block) + . = ..() + +/datum/explosion_data/proc/clamp_ranges() + devastation_range = clamp(devastation_range, 0, GLOB.max_ex_devastation_range) + heavy_impact_range = clamp(heavy_impact_range, 0, GLOB.max_ex_heavy_range) + light_impact_range = clamp(light_impact_range, 0, GLOB.max_ex_light_range) + flash_range = clamp(flash_range, 0, GLOB.max_ex_flash_range) + flame_range = clamp(flame_range, 0, GLOB.max_ex_flame_range) + + +/datum/explosion_data/proc/create_effect(smoke) + if(heavy_impact_range > 1) + var/datum/effect_system/explosion/E + if(smoke) + E = new /datum/effect_system/explosion/smoke + else + E = new + E.set_up(epicenter) + E.start() + +/datum/explosion_data/proc/enqueue_affected_turfs(reactionary_explosions) + var/list/affected_turfs = prepare_explosion_turfs(max_range, epicenter, protect_epicenter, explosion_direction, explosion_arc, multiz_explosion, min_z, max_z) + if(reactionary_explosions) + count_reactionary_explosions(affected_turfs) + + for(var/turf in affected_turfs) + affected_turfs_queue.enqueue(turf) + +/datum/explosion_data/proc/count_reactionary_explosions(list/affected_turfs) + for(var/turf/counted_turf as anything in affected_turfs) // we cache the explosion block rating of every turf in the explosion area + cached_turf_exp_block[counted_turf] = count_turf_block(counted_turf) + if(multiz_explosion) + cached_turf_vert_exp_block[counted_turf] = count_turf_vert_block(counted_turf) + +/proc/count_turf_block(turf/counted_turf) + var/block = 0 + if(counted_turf.density && counted_turf.explosion_block) + block += counted_turf.explosion_block + + for(var/atom/object as anything in counted_turf) + var/the_block = object.explosion_block + block += the_block == EXPLOSION_BLOCK_PROC ? object.get_explosion_block() : the_block + return block + +/proc/count_turf_vert_block(turf/counted_turf) + var/block = 0 + if(counted_turf.density && counted_turf.explosion_block) + block += counted_turf.explosion_vertical_block + + for(var/atom/object as anything in counted_turf) + block += object.explosion_vertical_block + return block + +/datum/explosion_data/proc/explosion_log(cause) + var/cause_str + var/atom/cause_atom + var/cause_vv = "" + if(isatom(cause)) + cause_atom = cause + cause_str = cause_atom.name + cause_vv += ADMIN_VV(cause_atom,"VV") + else if(istext(cause)) + cause_str = cause + else if(isnull(cause)) + pass() + else + log_runtime("Bad type of cause for logging explosion.") + + message_admins("Explosion with size ([devastation_range], [heavy_impact_range], [light_impact_range], [flame_range]) [cause ? "(Cause: [cause_str] [cause_vv])" : ""] [ADMIN_VERBOSEJMP(epicenter)] ") + add_game_logs("Explosion with size ([devastation_range], [heavy_impact_range], [light_impact_range], [flame_range]) [cause ? "(Cause: [cause_str])" : ""] [AREACOORD(epicenter)] ") + +/datum/explosion_data/proc/log_explosions_machines(took) + //Machines which report explosions. + for(var/array in GLOB.doppler_arrays) + if(!array) + continue + if(istype(array, /obj/machinery/doppler_array)) + var/obj/machinery/doppler_array/doppler_array = array + doppler_array.sense_explosion(x0,y0,z0,devastation_range,heavy_impact_range,light_impact_range,took,orig_dev_range,orig_heavy_range,orig_light_range) + if(istype(array, /obj/item/clothing/head/helmet/space/hardsuit/rd)) + var/obj/item/clothing/head/helmet/space/hardsuit/rd/helm_array = array + helm_array.sense_explosion(x0,y0,z0,devastation_range,heavy_impact_range,light_impact_range,took,orig_dev_range,orig_heavy_range,orig_light_range) + +/* +* Play sounds; we want sounds to be different depending on distance so we will manually do it ourselves. +* Stereo users will also hear the direction of the explosion! +* Calculate far explosion sound range. Only allow the sound effect for heavy/devastating explosions. +* 3/7/14 will calculate to 80 + 35 +*/ +/datum/explosion_data/proc/play_sounds_and_shake() + var/frequency = get_rand_frequency() + var/on_station = is_station_level(epicenter.z) + var/creaking_explosion = FALSE + + if(prob(devastation_range * DEVASTATION_PROB + heavy_impact_range * HEAVY_IMPACT_PROB) && on_station) // Huge explosions are near guaranteed to make the station creak and whine, smaller ones might. + creaking_explosion = TRUE // prob over 100 always returns true + + for(var/MN in GLOB.player_list) + var/mob/M = MN + // Double check for client + var/turf/M_turf = get_turf(M) + if(M_turf && M_turf.z == z0) + var/dist = get_dist(M_turf, epicenter) + var/baseshakeamount + if(orig_max_distance - dist > 0) + baseshakeamount = sqrt((orig_max_distance - dist) * 0.1) + // If inside the blast radius + world.view - 2 + if(dist <= round(max_range + world.view - 2, 1)) + M.playsound_local(epicenter, null, 100, 1, frequency, S = SSexplosions.explosion_sound) + if(baseshakeamount > 0) + shake_camera(M, 25, clamp(baseshakeamount, 0, 10)) + // You hear a far explosion if you're outside the blast radius. Small bombs shouldn't be heard all over the station. + else if(dist <= far_dist) + var/far_volume = clamp(far_dist / 2, FAR_LOWER, FAR_UPPER) // Volume is based on explosion size and dist + if(creaking_explosion) + M.playsound_local(epicenter, null, far_volume, 1, frequency, S = SSexplosions.creaking_explosion_sound, distance_multiplier = 0) + else if(prob(PROB_SOUND)) // Sound variety during meteor storm/tesloose/other bad event + M.playsound_local(epicenter, null, far_volume, 1, frequency, S = SSexplosions.far_explosion_sound, distance_multiplier = 0) // Far sound + else + M.playsound_local(epicenter, null, far_volume, 1, frequency, S = SSexplosions.explosion_echo_sound, distance_multiplier = 0) // Echo sound + + if(baseshakeamount > 0 || devastation_range) + if(!baseshakeamount) // Devastating explosions rock the station and ground + baseshakeamount = devastation_range * 3 + shake_camera(M, 10, clamp(baseshakeamount * 0.25, 0, SHAKE_CLAMP)) + else if(!isspaceturf(get_turf(M)) && heavy_impact_range) // Big enough explosions echo throughout the hull + var/echo_volume = 40 + if(devastation_range) + baseshakeamount = devastation_range + shake_camera(M, 10, clamp(baseshakeamount * 0.25, 0, SHAKE_CLAMP)) + echo_volume = 60 + M.playsound_local(epicenter, null, echo_volume, 1, frequency, S = SSexplosions.explosion_echo_sound, distance_multiplier = 0) + + if(creaking_explosion) // 5 seconds after the bang, the station begins to creak + addtimer(CALLBACK(M, TYPE_PROC_REF(/mob, playsound_local), epicenter, null, rand(FREQ_LOWER, FREQ_UPPER), 1, frequency, null, null, FALSE, SSexplosions.hull_creaking_sound, 0), CREAK_DELAY) + +/// Returns a list of turfs in X range from the epicenter +/// Returns in a unique order, spiraling outwards +/// This is done to ensure our progressive cache of blast resistance is always valid +/// This is quite fast +/proc/prepare_explosion_turfs(range, turf/epicenter, protect_epicenter, explosion_direction = 0, explosion_arc = 360, multiz = FALSE, min_z, max_z) + var/list/outlist = list() + var/list/candidates = list() + + var/our_x = epicenter.x + var/our_y = epicenter.y + var/our_z = epicenter.z + + if(!multiz) + min_z = our_z + max_z = our_z + + var/max_x = world.maxx + var/max_y = world.maxy + + // Work out the angles to explode between + var/first_angle_limit = WRAP(explosion_direction - explosion_arc * 0.5, 0, 360) + var/second_angle_limit = WRAP(explosion_direction + explosion_arc * 0.5, 0, 360) + + // Get everything in the right order + var/lower_angle_limit + var/upper_angle_limit + var/do_directional + var/reverse_angle + + // Work out which case we're in + if(first_angle_limit == second_angle_limit) // CASE A: FULL CIRCLE + do_directional = FALSE + else if(first_angle_limit < second_angle_limit) // CASE B: When the arc does not cross 0 degrees + lower_angle_limit = first_angle_limit + upper_angle_limit = second_angle_limit + do_directional = TRUE + reverse_angle = FALSE + else if (first_angle_limit > second_angle_limit) // CASE C: When the arc crosses 0 degrees + lower_angle_limit = second_angle_limit + upper_angle_limit = first_angle_limit + do_directional = TRUE + reverse_angle = TRUE + + if(!protect_epicenter) + if(!do_directional) + candidates += epicenter + else + outlist += epicenter + + for(var/i in 1 to range) + var/lowest_x = our_x - i + var/lowest_y = our_y - i + var/lowest_z = our_z - i + var/highest_x = our_x + i + var/highest_y = our_y + i + var/highest_z = our_z + i + // top left to one before top right + if(highest_y <= max_y) + candidates += block(lowest_x, highest_y, min_z, + highest_x - 1, highest_y, max_z) + // top right to one before bottom right + if(highest_x <= max_x) + candidates += block(highest_x, highest_y, min_z, + highest_x, lowest_y + 1, max_z) + + if(multiz && highest_z <= max_z) + candidates += block(lowest_x + 1, highest_y - 1, max_z, + highest_x - 1, lowest_y + 1, max_z) + + // bottom right to one before bottom left + if(lowest_y >= 1) + candidates += block(highest_x, lowest_y, min_z, + lowest_x + 1, lowest_y, max_z) + // bottom left to one before top left + if(lowest_x >= 1) + candidates += block(lowest_x, lowest_y, min_z, + lowest_x, highest_y - 1, max_z) + + if(multiz && lowest_z >= min_z) + candidates += block(lowest_x + 1, highest_y - 1, min_z, + highest_x - 1, lowest_y + 1, max_z) + + if(!do_directional) + outlist = candidates + else + for(var/turf/candidate as anything in candidates) + var/angle = get_angle(epicenter, candidate) + if(ISINRANGE(angle, lower_angle_limit, upper_angle_limit) ^ reverse_angle) + outlist += candidate + return outlist + +#undef CREAK_DELAY +#undef DEVASTATION_PROB +#undef HEAVY_IMPACT_PROB +#undef FAR_UPPER +#undef FAR_LOWER +#undef PROB_SOUND +#undef SHAKE_CLAMP +#undef FREQ_UPPER +#undef FREQ_LOWER diff --git a/code/controllers/subsystem/mapping.dm b/code/controllers/subsystem/mapping.dm index 50ac31c5c6a..835fb188f6d 100644 --- a/code/controllers/subsystem/mapping.dm +++ b/code/controllers/subsystem/mapping.dm @@ -718,10 +718,17 @@ SUBSYSTEM_DEF(mapping) true_to_offset_planes[string_real] |= offset_plane -/proc/generate_lighting_appearance_by_z(z_level) +/datum/controller/subsystem/mapping/proc/generate_lighting_appearance_by_z(z_level) if(length(GLOB.default_lighting_underlays_by_z) < z_level) GLOB.default_lighting_underlays_by_z.len = z_level GLOB.default_lighting_underlays_by_z[z_level] = mutable_appearance(LIGHTING_ICON, "transparent_lighting_object", z_level * 0.01, null, LIGHTING_PLANE, 255, RESET_COLOR | RESET_ALPHA | RESET_TRANSFORM, offset_const = GET_Z_PLANE_OFFSET(z_level)) +/// Takes a turf or a z level, and returns a list of all the z levels that are connected to it +/datum/controller/subsystem/mapping/proc/get_connected_levels(turf/connected) + var/z_level = connected + if(isturf(z_level)) + z_level = connected.z + return z_level_to_stack[z_level] + /datum/controller/subsystem/mapping/Recover() flags |= SS_NO_INIT diff --git a/code/controllers/subsystem/holomap.dm b/code/controllers/subsystem/non-firing/holomap.dm similarity index 100% rename from code/controllers/subsystem/holomap.dm rename to code/controllers/subsystem/non-firing/holomap.dm diff --git a/code/datums/browser.dm b/code/datums/browser.dm index 283ac697258..571a5b50821 100644 --- a/code/datums/browser.dm +++ b/code/datums/browser.dm @@ -5,37 +5,43 @@ var/window_id var/width = 0 var/height = 0 - /// UID of the host atom - var/atom_uid = null + /// weakref of the host atom + var/datum/weakref/ref = null /// Various options to control elements such as titlebar buttons for the window - var/list/window_options = list("focus=0;can_close=1;can_minimize=1;can_maximize=0;can_resize=1;titlebar=1;") // window option is set using window_id + var/window_options = "focus=0;can_close=1;can_minimize=1;can_maximize=0;can_resize=1;titlebar=1;" // window option is set using window_id /// Assoc list of stylesheets for use by the datum var/stylesheets[0] /// Assoc list of script files for use by the datum var/scripts[0] /// Should default stylesheets be loaded var/include_default_stylesheet = TRUE + var/head_elements + var/body_elements /// Header HTML content of the browser datum var/list/head_content = list() /// HTML content of the browser datum var/list/content = list() - -/datum/browser/New(nuser, nwindow_id, ntitle = 0, nwidth = 0, nheight = 0, atom/atom = null) +/datum/browser/New(nuser, nwindow_id, ntitle = 0, nwidth = 0, nheight = 0, atom/nref = null) user = nuser + RegisterSignal(user, COMSIG_QDELETING, PROC_REF(user_deleted)) window_id = nwindow_id - if(ntitle) + if (ntitle) title = format_text(ntitle) - if(nwidth) + if (nwidth) width = nwidth - if(nheight) + if (nheight) height = nheight - if(atom) - atom_uid = atom.UID() + if (nref) + ref = WEAKREF(nref) /datum/browser/proc/set_title(ntitle) title = islist(ntitle) ? ntitle : list(ntitle) +/datum/browser/proc/user_deleted(datum/source) + SIGNAL_HANDLER + user = null + /datum/browser/proc/add_head_content(nhead_content) head_content = islist(nhead_content) ? nhead_content : list(nhead_content) @@ -43,7 +49,7 @@ window_options = islist(nwindow_options) ? nwindow_options : list(nwindow_options) /datum/browser/proc/add_stylesheet(name, file) - if(istype(name, /datum/asset/spritesheet)) + if (istype(name, /datum/asset/spritesheet)) var/datum/asset/spritesheet/sheet = name stylesheets["spritesheet_[sheet.name].css"] = "data/spritesheets/[sheet.name]" else @@ -51,7 +57,7 @@ stylesheets[asset_name] = file - if(!SSassets.cache[asset_name]) + if (!SSassets.cache[asset_name]) SSassets.transport.register_asset(asset_name, file) /datum/browser/proc/add_scss_stylesheet(name, file) @@ -72,13 +78,15 @@ content += ncontent /datum/browser/proc/get_header() + var/file if(include_default_stylesheet) - head_content += "" - - for(var/file in stylesheets) + var/datum/asset/simple/namespaced/common/common_asset = get_asset_datum(/datum/asset/simple/namespaced/common) + head_content += "" + for (file in stylesheets) head_content += "" - for(var/file in scripts) + + for (file in scripts) head_content += "" return {" @@ -93,7 +101,7 @@ [title ? "
[title]
" : ""]
"} - +//" This is here because else the rest of the file looks like a string in notepad++. /datum/browser/proc/get_footer() return {"
@@ -109,33 +117,37 @@ "} /datum/browser/proc/open(use_onclose = TRUE, no_focus = FALSE) - set waitfor = FALSE if(isnull(window_id)) //null check because this can potentially nuke goonchat WARNING("Browser [title] tried to open with a null ID") - to_chat(user, "The [title] browser you tried to open failed a sanity check! Please report this on github!") + to_chat(user, span_userdanger("The [title] browser you tried to open failed a sanity check! Please report this on GitHub!")) return - var/window_size = "" - if(width && height) + if (width && height) window_size = "size=[width]x[height];" if(include_default_stylesheet) - var/datum/asset/simple/common/common_asset = get_asset_datum(/datum/asset/simple/common) + var/datum/asset/simple/namespaced/common/common_asset = get_asset_datum(/datum/asset/simple/namespaced/common) common_asset.send(user) - if(length(stylesheets)) + if (length(stylesheets)) SSassets.transport.send_assets(user, stylesheets) - if(length(scripts)) + if (length(scripts)) SSassets.transport.send_assets(user, scripts) - user << browse(get_content(), "window=[window_id];[window_size][window_options.Join("")]") - for(var/i in 1 to 1000) - if(!user || !user.client) - return - if(winexists(user, window_id)) - break - sleep(1) + user << browse(get_content(), "window=[window_id];[window_size][window_options]") if(no_focus) winset(user, "mapwindow.map", "focus=true") - if(use_onclose) - onclose(user, window_id, atom_uid) + if (use_onclose) + setup_onclose() + +/datum/browser/proc/setup_onclose() + set waitfor = 0 //winexists sleeps, so we don't need to. + for (var/i in 1 to 10) + if (user?.client && winexists(user, window_id)) + var/atom/send_ref + if(ref) + send_ref = ref.resolve() + if(!send_ref) + ref = null + onclose(user, window_id, send_ref) + break /datum/browser/proc/close() if(!isnull(window_id))//null check because this can potentially nuke goonchat @@ -143,25 +155,325 @@ else WARNING("Browser [title] tried to close with a null ID") -/proc/onclose(mob/user, windowid, atom_uid) - if(!user?.client) + +/datum/browser/modal/alert/New(User,Message,Title,Button1="Ok",Button2,Button3,StealFocus = 1,Timeout=6000) + if (!User) + return + + var/output = {"
[Message]

+
+ [Button1]"} + + if (Button2) + output += {"[Button2]"} + + if (Button3) + output += {"[Button3]"} + + output += {"
"} + + ..(User, ckey("[User]-[Message]-[Title]-[world.time]-[rand(1,10000)]"), Title, 350, 150, src, StealFocus, Timeout) + set_content(output) + +/datum/browser/modal/alert/Topic(href,href_list) + if (href_list["close"] || !user || !user.client) + opentime = 0 + return + if (href_list["button"]) + var/button = text2num(href_list["button"]) + if (button <= 3 && button >= 1) + selectedbutton = button + opentime = 0 + close() + +/** + * **DEPRECATED: USE tgui_alert(...) INSTEAD** + * + * Designed as a drop in replacement for alert(); functions the same. (outside of needing User specified) + * Arguments: + * * User - The user to show the alert to. + * * Message - The textual body of the alert. + * * Title - The title of the alert's window. + * * Button1 - The first button option. + * * Button2 - The second button option. + * * Button3 - The third button option. + * * StealFocus - Boolean operator controlling if the alert will steal the user's window focus. + * * Timeout - The timeout of the window, after which no responses will be valid. + */ +/proc/tgalert(mob/User, Message, Title, Button1="Ok", Button2, Button3, StealFocus = TRUE, Timeout = 6000) + if (!User) + User = usr + if (!istype(User)) + if (istype(User, /client)) + var/client/client = User + User = client.mob + else + return + + // Get user's response using a modal + var/datum/browser/modal/alert/A = new(User, Message, Title, Button1, Button2, Button3, StealFocus, Timeout) + A.open() + A.wait() + switch(A.selectedbutton) + if (1) + return Button1 + if (2) + return Button2 + if (3) + return Button3 + +/datum/browser/modal + var/opentime = 0 + var/timeout + var/selectedbutton = 0 + var/stealfocus + +/datum/browser/modal/New(nuser, nwindow_id, ntitle = 0, nwidth = 0, nheight = 0, atom/nref = null, StealFocus = 1, Timeout = 6000) + ..() + stealfocus = StealFocus + if (!StealFocus) + window_options += "focus=false;" + timeout = Timeout + + +/datum/browser/modal/close() + .=..() + opentime = 0 + +/datum/browser/modal/open(use_onclose, no_focus) + set waitfor = FALSE + opentime = world.time + + if (stealfocus) + . = ..(use_onclose = TRUE, no_focus = FALSE) + else + var/focusedwindow = winget(user, null, "focus") + . = ..(use_onclose = TRUE, no_focus = FALSE) + + //waits for the window to show up client side before attempting to un-focus it + //winexists sleeps until it gets a reply from the client, so we don't need to bother sleeping + for (var/i in 1 to 10) + if (user && winexists(user, window_id)) + if (focusedwindow) + winset(user, focusedwindow, "focus=true") + else + winset(user, "mapwindow", "focus=true") + break + if (timeout) + addtimer(CALLBACK(src, PROC_REF(close)), timeout) + +/datum/browser/modal/proc/wait() + while (opentime && selectedbutton <= 0 && (!timeout || opentime+timeout > world.time)) + stoplag(1) + +/datum/browser/modal/listpicker + var/valueslist = list() + +/datum/browser/modal/listpicker/New(User,Message,Title,Button1="Ok",Button2,Button3,StealFocus = 1, Timeout = FALSE,list/values,inputtype="checkbox", width, height, slidecolor) + if (!User) return - winset(user, windowid, "on-close=\".windowclose [atom_uid || "null"]\"") + var/output = {"
+ "} + + if (Button2) + output += {""} + + if (Button3) + output += {""} + + output += {"
"} + ..(User, ckey("[User]-[Message]-[Title]-[world.time]-[rand(1,10000)]"), Title, width, height, src, StealFocus, Timeout) + set_content(output) + +/datum/browser/modal/listpicker/Topic(href,href_list) + if (href_list["close"] || !user || !user.client) + opentime = 0 + return + if (href_list["button"]) + var/button = text2num(href_list["button"]) + if (button <= 3 && button >= 1) + selectedbutton = button + for (var/item in href_list) + switch(item) + if ("close", "button", "src") + continue + else + valueslist[item] = href_list[item] + opentime = 0 + close() + +/proc/presentpicker(mob/User,Message, Title, Button1="Ok", Button2, Button3, StealFocus = 1,Timeout = 6000,list/values, inputtype = "checkbox", width, height, slidecolor) + if (!istype(User)) + if (istype(User, /client/)) + var/client/C = User + User = C.mob + else + return + var/datum/browser/modal/listpicker/A = new(User, Message, Title, Button1, Button2, Button3, StealFocus,Timeout, values, inputtype, width, height, slidecolor) + A.open() + A.wait() + if (A.selectedbutton) + return list("button" = A.selectedbutton, "values" = A.valueslist) + +/datum/browser/modal/preflikepicker + var/settings = list() + var/icon/preview_icon = null + var/datum/callback/preview_update + +/datum/browser/modal/preflikepicker/New(User,Message,Title,Button1="Ok",Button2,Button3,StealFocus = 1, Timeout = FALSE,list/settings,inputtype="checkbox", width = 600, height, slidecolor) + if (!User) + return + src.settings = settings + + ..(User, ckey("[User]-[Message]-[Title]-[world.time]-[rand(1,10000)]"), Title, width, height, src, StealFocus, Timeout) + set_content(ShowChoices(User)) + +/datum/browser/modal/preflikepicker/proc/ShowChoices(mob/user) + if (settings["preview_callback"]) + var/datum/callback/callback = settings["preview_callback"] + preview_icon = callback.Invoke(settings) + if (preview_icon) + user << browse_rsc(preview_icon, "previewicon.png") + var/dat = "" + + for (var/name in settings["mainsettings"]) + var/setting = settings["mainsettings"][name] + if (setting["type"] == "datum") + if (setting["subtypesonly"]) + dat += "[setting["desc"]]: [setting["value"]]
" + else + dat += "[setting["desc"]]: [setting["value"]]
" + else + dat += "[setting["desc"]]: [setting["value"]]
" + + if (preview_icon) + dat += "" + + dat += "
" + + dat += "" + + dat += "" + + dat += "
Ok " + + dat += "
" + + return dat + +/datum/browser/modal/preflikepicker/Topic(href,href_list) + if (href_list["close"] || !user || !user.client) + opentime = 0 + return + if (href_list["task"] == "input") + var/setting = href_list["setting"] + switch (href_list["type"]) + if ("datum") + var/oldval = settings["mainsettings"][setting]["value"] + if (href_list["subtypesonly"]) + settings["mainsettings"][setting]["value"] = pick_closest_path(null, make_types_fancy(subtypesof(text2path(href_list["path"])))) + else + settings["mainsettings"][setting]["value"] = pick_closest_path(null, make_types_fancy(typesof(text2path(href_list["path"])))) + if (isnull(settings["mainsettings"][setting]["value"])) + settings["mainsettings"][setting]["value"] = oldval + if ("string") + settings["mainsettings"][setting]["value"] = tgui_input_text(user, "Введите новое значение для [settings["mainsettings"][setting]["desc"]]", "Введите новое значение для [settings["mainsettings"][setting]["desc"]]", settings["mainsettings"][setting]["value"], encode = FALSE) + if ("number") + settings["mainsettings"][setting]["value"] = tgui_input_number(user, "Введите новое значение для [settings["mainsettings"][setting]["desc"]]", "Введите новое значение для [settings["mainsettings"][setting]["desc"]]") + if ("color") + settings["mainsettings"][setting]["value"] = tgui_input_color(user, "Выберите новое значение для [settings["mainsettings"][setting]["desc"]]", "Выберите новое значение для [settings["mainsettings"][setting]["desc"]]", settings["mainsettings"][setting]["value"]) + if ("boolean") + settings["mainsettings"][setting]["value"] = (settings["mainsettings"][setting]["value"] == "Да") ? "Нет" : "Да" + if ("ckey") + settings["mainsettings"][setting]["value"] = tgui_input_list(user, "[settings["mainsettings"][setting]["desc"]]?", "", list("none") + GLOB.directory) + if (settings["mainsettings"][setting]["callback"]) + var/datum/callback/callback = settings["mainsettings"][setting]["callback"] + settings = callback.Invoke(settings) + if (href_list["button"]) + var/button = text2num(href_list["button"]) + if (button <= 3 && button >= 1) + selectedbutton = button + if (selectedbutton != 1) + set_content(ShowChoices(user)) + open() + return + for (var/item in href_list) + switch(item) + if ("close", "button", "src") + continue + opentime = 0 + close() + +/proc/presentpreflikepicker(mob/User,Message, Title, Button1="Ok", Button2, Button3, StealFocus = 1,Timeout = 6000,list/settings, width, height, slidecolor) + if (!istype(User)) + if (istype(User, /client/)) + var/client/C = User + User = C.mob + else + return + var/datum/browser/modal/preflikepicker/A = new(User, Message, Title, Button1, Button2, Button3, StealFocus,Timeout, settings, width, height, slidecolor) + A.open() + A.wait() + if (A.selectedbutton) + return list("button" = A.selectedbutton, "settings" = A.settings) + + +// Registers the on-close verb for a browse window (client/verb/.windowclose) +// this will be called when the close-button of a window is pressed. +// +// This is usually only needed for devices that regularly update the browse window, +// e.g. canisters, timers, etc. +// +// windowid should be the specified window name +// e.g. code is : user << browse(text, "window=fred") +// then use : onclose(user, "fred") +// +// Optionally, specify the "ref" parameter as the controlled atom (usually src) +// to pass a "close=1" parameter to the atom's Topic() proc for special handling. +// Otherwise, the user mob's machine var will be reset directly. +// +/proc/onclose(mob/user, windowid, atom/ref=null) + if(!user.client) + return + var/param = "null" + if(ref) + param = "[ref.UID()]" + + winset(user, windowid, "on-close=\".windowclose [param]\"") + + // the on-close client verb // called when a browser popup window is closed after registering with proc/onclose() -// if a valid atom uid is supplied, call the atom's Topic() with "close=1" +// if a valid atom reference is supplied, call the atom's Topic() with "close=1" // otherwise, just reset the client mob's machine var. // -/client/verb/windowclose(atom_uid as text) +/client/verb/windowclose(atomref as text) set hidden = TRUE // hide this verb from the user's panel set name = ".windowclose" // no autocomplete on cmd line - if(atom_uid != "null") // if passed a real atom_uid - var/hsrc = locateUID(atom_uid) // find the reffed atom + if(atomref != "null") // if passed a real atomref + var/hsrc = locate(atomref) // find the reffed atom + var/href = "close=1" if(hsrc) - var/href = "close=1" usr = src.mob src.Topic(href, params2list(href), hsrc) // this will direct to the atom's return // Topic() proc via client.Topic() diff --git a/code/datums/cache/crew.dm b/code/datums/cache/crew.dm index f3e416f851c..81f3418b35b 100644 --- a/code/datums/cache/crew.dm +++ b/code/datums/cache/crew.dm @@ -42,7 +42,7 @@ GLOBAL_DATUM_INIT(crew_repository, /datum/repository/crew, new()) var/turf/pos = get_turf(C) if(!istype(pos) || !T) continue - if((pos.z != T.z) && !(check_level_trait(pos.z, STATION_LEVEL) && check_level_trait(T.z, STATION_LEVEL))) // same z_level or both on STATION_LEVEL + if((pos.z != T.z) && !(is_station_level(pos.z) && is_station_level(T.z))) // same z_level or both on STATION_LEVEL continue var/list/crewmemberData = list("dead"=0, "oxy"=-1, "tox"=-1, "fire"=-1, "brute"=-1, "area"="", "x"=-1, "y"=-1, "ref" = "\ref[H]") diff --git a/code/datums/components/object_possession.dm b/code/datums/components/object_possession.dm new file mode 100644 index 00000000000..998513bb092 --- /dev/null +++ b/code/datums/components/object_possession.dm @@ -0,0 +1,130 @@ +/// Component that allows a user to control any object as if it were a mob. Does give the user incorporeal movement. +/datum/component/object_possession + dupe_mode = COMPONENT_DUPE_UNIQUE_PASSARGS + /// Stores a reference to the obj that we are currently possessing. + var/obj/possessed + /// Ref to the screen object that is currently being displayed. + var/datum/weakref/screen_alert_ref + /** + * back up of the real name during user possession + * + * When a user possesses an object it's real name is set to the user name and this + * stores whatever the real name was previously. When possession ends, the real name + * is reset to this value + */ + var/stashed_name + +/datum/component/object_possession/Initialize(obj/target) + . = ..() + if(!isobj(target) || !ismob(parent)) + return COMPONENT_INCOMPATIBLE + + if(!bind_to_new_object(target)) + return COMPONENT_INCOMPATIBLE + + var/mob/user = parent + screen_alert_ref = WEAKREF(user.throw_alert(ALERT_UNPOSSESS_OBJECT, /atom/movable/screen/alert/unpossess_object)) + +/datum/component/object_possession/RegisterWithParent() + RegisterSignals(parent, list(COMSIG_MOB_CLIENT_PRE_LIVING_MOVE, COMSIG_MOB_CLIENT_PRE_NON_LIVING_MOVE), PROC_REF(on_move)) + RegisterSignal(parent, COMSIG_MOB_GHOSTIZE, PROC_REF(end_possession)) + +/datum/component/object_possession/UnregisterFromParent() + UnregisterSignal(parent, list( + COMSIG_MOB_CLIENT_PRE_LIVING_MOVE, + COMSIG_MOB_CLIENT_PRE_NON_LIVING_MOVE, + COMSIG_MOB_GHOSTIZE, + )) + +/datum/component/object_possession/Destroy() + cleanup_object_binding() + + var/mob/user = parent + var/atom/movable/screen/alert/alert_to_clear = screen_alert_ref?.resolve() + + if(!QDELETED(alert_to_clear)) + user.clear_alert(ALERT_UNPOSSESS_OBJECT) + + return ..() + +/datum/component/object_possession/InheritComponent(datum/component/object_possession/old_component, i_am_original, obj/target) + cleanup_object_binding() + + if(!bind_to_new_object(target)) + qdel(src) + + stashed_name = old_component?.stashed_name + +/// Binds the mob to the object and sets up the naming and everything. +/// Returns FALSE if we don't bind, TRUE if we succeed. +/datum/component/object_possession/proc/bind_to_new_object(obj/target) + if(issingularity(target) && CONFIG_GET(flag/forbid_singulo_possession)) + to_chat(parent, "[target] сопротивляется вашему контролю.", confidential = TRUE) + return FALSE + + var/mob/user = parent + + stashed_name = user.real_name + possessed = target + + user.forceMove(target) + user.real_name = target.name + user.name = target.name + user.reset_perspective(target) + + RegisterSignal(target, COMSIG_QDELETING, PROC_REF(end_possession)) + SEND_SIGNAL(target, COMSIG_OBJ_POSSESSED, parent) + + return TRUE + +/// Cleans up everything pertinent to the current possessed object. +/datum/component/object_possession/proc/cleanup_object_binding() + if(QDELETED(possessed)) + return + + var/mob/poltergeist = parent + + UnregisterSignal(possessed, COMSIG_QDELETING) + + if(!isnull(stashed_name)) + poltergeist.real_name = stashed_name + poltergeist.name = stashed_name + + if(ishuman(poltergeist)) + var/mob/living/carbon/human/human_user = poltergeist + human_user.name = human_user.get_visible_name() + + poltergeist.forceMove(get_turf(possessed)) + poltergeist.reset_perspective() + + possessed = null + +/** + * force move the parent object instead of the source mob. + * + * Has no sanity other than checking the possed obj's density. this means it effectively has incorporeal movement, making it only good for badminnery. + * + * We always want to return `COMPONENT_MOVABLE_BLOCK_PRE_MOVE` here regardless + */ +/datum/component/object_possession/proc/on_move(datum/source, new_loc, direct) + SIGNAL_HANDLER + + . = COMPONENT_MOVABLE_BLOCK_PRE_MOVE // both signals that invoke this are explicitly tied to listen for this define as the return value + + if(!possessed.density) + possessed.forceMove(get_step(possessed, direct)) + + else + step(possessed, direct) + + possessed.setDir(direct) + SEND_SIGNAL(possessed, COMSIG_POSSESSED_MOVEMENT, source, new_loc, direct) + + return + +/// Just the overall "get me outta here" proc. +/datum/component/object_possession/proc/end_possession(datum/source) + SIGNAL_HANDLER + + SEND_SIGNAL(possessed, COMSIG_OBJ_RELEASED, parent) + qdel(src) diff --git a/code/datums/components/pref_holder.dm b/code/datums/components/pref_holder.dm index 23b39b8b596..853425012dc 100644 --- a/code/datums/components/pref_holder.dm +++ b/code/datums/components/pref_holder.dm @@ -15,12 +15,12 @@ src.preferences = preferences || forge_preferences() /datum/component/pref_holder/RegisterWithParent() - RegisterSignal(parent, COMSIG_BODY_TRANSFER_TO, PROC_REF(on_mind_transfer)) + RegisterSignal(parent, COMSIG_MOB_LOGIN, PROC_REF(handle_transfer)) /datum/component/pref_holder/UnregisterFromParent() - UnregisterSignal(parent, COMSIG_BODY_TRANSFER_TO) + UnregisterSignal(parent, COMSIG_MOB_LOGIN) -/datum/component/pref_holder/proc/on_mind_transfer(mob/source) +/datum/component/pref_holder/proc/handle_transfer(mob/source) SIGNAL_HANDLER preferences = forge_preferences() diff --git a/code/datums/datacore.dm b/code/datums/datacore.dm index 4c5d1db4470..6e1d2296f9c 100644 --- a/code/datums/datacore.dm +++ b/code/datums/datacore.dm @@ -154,7 +154,7 @@ GLOBAL_VAR_INIT(record_id_num, 1001) G.fields["rank"] = assignment G.fields["age"] = H.age G.fields["fingerprint"] = md5(H.dna.uni_identity) - G.fields["p_stat"] = "Стабильное" + G.fields["p_stat"] = "Активный" G.fields["m_stat"] = "Стабильное" G.fields["sex"] = capitalize(H.gender) G.fields["species"] = H.dna.species.name diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 00781cb6cfc..3029993e12c 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -151,22 +151,22 @@ if(!istype(new_character)) stack_trace("transfer_to(): Some idiot has tried to transfer_to() a non mob/living mob.") - var/datum/atom_hud/antag/hud_to_transfer = antag_hud //we need this because leave_hud() will clear this list + var/datum/atom_hud/antag/hud_to_transfer = antag_hud // we need this because leave_hud() will clear this list var/mob/living/old_current = current - if(current) //remove ourself from our old body's mind variable + if(current) // remove ourself from our old body's mind variable current.mind = null - leave_all_huds() //leave all the huds in the old body, so it won't get huds if somebody else enters it + leave_all_huds() // leave all the huds in the old body, so it won't get huds if somebody else enters it SStgui.on_transfer(current, new_character) - if(new_character.mind) //remove any mind currently in our new body's mind variable + if(new_character.mind) // remove any mind currently in our new body's mind variable new_character.mind.current = null - current = new_character //link ourself to our new body - new_character.mind = src //and link our new body to ourself + current = new_character // link ourself to our new body + new_character.mind = src // and link our new body to ourself - transfer_antag_huds(hud_to_transfer) //inherit the antag HUD + transfer_antag_huds(hud_to_transfer) // inherit the antag HUD transfer_actions(new_character, old_current) if(martial_art) @@ -177,11 +177,11 @@ if(!MA.temporary) MA.teach(current) - for(var/datum/antagonist/antag in antag_datums) //Makes sure all antag datums effects are applied in the new body + for(var/datum/antagonist/antag in antag_datums) // Makes sure all antag datums effects are applied in the new body antag.on_body_transfer(old_current, current) if(active) - new_character.key = key //now transfer the key to link the client to our new body + new_character.set_key(key) // now transfer the key to link the client to our new body // essential mob updates new_character.update_blind_effects() diff --git a/code/datums/outfits/outfit_prisoner.dm b/code/datums/outfits/outfit_prisoner.dm new file mode 100644 index 00000000000..bdd2c4277d4 --- /dev/null +++ b/code/datums/outfits/outfit_prisoner.dm @@ -0,0 +1,23 @@ +/datum/outfit/prisoner + uniform = /obj/item/clothing/under/color/orange + shoes = /obj/item/clothing/shoes/orange + +/datum/outfit/prisoner/plasmamen + uniform =/obj/item/clothing/under/plasmaman + head = /obj/item/clothing/head/helmet/space/plasmaman + belt = /obj/item/tank/internals/plasmaman/belt/full + mask = /obj/item/clothing/mask/breath + +/datum/outfit/prisoner/plasmamen/post_equip(mob/living/carbon/human/H, visualsOnly) + . = ..() + var/obj/item/tank/internals/tank = H.belt + tank.toggle_internals(H) + +/datum/outfit/prisoner/vox + mask = /obj/item/clothing/mask/breath/vox + belt = /obj/item/tank/internals/emergency_oxygen/double/vox + +/datum/outfit/prisoner/vox/post_equip(mob/living/carbon/human/H, visualsOnly) + . = ..() + var/obj/item/tank/internals/tank = H.belt + tank.toggle_internals(H) diff --git a/code/game/area/ss13_areas.dm b/code/game/area/ss13_areas.dm index 933e23e45d5..0ba7537c856 100644 --- a/code/game/area/ss13_areas.dm +++ b/code/game/area/ss13_areas.dm @@ -2760,6 +2760,8 @@ This applies to all STANDARD station areas /area/aisat/aihallway name = "AI Satellite Exterior Hallway" icon_state = "yellow" + ambientsounds = ENGINEERING_SOUNDS + sound_environment = SOUND_AREA_STANDARD_STATION /area/aisat/entrance name = "AI Satellite Entrance" diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 738c2d72b7a..4c3d28d2de9 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -1754,3 +1754,7 @@ GLOBAL_LIST_EMPTY(blood_splatter_icons) */ /atom/proc/relaydrive(mob/living/user, direction) return !(SEND_SIGNAL(src, COMSIG_RIDDEN_DRIVER_MOVE, user, direction) & COMPONENT_DRIVER_BLOCK_MOVE) + +///returns how much the object blocks an explosion. Used by subtypes. +/atom/proc/get_explosion_block() + CRASH("Unimplemented get_explosion_block()") diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm index 03bc3a620a8..febb267a193 100644 --- a/code/game/dna/dna_modifier.dm +++ b/code/game/dna/dna_modifier.dm @@ -259,6 +259,19 @@ if(!do_after(user, 2 SECONDS, M)) return + if(occupant) + balloon_alert(user, "внутри кто-то есть!") + return + var/mob/living/L = M + if(!istype(L) || L.buckled) + return + if(L.abiotic()) + balloon_alert(user, "руки субъекта заняты!") + return + if(L.has_buckled_mobs()) //mob attached to us + to_chat(user, span_warning("[L] не помест[pluralize_ru(L.gender, "ит", "ят")]ся в [declent_ru(ACCUSATIVE)], пока на [genderize_ru(L.gender, "нём", "ней", "нём", "них")] сидит слайм!")) + return + M.forceMove(src) occupant = M icon_state = "scanner_occupied" diff --git a/code/game/gamemodes/meteor/meteors.dm b/code/game/gamemodes/meteor/meteors.dm index 0b1c4cb91ed..02282aa86d0 100644 --- a/code/game/gamemodes/meteor/meteors.dm +++ b/code/game/gamemodes/meteor/meteors.dm @@ -131,6 +131,8 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / var/meteorsound = 'sound/effects/meteorimpact.ogg' ///Our starting z level, prevents infinite meteors var/z_original + /// used for determining which meteors are most interesting + var/threat = 0 //Potential items to spawn when we die. Can be list. var/list/meteordrop = /obj/item/stack/ore/iron @@ -151,6 +153,9 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / GLOB.meteor_list += src SpinAnimation() chase_target(target) + if(SSaugury) + SSaugury.register_doom(src, threat) + QDEL_IN(src, lifetime) /obj/effect/meteor/Destroy() @@ -266,6 +271,8 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / var/random_frequency = get_rand_frequency() for(var/mob/mob as anything in GLOB.player_list) + if((mob.orbiting) && (SSaugury?.watchers[mob])) + continue var/turf/mob_turf = get_turf(mob) if(!mob_turf || mob_turf.z != z) continue @@ -296,6 +303,7 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / /obj/effect/meteor/medium name = "meteor" dropamt = 3 + threat = 5 /obj/effect/meteor/medium/meteor_effect() @@ -310,6 +318,7 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / heavy = TRUE hits = 6 dropamt = 4 + threat = 10 /obj/effect/meteor/big/meteor_effect() @@ -325,6 +334,7 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / heavy = TRUE meteorsound = 'sound/effects/bamf.ogg' meteordrop = /obj/item/stack/ore/plasma + threat = 20 /obj/effect/meteor/flaming/meteor_effect() @@ -338,6 +348,7 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / icon_state = "glowing" heavy = TRUE meteordrop = /obj/item/stack/ore/uranium + threat = 15 /obj/effect/meteor/irradiated/meteor_effect() @@ -358,6 +369,7 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / heavy = TRUE meteorsound = 'sound/effects/bamf.ogg' meteordrop = /obj/item/stack/ore/plasma + threat = 50 /obj/effect/meteor/tunguska/meteor_effect() @@ -382,6 +394,7 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / meteorsound = 'sound/effects/blobattack.ogg' meteordrop = /obj/item/reagent_containers/food/snacks/meat var/meteorgibs = /obj/effect/gibspawner/generic + threat = 2 /obj/effect/meteor/gore/make_debris() @@ -406,10 +419,11 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / //Meteor Ops /obj/effect/meteor/gore/ops name = "meteorOps" - icon = 'icons/mob/animal.dmi' - icon_state = "syndicaterangedpsace" + icon = 'icons/mob/simple_human.dmi' + icon_state = "syndicate_space" hits = 10 hitpwr = EXPLODE_DEVASTATE + threat = 30 /obj/effect/meteor/gore/pigops @@ -419,6 +433,7 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / hitpwr = EXPLODE_DEVASTATE hits = 3 shake_chance = 20 + threat = 25 //Dust @@ -431,6 +446,7 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / hitpwr = EXPLODE_LIGHT meteorsound = 'sound/weapons/tap.ogg' meteordrop = /obj/item/stack/ore/glass + threat = 1 // Space Dust @@ -442,6 +458,7 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / hitpwr = EXPLODE_HEAVY hits = 2 meteordrop = null + threat = 5 /obj/effect/meteor/space_dust/ex_act(severity) @@ -451,14 +468,16 @@ GLOBAL_LIST_INIT(meteors_space_dust, list(/obj/effect/meteor/space_dust/weak)) / /obj/effect/meteor/space_dust/weak hitpwr = EXPLODE_LIGHT hits = 1 + threat = 1 /obj/effect/meteor/space_dust/strong hitpwr = EXPLODE_DEVASTATE hits = 6 + threat = 10 /obj/effect/meteor/space_dust/super hitpwr = EXPLODE_DEVASTATE hits = 40 - + threat = 40 diff --git a/code/game/machinery/Freezer.dm b/code/game/machinery/Freezer.dm index a4b288d6ed2..d6546b47454 100644 --- a/code/game/machinery/Freezer.dm +++ b/code/game/machinery/Freezer.dm @@ -47,7 +47,7 @@ H += M.rating for(var/obj/item/stock_parts/micro_laser/M in component_parts) T += M.rating - min_temperature = max(0,T0C - (170 + (T*15))) + min_temperature = max(TCMB, T0C - (170 + (T*15))) current_heat_capacity = 1000 * ((H - 1) ** 2) /obj/machinery/atmospherics/unary/cold_sink/freezer/on_construction() diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index cca9181a7e9..e9d6a0114c6 100644 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -143,10 +143,14 @@ setMenuState(ui.user, COMM_SCREEN_MAIN) if("newalertlevel") + var/code = text2num(params["level"]) if(isAI(ui.user) || isrobot(ui.user)) to_chat(ui.user, span_warning("Брандмауэры не позволяют вам изменить уровень угрозы.")) return - else if(FULL_ADMIN_CHECK(ui.user)) + else if(ADMIN_CHECK(ui.user)) + if(code > SEC_LEVEL_GAMMA && !FULL_ADMIN_CHECK(ui.user)) + to_chat(ui.user, span_warning("Вашего уровня доступа не хватает для повышения уровня угрозы выше чем Гамма.")) + return change_security_level(text2num(params["level"]), force = TRUE) return else if(!ishuman(ui.user)) @@ -314,26 +318,31 @@ if("send_to_cc_announcement_page") if(!ADMIN_CHECK(ui.user)) + to_chat(ui.user, span_warning("Вашего уровня доступа не хватает для отправки данного типа оповещений.")) return setMenuState(ui.user, COMM_SCREEN_ANNOUNCER) if("make_other_announcement") if(!FULL_ADMIN_CHECK(ui.user)) + to_chat(ui.user, span_warning("Вашего уровня доступа не хватает для отправки данного типа оповещений.")) return ui.user.client.cmd_admin_create_centcom_report() if("dispatch_ert") - if(!FULL_ADMIN_CHECK(ui.user)) + if(!ADMIN_CHECK(ui.user)) + to_chat(ui.user, span_warning("Вашего уровня доступа не хватает для отправки ОБР.")) return - ui.user.client.response_team() // check_rights is handled on the other side, if someone does get ahold of this + ui.user.client.send_response_team()// check_rights is handled on the other side, if someone does get ahold of this if("send_nuke_codes") if(!ADMIN_CHECK(ui.user)) + to_chat(ui.user, span_warning("Вашего уровня доступа не хватает для отправки кодов аутентификации.")) return print_nuke_codes() if("move_gamma_armory") if(!FULL_ADMIN_CHECK(ui.user)) + to_chat(ui.user, span_warning("Вашего уровня доступа не хватает для отправки оружейного шаттла \"Гамма\".")) return SSblackbox.record_feedback("tally", "admin_comms_console", 1, "Send Gamma Armory") log_and_message_admins("moved the gamma armory") @@ -342,17 +351,20 @@ if("toggle_ert_allowed") if(!FULL_ADMIN_CHECK(ui.user)) + to_chat(ui.user, span_warning("Вашего уровня доступа не хватает для запрета вызова ОБР.")) return ui.user.client.toggle_ert_calling() if("view_fax") if(!ADMIN_CHECK(ui.user)) + to_chat(ui.user, span_warning("Вашего уровня доступа не хватает для открытия факс панели.")) return ui.user.client.fax_panel() if("make_cc_announcement") if(!ADMIN_CHECK(ui.user)) + to_chat(ui.user, span_warning("Вашего уровня доступа не хватает для отправки данного типа оповещений.")) return if(!params["classified"]) GLOB.command_announcement.Announce( diff --git a/code/game/machinery/computer/law.dm b/code/game/machinery/computer/law.dm index 3b0c947603c..cabc7aad728 100644 --- a/code/game/machinery/computer/law.dm +++ b/code/game/machinery/computer/law.dm @@ -114,7 +114,7 @@ return var/mob/living/silicon/ai/ai = current - if(!atoms_share_level(get_turf(ai), src)) + if(!are_zs_connected(ai, src)) to_chat(user, span_notice("Unable to establish a connection: You're too far away from the target silicon!")) return if(ai.on_the_card) @@ -244,7 +244,7 @@ return var/mob/living/silicon/robot/robot = current - if(!atoms_share_level(get_turf(current), src)) + if(!are_zs_connected(current, src)) to_chat(user, span_notice("Unable to establish a connection: You're too far away from the target silicon!")) return if(robot.stat == DEAD || robot.emagged) diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm index e0deb7d3cf5..31d3072ad22 100644 --- a/code/game/machinery/computer/robot.dm +++ b/code/game/machinery/computer/robot.dm @@ -50,7 +50,7 @@ return FALSE if(R.scrambledcodes) return FALSE - if(!atoms_share_level(get_turf(src), get_turf(R))) + if(!are_zs_connected(src, R)) return FALSE return TRUE diff --git a/code/game/machinery/computer/sm_monitor.dm b/code/game/machinery/computer/sm_monitor.dm index b1538fee04b..65795eb6a28 100644 --- a/code/game/machinery/computer/sm_monitor.dm +++ b/code/game/machinery/computer/sm_monitor.dm @@ -104,7 +104,7 @@ return for(var/obj/machinery/power/supermatter_shard/S in SSair.atmos_machinery) // Delaminating, not within coverage, not on a tile. - if(!(is_station_level(S.z) || is_mining_level(S.z) || atoms_share_level(S, T) || !istype(S.loc, /turf/simulated/))) + if(!are_zs_connected(S, T) || !issimulatedturf(S.loc)) continue supermatters.Add(S) diff --git a/code/game/machinery/computer/station_alert.dm b/code/game/machinery/computer/station_alert.dm index a7d321d724a..94a1bea57b1 100644 --- a/code/game/machinery/computer/station_alert.dm +++ b/code/game/machinery/computer/station_alert.dm @@ -51,7 +51,7 @@ for(var/area in SSalarm.alarms[class]) for(var/thing in SSalarm.alarms[class][area][3]) var/atom/A = locateUID(thing) - if(atoms_share_level(A, src)) + if(are_zs_connected(A, src)) data["alarms"][class] += area return data diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index a399d818477..058399d9bf2 100644 --- a/code/game/machinery/doors/door.dm +++ b/code/game/machinery/doors/door.dm @@ -528,5 +528,5 @@ ..(severity ? max(1, severity - 1) : 0) -/obj/machinery/door/GetExplosionBlock() +/obj/machinery/door/get_explosion_block() return density ? real_explosion_block : 0 diff --git a/code/game/machinery/tcomms/core.dm b/code/game/machinery/tcomms/core.dm index b7110523246..07bf834f2d9 100644 --- a/code/game/machinery/tcomms/core.dm +++ b/code/game/machinery/tcomms/core.dm @@ -181,7 +181,7 @@ if(C == src) continue // We dont care about ones on other zlevels - if(!atoms_share_level(C, src)) + if(!are_zs_connected(C, src)) continue // If another core is active, return FALSE if(C.active) diff --git a/code/game/machinery/tcomms/relay.dm b/code/game/machinery/tcomms/relay.dm index deee6d7b144..8503233d9f4 100644 --- a/code/game/machinery/tcomms/relay.dm +++ b/code/game/machinery/tcomms/relay.dm @@ -84,7 +84,7 @@ if(R == src) continue // We dont care about ones on other zlevels - if(!atoms_share_level(R, src)) + if(!are_zs_connected(R, src)) continue // If another relay is active, return FALSE if(R.active) diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 94c22ff7c45..07269cf5338 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -221,11 +221,11 @@ /obj/machinery/vending/examine(mob/user) . = ..() if(tilted) - . += span_warning("Он лежит на боку и не будет функционировать до тех пор, пока его не поправят.") + . += span_warning("Он лежит на боку и не будет функционировать до тех пор, пока его не поднимут.") if(Adjacent(user)) - . += span_notice("Нажмите Alt-Click чтобы поднять автомат.") + . += span_notice("Используйте Alt+ЛКМ, чтобы поднять автомат.") if(aggressive) - . += span_warning("Его индикаторы, кажется, зловеще мигают...") + . += span_warning("Его индикаторы зловеще мигают...") /obj/machinery/vending/AltClick(mob/user) if(!tilted || !Adjacent(user) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED)) @@ -745,7 +745,7 @@ var/estimated_height = 100 + min(length(product_records) * 34, 500) if(length(prices) > 0) estimated_height += 100 // to account for the "current user" interface - ui = new(user, src, "Vending", name) + ui = new(user, src, "Vending", capitalize(declent_ru(NOMINATIVE))) ui.open() /obj/machinery/vending/ui_data(mob/user) @@ -766,7 +766,7 @@ var/obj/item/stack/spacecash/S = H.get_active_hand() if(istype(S)) data["userMoney"] = S.amount - data["guestNotice"] = "Принимаем наличные. У вас есть: [S.amount] кредитов." + data["guestNotice"] = "Принимаем наличные. У вас есть: [S.amount] кредит[pluralize_ru(S.amount, "", "а", "ов")]." else if(istype(H)) var/obj/item/card/id/C = H.get_id_card() if(istype(A)) @@ -781,11 +781,11 @@ data["stock"][R.name] = R.amount data["extended_inventory"] = extended_inventory data["vend_ready"] = vend_ready - data["coin_name"] = coin ? coin.name : FALSE + data["coin_name"] = coin ? coin.declent_ru(NOMINATIVE) : FALSE data["panel_open"] = panel_open ? TRUE : FALSE data["speaker"] = shut_up ? FALSE : TRUE data["item_slot"] = item_slot // boolean - data["inserted_item_name"] = inserted_item ? inserted_item.name : FALSE + data["inserted_item_name"] = inserted_item ? inserted_item.declent_ru(NOMINATIVE) : FALSE return data @@ -831,7 +831,7 @@ var/obj/item = R.product_path var/list/data_hr = list( path = replacetext(replacetext("[R.product_path]", "/obj/item/", ""), "/", "-"), - name = R.name, + name = R.name, // (NOMINATIVE in R.ru_names) ? R.ru_names[NOMINATIVE] : R.name, price = (item in prices) ? prices[item] : 0, icon = item.icon, icon_state = item.icon_state, @@ -868,7 +868,7 @@ if(issilicon(usr)) balloon_alert(usr, "у вас нет рук!") return - to_chat(usr, span_notice("Вы достали [coin] из [declent_ru(GENITIVE)].")) + to_chat(usr, span_notice("Вы достали [coin.declent_ru(ACCUSATIVE)] из [declent_ru(GENITIVE)].")) coin.forceMove_turf() usr.put_in_hands(coin, ignore_anim = FALSE) coin = null @@ -907,7 +907,7 @@ message_admins("Vending machine exploit attempted by [ADMIN_LOOKUPFLW(usr)]!") return if (R.amount <= 0) - to_chat(usr, "Sold out of [R.name].") + to_chat(usr, "Товар \"[R.name]\" закончился!") flick_vendor_overlay(FLICK_VEND) return @@ -953,7 +953,7 @@ vend(currently_vending, usr) . = TRUE else - to_chat(usr, span_warning("Сбой платежа: не удается обработать платеж.")) + to_chat(usr, span_warning("Сбой платежа: не удаётся обработать платеж.")) vend_ready = TRUE if(.) add_fingerprint(usr) @@ -982,9 +982,9 @@ return if(coin.string_attached) if(prob(50)) - to_chat(user, span_notice("Вы успешно вытаскиваете монету до того, как [declent_ru(NOMINATIVE)] успевает ее проглотить.")) + to_chat(user, span_warning("Вы успешно вытаскиваете монету до того, как [declent_ru(NOMINATIVE)] успевает ее проглотить!")) else - to_chat(user, span_notice("Вы не смогли вытащить монету достаточно быстро, [declent_ru(NOMINATIVE)] съел ее вместе с ниткой и всем остальным.")) + to_chat(user, span_warning("Вы не смогли вытащить монету достаточно быстро, [declent_ru(NOMINATIVE)] съел её вместе с ниткой и всем остальным!")) QDEL_NULL(coin) else QDEL_NULL(coin) @@ -1115,7 +1115,7 @@ if(!throw_item) return throw_item.throw_at(target, 16, 3) - visible_message(span_danger("[capitalize(declent_ru(NOMINATIVE))] метнул [throw_item.name] в [target.name]!")) + visible_message(span_danger("[capitalize(declent_ru(NOMINATIVE))] метнул [throw_item.declent_ru(ACCUSATIVE)] в [target]!")) /obj/machinery/vending/shove_impact(mob/living/target, mob/living/attacker) diff --git a/code/game/objects/explosion.dm b/code/game/objects/explosion.dm index 8f8d4991d87..5e60931d995 100644 --- a/code/game/objects/explosion.dm +++ b/code/game/objects/explosion.dm @@ -10,252 +10,6 @@ #define FREQ_UPPER 40 //The upper limit for the randomly selected frequency. #define FREQ_LOWER 25 //The lower of the above. -/proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, adminlog = 1, ignorecap = 0, flame_range = 0, silent = 0, smoke = 1, var/cause = null, breach = TRUE) - epicenter = get_turf(epicenter) - if(!epicenter) - return - - // Archive the uncapped explosion for the doppler array - var/orig_dev_range = devastation_range - var/orig_heavy_range = heavy_impact_range - var/orig_light_range = light_impact_range - - var/orig_max_distance = max(devastation_range, heavy_impact_range, light_impact_range, flash_range, flame_range) - - if(!ignorecap) - // Clamp all minimal values to 0, due to negative explosions doesn't exist - devastation_range = max(devastation_range, 0) - heavy_impact_range = max(heavy_impact_range, 0) - light_impact_range = max(light_impact_range, 0) - flash_range = max(flash_range, 0) - flame_range = max(flame_range, 0) - - // Clamp all values to MAX_EXPLOSION_RANGE - devastation_range = min (GLOB.max_ex_devastation_range, devastation_range) - heavy_impact_range = min (GLOB.max_ex_heavy_range, heavy_impact_range) - light_impact_range = min (GLOB.max_ex_light_range, light_impact_range) - flash_range = min (GLOB.max_ex_flash_range, flash_range) - flame_range = min (GLOB.max_ex_flame_range, flame_range) - - var/max_range = max(devastation_range, heavy_impact_range, light_impact_range, flame_range) - - spawn(0) - var/watch = start_watch() - - var/list/cached_exp_block = list() - var/multiz_explosions = FALSE - if(CONFIG_GET(flag/multiz_explosions)) - multiz_explosions = TRUE - var/reactionary_explosions = FALSE - if(CONFIG_GET(flag/reactionary_explosions)) - reactionary_explosions = TRUE - - if(adminlog) - var/cause_str - var/atom/cause_atom - var/cause_vv = "" - if(isatom(cause)) - cause_atom = cause - cause_str = cause_atom.name - cause_vv += ADMIN_VV(cause_atom,"VV") - else if(istext(cause)) - cause_str = cause - else if(isnull(cause)) - pass() - else - log_runtime("Bad type of cause for logging explosion.") - - message_admins("Explosion with size ([devastation_range], [heavy_impact_range], [light_impact_range], [flame_range]) [cause ? "(Cause: [cause_str] [cause_vv])" : ""] [ADMIN_VERBOSEJMP(epicenter)] ") - add_game_logs("Explosion with size ([devastation_range], [heavy_impact_range], [light_impact_range], [flame_range]) [cause ? "(Cause: [cause_str])" : ""] [AREACOORD(epicenter)] ") - - var/x0 = epicenter.x - var/y0 = epicenter.y - var/z0 = epicenter.z - - // Play sounds; we want sounds to be different depending on distance so we will manually do it ourselves. - // Stereo users will also hear the direction of the explosion! - - // Calculate far explosion sound range. Only allow the sound effect for heavy/devastating explosions. - // 3/7/14 will calculate to 80 + 35 - - var/far_dist = 0 - far_dist += heavy_impact_range * 15 - far_dist += devastation_range * 20 - - if(!silent) - var/frequency = get_rand_frequency() - var/sound/explosion_sound = sound(get_sfx("explosion")) - var/sound/far_explosion_sound = sound('sound/effects/explosionfar.ogg') - var/sound/creaking_explosion_sound = sound(get_sfx("explosion_creaking")) - var/sound/hull_creaking_sound = sound(get_sfx("hull_creaking")) - var/sound/explosion_echo_sound = sound('sound/effects/explosion_distant.ogg') - var/on_station = is_station_level(epicenter.z) - var/creaking_explosion = FALSE - - if(prob(devastation_range * DEVASTATION_PROB + heavy_impact_range * HEAVY_IMPACT_PROB) && on_station) // Huge explosions are near guaranteed to make the station creak and whine, smaller ones might. - creaking_explosion = TRUE // prob over 100 always returns true - - for(var/MN in GLOB.player_list) - var/mob/M = MN - // Double check for client - var/turf/M_turf = get_turf(M) - if(M_turf && M_turf.z == z0) - var/dist = get_dist(M_turf, epicenter) - var/baseshakeamount - if(orig_max_distance - dist > 0) - baseshakeamount = sqrt((orig_max_distance - dist) * 0.1) - // If inside the blast radius + world.view - 2 - if(dist <= round(max_range + world.view - 2, 1)) - M.playsound_local(epicenter, null, 100, 1, frequency, S = explosion_sound) - if(baseshakeamount > 0) - shake_camera(M, 25, clamp(baseshakeamount, 0, 10)) - // You hear a far explosion if you're outside the blast radius. Small bombs shouldn't be heard all over the station. - else if(dist <= far_dist) - var/far_volume = clamp(far_dist / 2, FAR_LOWER, FAR_UPPER) // Volume is based on explosion size and dist - if(creaking_explosion) - M.playsound_local(epicenter, null, far_volume, 1, frequency, S = creaking_explosion_sound, distance_multiplier = 0) - else if(prob(PROB_SOUND)) // Sound variety during meteor storm/tesloose/other bad event - M.playsound_local(epicenter, null, far_volume, 1, frequency, S = far_explosion_sound, distance_multiplier = 0) // Far sound - else - M.playsound_local(epicenter, null, far_volume, 1, frequency, S = explosion_echo_sound, distance_multiplier = 0) // Echo sound - - if(baseshakeamount > 0 || devastation_range) - if(!baseshakeamount) // Devastating explosions rock the station and ground - baseshakeamount = devastation_range * 3 - shake_camera(M, 10, clamp(baseshakeamount * 0.25, 0, SHAKE_CLAMP)) - else if(!isspaceturf(get_turf(M)) && heavy_impact_range) // Big enough explosions echo throughout the hull - var/echo_volume = 40 - if(devastation_range) - baseshakeamount = devastation_range - shake_camera(M, 10, clamp(baseshakeamount * 0.25, 0, SHAKE_CLAMP)) - echo_volume = 60 - M.playsound_local(epicenter, null, echo_volume, 1, frequency, S = explosion_echo_sound, distance_multiplier = 0) - - if(creaking_explosion) // 5 seconds after the bang, the station begins to creak - addtimer(CALLBACK(M, TYPE_PROC_REF(/mob, playsound_local), epicenter, null, rand(FREQ_LOWER, FREQ_UPPER), 1, frequency, null, null, FALSE, hull_creaking_sound, 0), CREAK_DELAY) - - if(heavy_impact_range > 1) - var/datum/effect_system/explosion/E - if(smoke) - E = new /datum/effect_system/explosion/smoke - else - E = new - E.set_up(epicenter) - E.start() - - var/list/affected_turfs = spiral_range_turfs(max_range, epicenter) - var/list/epicenter_list = list(epicenter) - var/list/floor_block = list() // [z] = num_block - if(multiz_explosions) - var/turf/above = GET_TURF_ABOVE(epicenter) - var/turf/below = GET_TURF_BELOW(epicenter) - floor_block["[z0]"] = epicenter.explosion_vertical_block - - //We check for multi-z here. So in the code below(readtional explosives), we don't need to care about checking for above or below. - if(above) - affected_turfs += spiral_range_turfs(max_range, above) - epicenter_list += above - floor_block["[above.z]"] = above.explosion_vertical_block - - if(below) - affected_turfs += spiral_range_turfs(max_range, below) - epicenter_list += below - floor_block["[below.z]"] = below.explosion_vertical_block - - if(reactionary_explosions) - for(var/A in affected_turfs) // we cache the explosion block rating of every turf in the explosion area - var/turf/T = A - cached_exp_block[T] = 0 - if(T.density && T.explosion_block) - cached_exp_block[T] += T.explosion_block - - for(var/obj/O in T) - var/the_block = O.explosion_block - cached_exp_block[T] += the_block == EXPLOSION_BLOCK_PROC ? O.GetExplosionBlock() : the_block - CHECK_TICK - - for(var/A in affected_turfs) - var/turf/T = A - if(!T) - continue - var/dist = HYPOTENUSE(T.x, T.y, x0, y0) - if(multiz_explosions && T.z != z0) - if(T.z < z0) // we hit the turf that is below our epicenter. Check epicenter turf - dist += floor_block["[T.z + 1]"] + 1 //cheapest way to implement hypotenuse with z coordinates - else - dist += floor_block["[T.z]"] + 1 - - - if(reactionary_explosions) - var/turf/Trajectory = T - while(!(Trajectory in epicenter_list)) - Trajectory = get_step_towards(Trajectory, epicenter) - dist += cached_exp_block[Trajectory] - - var/flame_dist = 0 -// var/throw_dist = max_range - dist - - if(dist < flame_range) - flame_dist = 1 - - if(dist < devastation_range) dist = 1 - else if(dist < heavy_impact_range) dist = 2 - else if(dist < light_impact_range) dist = 3 - else dist = 0 - - //------- TURF FIRES ------- - - if(T) - if(flame_dist && prob(40) && !isspaceturf(T) && !T.density) - new /obj/effect/hotspot(T) //Mostly for ambience! - if(dist > 0) - if(issimulatedturf(T)) - var/turf/simulated/S = T - var/affecting_level - if(dist == 1) - affecting_level = 1 - else - affecting_level = S.is_shielded() ? 2 : (S.intact ? 2 : 1) - for(var/atom in S.contents) //bypass type checking since only atom can be contained by turfs anyway - var/atom/AM = atom - if(!QDELETED(AM) && AM.simulated) - if(AM.level >= affecting_level) - AM.ex_act(dist, epicenter) - else - for(var/atom in T.contents) //see above - var/atom/AM = atom - if(!QDELETED(AM) && AM.simulated) - AM.ex_act(dist, epicenter) - CHECK_TICK - if(breach) - T.ex_act(dist, epicenter) - else - T.ex_act(3, epicenter) - - CHECK_TICK - - var/took = stop_watch(watch) - //You need to press the DebugGame verb to see these now....they were getting annoying and we've collected a fair bit of data. Just -test- changes to explosion code using this please so we can compare - log_world("## DEBUG: Explosion([x0],[y0],[z0])(d[devastation_range],h[heavy_impact_range],l[light_impact_range]): Took [took] seconds.") - - //Machines which report explosions. - for(var/array in GLOB.doppler_arrays) - if(!array) - continue - if(istype(array, /obj/machinery/doppler_array)) - var/obj/machinery/doppler_array/doppler_array = array - doppler_array.sense_explosion(x0,y0,z0,devastation_range,heavy_impact_range,light_impact_range,took,orig_dev_range,orig_heavy_range,orig_light_range) - if(istype(array, /obj/item/clothing/head/helmet/space/hardsuit/rd)) - var/obj/item/clothing/head/helmet/space/hardsuit/rd/helm_array = array - helm_array.sense_explosion(x0,y0,z0,devastation_range,heavy_impact_range,light_impact_range,took,orig_dev_range,orig_heavy_range,orig_light_range) - return 1 - - - -/proc/secondaryexplosion(turf/epicenter, range) - for(var/turf/tile in spiral_range_turfs(range, epicenter)) - tile.ex_act(2, epicenter) - /client/proc/check_bomb_impacts() set name = "Check Bomb Impact" set category = "Debug" @@ -330,7 +84,7 @@ for(var/obj/O in T) var/the_block = O.explosion_block - dist += the_block == EXPLOSION_BLOCK_PROC ? O.GetExplosionBlock() : the_block + dist += the_block == EXPLOSION_BLOCK_PROC ? O.get_explosion_block() : the_block if(dist < dev) T.color = "red" diff --git a/code/game/objects/items/weapons/alien_specific.dm b/code/game/objects/items/weapons/alien_specific.dm index 2958c215043..92a7d035de0 100644 --- a/code/game/objects/items/weapons/alien_specific.dm +++ b/code/game/objects/items/weapons/alien_specific.dm @@ -31,44 +31,41 @@ icon_state = "borg-spray-smoke" /obj/item/reagent_containers/spray/alien/smoke/afterattack(atom/A, mob/user, proximity, params) - if(istype(A, /obj/structure/reagent_dispensers) && get_dist(src,A) <= 1) - if(!A.reagents.total_volume && A.reagents) - to_chat(user, "\The [A] is empty.") - return - - if(reagents.total_volume >= reagents.maximum_volume) - to_chat(user, "\The [src] is full.") - return - reagents.remove_reagent(reagents.get_master_reagent_id(),25) var/datum/effect_system/smoke_spread/bad/smoke = new smoke.set_up(5, 0, user.loc) smoke.start() playsound(user.loc, 'sound/effects/bamf.ogg', 50, 2) + user.changeNext_move(delay) + + var/mob/living/silicon/robot/Robot = user + Robot.cell.use(250) // take energy from borg /obj/item/reagent_containers/spray/alien/acid name = "acid synthesizer" desc = "squirts burny liquids." icon = 'icons/mob/alien.dmi' icon_state = "borg-spray-acid" + list_reagents = list("facid" = 125, "sacid" = 125) /obj/item/reagent_containers/spray/alien/stun name = "paralytic toxin synthesizer" desc = "squirts viagra." icon = 'icons/mob/alien.dmi' icon_state = "borg-spray-stun" - volume = 80 /obj/item/reagent_containers/spray/alien/stun/afterattack(atom/A, mob/user, proximity, params) - reagents.remove_reagent(reagents.get_master_reagent_id(),25) - var/location = get_turf(user) var/datum/reagents/reagents_list = new (250) - reagents_list.add_reagent("cryogenic_liquid", 245) + reagents_list.add_reagent("blob_cryogenic_poison", 250) // new blow reagent because old was deleted + var/datum/effect_system/smoke_spread/chem/smoke = new - smoke.set_up(reagents_list, location) + smoke.set_up(reagents_list, user.loc) smoke.start(3) - playsound(location, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(user.loc, 'sound/effects/smoke.ogg', 50, 1, -3) + user.changeNext_move(delay) + + var/mob/living/silicon/robot/Robot = user + Robot.cell.use(250) // take energy from borg -//SKREEEEEEEEEEEE tool /obj/item/flash/cyborg/alien name = "eye flash" diff --git a/code/game/objects/items/weapons/holy_weapons.dm b/code/game/objects/items/weapons/holy_weapons.dm index 5904a426d4b..9c9bc6b0fcb 100644 --- a/code/game/objects/items/weapons/holy_weapons.dm +++ b/code/game/objects/items/weapons/holy_weapons.dm @@ -203,6 +203,8 @@ /obj/item/shield/riot/templar name = "templar shield" icon_state = "templar_shield" + lefthand_file = 'icons/mob/inhands/chaplain_lefthand.dmi' + righthand_file = 'icons/mob/inhands/chaplain_righthand.dmi' /obj/item/nullrod/claymore/chainsaw_sword name = "sacred chainsaw sword" @@ -413,6 +415,8 @@ /obj/item/nullrod/armblade name = "dark blessing" desc = "Particularly twisted deities grant gifts of dubious value." + lefthand_file = 'icons/mob/inhands/melee_lefthand.dmi' + righthand_file = 'icons/mob/inhands/melee_righthand.dmi' icon_state = "arm_blade" item_state = "arm_blade" item_flags = ABSTRACT diff --git a/code/game/objects/obj_defense.dm b/code/game/objects/obj_defense.dm index 094dc3a3d10..75905e6c15a 100644 --- a/code/game/objects/obj_defense.dm +++ b/code/game/objects/obj_defense.dm @@ -310,6 +310,3 @@ GLOBAL_DATUM_INIT(acid_overlay, /mutable_appearance, mutable_appearance('icons/e var/mob/living/buckled_mob = m buckled_mob.electrocute_act((clamp(round(strength * 1.25e-3), 10, 90) + rand(-5, 5)), src, flags = SHOCK_TESLA) -///returns how much the object blocks an explosion. Used by subtypes. -/obj/proc/GetExplosionBlock() - CRASH("Unimplemented GetExplosionBlock()") diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm index 2230b731b94..d7a6763de05 100644 --- a/code/game/objects/objs.dm +++ b/code/game/objects/objs.dm @@ -335,15 +335,3 @@ C.Weaken(3 SECONDS) #undef CARBON_DAMAGE_FROM_OBJECTS_MODIFIER - - -/// Relay movement for when user controls object via [/proc/possess()] -/obj/proc/possessed_relay_move(mob/user, direction) - var/turf/new_turf = get_step(src, direction) - if(!new_turf) - return null - if(density) - . = Move(new_turf, direction) - else - . = forceMove(new_turf) - diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index d243d8e7c87..556b5046edf 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -569,10 +569,9 @@ if(busy) to_chat(user, "Someone's already washing here.") return - var/selected_area = parse_zone(user.zone_selected) - var/washing_face = 0 - if(selected_area in list("голова", "рот", "глаза")) - washing_face = 1 + var/washing_face = FALSE + if(user.zone_selected in list(BODY_ZONE_HEAD, BODY_ZONE_PRECISE_EYES, BODY_ZONE_PRECISE_MOUTH)) + washing_face = TRUE user.visible_message(span_notice("[user] начина[pluralize_ru(user.gender, "ет", "ют")] мыть [washing_face ? "своё лицо" : "свои руки"]..."), \ span_notice("Вы начинаете мыть [washing_face ? "своё лицо" : "свои руки"]...")) busy = 1 diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index ef7dfd250ba..4c15926b394 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -516,7 +516,7 @@ GLOBAL_LIST_INIT(wcCommon, pick(list("#379963", "#0d8395", "#58b5c3", "#49e46e", C.throw_at(throwingdatum.initial_target, throwingdatum.maxrange - 1, throwingdatum.speed - 1) //Annnnnnnd yeet them into space, but slower, now that everything is dealt with -/obj/structure/window/GetExplosionBlock() +/obj/structure/window/get_explosion_block() return reinf && fulltile ? real_explosion_block : 0 /obj/structure/window/basic diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index c025792d3c8..b2ffc035156 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -795,7 +795,7 @@ GLOBAL_VAR_INIT(nologevent, 0) return usr.client.spawn_atom_impl(object, FALSE) /datum/admins/proc/spawn_atom_adv(object as text) - set category = "Admin.Event Spawn" + set category = "Admin.Event" set desc = "(путь атома) Создать атом c aргументами в New(). Добавьте точку к тексту, чтобы исключить подтипы пути, соответствующего входным данным." set name = "Advanced Spawn" diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 076eeb29d15..a1363eb3857 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -1000,15 +1000,16 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list( if(!check_rights(R_EVENT)) return - if(mob.control_object) - if(!msg) - return - for(var/mob/V in hearers(mob.control_object)) - V.show_message("[mob.control_object.name] says: \"" + msg + "\"", 2) - log_admin("[key_name(usr)] used oSay on [mob.control_object]: [msg]") - message_admins("[key_name_admin(usr)] used oSay on [mob.control_object]: [msg]") + var/datum/component/object_possession/possession_comp = mob.GetComponent(/datum/component/object_possession) + + if(!possession_comp || !possession_comp.possessed || !msg) + return + + for(var/mob/hearer in hearers(possession_comp.possessed)) + hearer.show_message("[possession_comp.possessed.name] says: \"" + msg + "\"", 2) - SSblackbox.record_feedback("tally", "admin_verb", 1, "oSay") //If you are copy-pasting this, ensure the 4th parameter is unique to the new proc! + log_and_message_admins("[key_name_admin(usr)] used oSay on [possession_comp.possessed]: [msg]") + SSblackbox.record_feedback("tally", "admin_verb", 1, "oSay") // If you are copy-pasting this, ensure the 4th parameter is unique to the new proc! /client/proc/force_hijack() set category = "Admin.Toggles" diff --git a/code/modules/admin/player_panel.dm b/code/modules/admin/check_antagonists.dm similarity index 67% rename from code/modules/admin/player_panel.dm rename to code/modules/admin/check_antagonists.dm index 4eb318db61f..2c67828f14c 100644 --- a/code/modules/admin/player_panel.dm +++ b/code/modules/admin/check_antagonists.dm @@ -1,340 +1,3 @@ - -/datum/admins/proc/player_panel_new()//The new one - if(!usr.client.holder) - return - // This stops the panel from being invoked by mentors who press F7. - if(!check_rights(R_ADMIN|R_MOD)) - message_admins("[key_name_admin(usr)] attempted to invoke player panel without admin rights. If this is a mentor, its a chance they accidentally hit F7. If this is NOT a mentor, there is a high chance an exploit is being used") - return - var/dat = {"Admin Player Panel"} - - //javascript, the part that does most of the work~ - dat += {" - - - - - "} - - //body tag start + onload and onkeypress (onkeyup) javascript event calls - dat += "" - - //title + search bar - dat += {" - - - - - - - - -
- Player panel
- Hover over a line to see more information | [check_rights(R_ADMIN,0) ? "Check antagonists | Kick everyone/AFKers in lobby" : "" ] -

-

- Search: -
- - "} - - //player table header - dat += {" - - "} - - var/list/mobs = sortmobs() - var/i = 1 - for(var/mob/M in mobs) - if(M.ckey) - - var/color = "#e6e6e6" - if(i%2 == 0) - color = "#f2f2f2" - - var/antagonist_string = get_antag_type_truncated_plaintext_string(M) - - var/M_job = "" - - if(isliving(M)) - - if(iscarbon(M)) //Carbon stuff - if(is_monkeybasic(M)) - M_job = "Monkey" - else if(ishuman(M)) - M_job = M.job - else if(isslime(M)) - M_job = "slime" - - else if(isalien(M)) //aliens - if(islarva(M)) - M_job = "Alien larva" - else - M_job = "Alien" - else - M_job = "Carbon-based" - - else if(issilicon(M)) //silicon - if(isAI(M)) - M_job = "AI" - else if(ispAI(M)) - M_job = "pAI" - else if(iscogscarab(M)) - M_job = "Cogscarab" - else if(isrobot(M)) - M_job = "Cyborg" - else - M_job = "Silicon-based" - - else if(isanimal(M)) //simple animals - if(iscorgi(M)) - M_job = "Corgi" - else - M_job = "Animal" - - else - M_job = "Living" - - else if(isnewplayer(M)) - M_job = "New player" - - else if(isobserver(M)) - M_job = "Ghost" - - M_job = replacetext(M_job, "'", "") - M_job = replacetext(M_job, "\"", "") - M_job = replacetext(M_job, "\\", "") - - var/M_name = M.name - M_name = replacetext(M_name, "'", "") - M_name = replacetext(M_name, "\"", "") - M_name = replacetext(M_name, "\\", "") - var/M_rname = M.real_name - M_rname = replacetext(M_rname, "'", "") - M_rname = replacetext(M_rname, "\"", "") - M_rname = replacetext(M_rname, "\\", "") - - var/M_key = M.key - M_key = replacetext(M_key, "'", "") - M_key = replacetext(M_key, "\"", "") - M_key = replacetext(M_key, "\\", "") - - var/M_eyeUID = "" - if(isAI(M)) - var/mob/living/silicon/ai/A = M - if(A.client && A.eyeobj) // No point following clientless AI eyes - M_eyeUID = "[A.eyeobj.UID()]" - var/client_ckey = M.client ? M.client.ckey : null - //output for each mob - dat += {" - - - - - - "} - - i++ - - - //player table ending - dat += {" -
- - - [M_name] - [M_rname] - [M_key] ([M_job]) - -
-
-
- - - - "} - - usr << browse(dat, "window=players;size=600x480") - - /datum/admins/proc/check_antagonists_line(mob/M, caption = "", close = 1) var/logout_status logout_status = M.client ? "" : " (logged out)" diff --git a/code/modules/admin/player_options_panel.dm b/code/modules/admin/player_options_panel.dm index 1332babd540..6e45aebcaf1 100644 --- a/code/modules/admin/player_options_panel.dm +++ b/code/modules/admin/player_options_panel.dm @@ -87,6 +87,10 @@ return player_data +/datum/vuap_personal/ui_status(mob/user, datum/ui_state/state) + . = (check_rights(R_ADMIN | R_MOD, user = user)) ? UI_INTERACTIVE : ..() + + /datum/vuap_personal/ui_interact(mob/user, datum/tgui/ui) ui = SStgui.try_update_ui(user, src, ui) if(!ui) @@ -195,7 +199,7 @@ usr.client.holder.Topic(null, list("shownoteckey" = M.ckey)) if("playtime") usr.client.holder.Topic(null, list("getplaytimewindow" = M.UID())) - if("playtime") + if("geoip") usr.client.holder.Topic(null, list("geoip" = M.UID())) if("ccdb") usr.client.holder.Topic(null, list("open_ccDB" = M.ckey)) @@ -234,7 +238,7 @@ if("reviveghost") usr.client.holder.Topic(null, list("incarn_ghost" = M.UID())) if("respawnability") - usr.client.holder.Topic(null, list("f" = M.UID())) + usr.client.holder.Topic(null, list("togglerespawnability" = M.UID())) //health section if("healthscan") healthscan(usr, M, TRUE) diff --git a/code/modules/admin/player_panel_veth.dm b/code/modules/admin/player_panel_veth.dm index 2e9fdec453d..b5511b86679 100644 --- a/code/modules/admin/player_panel_veth.dm +++ b/code/modules/admin/player_panel_veth.dm @@ -76,5 +76,8 @@ ui.set_autoupdate(FALSE) ui.open() +/datum/player_panel_veth/ui_status(mob/user, datum/ui_state/state) + . = (check_rights(R_ADMIN | R_MOD, user = user)) ? UI_INTERACTIVE : ..() + /datum/player_panel_veth/ui_state(mob/user) return GLOB.admin_state diff --git a/code/modules/admin/secrets.dm b/code/modules/admin/secrets.dm index e616a4858e8..12fd74b855d 100644 --- a/code/modules/admin/secrets.dm +++ b/code/modules/admin/secrets.dm @@ -125,6 +125,7 @@ Make all items look like guns
Warp all Players to Prison
Make all players stupid
+ Spawn a custom portal storm
Misc
Remove firesuits, grilles, and pods   Triple AI mode (needs to be used in the lobby)
diff --git a/code/modules/admin/sound_emitter.dm b/code/modules/admin/sound_emitter.dm index b42883778a1..6531f43390a 100644 --- a/code/modules/admin/sound_emitter.dm +++ b/code/modules/admin/sound_emitter.dm @@ -33,13 +33,14 @@ var/started = FALSE /obj/effect/sound_emitter/Destroy(force) - if(!force) - return QDEL_HINT_LETMELIVE . = ..() /obj/effect/sound_emitter/singularity_act() return +/obj/effect/sound_emitter/ex_act() + return + /obj/effect/sound_emitter/examine(mob/user) ..() if(!isobserver(user)) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 8d6f7c4f70c..dbafd4be39e 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1390,45 +1390,26 @@ else if(href_list["sendtoprison"]) if(!check_rights(R_ADMIN)) return - if(alert(usr, "Send to admin prison for the round?", "Message", "Yes", "No") != "Yes") + if(tgui_alert(usr, "Отправить в админскую тюрьму на остаток раунда?", "Подтверждение", list("Да", "Нет")) != "Да") return var/mob/M = locateUID(href_list["sendtoprison"]) if(!istype(M, /mob)) - to_chat(usr, "This can only be used on instances of type /mob", confidential=TRUE) + to_chat(usr, span_warning("Это можно использовать только на объектах типа /mob"), confidential=TRUE) return if(istype(M, /mob/living/silicon/ai)) - to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai", confidential=TRUE) + to_chat(usr, span_warning("Это нельзя использовать на объектах типа /mob/living/silicon/ai"), confidential=TRUE) return var/turf/prison_cell = pick(GLOB.prisonwarp) if(!prison_cell) return - var/obj/structure/closet/secure_closet/brig/locker = new /obj/structure/closet/secure_closet/brig(prison_cell) - locker.opened = 0 - locker.locked = 1 - - //strip their stuff and stick it in the crate - for(var/obj/item/I in M) - M.drop_transfer_item_to_loc(I, locker) - M.update_icons() - - //so they black out before warping - if(isliving(M)) - var/mob/living/L = M - L.Paralyse(10 SECONDS) - sleep(5) - if(!M) - return - - M.forceMove(prison_cell) - if(ishuman(M)) - var/mob/living/carbon/human/prisoner = M - prisoner.equip_to_slot_or_del(new /obj/item/clothing/under/color/orange(prisoner), ITEM_SLOT_CLOTH_INNER) - prisoner.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(prisoner), ITEM_SLOT_FEET) + var/obj/structure/closet/supplypod/centcompod/prison_warp/pod = new() + pod.reverse_dropoff_coords = list(prison_cell.x, prison_cell.y, prison_cell.z) + pod.target = M + new /obj/effect/pod_landingzone(M, pod) - to_chat(M, "You have been sent to the prison station!") - log_and_message_admins("sent [key_name_admin(M)] to the prison station.") + log_and_message_admins("sent [key_name_admin(M)] to the prison station.") else if(href_list["sendbacktolobby"]) if(!check_rights(R_ADMIN)) @@ -2924,18 +2905,19 @@ var/atom/target //Where the object will be spawned var/where = href_list["object_where"] - if(!( where in list("onfloor","inhand","inmarked") )) + if(!( where in list("onfloor","frompod","inhand","inmarked"))) where = "onfloor" switch(where) + if("inhand") if(!iscarbon(usr) && !isrobot(usr)) to_chat(usr, "Can only spawn in hand when you're a carbon mob or cyborg.", confidential=TRUE) where = "onfloor" target = usr - if("onfloor") + if("onfloor", "frompod") switch(href_list["offset_type"]) if("absolute") target = locate(0 + X,0 + Y,0 + Z) @@ -2951,7 +2933,11 @@ else target = marked_datum + var/obj/structure/closet/supplypod/centcompod/pod + if(target) + if(where == "frompod") + pod = new() for(var/path in paths) for(var/i = 0; i < number; i++) if(path in typesof(/turf)) @@ -2960,7 +2946,13 @@ if(N && obj_name) N.name = obj_name else - var/atom/O = new path(target) + var/atom/O + + if(where == "frompod") + O = new path(pod) + else + O = new path(target) + if(O) O.flags |= ADMIN_SPAWNED O.dir = obj_dir @@ -2981,6 +2973,8 @@ R.module.rebuild() R.activate_module(I) R.module.fix_modules() + if(pod) + new /obj/effect/pod_landingzone(target, pod) if(number == 1) log_admin("[key_name(usr)] created a [english_list(paths)]") @@ -3087,6 +3081,54 @@ if("gimmickteam") if(usr.client.gimmick_team()) SSblackbox.record_feedback("tally", "admin_secrets_fun_used", 1, "Send Team - Gimmick Team") + if("customportal") + if(!check_rights(R_EVENT)) + return + + var/list/settings = list( + "mainsettings" = list( + "typepath" = list("desc" = "Тип мобов для спавна", "type" = "datum", "path" = "/mob/living", "subtypesonly" = TRUE, "value" = /mob/living/simple_animal/hostile/poison/bees), + "amount" = list("desc" = "Число мобов", "type" = "number", "value" = 1), + "portalnum" = list("desc" = "Число порталов", "type" = "number", "value" = 10), + "delay" = list("desc" = "Время между порталами(в децесекундах)", "type" = "number", "value" = 50), + "color" = list("desc" = "Цвет портала", "type" = "color", "value" = "#00FF00"), + "playlightning" = list("desc" = "Проигрывать звук молнии при оповещении", "type" = "boolean", "value" = "Да"), + "announce_players" = list("desc" = "Делать оповещении", "type" = "boolean", "value" = "Да"), + "announcement" = list("desc" = "Оповещение", "type" = "string", "value" = "Массивная блюспейс аномалия зафиксирована вблизи станции %STATION%. Готовьтесь к худшему."), + ) + ) + + message_admins("[key_name(usr)] is creating a custom portal storm...") + var/list/prefreturn = presentpreflikepicker(usr,"Настройка портального шторма", "Настройка портального шторма", Button1="Старт", width = 600, StealFocus = 1,Timeout = 0, settings=settings) + + if (prefreturn["button"] == 1) + var/list/prefs = settings["mainsettings"] + + if (prefs["amount"]["value"] < 1 || prefs["portalnum"]["value"] < 1) + to_chat(usr, "Число порталов для спавна должно быть минимум 1") + return + + var/pathToSpawn = prefs["typepath"]["value"] + if (!ispath(pathToSpawn)) + pathToSpawn = text2path(pathToSpawn) + + if (!ispath(pathToSpawn)) + to_chat(usr, "Некорректный тип [pathToSpawn]") + return + + if (prefs["announce_players"]["value"] == "Да") + portalAnnounce(prefs["announcement"]["value"], (prefs["playlightning"]["value"] == "Да" ? TRUE : FALSE)) + + var/mutable_appearance/storm = mutable_appearance('icons/obj/stationobjs.dmi', "portal-projector0", FLY_LAYER) + storm.color = prefs["color"]["value"] + + log_and_message_admins("has created a customized portal storm that will spawn [prefs["portalnum"]["value"]] portals, each of them spawning [prefs["amount"]["value"]] of [pathToSpawn]") + + for (var/i in 1 to prefs["portalnum"]["value"]) + var/turf/turf = get_random_station_turf() + while(iswallturf(turf)) + turf = get_random_station_turf() + addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(doPortalSpawn), turf, pathToSpawn, prefs["amount"]["value"], storm), i*prefs["delay"]["value"]) if("tripleAI") usr.client.triple_ai() SSblackbox.record_feedback("tally", "admin_secrets_fun_used", 1, "Triple AI") @@ -3181,37 +3223,29 @@ if(!you_realy_want_do_this()) return SSblackbox.record_feedback("tally", "admin_secrets_fun_used", 1, "Prison Warp") - log_and_message_admins("teleported all players to the prison station.") + log_and_message_admins("teleported all players to the prison station.") for(var/thing in GLOB.human_list) var/mob/living/carbon/human/H = thing var/turf/loc = find_loc(H) - var/security = 0 - if(!is_station_level(loc.z) || GLOB.prisonwarped.Find(H)) - -//don't warp them if they aren't ready or are already there + var/security = FALSE + if(!is_station_level(loc.z) || GLOB.prisonwarped.Find(H)) //don't warp them if they aren't ready or are already there continue - H.Paralyse(10 SECONDS) if(H.wear_id) var/obj/item/card/id/id = H.get_id_card() if(istype(id)) for(var/A in id.access) if(A == ACCESS_SECURITY) - security++ - if(!security) - //strip their stuff before they teleport into a cell :downs: - for(var/obj/item/W in H) - if(istype(W, /obj/item/organ/external)) - continue - //don't strip organs - H.drop_item_ground(W) - //teleport person to cell - H.forceMove(pick(GLOB.prisonwarp)) - H.equip_to_slot_or_del(new /obj/item/clothing/under/color/orange(H), ITEM_SLOT_CLOTH_INNER) - H.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(H), ITEM_SLOT_FEET) - else - //teleport security person - H.forceMove(pick(GLOB.prisonsecuritywarp)) - GLOB.prisonwarped += H + security = TRUE + var/turf/prison_cell = pick((security? GLOB.prisonsecuritywarp : GLOB.prisonwarp)) + if(!prison_cell) + continue + + var/obj/structure/closet/supplypod/centcompod/prison_warp/pod = new() + pod.reverse_dropoff_coords = list(prison_cell.x, prison_cell.y, prison_cell.z) + pod.target = H + pod.security =security + new /obj/effect/pod_landingzone(H, pod) + if("traitor_all") if(!SSticker) alert("The game hasn't started yet!") @@ -3996,3 +4030,20 @@ /proc/you_realy_want_do_this() var/sure = tgui_alert(usr, "Вы действительно хотите сделать это?", "Подтверждение", list("Да", "Нет")) return sure == "Да" + + +/proc/portalAnnounce(announcement, playlightning) + set waitfor = 0 + if (playlightning) + sound_to_playing_players('sound/magic/lightning_chargeup.ogg') + sleep(80) + GLOB.priority_announcement.Announce(replacetext(announcement, "%STATION%", station_name())) + if (playlightning) + sleep(20) + sound_to_playing_players('sound/magic/lightningbolt.ogg') + +/proc/doPortalSpawn(turf/loc, mobtype, numtospawn, portal_appearance) + loc.flick_overlay_static(portal_appearance, 15) + playsound(loc, "sparks", rand(80, 100), 1) + for (var/i in 1 to numtospawn) + new mobtype(loc) diff --git a/code/modules/admin/verbs/adminhelp.dm b/code/modules/admin/verbs/adminhelp.dm index bb7734437de..37b1c163727 100644 --- a/code/modules/admin/verbs/adminhelp.dm +++ b/code/modules/admin/verbs/adminhelp.dm @@ -14,9 +14,9 @@ GLOBAL_LIST_INIT(adminhelp_ignored_words, list("unknown", "the", "a", "an", "of" var/msg var/list/type = list("Mentorhelp", "Adminhelp") - var/selected_type = input("Pick a category.", "Admin Help") as null|anything in type + var/selected_type = tgui_input_list(src, "Pick a category.", "Admin Help", type) if(selected_type) - msg = clean_input("Please enter your message.", selected_type) + msg = tgui_input_text(src, "Please enter your message.", selected_type, multiline = TRUE, encode = FALSE) if(!msg) return diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index 577be0d10de..51d879ea71d 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -89,7 +89,7 @@ //get message text, limit it's length.and clean/escape html if(!msg) set_typing(C, TRUE) - msg = clean_input("Message:", "Private message to [holder ? key_name(C, FALSE) : key_name_hidden(C, FALSE)]", , src) + msg = tgui_input_text(src, "Message:", "Private message to [holder ? key_name(C, FALSE) : key_name_hidden(C, FALSE)]", multiline = TRUE, encode = FALSE) msg = handleDiscordEmojis(msg) set_typing(C, FALSE) @@ -150,7 +150,7 @@ spawn(0) //so we don't hold the caller proc up var/sender = src var/sendername = key - var/reply = clean_input(msg,"[recieve_pm_type] [type] from-[sendername]", "", C) //show message and await a reply + var/reply = tgui_input_text(C, msg,"[recieve_pm_type] [type] from-[sendername]", multiline = TRUE, encode = FALSE) //show message and await a reply if(C && reply) if(sender) C.cmd_admin_pm(sender,reply) //sender is still about, let's reply to them @@ -226,7 +226,7 @@ // We only allow PMs once every 10 seconds, othewrise the channel can get spammed very quickly last_discord_pm_time = world.time + 10 SECONDS - var/msg = clean_input("Message:", "Private message to admins on Discord / 400 character limit", , src) + var/msg = tgui_input_text(src, "Message:", "Private message to admins on Discord / 400 character limit", multiline = TRUE, encode = FALSE) if(!msg) return @@ -251,7 +251,7 @@ /client/verb/open_pms_ui() set name = "My PMs" - set category = "OOC" + set category = "Admin.Admin Tickets" pm_tracker.show_ui(usr) /client/proc/set_typing(client/target, value) diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm index 8dcc75ee1d9..f53026bc072 100644 --- a/code/modules/admin/verbs/playsound.dm +++ b/code/modules/admin/verbs/playsound.dm @@ -210,7 +210,7 @@ GLOBAL_LIST_EMPTY(sounds_cache) playsound(I, melody, cvol) /client/proc/play_direct_mob_sound(S as sound, mob/M) - set category = "Admin.Fun" + set category = "Admin.Sounds" set name = "Play Direct Mob Sound" if(!check_rights(R_SOUNDS)) return diff --git a/code/modules/admin/verbs/possess.dm b/code/modules/admin/verbs/possess.dm index 442c24ffd95..0cea445e31b 100644 --- a/code/modules/admin/verbs/possess.dm +++ b/code/modules/admin/verbs/possess.dm @@ -1,50 +1,22 @@ -/proc/possess(obj/O as obj in world) +/proc/possess(obj/target as obj in world) set name = "\[Admin\] Possess Obj" if(!check_rights(R_POSSESS)) return - if(istype(O,/obj/singularity)) - if(CONFIG_GET(flag/forbid_singulo_possession)) - to_chat(usr, "It is forbidden to possess singularities.") - return + usr.AddComponent(/datum/component/object_possession, target) - var/turf/T = get_turf(O) + var/turf/turf = get_turf(target) + + log_and_message_admins("[key_name(usr)] has possessed [target] ([target.type]) at [AREACOORD(turf)]") + SSblackbox.record_feedback("tally", "admin_verb", 1, "Possess Object") // If you are copy-pasting this, ensure the 4th parameter is unique to the new proc! - var/confirm = alert("Are you sure you want to possess [O]?", "Confirm posession", "Yes", "No") - - if(confirm != "Yes") - return - log_and_message_admins("has possessed [O] ([O.type]) at [COORD(T)]") - - if(!usr.control_object) //If you're not already possessing something... - usr.name_archive = usr.real_name - - usr.loc = O - usr.real_name = O.name - usr.name = O.name - usr.client.eye = O - usr.control_object = O - SEND_SIGNAL(O, COMSIG_OBJ_POSSESSED, usr) - SSblackbox.record_feedback("tally", "admin_verb", 1, "Possess Object") //If you are copy-pasting this, ensure the 4th parameter is unique to the new proc! - -/proc/release(obj/O as obj in world) +/proc/release(obj/target in world) set name = "\[Admin\] Release Obj" - //usr.loc = get_turf(usr) if(!check_rights(R_POSSESS)) return - if(usr.control_object && usr.name_archive) //if you have a name archived and if you are actually relassing an object - usr.real_name = usr.name_archive - usr.name = usr.real_name - if(ishuman(usr)) - var/mob/living/carbon/human/H = usr - H.name = H.get_visible_name() -// usr.regenerate_icons() //So the name is updated properly + qdel(usr.GetComponent(/datum/component/object_possession)) - usr.loc = O.loc // Appear where the object you were controlling is -- TLE - usr.client.eye = usr - usr.control_object = null - SEND_SIGNAL(O, COMSIG_OBJ_RELEASED, usr) - SSblackbox.record_feedback("tally", "admin_verb", 1, "Release Object") //If you are copy-pasting this, ensure the 4th parameter is unique to the new proc! + SSblackbox.record_feedback("tally", "admin_verb", 1, "Release Object") // If you are copy-pasting this, ensure the 4th parameter is unique to the new proc! diff --git a/code/modules/admin/verbs/pray.dm b/code/modules/admin/verbs/pray.dm index 7b39fa04132..9cdab545277 100644 --- a/code/modules/admin/verbs/pray.dm +++ b/code/modules/admin/verbs/pray.dm @@ -85,7 +85,7 @@ if(repeat_warning) msg += "
[span_adminnotice("ВНИМАНИЕ: запрос ОБР не получил ответа в течении 15 минут!")]" for(var/client/X in GLOB.admins) - if(check_rights(R_EVENT,0,X.mob)) + if(check_rights(R_ADMIN, FALSE, X.mob)) to_chat(X, msg) if(X.prefs.sound & SOUND_ADMINHELP) X << 'sound/effects/adminhelp.ogg' diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index cd14377111a..48975760b76 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -52,7 +52,7 @@ if(!check_rights(R_EVENT)) return - var/msg = clean_input("Message:", text("Subtle PM to [M.key]")) + var/msg = tgui_input_text(src, "Message:", text("Subtle PM to [M.key]"), multiline = TRUE, encode = FALSE) if(!msg) return @@ -175,12 +175,12 @@ return if(!sender) - sender = input("Who is the message from?", "Sender") as null|anything in list("Centcomm", "Syndicate") + sender = tgui_input_list(src, "Who is the message from?", "Sender", list("Centcomm", "Syndicate")) if(!sender) return message_admins("[key_name_admin(src)] has started answering [key_name_admin(H)]'s [sender] request.") - var/input = clean_input("Please enter a message to reply to [key_name(H)] via their headset.", "Outgoing message from [sender]", "") + var/input = tgui_input_text(src, "Please enter a message to reply to [key_name(H)] via their headset.", "Outgoing message from [sender]", multiline = TRUE, encode = FALSE) if(!input) message_admins("[key_name_admin(src)] decided not to answer [key_name_admin(H)]'s [sender] request.") return diff --git a/code/modules/antagonists/blob/blob_minions/blob_spore.dm b/code/modules/antagonists/blob/blob_minions/blob_spore.dm index 52081e0169f..0d87fbc77a7 100644 --- a/code/modules/antagonists/blob/blob_minions/blob_spore.dm +++ b/code/modules/antagonists/blob/blob_minions/blob_spore.dm @@ -106,7 +106,7 @@ SIGNAL_HANDLER if(isnull(z_turf)) return - if(!is_valid_z_level(get_turf(src), z_turf)) + if(!are_zs_connected(src, z_turf)) death() /// Mark the turf we need to track from our factory diff --git a/code/modules/asset_cache/assets/common.dm b/code/modules/asset_cache/assets/common.dm new file mode 100644 index 00000000000..1ccaf745161 --- /dev/null +++ b/code/modules/asset_cache/assets/common.dm @@ -0,0 +1,3 @@ +/datum/asset/simple/namespaced/common + assets = list("padlock.png" = 'icons/ui_icons/padlock.png') + parents = list("common.css" = 'html/browser/common.css') diff --git a/code/modules/cargo/supplypod.dm b/code/modules/cargo/supplypod.dm index 9a1ed8dbc41..999c3af3b83 100644 --- a/code/modules/cargo/supplypod.dm +++ b/code/modules/cargo/supplypod.dm @@ -120,6 +120,57 @@ MECHA_OPTION = TRUE, ) +/obj/structure/closet/supplypod/centcompod/prison_warp + delays = list(POD_TRANSIT = 1 SECONDS, POD_FALLING = 1 SECONDS, POD_OPENING = 0, POD_LEAVING = 0.2) + reverse_delays = list(POD_TRANSIT = 10 SECONDS, POD_FALLING = 1.5 SECONDS, POD_OPENING = 0.6 SECONDS, POD_LEAVING = 0) + custom_rev_delay = TRUE + effectStealth = TRUE + effectStun = TRUE + reversing = TRUE + reverse_option_list = list( + MOB_OPTION = TRUE, + UNANCHORED_OPTION = FALSE, + ANCHORED_OPTION = FALSE, + MECHA_OPTION = TRUE, + ) + var/mob/target + var/security = FALSE + +/obj/structure/closet/supplypod/centcompod/prison_warp/close(atom/movable/holder) + target.forceMove(get_turf(src)) + . = ..() + +/obj/structure/closet/supplypod/centcompod/prison_warp/insertion_allowed(atom/to_insert) + return to_insert == target + +/obj/structure/closet/supplypod/centcompod/prison_warp/handleReturnAfterDeparting(atom/movable/holder) + . = ..() + if(security) + to_chat(target, span_warning("Вас перевели на тюремную станцию!")) + return ..() + GLOB.prisonwarped += target + var/obj/structure/closet/secure_closet/brig/locker = new /obj/structure/closet/secure_closet/brig(holder) + locker.opened = FALSE + locker.locked = TRUE + + for(var/obj/item/item in target) + target.drop_transfer_item_to_loc(item, locker) + target.update_icons() + + if(ishuman(target)) + var/mob/living/carbon/human/prisoner = target + + if(isplasmaman(prisoner)) + prisoner.equipOutfit(/datum/outfit/prisoner/plasmamen) + else if(isvox(prisoner) || isvoxarmalis(prisoner)) + prisoner.equipOutfit(/datum/outfit/prisoner/vox) + else + prisoner.equipOutfit(/datum/outfit/prisoner) + + + to_chat(target, span_warning("Вы были этапированы на тюремную станцию!")) + + /obj/structure/closet/supplypod/back_to_station name = "blood-red supply pod" desc = "Устрашающая капсула снабжения, покрытая кроваво-красными отметинами." @@ -693,8 +744,8 @@ mob_in_pod.reset_perspective(src) if(pod.effectStun) //If effectStun is true, stun any mobs caught on this pod_landingzone until the pod gets a chance to hit them for (var/mob/living/target_living in get_turf(src)) - target_living.AdjustWeakened(pod.delays[POD_TRANSIT] + 20, TRUE)//you ain't goin nowhere, kid. - target_living.AdjustStunned(pod.delays[POD_TRANSIT] + 20, TRUE) + target_living.AdjustWeakened(pod.delays[POD_TRANSIT] + 3 SECONDS, TRUE)//you ain't goin nowhere, kid. + target_living.AdjustStunned(pod.delays[POD_TRANSIT] + 3 SECONDS, TRUE) if (pod.delays[POD_TRANSIT] + pod.delays[POD_FALLING] < pod.fallingSoundLength) pod.fallingSoundLength = 3 //The default falling sound is a little long, so if the landing time is shorter than the default falling sound, use a special, shorter default falling sound pod.fallingSound = 'sound/weapons/mortar_whistle.ogg' diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 46da0d9053b..e77f9572e1b 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -392,34 +392,34 @@ BLIND // can't see anything if(user.incapacitated() || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED)) return if(user.pulledby && user.pulledby.grab_state >= GRAB_NECK) - to_chat(user, "You can't reach the controls.") + balloon_alert(user, "не добраться!") return if(has_sensor >= 2) - to_chat(user, "The controls are locked.") + balloon_alert(user, "датчики заблокированы!") return if(has_sensor <= 0) - to_chat(user, "This suit does not have any sensors.") + balloon_alert(user, "датчики отсутствуют!") return - var/list/modes = list("Off", "Binary sensors", "Vitals tracker", "Tracking beacon") - var/switchMode = tgui_input_list(user, "Select a sensor mode:", "Suit Sensor Mode", modes, modes[sensor_mode+1]) + var/list/modes = list("Выключены", "Бинарный режим", "Мониторинг жизненных показателей", "Полный мониторинг") + var/switchMode = tgui_input_list(user, "Выберите режим работы датчиков:", "Режим работы датчиков костюма", modes, modes[sensor_mode+1]) if(!switchMode) return if(get_dist(user, src) > 1) - to_chat(user, "You have moved too far away.") + balloon_alert(user, "слишком далеко!") return sensor_mode = modes.Find(switchMode) - 1 if(src.loc == user) switch(sensor_mode) if(0) - to_chat(user, "You disable your suit's remote sensing equipment.") + to_chat(user, "Вы отключаете датчики вашего костюма.") if(1) - to_chat(user, "Your suit will now report whether you are live or dead.") + to_chat(user, "Теперь датчики вашего костюма будут отслеживать, живы вы или мертвы.") if(2) - to_chat(user, "Your suit will now report your vital lifesigns.") + to_chat(user, "Теперь датчики вашего костюма будут отслеживать ваши жизненные показатели.") if(3) - to_chat(user, "Your suit will now report your vital lifesigns as well as your coordinate position.") + to_chat(user, "Теперь датчики вашего костюма будут отслеживать ваши жизненные показатели и местоположение.") if(ishuman(user)) var/mob/living/carbon/human/H = user if(H.w_uniform == src) @@ -429,23 +429,23 @@ BLIND // can't see anything switch(sensor_mode) if(0) for(var/mob/V in viewers(user, 1)) - V.show_message("[user] disables [src.loc]'s remote sensing equipment.", 1) + V.show_message(span_warning("[user] отключа[pluralize_ru(user.gender, "ет", "ют")] датчики [src.loc]."), 1) if(1) for(var/mob/V in viewers(user, 1)) - V.show_message("[user] turns [src.loc]'s remote sensors to binary.", 1) + V.show_message("[user] устанавлива[pluralize_ru(user.gender, "ет", "ют")] датчики [src.loc] в бинарный режим.", 1) if(2) for(var/mob/V in viewers(user, 1)) - V.show_message("[user] sets [src.loc]'s sensors to track vitals.", 1) + V.show_message("[user] устанавлива[pluralize_ru(user.gender, "ет", "ют")] датчики [src.loc] в режим мониторинга жизненных показателей.", 1) if(3) for(var/mob/V in viewers(user, 1)) - V.show_message("[user] sets [src.loc]'s sensors to maximum.", 1) + V.show_message("[user] устанавлива[pluralize_ru(user.gender, "ет", "ют")] датчики [src.loc] в режим мониторинга жизненных показателей и текущего местоположения.", 1) if(ishuman(src)) var/mob/living/carbon/human/H = src if(H.w_uniform == src) H.update_suit_sensors() /obj/item/clothing/under/verb/toggle() - set name = "Toggle Suit Sensors" + set name = "Переключение датчиков костюма" set category = "Object" set src in usr set_sensors(usr) @@ -1177,13 +1177,13 @@ BLIND // can't see anything if(has_sensor) switch(sensor_mode) if(0) - . += span_notice("Its sensors appear to be disabled.") + . += span_notice("Датчики отключены.") if(1) - . += span_notice("Its binary life sensors appear to be enabled.") + . += span_notice("Датчики работают в бинарном режиме.") if(2) - . += span_notice("Its vital tracker appears to be enabled.") + . += span_notice("Датчики работают в режиме мониторинга жизненных показателей.") if(3) - . += span_notice("Its vital tracker and tracking beacon appear to be enabled.") + . += span_notice("Датчики работают в режиме мониторинга жизненных показателей и текущего местоположения.") for(var/obj/item/clothing/accessory/accessory as anything in accessories) . += accessory.attached_examine() diff --git a/code/modules/clothing/suits/jobs.dm b/code/modules/clothing/suits/jobs.dm index 475a79ee52f..d66d77fad06 100644 --- a/code/modules/clothing/suits/jobs.dm +++ b/code/modules/clothing/suits/jobs.dm @@ -487,7 +487,7 @@ name = "first responder jacket" desc = "A high-visibility jacket worn by medical first responders." icon_state = "fr_jacket_open" - item_state = "fr_jacket_open" + item_state = "fr_jacket" blood_overlay_type = "armor" allowed = list(/obj/item/stack/medical, /obj/item/reagent_containers/dropper, /obj/item/reagent_containers/hypospray, /obj/item/reagent_containers/applicator, /obj/item/reagent_containers/syringe, /obj/item/healthanalyzer, /obj/item/flashlight, /obj/item/radio, /obj/item/tank/internals/emergency_oxygen,/obj/item/rad_laser) diff --git a/code/modules/clothing/under/jobs/medsci.dm b/code/modules/clothing/under/jobs/medsci.dm index 5a31faf9e74..b89d30ac922 100644 --- a/code/modules/clothing/under/jobs/medsci.dm +++ b/code/modules/clothing/under/jobs/medsci.dm @@ -182,30 +182,35 @@ name = "medical scrubs" desc = "It's made of a special fiber that provides minor protection against biohazards. This one is in baby blue." icon_state = "scrubsblue" + item_state = "scrubsblue" item_color = "scrubsblue" /obj/item/clothing/under/rank/medical/green name = "medical scrubs" desc = "It's made of a special fiber that provides minor protection against biohazards. This one is in dark green." icon_state = "scrubsdarkgreen" + item_state = "scrubsdarkgreen" item_color = "scrubsdarkgreen" /obj/item/clothing/under/rank/medical/lightgreen name = "medical scrubs" desc = "It's made of a special fiber that provides minor protection against biohazards. This one is in green." icon_state = "scrubsgreen" + item_state = "scrubsgreen" item_color = "scrubsgreen" /obj/item/clothing/under/rank/medical/purple name = "medical scrubs" desc = "It's made of a special fiber that provides minor protection against biohazards. This one is in deep purple." icon_state = "scrubspurple" + item_state = "scrubspurple" item_color = "scrubspurple" /obj/item/clothing/under/rank/medical/mortician name = "coroner's scrubs" desc = "It's made of a special fiber that provides minor protection against biohazards. This one is as dark as an emo's poetry." icon_state = "scrubsblack" + item_state = "scrubsblack" item_color = "scrubsblack" //paramedic @@ -243,7 +248,7 @@ name = "psychologist's turtleneck" desc = "A turqouise turtleneck and a pair of dark blue slacks, belonging to a psychologist." icon_state = "psychturtle" - item_state = "b_suit" + item_state = "psychturtle" item_color = "psychturtle" diff --git a/code/modules/events/immovable_rod.dm b/code/modules/events/immovable_rod.dm index 791736dac78..551f37aa2d6 100644 --- a/code/modules/events/immovable_rod.dm +++ b/code/modules/events/immovable_rod.dm @@ -68,6 +68,7 @@ In my current plan for it, 'solid' will be defined as anything with density == 1 admin_spawned = TRUE RegisterSignal(src, COMSIG_ATOM_ENTERING, PROC_REF(on_entering_atom)) + RegisterSignal(src, COMSIG_POSSESSED_MOVEMENT, PROC_REF(possessed_relay_move)) if(dnd_style_level_up) update_appearance(UPDATE_NAME) @@ -75,6 +76,9 @@ In my current plan for it, 'solid' will be defined as anything with density == 1 if(notify) notify_ghosts("Приближается [name]!", enter_link="(Click to follow)", source = src, action = NOTIFY_FOLLOW) + if(SSaugury) + SSaugury.register_doom(src, 2000) + if(special_target) SSmove_manager.home_onto(src, special_target, delay = move_delay) else @@ -82,10 +86,15 @@ In my current plan for it, 'solid' will be defined as anything with density == 1 /obj/effect/immovablerod/Destroy(force) - UnregisterSignal(src, COMSIG_ATOM_ENTERING) + UnregisterSignal(src, list( + COMSIG_ATOM_ENTERING, + COMSIG_POSSESSED_MOVEMENT + )) + destination_turf = null special_target = null GLOB.poi_list -= src + return ..() @@ -191,10 +200,13 @@ In my current plan for it, 'solid' will be defined as anything with density == 1 return ..() -/obj/effect/immovablerod/possessed_relay_move(mob/user, direction) - . = ..() - if(. && !admin_spawned) - walk_in_direction(direction) +/obj/effect/immovablerod/proc/possessed_relay_move(datum/source, mob/user, new_loc, direction) + SIGNAL_HANDLER + + if(admin_spawned) + return + + walk_in_direction(direction) /obj/effect/immovablerod/proc/on_entering_atom(datum/source, atom/destination, atom/oldloc, list/atom/old_locs) diff --git a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm index 61f0a1efc88..d5bf0c1294f 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm @@ -86,7 +86,7 @@ var/amount = starting_items[typekey] || 1 while(amount--) var/obj/item/newitem = new typekey(src) - item_quants[newitem.name] += 1 + item_quants[newitem.declent_ru(NOMINATIVE)] += 1 update_icon(UPDATE_OVERLAYS) // Accepted items accepted_items_typecache = typecacheof(list( @@ -306,7 +306,7 @@ ui = SStgui.try_update_ui(user, src, ui) if(!ui) - ui = new(user, src, "Smartfridge", name) + ui = new(user, src, "Smartfridge", capitalize(declent_ru(NOMINATIVE))) ui.open() /obj/machinery/smartfridge/ui_data(mob/user) @@ -361,7 +361,7 @@ return if(i == 1 && Adjacent(user) && !issilicon(user)) for(var/obj/O in contents) - if(O.name == K) + if(O.declent_ru(NOMINATIVE) == K) O.forceMove(get_turf(src)) adjust_item_drop_location(O) user.put_in_hands(O, ignore_anim = FALSE) @@ -369,7 +369,7 @@ break else for(var/obj/O in contents) - if(O.name == K) + if(O.declent_ru(NOMINATIVE) == K) O.forceMove(loc) adjust_item_drop_location(O) update_icon(UPDATE_OVERLAYS) @@ -410,7 +410,7 @@ else I.forceMove(src) - item_quants[I.name] += 1 + item_quants[I.declent_ru(NOMINATIVE)] += 1 return TRUE @@ -428,7 +428,7 @@ continue item_quants[O]-- for(var/obj/I in contents) - if(I.name == O) + if(I.declent_ru(NOMINATIVE) == O) I.forceMove(loc) throw_item = I update_icon(UPDATE_OVERLAYS) diff --git a/code/modules/holomaps/datum.dm b/code/modules/holomaps/datum.dm index 1bc5c3d683f..e0c732fc742 100644 --- a/code/modules/holomaps/datum.dm +++ b/code/modules/holomaps/datum.dm @@ -73,7 +73,7 @@ base_map.add_overlay(legend) return - if(location_turf && location_turf.z == map_z && check_level_trait(location_turf.z, STATION_LEVEL)) + if(location_turf && location_turf.z == map_z && is_station_level(location_turf.z)) cursor.pixel_x = location_turf.x - 3 + HOLOMAP_CENTER_X cursor.pixel_y = location_turf.y - 3 + HOLOMAP_CENTER_Y diff --git a/code/modules/holomaps/machinery.dm b/code/modules/holomaps/machinery.dm index 5bf1f8420ba..e75f10e3ca5 100644 --- a/code/modules/holomaps/machinery.dm +++ b/code/modules/holomaps/machinery.dm @@ -19,6 +19,8 @@ /// The mob beholding this marvel. var/mob/watching_mob + /// The mob we're looking after if moved. Used by AI eye only. + var/mob/moving_mob /// The image that can be seen in-world. var/image/small_station_map /// The little "map" floor painting. @@ -36,6 +38,8 @@ SSholomaps.station_holomaps += src floor_markings = image('icons/obj/stationmap.dmi', "decal_station_map") floor_markings.dir = src.dir + floor_markings.pixel_x = -src.pixel_x + floor_markings.pixel_y = -src.pixel_y add_overlay(floor_markings) ..() component_parts = list() @@ -99,8 +103,12 @@ var/datum/hud/human/user_hud = user.hud_used holomap_datum.base_map.loc = user_hud.holomap // Put the image on the holomap hud holomap_datum.base_map.alpha = 0 // Set to transparent so we can fade in - - RegisterSignal(user, COMSIG_MOVABLE_MOVED, PROC_REF(check_position)) + if(isAI(user)) + var/mob/living/silicon/ai/our_ai = user + moving_mob = our_ai.eyeobj + RegisterSignal(moving_mob, COMSIG_AI_EYE_MOVED, PROC_REF(check_position)) + else + RegisterSignal(user, COMSIG_MOVABLE_MOVED, PROC_REF(check_position)) playsound(src, 'sound/effects/holomap_open.ogg', 125) animate(holomap_datum.base_map, alpha = 255, time = 5, easing = LINEAR_EASING) @@ -133,16 +141,17 @@ if((stat & (NOPOWER | BROKEN)) || !anchored) close_map() -/obj/machinery/station_map/proc/check_position() +/obj/machinery/station_map/proc/check_position(mob/moved_mob) SIGNAL_HANDLER - if(!watching_mob || (watching_mob.loc != loc) || (dir != watching_mob.dir)) + if(!moved_mob || (moved_mob.loc != loc) || (dir != moved_mob.dir)) close_map() /obj/machinery/station_map/proc/close_map() if(!watching_mob) return + UnregisterSignal(moving_mob, COMSIG_AI_EYE_MOVED) UnregisterSignal(watching_mob, COMSIG_MOVABLE_MOVED) playsound(src, 'sound/effects/holomap_close.ogg', 125) icon_state = initial(icon_state) @@ -274,11 +283,10 @@ if(length(z_transitions)) legend += z_transitions - /* with meteor shields refactor if(length(GLOB.meteor_shielded_turfs)) var/icon/canvas = icon(HOLOMAP_ICON, "blank") var/z_has_coverage = FALSE - for(var/turf/open/shielded_turf as anything in GLOB.meteor_shielded_turfs) + for(var/turf/shielded_turf as anything in GLOB.meteor_shielded_turfs) if(shielded_turf?.z != current_z_level) continue var/offset_x = HOLOMAP_CENTER_X + shielded_turf.x @@ -287,8 +295,7 @@ canvas.DrawBox(color, offset_x, offset_y) z_has_coverage = TRUE if(z_has_coverage) - legend["Meteor Shield"] = list("icon" = image('icons/misc/8x8.dmi', icon_state = "meteor_shield"), "markers" = list(image(canvas))) - */ + legend["Метеор щиты"] = list("icon" = image('icons/misc/8x8.dmi', icon_state = "meteor_shield"), "markers" = list(image(canvas))) return legend /obj/machinery/station_map/engineering diff --git a/code/modules/mining/equipment/survival_pod.dm b/code/modules/mining/equipment/survival_pod.dm index 440f75fb851..6a17a2eb1c4 100644 --- a/code/modules/mining/equipment/survival_pod.dm +++ b/code/modules/mining/equipment/survival_pod.dm @@ -51,7 +51,7 @@ if(used) return FALSE var/turf/UT = get_turf(user) - if((check_level_trait(UT.z, STATION_LEVEL)) && !emagged) + if((is_station_level(UT.z)) && !emagged) to_chat(user, span_notice("Error. Deployment was attempted on the station sector. Deployment aborted.")) playsound(user, 'sound/machines/buzz-sigh.ogg', 15, TRUE) return @@ -65,7 +65,7 @@ if(QDELETED(src)) return var/turf/deploy_location = get_turf(src) - if((check_level_trait(deploy_location.z, STATION_LEVEL)) && !emagged) + if((is_station_level(deploy_location.z)) && !emagged) to_chat(triggerer, span_notice("Error. Expanding was attempted on the station sector. Expanding aborted.")) playsound(triggerer, 'sound/machines/buzz-sigh.ogg', 15, TRUE) return diff --git a/code/modules/mining/satchel_ore_boxdm.dm b/code/modules/mining/satchel_ore_boxdm.dm index 924d9885716..477249c488e 100644 --- a/code/modules/mining/satchel_ore_boxdm.dm +++ b/code/modules/mining/satchel_ore_boxdm.dm @@ -101,9 +101,6 @@ O.forceMove(loc) CHECK_TICK -/obj/structure/ore_box/on_changed_z_level(turf/old_turf, turf/new_turf, same_z_layer, notify_contents = FALSE) - return ..() - /obj/structure/ore_box/verb/empty_box() set name = "Empty Ore Box" set category = "Object" diff --git a/code/modules/mob/language.dm b/code/modules/mob/language.dm index 698b828c46f..eb01c41de23 100644 --- a/code/modules/mob/language.dm +++ b/code/modules/mob/language.dm @@ -440,7 +440,7 @@ return TRUE /datum/language/grey/check_special_condition(mob/living/carbon/human/other, mob/living/carbon/human/speaker) - if(atoms_share_level(other, speaker)) + if(are_zs_connected(other, speaker)) return TRUE return FALSE diff --git a/code/modules/mob/living/carbon/brain/brain_item.dm b/code/modules/mob/living/carbon/brain/brain_item.dm index ce10d327bc5..fadf166d19f 100644 --- a/code/modules/mob/living/carbon/brain/brain_item.dm +++ b/code/modules/mob/living/carbon/brain/brain_item.dm @@ -21,14 +21,6 @@ /// TRUE giving to a user sci hud and active research scanner var/smart_mind = FALSE -/obj/item/organ/internal/brain/xeno - name = "xenomorph brain" - desc = "We barely understand the brains of terrestial animals. Who knows what we may find in the brain of such an advanced species?" - icon_state = "brain-x" - origin_tech = "biotech=6" - mmi_icon = 'icons/mob/alien.dmi' - mmi_icon_state = "AlienMMI" - /obj/item/organ/internal/brain/Destroy() QDEL_NULL(brainmob) return ..() @@ -137,15 +129,6 @@ /obj/item/organ/internal/brain/prepare_eat() return // Too important to eat. -/obj/item/organ/internal/brain/slime - species_type = /datum/species/slime - name = "slime core" - desc = "A complex, organic knot of jelly and crystalline particles." - icon = 'icons/mob/slimes.dmi' - icon_state = "green slime extract" - mmi_icon_state = "slime_mmi" - parent_organ_zone = BODY_ZONE_CHEST - /obj/item/organ/internal/brain/golem name = "Runic mind" desc = "A tightly furled roll of paper, covered with indecipherable runes." diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm index e3259bc7d2e..991efc6613c 100644 --- a/code/modules/mob/living/carbon/human/examine.dm +++ b/code/modules/mob/living/carbon/human/examine.dm @@ -39,11 +39,11 @@ if(skipjumpsuit && (skipface || HAS_TRAIT(src, TRAIT_NO_SPECIES_EXAMINE))) //either obscured or on the nospecies list msg += "!\n" //omit the species when examining else if(displayed_species == SPECIES_SLIMEPERSON) //snowflakey because Slime People are defined as a plural - msg += ", a слаймомен!\n" + msg += ", слаймолюд!\n" else if(displayed_species == SPECIES_UNATHI) //DAMN YOU, VOWELS - msg += ", a унатх!\n" + msg += ", унатх!\n" else - msg += ", a [lowertext(displayed_species)]!\n" + msg += ", [lowertext(displayed_species)]!\n" //uniform if(w_uniform && !skipjumpsuit && !(w_uniform.item_flags & ABSTRACT)) diff --git a/code/modules/mob/living/carbon/human/species/slime.dm b/code/modules/mob/living/carbon/human/species/slime.dm index d8f86a8ea3a..cb22077e65c 100644 --- a/code/modules/mob/living/carbon/human/species/slime.dm +++ b/code/modules/mob/living/carbon/human/species/slime.dm @@ -74,7 +74,6 @@ "вырывает собственное ядро!", "становится коричневым, тусклым и растекается в лужу!") - var/reagent_skin_coloring = FALSE disliked_food = SUGAR | FRIED liked_food = MEAT | TOXIC | RAW @@ -137,7 +136,7 @@ /datum/species/slime/handle_life(mob/living/carbon/human/H) // Slowly shifting to the color of the reagents - if(reagent_skin_coloring && H.reagents.total_volume > SLIMEPERSON_COLOR_SHIFT_TRIGGER) + if(H.reagents.total_volume > SLIMEPERSON_COLOR_SHIFT_TRIGGER) var/blood_amount = H.blood_volume var/r_color = mix_color_from_reagents(H.reagents.reagent_list) var/new_body_color = BlendRGB(r_color, H.skin_colour, (blood_amount*SLIMEPERSON_BLOOD_SCALING_FACTOR)/((blood_amount*SLIMEPERSON_BLOOD_SCALING_FACTOR)+(H.reagents.total_volume))) @@ -162,20 +161,21 @@ /datum/action/innate/slimecolor - name = "Toggle Recolor" + name = "Изменить цвет слизи" check_flags = AB_CHECK_CONSCIOUS icon_icon = 'icons/mob/actions/actions.dmi' button_icon_state = "slime_change" /datum/action/innate/slimecolor/Activate() - var/mob/living/carbon/human/H = owner - var/datum/species/slime/S = H.dna.species - if(S.reagent_skin_coloring) - S.reagent_skin_coloring = FALSE - to_chat(H, "Вы настраиваете свою внутреннюю химию, чтобы отфильтровывать пигменты из употребляемых продуктов.") - else - S.reagent_skin_coloring = TRUE - to_chat(H, "Вы настраиваете свою внутреннюю химию, позволяя окрашивать себя пигментами употребляемых веществ.") + var/mob/living/carbon/human/human = owner + if(human.dna.species.bodyflags & HAS_SKIN_COLOR) + var/new_color = tgui_input_color(human, "Выберите новый цвет слизи.", "Цвет слизи.", human.skin_colour) + human.change_skin_color(new_color) + if(human.blood_color != new_color) + human.blood_color = new_color + human.dna.species.blood_color = human.blood_color + human.update_body() + /datum/action/innate/regrow name = "Regrow limbs" diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm index 003bba26bf5..02c1f38e8b6 100644 --- a/code/modules/mob/living/silicon/ai/freelook/eye.dm +++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm @@ -41,6 +41,7 @@ if(!force_update && (destination == get_turf(src))) return //we are already here! abstract_move(destination) + SEND_SIGNAL(src, COMSIG_AI_EYE_MOVED, destination) if(use_static) ai.camera_visibility(src) if(ai.client) diff --git a/code/modules/mob/living/silicon/decoy/death.dm b/code/modules/mob/living/silicon/decoy/death.dm index 244878e84da..3ff115213b8 100644 --- a/code/modules/mob/living/silicon/decoy/death.dm +++ b/code/modules/mob/living/silicon/decoy/death.dm @@ -5,7 +5,7 @@ return FALSE icon_state = "ai-crash" for(var/obj/machinery/ai_status_display/display as anything in GLOB.ai_displays) //change status - if(atoms_share_level(display, src)) + if(are_zs_connected(display, src)) display.mode = AI_DISPLAY_MODE_BSOD display.update_icon(UPDATE_OVERLAYS) gib() diff --git a/code/modules/mob/living/silicon/robot/robot_modules.dm b/code/modules/mob/living/silicon/robot/robot_modules.dm index 8b84ed89c77..647dee1dc20 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules.dm @@ -885,7 +885,6 @@ /obj/item/robot_module/hunter/on_apply(mob/living/silicon/robot/robot) robot.modtype = "Xeno-Hu" - return TRUE /obj/item/robot_module/hunter/add_default_robot_items() @@ -895,18 +894,18 @@ ..() modules += new /obj/item/melee/energy/alien_claws(src) modules += new /obj/item/flash/cyborg/alien(src) - var/obj/item/reagent_containers/spray/alien/stun/S = new /obj/item/reagent_containers/spray/alien/stun(src) - S.reagents.add_reagent("cryogenic_liquid",250) //nerfed to sleeptoxin to make it less instant drop. - modules += S - var/obj/item/reagent_containers/spray/alien/smoke/A = new /obj/item/reagent_containers/spray/alien/smoke(src) - S.reagents.add_reagent("water",50) //Water is used as a dummy reagent for the smoke bombs. More of an ammo counter. - modules += A + modules += new /obj/item/reagent_containers/spray/alien/smoke(src) + modules += new /obj/item/reagent_containers/spray/alien/stun(src) emag = new /obj/item/reagent_containers/spray/alien/acid(src) - emag.reagents.add_reagent("facid", 125) - emag.reagents.add_reagent("sacid", 125) - fix_modules() +/obj/item/robot_module/hunter/respawn_consumable(mob/living/silicon/robot/R) + if(emag) + var/obj/item/reagent_containers/spray/alien/acid/acidSpray = emag + acidSpray.reagents.add_reagent("sacid", 3) + acidSpray.reagents.add_reagent("facid", 3) + ..() + /obj/item/robot_module/hunter/add_languages(var/mob/living/silicon/robot/R) ..() R.add_language(LANGUAGE_XENOS, 1) diff --git a/code/modules/mob/living/simple_animal/bot/syndicate.dm b/code/modules/mob/living/simple_animal/bot/syndicate.dm index a7a43bd133d..06f1c9675f0 100644 --- a/code/modules/mob/living/simple_animal/bot/syndicate.dm +++ b/code/modules/mob/living/simple_animal/bot/syndicate.dm @@ -94,11 +94,11 @@ var/turf/current_turf = get_turf(src) if(saved_turf && current_turf != saved_turf) playsound(loc, stepsound, 40, TRUE) - if(spawn_turf && !atoms_share_level(src, spawn_turf)) + if(spawn_turf && !are_zs_connected(src, spawn_turf)) raise_alert("[capitalize(declent_ru(NOMINATIVE))] потерялся в пространстве.") raised_alert = FALSE raise_alert("[capitalize(declent_ru(NOMINATIVE))] активировал протокол само-уничтожения.") - qdel(src) + explode() saved_turf = current_turf switch(mode) if(BOT_IDLE) diff --git a/code/modules/mob/living/simple_animal/hostile/syndicate.dm b/code/modules/mob/living/simple_animal/hostile/syndicate.dm index 0e32e15ec6b..4367cbcd5f1 100644 --- a/code/modules/mob/living/simple_animal/hostile/syndicate.dm +++ b/code/modules/mob/living/simple_animal/hostile/syndicate.dm @@ -133,7 +133,7 @@ seen_revived_enemy = TRUE raise_alert("[name] reports intruder [target] has returned from death!") depotarea.list_remove(target, depotarea.dead_list) - if(!atoms_share_level(src, target) && prob(20)) + if(!are_zs_connected(src, target) && prob(20)) // This prevents someone from aggroing a depot mob, then hiding in a locker, perfectly safe, while the mob stands there getting killed by their friends. LoseTarget() @@ -149,7 +149,7 @@ raise_alert("[name] has reported contact with hostile entity: [seen_enemy_name]") if(scan_cycles >= 15) scan_cycles = 0 - if(!atoms_share_level(src, spawn_turf)) + if(!are_zs_connected(src, spawn_turf)) if(istype(loc, /obj/structure/closet)) var/obj/structure/closet/O = loc forceMove(get_turf(src)) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 77ae79a4970..b99581f13ff 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -1219,4 +1219,5 @@ GLOBAL_LIST_INIT(holy_areas, typecacheof(list( add_misc_logs(src, "Z-TRACKING: [src] of type [src.type] has a Z-registration despite not having a client.") update_z(null) - +/mob/proc/set_key(key) + src.key = key diff --git a/code/modules/mob/mob_defines.dm b/code/modules/mob/mob_defines.dm index 66ecf8a68a2..5283ecd89dd 100644 --- a/code/modules/mob/mob_defines.dm +++ b/code/modules/mob/mob_defines.dm @@ -100,7 +100,6 @@ var/verb_yell = "yells" /// Define emote default type, EMOTE_VISIBLE for seen emotes, EMOTE_AUDIBLE for heard emotes. var/emote_type = EMOTE_VISIBLE - var/name_archive //For admin things like possession var/gunshot_residue var/timeofdeath = 0 //Living @@ -198,8 +197,6 @@ var/atom/movable/remote_control //Calls relaymove() to whatever it is - var/obj/control_object //Used by admins to possess objects. All mobs should have this var - //Whether or not mobs can understand other mobtypes. These stay in /mob so that ghosts can hear everything. var/universal_speak = 0 // Set to 1 to enable the mob to speak to everyone -- TLE var/universal_understand = 0 // Set to 1 to enable the mob to understand everyone, not necessarily speak diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index 008f311e06c..0a078d71d69 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -43,7 +43,7 @@ next_move_dir_add = NONE next_move_dir_sub = NONE var/old_move_delay = move_delay - move_delay = world.time + world.tick_lag //this is here because Move() can now be called multiple times per tick + move_delay = world.time + world.tick_lag // this is here because Move() can now be called multiple times per tick if(!direct || !new_loc) return FALSE @@ -52,12 +52,12 @@ return FALSE if(HAS_TRAIT(mob, TRAIT_NO_TRANSFORM)) - return FALSE //This is sota the goto stop mobs from moving var - - if(mob.control_object) - return mob.control_object.possessed_relay_move(mob, direct) + return FALSE // This is sota the goto stop mobs from moving var if(!isliving(mob)) + if(SEND_SIGNAL(mob, COMSIG_MOB_CLIENT_PRE_NON_LIVING_MOVE, new_loc, direct) & COMSIG_MOB_CLIENT_BLOCK_PRE_NON_LIVING_MOVE) + return FALSE + return mob.Move(new_loc, direct) if(mob.stat == DEAD) diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 59febbc31fb..8c5aac3aa3f 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -610,7 +610,7 @@ popup.open(0) // 0 is passed to open so that it doesn't use the onclose() proc /mob/new_player/proc/create_character() - spawning = 1 + spawning = TRUE close_spawn_windows() check_prefs_are_sane() @@ -627,19 +627,22 @@ if(mind) - mind.active = 0 //we wish to transfer the key manually - if(mind.assigned_role == JOB_TITLE_CLOWN) //give them a clownname if they are a clown - new_character.real_name = pick(GLOB.clown_names) //I hate this being here of all places but unfortunately dna is based on real_name! + mind.active = FALSE // we wish to transfer the key manually + + if(mind.assigned_role == JOB_TITLE_CLOWN) // give them a clownname if they are a clown + new_character.real_name = pick(GLOB.clown_names) // I hate this being here of all places but unfortunately dna is based on real_name! new_character.rename_self(JOB_TITLE_CLOWN) + else if(mind.assigned_role == JOB_TITLE_MIME) new_character.real_name = pick(GLOB.mime_names) new_character.rename_self(JOB_TITLE_MIME) + mind.set_original_mob(new_character) - mind.transfer_to(new_character) //won't transfer key since the mind is not active + mind.transfer_to(new_character) // won't transfer key since the mind is not active GLOB.human_names_list += new_character.real_name - new_character.key = key // Manually transfer the key to log them in + new_character.set_key(key) // Manually transfer the key to log them in return new_character diff --git a/code/modules/paperwork/folders.dm b/code/modules/paperwork/folders.dm index 0edd7e9398f..7b5c74a9fe1 100644 --- a/code/modules/paperwork/folders.dm +++ b/code/modules/paperwork/folders.dm @@ -7,6 +7,9 @@ pressure_resistance = 2 resistance_flags = FLAMMABLE + lefthand_file = 'icons/mob/inhands/folder_lefthand.dmi' + righthand_file = 'icons/mob/inhands/folder_righthand.dmi' + /obj/item/folder/emp_act(severity) ..() for(var/i in contents) diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm index f8dc37b811a..9c28511a3db 100644 --- a/code/modules/power/gravitygenerator.dm +++ b/code/modules/power/gravitygenerator.dm @@ -436,7 +436,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne var/turf/mob_turf = get_turf(shaked) if(!istype(mob_turf)) continue - if(!is_valid_z_level(our_turf, mob_turf)) + if(!are_zs_connected(our_turf, mob_turf)) continue if(isliving(shaked)) var/mob/living/living_shaked = shaked @@ -462,11 +462,8 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne return var/list/z_list = list() // Multi-Z, station gravity generator generates gravity on all STATION_LEVEL z-levels. - if(check_level_trait(our_turf.z, STATION_LEVEL)) - for(var/z in levels_by_trait(STATION_LEVEL)) - z_list += z - else - z_list += our_turf.z + for(var/z in SSmapping.get_connected_levels(our_turf)) + z_list += z for(var/z in z_list) if(!GLOB.gravity_generators["[z]"]) GLOB.gravity_generators["[z]"] = list() diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index f74aa3bd023..846cbb8713c 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -480,6 +480,35 @@ explode() return ATTACK_CHAIN_BLOCKED_ALL + if(istype(I, /obj/item/toy/crayon/spraycan)) + add_fingerprint(user) + var/obj/item/toy/crayon/spraycan/spraycan = I + if(spraycan.colour == light_color) + return ATTACK_CHAIN_BLOCKED_ALL + /* Реализация проверки цвета, который был выбран в распылителе + Если цвет слишком тёмный, то return */ + var/r = hex2num(copytext(spraycan.colour, 2, 4)) + var/g = hex2num(copytext(spraycan.colour, 4, 6)) + var/b = hex2num(copytext(spraycan.colour, 6, 8)) + + var/brightness = (0.299 * r + 0.587 * g + 0.114 * b) // Формула для определения яркости цвета(Да, магические числа) + if(brightness < 100) // Порог яркости + to_chat(user, span_warning("Выбранный цвет слишком тёмный для того чтоб он мог пропускать свет!")) + return ATTACK_CHAIN_BLOCKED_ALL + var/min_rgb = min(r, g, b) + var/max_rgb = max(r, g, b) + var/saturation = (max_rgb - min_rgb) / max_rgb + if(saturation > 0.8) // Максимально допустимая насыщенность + to_chat(user, span_warning("Цвет слишком насыщенный для освещения!")) + return ATTACK_CHAIN_BLOCKED_ALL + /* Конец проверки цвета */ + to_chat(user, span_warning("Вы покрасили [src] при помощи [spraycan.name]!")) + spraycan.uses-- + color = spraycan.colour + light_color = spraycan.colour + playsound(src, 'sound/effects/spray.ogg', 50, TRUE) + update() + return ATTACK_CHAIN_BLOCKED_ALL return ..() diff --git a/code/modules/power/singularity/field_generator.dm b/code/modules/power/singularity/field_generator.dm index 75371cdce4f..481c6abe288 100644 --- a/code/modules/power/singularity/field_generator.dm +++ b/code/modules/power/singularity/field_generator.dm @@ -323,7 +323,7 @@ field_generator power level display var/temp = TRUE //stops spam for(var/thing in GLOB.singularities) var/obj/singularity/O = thing - if(O.last_warning && temp && atoms_share_level(O, src)) + if(O.last_warning && temp && are_zs_connected(O, src)) if((world.time - O.last_warning) > 50) //to stop message-spam temp = FALSE // Здесь был коммент от affected в 7 строк про то что get_area_name тупой и юзал for(x in world) и типа дорого и глупо. diff --git a/code/modules/response_team/ert.dm b/code/modules/response_team/ert.dm index c8d48e232b9..1825f6fad8a 100644 --- a/code/modules/response_team/ert.dm +++ b/code/modules/response_team/ert.dm @@ -26,7 +26,9 @@ GLOBAL_LIST_EMPTY(ert_request_messages) if(!check_rights(R_EVENT)) return + send_response_team() +/client/proc/send_response_team() if(!SSticker) to_chat(usr, span_warning("Игра ещё не началась!")) return @@ -42,7 +44,6 @@ GLOBAL_LIST_EMPTY(ert_request_messages) var/datum/ui_module/ert_manager/E = new() E.ui_interact(usr) - /mob/dead/observer/proc/JoinResponseTeam() if(!GLOB.send_emergency_team) to_chat(src, span_warning("Отряд Быстрого Реагирования не был отправлен.")) @@ -143,7 +144,7 @@ GLOBAL_LIST_EMPTY(ert_request_messages) GLOB.active_team.cannot_send_team() /client/proc/create_response_team(new_gender, role, turf/spawn_location) - if(role == JOB_TITLE_CYBORG) + if(role == ERT_ROLE_CYBORG) var/mob/living/silicon/robot/ert/R = new GLOB.active_team.borg_path(spawn_location) return R @@ -200,13 +201,13 @@ GLOBAL_LIST_EMPTY(ert_request_messages) /datum/response_team var/list/slots = list( - "Командир" = 0, - "Боец" = 0, - "Инженер" = 0, - "Медик" = 0, - "Уборщик" = 0, - "Паранормал" = 0, - "Борг" = 0 + ERT_ROLE_COMMANDER = 0, + ERT_ROLE_SECURITY = 0, + ERT_ROLE_MEDIC = 0, + ERT_ROLE_ENGINEER = 0, + ERT_ROLE_JANITOR = 0, + ERT_ROLE_PARANORMAL = 0, + ERT_ROLE_CYBORG = 0 ) var/count = 0 @@ -222,13 +223,13 @@ GLOBAL_LIST_EMPTY(ert_request_messages) var/silent /datum/response_team/proc/setSlots(com=1, sec=4, med=0, eng=0, jan=0, par=0, cyb=0) - slots["Командир"] = com - slots["Боец"] = sec - slots["Медик"] = med - slots["Инженер"] = eng - slots["Уборщик"] = jan - slots["Паранормал"] = par - slots["Борг"] = cyb + slots[ERT_ROLE_COMMANDER] = com + slots[ERT_ROLE_SECURITY] = sec + slots[ERT_ROLE_MEDIC] = med + slots[ERT_ROLE_ENGINEER] = eng + slots[ERT_ROLE_JANITOR] = jan + slots[ERT_ROLE_PARANORMAL] = par + slots[ERT_ROLE_CYBORG] = cyb /datum/response_team/proc/reduceSlots(role) slots[role]-- @@ -247,22 +248,22 @@ GLOBAL_LIST_EMPTY(ert_request_messages) /datum/response_team/proc/equip_officer(officer_type, mob/living/carbon/human/M) switch(officer_type) - if("Инженер") + if(ERT_ROLE_ENGINEER) M.equipOutfit(engineering_outfit) - if("Боец") + if(ERT_ROLE_SECURITY ) M.equipOutfit(security_outfit) - if("Медик") + if(ERT_ROLE_MEDIC) M.equipOutfit(medical_outfit) - if("Уборщик") + if(ERT_ROLE_JANITOR) M.equipOutfit(janitor_outfit) - if("Паранормал") + if(ERT_ROLE_PARANORMAL) M.equipOutfit(paranormal_outfit) - if("Командир") + if(ERT_ROLE_COMMANDER) M.equipOutfit(command_outfit) /datum/response_team/proc/cannot_send_team() diff --git a/code/modules/security_levels/keycard_authentication.dm b/code/modules/security_levels/keycard_authentication.dm index 41af2f9eee2..b64c9aa7c89 100644 --- a/code/modules/security_levels/keycard_authentication.dm +++ b/code/modules/security_levels/keycard_authentication.dm @@ -197,7 +197,7 @@ var/fullmin_count = 0 for(var/client/C in GLOB.admins) - if(check_rights(R_EVENT, 0, C.mob)) + if(check_rights(R_ADMIN, 0, C.mob)) fullmin_count++ if(fullmin_count) addtimer(CALLBACK(src, PROC_REF(remind_admins), ert_reason, event_triggered_by), 15 MINUTES) diff --git a/code/modules/space_management/multiz_helper.dm b/code/modules/space_management/multiz_helper.dm index 54a7440640f..387b28a059c 100644 --- a/code/modules/space_management/multiz_helper.dm +++ b/code/modules/space_management/multiz_helper.dm @@ -11,6 +11,15 @@ return get_step(GET_TURF_BELOW(us), dir) return get_step(ref, dir) +/proc/get_step_towards_multiz(atom/start, atom/target) + if(target.z == start.z) + return get_step_towards(start, target) + var/turf/start_turf = get_turf(start) + if(target.z > start.z) + return GET_TURF_ABOVE(start_turf) + return GET_TURF_BELOW(start_turf) + + /proc/get_dir_multiz(turf/us, turf/them) us = get_turf(us) them = get_turf(them) diff --git a/code/modules/station_goals/brs/brs_rift_effect.dm b/code/modules/station_goals/brs/brs_rift_effect.dm index 784df836635..03021ae72a6 100644 --- a/code/modules/station_goals/brs/brs_rift_effect.dm +++ b/code/modules/station_goals/brs/brs_rift_effect.dm @@ -101,10 +101,10 @@ Use this before doing anything destructive. */ /obj/effect/abstract/bluespace_rift/proc/is_close_to_singularity(radius = 15) - for(var/singularity in GLOB.singularities) - if(!atoms_share_level(src, singularity)) + for(var/obj/singularity/singulo in GLOB.singularities) + if(src.z != singulo.z) continue - if(get_dist(src, singularity) <= radius) + if(get_dist(src, singulo) <= radius) return TRUE return FALSE diff --git a/code/modules/station_goals/shield.dm b/code/modules/station_goals/shield.dm index b033f52b342..c31cc38fc9d 100644 --- a/code/modules/station_goals/shield.dm +++ b/code/modules/station_goals/shield.dm @@ -1,11 +1,11 @@ GLOBAL_LIST_INIT(meteor_shields, list()) +GLOBAL_LIST_EMPTY_TYPED(meteor_shielded_turfs, /turf) // Щиты станции // Цепь спутников, окружающих станцию // Спутники активируются, создавая щит, который будет препятствовать прохождению неорганической материи. /datum/station_goal/station_shield name = "Station Shield" - VAR_PRIVATE/cached_coverage_length var/coverage_goal = 10000 /datum/station_goal/station_shield/get_report() @@ -31,21 +31,21 @@ GLOBAL_LIST_INIT(meteor_shields, list()) if(..()) return TRUE update_coverage() - if(cached_coverage_length >= coverage_goal) + if(length(GLOB.meteor_shielded_turfs) >= coverage_goal) return TRUE return FALSE -/datum/station_goal/station_shield/proc/get_coverage() - return cached_coverage_length - /datum/station_goal/station_shield/proc/update_coverage() var/list/coverage = list() for(var/obj/machinery/satellite/meteor_shield/shield_satt as anything in GLOB.meteor_shields) if(!shield_satt.active || !is_station_level(shield_satt.z)) continue + for(var/obj/effect/abstract/meteor_shield_proxy/proxy in shield_satt.proxies) + for(var/turf/covered in view(shield_satt.kill_range, proxy)) + coverage |= covered for(var/turf/covered in view(shield_satt.kill_range, shield_satt)) coverage |= covered - cached_coverage_length = length(coverage) + GLOB.meteor_shielded_turfs = coverage /obj/item/circuitboard/computer/sat_control board_name = "Контроллер сети спутников" @@ -86,9 +86,9 @@ GLOBAL_LIST_INIT(meteor_shields, list()) var/datum/station_goal/station_shield/G = locate() in SSticker.mode.station_goals if(G) data["meteor_shield"] = 1 - data["meteor_shield_coverage"] = G.get_coverage() + data["meteor_shield_coverage"] = length(GLOB.meteor_shielded_turfs) data["meteor_shield_coverage_max"] = G.coverage_goal - data["meteor_shield_coverage_percentage"] = (G.get_coverage() / G.coverage_goal) * 100 + data["meteor_shield_coverage_percentage"] = (length(GLOB.meteor_shielded_turfs) / G.coverage_goal) * 100 return data /obj/machinery/computer/sat_control/ui_act(action, params) @@ -102,7 +102,7 @@ GLOBAL_LIST_INIT(meteor_shields, list()) /obj/machinery/computer/sat_control/proc/toggle(id) for(var/obj/machinery/satellite/S in GLOB.machines) - if(S.id == id && atoms_share_level(src, S)) + if(S.id == id && are_zs_connected(src, S)) if(!S.toggle()) notice = "Вы можете активировать только находящиеся в космосе спутники" else @@ -173,6 +173,8 @@ GLOBAL_LIST_INIT(meteor_shields, list()) mode = "M-SHIELD" speed_process = TRUE var/kill_range = 14 + /// A list of "proxy" objects used for multi-z coverage. + var/list/obj/effect/abstract/meteor_shield_proxy/proxies = list() /obj/machinery/satellite/meteor_shield/examine(mob/user) . = ..() @@ -187,32 +189,72 @@ GLOBAL_LIST_INIT(meteor_shields, list()) if(emagged) . += span_warning("But something seems off about it...?") +/obj/machinery/satellite/meteor_shield/Initialize(mapload) + . = ..() + GLOB.meteor_shields += src + AddComponent(/datum/component/proximity_monitor, kill_range) + setup_proxies() + +/obj/machinery/satellite/meteor_shield/Destroy() + . = ..() + if(active && emagged) + change_meteor_chance(0.5) + GLOB.meteor_shields -= src + var/datum/station_goal/station_shield/shield_goal = locate() in SSticker.mode.station_goals + if(shield_goal) + shield_goal.update_coverage() + +/obj/machinery/satellite/meteor_shield/HasProximity(atom/movable/AM) + shoot_meteor(AM) + +/obj/machinery/satellite/meteor_shield/proc/shoot_meteor(atom/movable/possible_danger) + if(!active || emagged) + return + if(istype(possible_danger, /obj/effect/meteor)) + var/obj/effect/meteor/meteor_to_destroy = possible_danger + if(meteor_to_destroy.z != z) + return + if(!space_los(meteor_to_destroy)) + return + Beam(get_turf(meteor_to_destroy), icon_state = "sat_beam", time = 5, maxdistance = kill_range) + if(meteor_to_destroy.shield_defense(src)) + new /obj/effect/temp_visual/explosion(meteor_to_destroy) + // INVOKE_ASYNC(src, PROC_REF(play_zap_sound), meteor_turf) + qdel(meteor_to_destroy) + + /obj/machinery/satellite/meteor_shield/proc/space_los(meteor) for(var/turf/T as anything in get_line(src, meteor)) if(!isspaceturf(T)) return FALSE return TRUE -/obj/machinery/satellite/meteor_shield/process() - if(!active) - return - for(var/obj/effect/meteor/meteor_to_destroy as anything in GLOB.meteor_list) - if(meteor_to_destroy.z != z) - continue - if(get_dist(meteor_to_destroy, src) > kill_range) - continue - if(!emagged && space_los(meteor_to_destroy)) - Beam(get_turf(meteor_to_destroy), icon_state = "sat_beam", time = 5, maxdistance = kill_range) - if(meteor_to_destroy.shield_defense(src)) - qdel(meteor_to_destroy) +/obj/machinery/satellite/meteor_shield/on_changed_z_level(turf/old_turf, turf/new_turf, same_z_layer, notify_contents) + . = ..() + setup_proxies() + +/obj/machinery/satellite/meteor_shield/proc/setup_proxies() + for(var/stacked_z in SSmapping.get_connected_levels(get_turf(src))) + setup_proxy_for_z(stacked_z) +/obj/machinery/satellite/meteor_shield/proc/setup_proxy_for_z(target_z) + if(target_z == z) + return + // don't setup a proxy if there already is one. + if(!QDELETED(proxies["[target_z]"])) + return + var/turf/our_loc = get_turf(src) + var/turf/target_loc = locate(our_loc.x, our_loc.y, target_z) + if(QDELETED(target_loc)) + return + var/obj/effect/abstract/meteor_shield_proxy/new_proxy = new(target_loc, src) + proxies["[target_z]"] = new_proxy /obj/machinery/satellite/meteor_shield/Process_Spacemove(movement_dir = NONE, continuous_move = FALSE) if(active) return TRUE return ..() - /obj/machinery/satellite/meteor_shield/toggle(user) . = ..() if(!.) @@ -227,25 +269,19 @@ GLOBAL_LIST_INIT(meteor_shields, list()) if(shield_goal) shield_goal.update_coverage() -/obj/machinery/satellite/meteor_shield/proc/change_meteor_chance(mod) +/obj/machinery/satellite/meteor_shield/proc/change_meteor_chance(mod = 1) + var/static/list/meteor_event_typecache + if(!meteor_event_typecache) + meteor_event_typecache = typecacheof(list( + /datum/event/meteor_wave, + /datum/event/dust/meaty, + /datum/event/dust, + )) for(var/datum/event_container/container in SSevents.event_containers) for(var/datum/event_meta/M in container.available_events) - if(M.event_type == /datum/event/meteor_wave) + if(is_type_in_typecache(M.event_type, meteor_event_typecache)) M.weight_mod *= mod -/obj/machinery/satellite/meteor_shield/Initialize(mapload) - . = ..() - GLOB.meteor_shields += src - -/obj/machinery/satellite/meteor_shield/Destroy() - . = ..() - if(active && emagged) - change_meteor_chance(0.5) - GLOB.meteor_shields -= src - var/datum/station_goal/station_shield/shield_goal = locate() in SSticker.mode.station_goals - if(shield_goal) - shield_goal.update_coverage() - /obj/machinery/satellite/meteor_shield/emag_act(mob/user) if(emagged) return @@ -255,3 +291,36 @@ GLOBAL_LIST_INIT(meteor_shields, list()) emagged = TRUE if(active) change_meteor_chance(2) + +/obj/effect/abstract/meteor_shield_proxy + name = "Proxy Detector For Meteor Shield" + /// The meteor shield sat this is proxying - any HasProximity calls will be forwarded to it. + var/obj/machinery/satellite/meteor_shield/parent + +/obj/effect/abstract/meteor_shield_proxy/Initialize(mapload, obj/machinery/satellite/meteor_shield/parent) + . = ..() + if(QDELETED(parent)) + return INITIALIZE_HINT_QDEL + src.parent = parent + AddComponent(/datum/component/proximity_monitor, parent.kill_range) + RegisterSignal(parent, COMSIG_MOVABLE_MOVED, PROC_REF(on_parent_deleted)) + RegisterSignal(parent, COMSIG_MOVABLE_Z_CHANGED, PROC_REF(on_parent_z_changed)) + RegisterSignal(parent, COMSIG_QDELETING, PROC_REF(on_parent_moved)) + +/obj/effect/abstract/meteor_shield_proxy/HasProximity(atom/movable/AM) + parent.shoot_meteor(AM) + +/obj/effect/abstract/meteor_shield_proxy/proc/on_parent_moved() + SIGNAL_HANDLER + var/turf/parent_loc = get_turf(parent) + var/turf/new_loc = locate(parent_loc.x, parent_loc.y, z) + abstract_move(new_loc) + +/obj/effect/abstract/meteor_shield_proxy/proc/on_parent_z_changed() + SIGNAL_HANDLER + if(z == parent.z || !are_zs_connected(parent, src)) + qdel(src) + +/obj/effect/abstract/meteor_shield_proxy/proc/on_parent_deleted() + SIGNAL_HANDLER + qdel(src) diff --git a/code/modules/surgery/organs/heart.dm b/code/modules/surgery/organs/heart.dm index f24c4b2b7c5..3a6860ac3a3 100644 --- a/code/modules/surgery/organs/heart.dm +++ b/code/modules/surgery/organs/heart.dm @@ -7,13 +7,16 @@ var/beating = TRUE dead_icon = "heart-off" var/icon_base = "heart" + var/item_base = "heart" /obj/item/organ/internal/heart/update_icon_state() if(beating) icon_state = "[icon_base]-on" + item_state = "[item_base]-on" else icon_state = "[icon_base]-off" + item_state = "[item_base]-off" /obj/item/organ/internal/heart/remove(mob/living/carbon/human/target, special = ORGAN_MANIPULATION_DEFAULT) diff --git a/code/modules/surgery/organs/lungs.dm b/code/modules/surgery/organs/lungs.dm index 9dd2276ce08..225d69a07a6 100644 --- a/code/modules/surgery/organs/lungs.dm +++ b/code/modules/surgery/organs/lungs.dm @@ -309,60 +309,6 @@ S.reagents.add_reagent("salbutamol", 5) return S -/obj/item/organ/internal/lungs/plasmaman - name = "plasma filter" - desc = "A spongy rib-shaped mass for filtering plasma from the air." - icon = 'icons/obj/species_organs/plasmaman.dmi' - icon_state = "lungs" - - safe_oxygen_min = 0 //We don't breath this - safe_toxins_min = 16 //We breathe THIS! - safe_toxins_max = 0 - -/obj/item/organ/internal/lungs/vox - name = "Vox lungs" - desc = "They're filled with dust....wow." - icon = 'icons/obj/species_organs/vox.dmi' - icon_state = "lungs" - - safe_oxygen_min = 0 //We don't breathe this - safe_oxygen_max = 0.05 //This is toxic to us - safe_nitro_min = 16 //We breathe THIS! - oxy_damage_type = TOX //And it poisons us - -/obj/item/organ/internal/lungs/drask - icon = 'icons/obj/species_organs/drask.dmi' - - cold_message = "an invigorating coldness" - cold_level_1_damage = -COLD_GAS_DAMAGE_LEVEL_1 //They heal when the air is cold - cold_level_2_damage = -COLD_GAS_DAMAGE_LEVEL_2 - cold_level_3_damage = -COLD_GAS_DAMAGE_LEVEL_3 - cold_damage_types = list(BRUTE = 0.5, BURN = 0.25) - - var/cooling_start_temp = DRASK_LUNGS_COOLING_START_TEMP - var/cooling_stop_temp = DRASK_LUNGS_COOLING_STOP_TEMP - -/obj/item/organ/internal/lungs/drask/insert(mob/living/carbon/target, special = ORGAN_MANIPULATION_DEFAULT) - . = ..() - - if(!.) - return FALSE - - RegisterSignal(owner, COMSIG_HUMAN_EARLY_HANDLE_ENVIRONMENT, PROC_REF(regulate_temperature)) - -/obj/item/organ/internal/lungs/drask/proc/regulate_temperature(mob/living/source, datum/gas_mixture/environment) - SIGNAL_HANDLER - - if(source.stat == DEAD) - return - - if(owner.bodytemperature > cooling_start_temp && environment.temperature <= cooling_stop_temp) - owner.adjust_bodytemperature(-5) - -/obj/item/organ/internal/lungs/drask/remove(mob/living/user, special = ORGAN_MANIPULATION_DEFAULT) - UnregisterSignal(owner, COMSIG_HUMAN_EARLY_HANDLE_ENVIRONMENT) - return ..() - /obj/item/organ/internal/lungs/cybernetic name = "cybernetic lungs" desc = "A cybernetic version of the lungs found in traditional humanoid entities. It functions the same as an organic lung and is merely meant as a replacement." diff --git a/code/modules/surgery/organs/organ_internal.dm b/code/modules/surgery/organs/organ_internal.dm index 8f576b0e443..e6e75d00eee 100644 --- a/code/modules/surgery/organs/organ_internal.dm +++ b/code/modules/surgery/organs/organ_internal.dm @@ -13,6 +13,9 @@ light_system = MOVABLE_LIGHT light_on = FALSE + lefthand_file = 'icons/mob/inhands/organ_lefthand.dmi' + righthand_file = 'icons/mob/inhands/organ_righthand.dmi' + /obj/item/organ/internal/Initialize(mapload) . = ..() diff --git a/code/modules/surgery/organs/subtypes/drask.dm b/code/modules/surgery/organs/subtypes/drask.dm index 81b461d2a74..293c59348b7 100644 --- a/code/modules/surgery/organs/subtypes/drask.dm +++ b/code/modules/surgery/organs/subtypes/drask.dm @@ -4,12 +4,15 @@ name = "drask organ" icon = 'icons/obj/species_organs/drask.dmi' icon_state = "innards" + item_state = "drask_innards" desc = "A greenish, slightly translucent organ. It is extremely cold." /obj/item/organ/internal/heart/drask species_type = /datum/species/drask name = "drask heart" icon = 'icons/obj/species_organs/drask.dmi' + item_state = "drask_heart-on" + item_base = "drask_heart" parent_organ_zone = BODY_ZONE_HEAD /obj/item/organ/internal/liver/drask @@ -17,12 +20,14 @@ name = "metabolic strainer" icon = 'icons/obj/species_organs/drask.dmi' icon_state = "kidneys" + item_state = "drask_liver" alcohol_intensity = 0.8 /obj/item/organ/internal/brain/drask species_type = /datum/species/drask icon = 'icons/obj/species_organs/drask.dmi' icon_state = "brain2" + item_state = "drask_brain" mmi_icon = 'icons/obj/species_organs/drask.dmi' mmi_icon_state = "mmi_full" @@ -30,5 +35,39 @@ species_type = /datum/species/drask name = "drask eyeballs" icon = 'icons/obj/species_organs/drask.dmi' + item_state = "drask_eyes" desc = "Drask eyes. They look even stranger disembodied." see_in_dark = 5 + +/obj/item/organ/internal/lungs/drask + icon = 'icons/obj/species_organs/drask.dmi' + item_state = "drask_lungs" + cold_message = "an invigorating coldness" + cold_level_1_damage = -COLD_GAS_DAMAGE_LEVEL_1 //They heal when the air is cold + cold_level_2_damage = -COLD_GAS_DAMAGE_LEVEL_2 + cold_level_3_damage = -COLD_GAS_DAMAGE_LEVEL_3 + cold_damage_types = list(BRUTE = 0.5, BURN = 0.25) + + var/cooling_start_temp = DRASK_LUNGS_COOLING_START_TEMP + var/cooling_stop_temp = DRASK_LUNGS_COOLING_STOP_TEMP + +/obj/item/organ/internal/lungs/drask/insert(mob/living/carbon/target, special = ORGAN_MANIPULATION_DEFAULT) + . = ..() + + if(!.) + return FALSE + + RegisterSignal(owner, COMSIG_HUMAN_EARLY_HANDLE_ENVIRONMENT, PROC_REF(regulate_temperature)) + +/obj/item/organ/internal/lungs/drask/proc/regulate_temperature(mob/living/source, datum/gas_mixture/environment) + SIGNAL_HANDLER + + if(source.stat == DEAD) + return + + if(owner.bodytemperature > cooling_start_temp && environment.temperature <= cooling_stop_temp) + owner.adjust_bodytemperature(-5) + +/obj/item/organ/internal/lungs/drask/remove(mob/living/user, special = ORGAN_MANIPULATION_DEFAULT) + UnregisterSignal(owner, COMSIG_HUMAN_EARLY_HANDLE_ENVIRONMENT) + return ..() diff --git a/code/modules/surgery/organs/subtypes/grey.dm b/code/modules/surgery/organs/subtypes/grey.dm index 830978a8919..5b13a3eb8c6 100644 --- a/code/modules/surgery/organs/subtypes/grey.dm +++ b/code/modules/surgery/organs/subtypes/grey.dm @@ -3,6 +3,7 @@ name = "grey liver" desc = "A small, odd looking liver." icon = 'icons/obj/species_organs/grey.dmi' + item_state = "grey_liver" alcohol_intensity = 1.4 /obj/item/organ/internal/brain/grey @@ -10,6 +11,7 @@ desc = "A large brain" icon = 'icons/obj/species_organs/grey.dmi' icon_state = "brain2" + item_state = "grey_brain" mmi_icon = 'icons/obj/species_organs/grey.dmi' mmi_icon_state = "mmi_full" smart_mind = TRUE // nerd brains show us sci-hud and research scanner @@ -27,6 +29,7 @@ name = "grey eyeballs" desc = "They still look creepy and emotionless." icon = 'icons/obj/species_organs/grey.dmi' + item_state = "grey_eyes" see_in_dark = 3 examine_mod = EXAMINE_INSTANT // Insta carbon examine @@ -34,13 +37,17 @@ species_type = /datum/species/grey name = "grey heart" icon = 'icons/obj/species_organs/grey.dmi' + item_state = "grey_heart-on" + item_base = "grey_heart" /obj/item/organ/internal/lungs/grey species_type = /datum/species/grey name = "grey lungs" icon = 'icons/obj/species_organs/grey.dmi' + item_state = "grey_lungs" /obj/item/organ/internal/kidneys/grey species_type = /datum/species/grey name = "grey kidneys" icon = 'icons/obj/species_organs/grey.dmi' + item_state = "grey_kidneys" diff --git a/code/modules/surgery/organs/subtypes/kidan.dm b/code/modules/surgery/organs/subtypes/kidan.dm index fdfc7a93cb4..a4e7d9d5516 100644 --- a/code/modules/surgery/organs/subtypes/kidan.dm +++ b/code/modules/surgery/organs/subtypes/kidan.dm @@ -2,6 +2,7 @@ species_type = /datum/species/kidan name = "kidan liver" icon = 'icons/obj/species_organs/kidan.dmi' + item_state = "kidan_liver" alcohol_intensity = 0.5 @@ -15,6 +16,7 @@ desc = "A specialized tissue that reacts with oxygen, nutriment and blood to produce light in Kidan." icon = 'icons/obj/species_organs/kidan.dmi' icon_state = "kid_lantern" + item_state = "kidan_lantern" origin_tech = "biotech=2" w_class = WEIGHT_CLASS_TINY parent_organ_zone = BODY_ZONE_PRECISE_GROIN @@ -118,16 +120,20 @@ species_type = /datum/species/kidan name = "kidan eyeballs" icon = 'icons/obj/species_organs/kidan.dmi' + item_state = "kidan_eyes" /obj/item/organ/internal/heart/kidan species_type = /datum/species/kidan name = "kidan heart" icon = 'icons/obj/species_organs/kidan.dmi' + item_state = "kidan_heart-on" + item_base = "kidan_heart" /obj/item/organ/internal/brain/kidan species_type = /datum/species/kidan icon = 'icons/obj/species_organs/kidan.dmi' icon_state = "brain2" + item_state = "kidan_brain" mmi_icon = 'icons/obj/species_organs/kidan.dmi' mmi_icon_state = "mmi_full" parent_organ_zone = BODY_ZONE_CHEST @@ -147,11 +153,13 @@ species_type = /datum/species/kidan name = "kidan lungs" icon = 'icons/obj/species_organs/kidan.dmi' + item_state = "kidan_lungs" /obj/item/organ/internal/kidneys/kidan species_type = /datum/species/kidan name = "kidan kidneys" icon = 'icons/obj/species_organs/kidan.dmi' + item_state = "kidan_kidneys" /obj/item/organ/external/head/kidan species_type = /datum/species/kidan diff --git a/code/modules/surgery/organs/subtypes/moth.dm b/code/modules/surgery/organs/subtypes/moth.dm index a1d0b0293c8..bae9b47caed 100644 --- a/code/modules/surgery/organs/subtypes/moth.dm +++ b/code/modules/surgery/organs/subtypes/moth.dm @@ -1,28 +1,35 @@ /obj/item/organ/internal/eyes/nian name = "moth eyeballs" + item_state = "nian_eyes" see_in_dark = 5 /obj/item/organ/internal/liver/nian name = "nian liver" icon = 'icons/obj/species_organs/nian.dmi' + item_state = "nian_liver" /obj/item/organ/internal/heart/nian name = "nian heart" icon = 'icons/obj/species_organs/nian.dmi' + item_state = "nian_heart-on" + item_base = "nian_heart" /obj/item/organ/internal/brain/nian icon = 'icons/obj/species_organs/nian.dmi' icon_state = "brain2" + item_state = "nian_brain" mmi_icon = 'icons/obj/species_organs/nian.dmi' mmi_icon_state = "mmi_full" /obj/item/organ/internal/lungs/nian name = "nian lungs" icon = 'icons/obj/species_organs/nian.dmi' + item_state = "nian_lungs" /obj/item/organ/internal/kidneys/nian name = "nian kidneys" icon = 'icons/obj/species_organs/nian.dmi' + item_state = "nian_kidneys" /obj/item/organ/external/wing/nian max_damage = 25 diff --git a/code/modules/surgery/organs/subtypes/plasmaman.dm b/code/modules/surgery/organs/subtypes/plasmaman.dm index 0ab8bc448e5..cab4e63ba48 100644 --- a/code/modules/surgery/organs/subtypes/plasmaman.dm +++ b/code/modules/surgery/organs/subtypes/plasmaman.dm @@ -2,21 +2,26 @@ species_type = /datum/species/plasmaman name = "plasmaman liver" icon = 'icons/obj/species_organs/plasmaman.dmi' + item_state = "plasmaman_liver" /obj/item/organ/internal/eyes/plasmaman species_type = /datum/species/plasmaman name = "plasmaman eyeballs" icon = 'icons/obj/species_organs/plasmaman.dmi' + item_state = "plasmaman_eyes" /obj/item/organ/internal/heart/plasmaman species_type = /datum/species/plasmaman name = "plasmaman heart" icon = 'icons/obj/species_organs/plasmaman.dmi' + item_state = "plasmaman_heart-on" + item_base = "plasmaman_heart" /obj/item/organ/internal/brain/plasmaman species_type = /datum/species/plasmaman icon = 'icons/obj/species_organs/plasmaman.dmi' icon_state = "brain2" + item_state = "plasmaman_brain" mmi_icon = 'icons/obj/species_organs/plasmaman.dmi' mmi_icon_state = "mmi_full" @@ -24,3 +29,14 @@ species_type = /datum/species/plasmaman name = "plasmaman kidneys" icon = 'icons/obj/species_organs/plasmaman.dmi' + item_state = "plasmaman_kidneys" + +/obj/item/organ/internal/lungs/plasmaman + name = "plasma filter" + desc = "A spongy rib-shaped mass for filtering plasma from the air." + icon = 'icons/obj/species_organs/plasmaman.dmi' + icon_state = "lungs" + item_state = "plasmaman_lungs" + safe_oxygen_min = 0 //We don't breath this + safe_toxins_min = 16 //We breathe THIS! + safe_toxins_max = 0 diff --git a/code/modules/surgery/organs/subtypes/skrell.dm b/code/modules/surgery/organs/subtypes/skrell.dm index 591948e4cc6..44fd4dc06ec 100644 --- a/code/modules/surgery/organs/subtypes/skrell.dm +++ b/code/modules/surgery/organs/subtypes/skrell.dm @@ -2,6 +2,7 @@ species_type = /datum/species/skrell name = "skrell liver" icon = 'icons/obj/species_organs/skrell.dmi' + item_state = "skrell_liver" alcohol_intensity = 4 /obj/item/organ/internal/liver/skrell/on_life() @@ -21,6 +22,7 @@ desc = "Allows Skrell to hide tiny objects within their head tentacles." icon = 'icons/obj/species_organs/skrell.dmi' icon_state = "skrell_headpocket" + item_state = "skrell_headpocket" origin_tech = "biotech=2" w_class = WEIGHT_CLASS_TINY parent_organ_zone = BODY_ZONE_HEAD @@ -82,12 +84,15 @@ name = "skrell heart" desc = "A stream lined heart." icon = 'icons/obj/species_organs/skrell.dmi' + item_state = "skrell_heart-on" + item_base = "skrell_heart" /obj/item/organ/internal/brain/skrell species_type = /datum/species/skrell icon = 'icons/obj/species_organs/skrell.dmi' desc = "A brain with a odd division in the middle." icon_state = "brain2" + item_state = "skrell_brain" mmi_icon = 'icons/obj/species_organs/skrell.dmi' mmi_icon_state = "mmi_full" @@ -95,11 +100,13 @@ species_type = /datum/species/skrell name = "skrell lungs" icon = 'icons/obj/species_organs/skrell.dmi' + item_state = "skrell_lungs" /obj/item/organ/internal/kidneys/skrell species_type = /datum/species/skrell name = "skrell kidneys" icon = 'icons/obj/species_organs/skrell.dmi' + item_state = "skrell_kidneys" desc = "The smallest kidneys you have ever seen, it probably doesn't even work." /obj/item/organ/internal/eyes/skrell @@ -108,3 +115,4 @@ can_see_food = TRUE name = "skrell eyeballs" icon = 'icons/obj/species_organs/skrell.dmi' + item_state = "skrell_eyes" diff --git a/code/modules/surgery/organs/subtypes/slime.dm b/code/modules/surgery/organs/subtypes/slime.dm index 04f86b4afd2..d4bbfccd090 100644 --- a/code/modules/surgery/organs/subtypes/slime.dm +++ b/code/modules/surgery/organs/subtypes/slime.dm @@ -3,6 +3,7 @@ icon = 'icons/obj/species_organs/slime.dmi' name = "slime heart" icon_state = "heart" + item_state = "slime_heart" desc = "This is a slime's osmotic pressure regulator, it appears to be some kind of biological pump that uses osmotic pressure to regulate water flow. It seems to work similar to a heart." dead_icon = null @@ -14,4 +15,14 @@ icon = 'icons/obj/species_organs/slime.dmi' name = "slime lungs" icon_state = "lungs" + item_state = "slime_lungs" desc = "This is a slime's gas exchange membrane, this membrane used for oxygen intake and gas exchange. These seem to work similar to lungs." + +/obj/item/organ/internal/brain/slime + species_type = /datum/species/slime + name = "slime core" + desc = "A complex, organic knot of jelly and crystalline particles." + icon = 'icons/mob/slimes.dmi' + icon_state = "green slime extract" + mmi_icon_state = "slime_mmi" + parent_organ_zone = BODY_ZONE_CHEST diff --git a/code/modules/surgery/organs/subtypes/tajaran.dm b/code/modules/surgery/organs/subtypes/tajaran.dm index 295b787340b..962d8928d9e 100644 --- a/code/modules/surgery/organs/subtypes/tajaran.dm +++ b/code/modules/surgery/organs/subtypes/tajaran.dm @@ -2,11 +2,13 @@ species_type = /datum/species/tajaran name = "tajaran liver" icon = 'icons/obj/species_organs/tajaran.dmi' + item_state = "tajaran_liver" alcohol_intensity = 1.4 /obj/item/organ/internal/eyes/tajaran species_type = /datum/species/tajaran icon = 'icons/obj/species_organs/tajaran.dmi' + item_state = "tajaran_eyes" name = "tajaran eyeballs" colourblind_matrix = MATRIX_TAJ_CBLIND //The colour matrix parameter that the mob will recieve when they get the disability. replace_colours = TRITANOPIA_COLOR_REPLACE @@ -23,11 +25,14 @@ species_type = /datum/species/tajaran name = "tajaran heart" icon = 'icons/obj/species_organs/tajaran.dmi' + item_state = "tajaran_heart-on" + item_base = "tajaran_heart" /obj/item/organ/internal/brain/tajaran species_type = /datum/species/tajaran icon = 'icons/obj/species_organs/tajaran.dmi' icon_state = "brain2" + item_state = "tajaran_brain" mmi_icon = 'icons/obj/species_organs/tajaran.dmi' mmi_icon_state = "mmi_full" @@ -35,11 +40,13 @@ species_type = /datum/species/tajaran name = "tajaran lungs" icon = 'icons/obj/species_organs/tajaran.dmi' + item_state = "tajaran_lungs" /obj/item/organ/internal/kidneys/tajaran species_type = /datum/species/tajaran name = "tajaran kidneys" icon = 'icons/obj/species_organs/tajaran.dmi' + item_state = "tajaran_kidneys" /obj/item/organ/external/tail/tajaran species_type = /datum/species/tajaran diff --git a/code/modules/surgery/organs/subtypes/unathi.dm b/code/modules/surgery/organs/subtypes/unathi.dm index 66b7abeffd3..f5c44bdb97e 100644 --- a/code/modules/surgery/organs/subtypes/unathi.dm +++ b/code/modules/surgery/organs/subtypes/unathi.dm @@ -2,6 +2,7 @@ species_type = /datum/species/unathi name = "unathi liver" icon = 'icons/obj/species_organs/unathi.dmi' + item_state = "unathi_liver" desc = "A large looking liver." alcohol_intensity = 0.8 @@ -9,6 +10,7 @@ species_type = /datum/species/unathi name = "unathi eyeballs" icon = 'icons/obj/species_organs/unathi.dmi' + item_state = "unathi_eyes" see_in_dark = 3 /obj/item/organ/internal/heart/unathi @@ -16,12 +18,15 @@ name = "unathi heart" desc = "A large looking heart." icon = 'icons/obj/species_organs/unathi.dmi' + item_state = "unathi_heart-on" + item_base = "unathi_heart" /obj/item/organ/internal/brain/unathi species_type = /datum/species/unathi icon = 'icons/obj/species_organs/unathi.dmi' desc = "A smallish looking brain." icon_state = "brain2" + item_state = "unathi_brain" mmi_icon = 'icons/obj/species_organs/unathi.dmi' mmi_icon_state = "mmi_full" @@ -29,11 +34,13 @@ species_type = /datum/species/unathi name = "unathi lungs" icon = 'icons/obj/species_organs/unathi.dmi' + item_state = "unathi_lungs" /obj/item/organ/internal/kidneys/unathi species_type = /datum/species/unathi name = "unathi kidneys" icon = 'icons/obj/species_organs/unathi.dmi' + item_state = "unathi_kidneys" /obj/item/organ/external/tail/unathi species_type = /datum/species/unathi diff --git a/code/modules/surgery/organs/subtypes/vox.dm b/code/modules/surgery/organs/subtypes/vox.dm index 97d2ad41083..69d51d026e7 100644 --- a/code/modules/surgery/organs/subtypes/vox.dm +++ b/code/modules/surgery/organs/subtypes/vox.dm @@ -2,6 +2,7 @@ species_type = /datum/species/vox name = "vox liver" icon = 'icons/obj/species_organs/vox.dmi' + item_state = "vox_liver" alcohol_intensity = 1.6 sterile = TRUE @@ -9,12 +10,15 @@ species_type = /datum/species/vox name = "vox eyeballs" icon = 'icons/obj/species_organs/vox.dmi' + item_state = "vox_eyes" sterile = TRUE /obj/item/organ/internal/heart/vox species_type = /datum/species/vox name = "vox heart" icon = 'icons/obj/species_organs/vox.dmi' + item_state = "vox_heart-on" + item_base = "vox_heart" sterile = TRUE /obj/item/organ/internal/brain/vox @@ -23,6 +27,7 @@ desc = "A peculiarly advanced bio-electronic device that seems to hold the memories and identity of a Vox." icon = 'icons/obj/species_organs/vox.dmi' icon_state = "cortical-stack" + item_state = "vox_cortical-stack" mmi_icon = 'icons/obj/species_organs/vox.dmi' mmi_icon_state = "mmi_full" sterile = TRUE @@ -31,8 +36,21 @@ species_type = /datum/species/vox name = "vox kidneys" icon = 'icons/obj/species_organs/vox.dmi' + item_state = "vox_kidneys" sterile = TRUE +/obj/item/organ/internal/lungs/vox + name = "Vox lungs" + desc = "They're filled with dust....wow." + icon = 'icons/obj/species_organs/vox.dmi' + icon_state = "lungs" + item_state = "vox_lungs" + + safe_oxygen_min = 0 //We don't breathe this + safe_oxygen_max = 0.05 //This is toxic to us + safe_nitro_min = 16 //We breathe THIS! + oxy_damage_type = TOX //And it poisons us + /obj/item/organ/external/tail/vox species_type = /datum/species/vox name = "vox tail" diff --git a/code/modules/surgery/organs/subtypes/vulpkanin.dm b/code/modules/surgery/organs/subtypes/vulpkanin.dm index 9ce7855c3e3..c1c80391b12 100644 --- a/code/modules/surgery/organs/subtypes/vulpkanin.dm +++ b/code/modules/surgery/organs/subtypes/vulpkanin.dm @@ -8,12 +8,14 @@ species_type = /datum/species/vulpkanin name = "vulpkanin liver" icon = 'icons/obj/species_organs/vulpkanin.dmi' + item_state = "vulpkanin_liver" alcohol_intensity = 1.4 /obj/item/organ/internal/eyes/vulpkanin species_type = /datum/species/vulpkanin name = "vulpkanin eyeballs" icon = 'icons/obj/species_organs/vulpkanin.dmi' + item_state = "vulpkanin_eyes" colourblind_matrix = MATRIX_VULP_CBLIND //The colour matrix parameter that the mob will recieve when they get the disability. replace_colours = PROTANOPIA_COLOR_REPLACE see_in_dark = 8 @@ -29,11 +31,14 @@ species_type = /datum/species/vulpkanin name = "vulpkanin heart" icon = 'icons/obj/species_organs/vulpkanin.dmi' + item_state = "vulpkanin_heart-on" + item_base = "vulpkanin_heart" /obj/item/organ/internal/brain/vulpkanin species_type = /datum/species/vulpkanin icon = 'icons/obj/species_organs/vulpkanin.dmi' icon_state = "brain2" + item_state = "vulpkanin_brain" mmi_icon = 'icons/obj/species_organs/vulpkanin.dmi' mmi_icon_state = "mmi_full" @@ -41,11 +46,13 @@ species_type = /datum/species/vulpkanin name = "vulpkanin lungs" icon = 'icons/obj/species_organs/vulpkanin.dmi' + item_state = "vulpkanin_lungs" /obj/item/organ/internal/kidneys/vulpkanin species_type = /datum/species/vulpkanin name = "vulpkanin kidneys" icon = 'icons/obj/species_organs/vulpkanin.dmi' + item_state = "vulpkanin_kidneys" /obj/item/organ/external/tail/vulpkanin species_type = /datum/species/vulpkanin diff --git a/code/modules/surgery/organs/subtypes/xenos.dm b/code/modules/surgery/organs/subtypes/xenos.dm index cf7d1e5bd61..75b7f1c3be6 100644 --- a/code/modules/surgery/organs/subtypes/xenos.dm +++ b/code/modules/surgery/organs/subtypes/xenos.dm @@ -33,6 +33,14 @@ //XENOMORPH ORGANS +/obj/item/organ/internal/brain/xeno + name = "xenomorph brain" + desc = "We barely understand the brains of terrestial animals. Who knows what we may find in the brain of such an advanced species?" + icon_state = "brain-x" + origin_tech = "biotech=6" + mmi_icon = 'icons/mob/alien.dmi' + mmi_icon_state = "AlienMMI" + /obj/item/organ/internal/xenos/plasmavessel name = "xeno plasma vessel" icon_state = "plasma" diff --git a/code/modules/tgui/modules/ert_manager.dm b/code/modules/tgui/modules/ert_manager.dm index 7dbfbac7a22..564a016e65f 100644 --- a/code/modules/tgui/modules/ert_manager.dm +++ b/code/modules/tgui/modules/ert_manager.dm @@ -79,6 +79,9 @@ if("Red") D = new /datum/response_team/red if("Gamma") + if(!check_rights(R_EVENT, TRUE, ui.user)) + to_chat(ui.user, span_warning("Вы не можете отправить ОБР кода Гамма.")) + return D = new /datum/response_team/gamma else to_chat(usr, span_userdanger("Неверный тип ОБР.")) diff --git a/html/browser/common.css b/html/browser/common.css index fe4c0bf7b1a..d73985eb396 100644 --- a/html/browser/common.css +++ b/html/browser/common.css @@ -14,7 +14,7 @@ hr height: 1px; } -a, a:link, a:visited, a:active, .linkOn, .linkOff +a, button, a:link, a:visited, a:active, .linkOn, .linkOff { color: #ffffff; text-decoration: none; @@ -41,6 +41,7 @@ a.nobg:hover color:#40628a; } + a:hover { color: #40628a; @@ -92,7 +93,6 @@ a.icon img, .linkOn.icon img width: 18px; height: 18px; } - ul { padding: 4px 0 0 10px; @@ -156,23 +156,22 @@ h4 } .uiTitleWrapper - { - position:fixed; - top:0px; - left:0px; - right:0px; - z-index: 10 - } - - .uiTitleButtons - { - position:fixed; - top:0px; - right:0px; - height:32px; - z-index:11; - } +{ + position:fixed; + top:0px; + left:0px; + right:0px; + z-index: 10 +} +.uiTitleButtons +{ + position:fixed; + top:0px; + right:0px; + height:32px; + z-index:11; +} .uiTitle.icon { @@ -213,6 +212,7 @@ h4 color: #272727; } + .notice { position: relative; @@ -351,12 +351,15 @@ div.notice width: 100%; clear: both; } + + .charPreview { -ms-interpolation-mode: nearest-neighbor; /* TODO: Remove with 516 */ image-rendering: pixelated; width: 64px; height:64px; + } .loadoutPreview @@ -375,6 +378,7 @@ div.notice animation: ellipsis steps(4,end) 900ms infinite; content: "\2026"; width: 0px; + } @keyframes ellipsis @@ -384,3 +388,123 @@ div.notice width: 1.25em; } } + +.switch { + position: relative; + display: inline-block; + width: 50px; + height: 26px; +} + +.switch input {display:none;} + +.slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #383838; + transition: .4s; +} + +.slider:before { + position: absolute; + content: ""; + height: 18px; + width: 18px; + left: 4px; + bottom: 4px; + background-color: #98B0C3; + transition: .4s; +} + +.slider.red:before { + background-color: #d6858b; +} + +.slider.locked:before { + content: url("padlock.png"); + background-color: #b4b4b4; +} + +input:checked + .slider { + background-color: #40628a; +} + +input:checked + .slider.red { + background-color: #a92621; +} + +input:checked + .slider.locked { + background-color: #707070; +} + +input:focus + .slider { + box-shadow: 0 0 1px #2196F3; +} + +input:focus + .slider.red { + box-shadow: 0 0 1px #f3212d; +} + +input:focus + .slider.locked { + box-shadow: 0 0 1px #979797; +} + +input:checked + .slider:before { + transform: translateX(24px); +} + +.switch span { + display: inline-block; + position: relative; + width: 60px; + margin-left: 60px; +} + +ul.sparse { + padding-bottom:20px; +} + +.sparse li { + margin-top: 2px; +} + +.slider.round { + border-radius: 34px; +} + +.slider.round:before { + border-radius: 50%; +} + +.severity { + margin:0px; + padding: 1px 8px 1px 8px; + border-radius: 25px; + border: 1px solid #161616; + background: #40628a; + color: #ffffff; +} + +.severity img { + display: inline-block; + vertical-align: middle; +} + +.code { + padding: 6px 8px; + border: 1px solid #161616; + background: #383838; + color: #FFFFFF; + font-size: 12px; + display: block; + margin: 4px 0; + font-family: 'Courier New', Courier, monospace; +} + +.user-select { + user-select: all; +} \ No newline at end of file diff --git a/html/changelogs/archive/2024-12.yml b/html/changelogs/archive/2024-12.yml new file mode 100644 index 00000000000..98012517724 --- /dev/null +++ b/html/changelogs/archive/2024-12.yml @@ -0,0 +1,154 @@ +'2024-12-02': + PlayerUnknown14: + - qol: robots translation (#6130) +'2024-12-05': + anon1mka: + - unknown: vending.dm (#6174) +'2024-12-06': + Daeberdir: + - add: New() -> Initialize() organs migration. (#6137) + PiroMage: + - bugfix: Nova disposal (#6230) + PlayerUnknown14: + - tweak: thunderdome cooldown (#6227) + Vladisvell: + - bugfix: removes solar control duping (#6231) + - bugfix: Camera console broken screen textures fix (#6233) + - bugfix: Resolves test errors for idlenpcpool (#6234) + pilygun: + - tweak: Decrease access tuner price to 15 tc (#6225) +'2024-12-09': + Vladisvell: + - add: Z level checking optimization (#6240) +'2024-12-10': + Etrnlmelancholy: + - imageadd: NVG resprites (#6219) +'2024-12-11': + Vladisvell: + - del: Camera console broken screen textures fix" (#6246) + - bugfix: Removes experimentor tech exploit (#6247) +'2024-12-13': + Explosi00N: + - qol: tendril loot translation (#6236) + dageavtobusnick: + - add: request console cart in pda (#5990) +'2024-12-15': + Antoonij: + - tweak: ritual cast time & unhardcode update_rank() (#6201) + FlitchTime: + - qol: kitchen and grinder machinery hotkeys (#6245) +'2024-12-16': + PlayerUnknown14: + - tweak: tribal armor buff (#6218) + Valtor: + - bugfix: photocopier fix (#6207) + Vladisvell: + - bugfix: fixes cargo exploit (#6257) + - add: Allows developers to force away mission via configuration (#6258) + WolfLox: + - bugfix: wildwest black wall and double-double doors (#6251) +'2024-12-18': + FlitchTime: + - add: extended burn & brute healing kits (#6253) + Vladisvell: + - bugfix: dna injector can no longer be refreshed + dageavtobusnick: + - bugfix: request conole in pda spam (#6259) +'2024-12-19': + pilygun: + - imageadd: Updated security autolathe sprite (#6226) +'2024-12-21': + NightDawnFox: + - imageadd: 5 new plasma envirosuits (#6220) + - imageadd: new beans sprite & new plasmaman plushies (#6223) + Valtor: + - bugfix: Syndie supply pad console withdraw (#6232) +'2024-12-22': + BeebBeebBoob: + - refactor: Transit Shuttles (#5247) + LiquidPotroh: + - tweak: aiming lying targets by changing intent (#6222) + NightDawnFox: + - add: you can now SPEAK with 10+ Oxyloss (#6036) + Vitalya: + - imageadd: Nucleations Resprite (#6235) + - imageadd: Nucleation hair fix (#6263) + Vladisvell: + - add: Experimental lighting perfomance fix (#6238) + - server: Experimental perfomance fix for messages (#6239) +'2024-12-23': + Rafnik02: + - tweak: Rework suicide drill (#6189) +'2024-12-24': + Antoonij: + - add: caller to requester (#6265) + NightDawnFox: + - bugfix: brigmed envirohelm sprite now named correctly (#6266) + PlayerUnknown14: + - add: security tactical mask (#6264) +'2024-12-25': + anon1mka: + - unknown: arcade.dm (#6184) + pilygun: + - add: Thunderdome Christmas Update (#6255) +'2024-12-26': + Explosi00N: + - qol: mining hardsuit translation (#6270) + Vladisvell: + - bugfix: Fixes camera consoles, real this time (#6272) +'2024-12-27': + Antoonij: + - bugfix: Runtime bugfixes bundle №2 (#6118) + BeebBeebBoob: + - add: Vending machine falling hazard (#6256) + FlitchTime: + - bugfix: cargo console and qm quest tablet (#6277) + - tweak: added descriptions for machinery hotkeys (#6260) + - qol: add check security verb for admins (#6261) + - tweak: change armor gloves, price webbing (#6276) + Mahimka42: + - tweak: Adds a refill canister for custom vendor (#6202) + Sheya: + - tweak: cyborg inventory (#5785) +'2024-12-28': + Antoonij: + - bugfix: correct gender suffix (#6281) +'2024-12-30': + Anorak2020: + - balance: borers punish host action buff(#6228) + BeebBeebBoob: + - add: Minor z-level debug log (#6287) + - add: AI & Borg Upload Panel TGUI (#6273) + Etrnlmelancholy: + - del: barber deletion (#6262) + FlitchTime: + - tweak: miner voucher moved from bridge to qm office (#6274) + - add: Detective zippo (#6284) + PiroMage: + - bugfix: Nova Disposal (#6286) + TimChi: + - bugfix: TTS whisper does not work correctly (#6267) + Vitalya: + - add: 'Cosmetic Wryn Update: Resprite and Character Setup Update (#6168)' + dageavtobusnick: + - bugfix: vampires and changelings now can't learn cqc by upgrade implant + translation + (#6268) + - bugfix: shuttle now wait 3 minutes after deny lockdown (#6288) +'2024-12-31': + Anorak2020: + - add: Fire heating/ash storm damage protection due to "fire" armor (#6064) + Antoonij: + - bugfix: correct borg damage procs (#6290) + - qol: Unified Blood Adjust (#6180) + Baldek0: + - del: fart emote deletion (#6060) + BeebBeebBoob: + - add: 516 TGUI chat fix (#6285) + - bugfix: 'fixed tgui chat: Cannot access rules (#6291)' + - bugfix: warning at sass/scss section for testmerge action (#6292) + Etrnlmelancholy: + - tweak: ma boy clown got some bipki (#6242) + Koko4yXa: + - bugfix: Cyborg can't look in bags (#6289) + Mahimka42: + - add: Advanced Bluespace Drugs Storage (#6166) diff --git a/html/changelogs/archive/2025-01.yml b/html/changelogs/archive/2025-01.yml new file mode 100644 index 00000000000..51dc846e215 --- /dev/null +++ b/html/changelogs/archive/2025-01.yml @@ -0,0 +1,336 @@ +'2025-01-01': + FlitchTime: + - bugfix: detective and contractor zippo (#6302) + Sheya: + - add: universal gripper (#6299) + - tweak: kopeyka gender and tts (#6298) + - tweak: slime brain in chest (#6297) + - add: RPD in toolbelt (#6295) + Vladisvell: + - server: CI beta byond versions bump to 516.1648 (#6293) + chomasuke: + - bugfix: fix transfer blood (#6300) +'2025-01-02': + dageavtobusnick: + - add: welder sword (#5976) +'2025-01-03': + FlitchTime: + - add: laser minigun (#6279) + KefirTT: + - add: Aphasia disability (#6181) +'2025-01-04': + Anorak2020: + - add: normally working invisibility (#6071) + Antoonij: + - refactor: reagent attacks & Unarmed attacks (#5926) + - qol: optimize trim, inheritance for animal_temp + components (#6209) + - add: separated thermo control & drask coma (#6059) + BeebBeebBoob: + - add: TGUI 4K support (#6301) + - bugfix: AI upload freeforms & hacked modules and safe-checks (#6308) + Daeberdir: + - bugfix: In-Closet emotes doubling. (#6117) + Explosi00N: + - qol: kinetic crusher translation (#6283) + FlitchTime: + - tweak: edit armor for gloves and boots from armory (#6254) + Koko4yXa: + - bugfix: Can't pick sec cyborg (#6313) + L343-CJ: + - add: Mecha medbeam module (#6098) + PiroMage: + - add: 2 new statue on Nova and Nova button bugfix + new stairs (#6294) + PlayerUnknown14: + - tweak: thunderdome cooldown (once more) (#6306) + Sheya: + - add: blueshield sunglasses (#6044) + Vladisvell: + - bugfix: now contents of cargo crates are destroyed upon arriving to centcomm (#6315) + dageavtobusnick: + - unknown: tgui loadout + tgui color picker (#6280) + - add: blob update (#6113) + - bugfix: ashed paintkit make some mechs invisible (#6312) + - tweak: VV fixes and tweaks (#6307) + - tweak: tgui coin press (#6309) + - unknown: supply pods launcher admin button (#6305) + github-actions[bot]: + - server: Automatic NanoMap Update (#6194) +'2025-01-05': + Antoonij: + - add: Pref viewer & bitflag helpers (#6282) + Arceniu: + - bugfix: Lasergun implant doesnt have icon in inventory (#6322) + BeebBeebBoob: + - bugfix: No acceleration between space and space loopholes (#6318) + - refactor: split items_lefthand items_righthand dmi (#6310) + - server: GitHub README update (#6321) + Den109G: + - del: Comment out gatling (#6324) + Etrnlmelancholy: + - tweak: nucleations banned from robust based jobs (#6319) + FlitchTime: + - qol: Maximize up all tech and up to 8 level (#6304) + Rafnik02: + - qol: Sound for pacman (#6149) + dageavtobusnick: + - tweak: malf not ai traitor anymore (#6316) + - bugfix: Fix some bugs and errors (#6323) + - bugfix: presets fix (#6325) + github-actions[bot]: + - server: Automatic NanoMap Update (#6317) +'2025-01-06': + Antoonij: + - add: Updated Devil gamemode (#5944) + Koko4yXa: + - tweak: Changed max light for borgs (#6314) + Valtor: + - add: grey rework (#6108) + littleboobs: + - qol: vampire mode translation (#6311) +'2025-01-08': + BeebBeebBoob: + - bugfix: Blind AI while carding regains sight back (#6333) + - bugfix: chameleon gen deactivates properly (#6335) + - tweak: Assigns jobs first, antags second (#6334) + - bugfix: buildmode properly finishes on quit(eg. area_edit fix) (#6336) + Koko4yXa: + - bugfix: fix borg light overlay (#6337) + Vitalya: + - imageadd: Christmas decoration Resprite (#6331) +'2025-01-10': + Andrew455h: + - bugfix: exosuit fabricator unpowered print (#6343) +'2025-01-11': + BeebBeebBoob: + - del: Assigns jobs first, antags second" (#6349) + Koko4yXa: + - bugfix: Standard guardian phrase length (#6338) + Sheya: + - add: GreyTide strip (#6296) + Vitalya: + - bugfix: Plasmamen Engineer uniform fix (#6348) + dageavtobusnick: + - bugfix: fix some bugs (blob, loadout and etc) (#6345) + - add: pulse gatling (#6330) + - refactor: replace some icon2base64 to DMicon (#6347) +'2025-01-12': + dageavtobusnick: + - qol: tgchat lag fix caused by chat spam. (#6351) +'2025-01-16': + BeebBeebBoob: + - refactor: is_hot get_heat refactor (#6332) + - bugfix: Now chasm kills mechas properly (#6354) + - bugfix: More negative atmos (#6362) + Dictor: + - add: Increase SMMI TС cost & Overdrive ability (#6346) + FlitchTime: + - bugfix: slow kits and operation desc fix (#6363) + PiroMage: + - add: Lasergun & Riotshotgun flashlights V2 (#6360) + TimChi: + - qol: TGUI input for paper (#6357) + Vesterlim13: + - admin: event map - coldcolony (#6356) + userbaza: + - tweak: additional disability job restrictions (#6359) +'2025-01-18': + Andrew455h: + - bugfix: syndie drone wrong path (#6377) + FlitchTime: + - bugfix: borg light damage fix (#6373) + Mahimka42: + - add: HUD optical visors for donators (#6355) + NuSanya: + - bugfix: customat deleting things from pipes (#6364) + PiroMage: + - tweak: Nova gas storage roof (#6375) + TimChi: + - bugfix: grab people with a sleeper from any distance (#6374) + Vesterlim13: + - bugfix: coldcolony map fix (#6376) + Vitalya: + - imageadd: Cosmic Carp Resprite (#6352) + dageavtobusnick: + - unknown: vv options rights fix (#6378) + - bugfix: blob overminds in nullspace (#6370) +'2025-01-19': + Antoonij: + - code_imp: Diona internals improve (#6383) + BeebBeebBoob: + - admin: Poll voting (#6361) + Mahimka42: + - imageadd: Inhand detective hats and detective hats fixes. (#6382) + NoName: + - balance: Rework DNA Increaserun (#6366) + PlayerUnknown14: + - qol: attack messages translation (#6327) + Ravgolin: + - tweak: Delta Northwest maintenance remap 3 + github-actions[bot]: + - server: Automatic NanoMap Update (#6384) +'2025-01-20': + Baldek0: + - tweak: New name for star system (#6386) + BeebBeebBoob: + - code_imp: Removes REF() in favor UID() (#6387) + - bugfix: Can't set direction at floor painter (#6389) + - bugfix: Unbuckling buckled guardians on recall (#6392) + - bugfix: cell charger dismantle & component upgrade (#6393) + - bugfix: cane sprites (#6394) + - bugfix: Return ability for wryn to pick hair color and underwear (#6396) + - bugfix: Runtiming no DB - random character load (#6395) + NuSanya: + - add: SCS-3 Cage, alert qol (#6350) + PlayerUnknown14: + - bugfix: attack message fix (#6391) +'2025-01-21': + Vesterlim13: + - admin: coldcolony update (#6397) + dageavtobusnick: + - admin: VV atoms transform editor (#6379) +'2025-01-22': + Antoonij: + - bugfix: correct prize in arcade & poll query (#6400) + Honker9999999: + - add: Durand can't be moved in Defence mode [Bounty] (#6367) + dageavtobusnick: + - admin: some admin buttons tweaks (#6398) + tsoivecen199015: + - server: Abotch remap (#5903) +'2025-01-23': + Antoonij: + - bugfix: static pref info to object (#6418) + BeebBeebBoob: + - bugfix: evidence bag works properly (& removed move_contents_to proc) (#6415) + - bugfix: chair into crate while buckled, makes crate teleporter (#6416) + - server: deploy fix (#6421) + - server: Deploy fix 2 + - server: Deploy fix 3 + FlitchTime: + - balance: guardian ignore stamina damage (#6417) + Honker9999999: + - add: ghostface equipment [bounty] (#6371) + - add: autodrobe pricing and quantity update (#6399) + - add: PlasmaMate vendor (#6406) + Koko4yXa: + - bugfix: cyborg heal amount (#6407) + PlayerUnknown14: + - tweak: vendor slogans fix (#6410) + - qol: examine messages translation (#6412) + - qol: some localization fixes (#6409) + dageavtobusnick: + - admin: Updated admin antag UI menu (#6329) + - admin: admin buttons sorting (#6408) + - bugfix: antag menu sorting fix (#6413) + - admin: new ingame chat for developers (#6402) + - admin: ERT manager panel update (#6385) + - admin: some admin tweaks part 2 (#6401) + - admin: ghostchat contol (#6405) + - admin: some admin tweaks part 3 (#6419) +'2025-01-24': + Andrew455h: + - bugfix: syndi lockermech unavailable (#6420) + Antoonij: + - code_imp: pref holder & improve pref viewer (#6422) + dageavtobusnick: + - bugfix: admin verbs bugfix (#6424) +'2025-01-25': + BeebBeebBoob: + - del: SSblackbox system Removal (#6388) + Vesterlim13: + - admin: coldcolony update2 (#6433) + dageavtobusnick: + - bugfix: admin communication console access fix (#6425) +'2025-01-26': + BeebBeebBoob: + - del: SSblackbox system Removal" (#6456) + Honker9999999: + - bugfix: ghostface and autodrobe (#6463) + PlayerUnknown14: + - spellcheck: item sizes (#6457) + TimChi: + - add: Ghosts can toggles their sight (#6426) + - bugfix: TGUI input for paper working incorrectly (#6437) + dageavtobusnick: + - admin: atom_say in vv (#6452) + - admin: no vv verb for moders (#6428) + - bugfix: Advanced ProcCall global procs fix (#6434) + - bugfix: fix text input extra encoding (#6436) +'2025-01-27': + BeebBeebBoob: + - admin: Player Panel & PP Panel TGUI (#6440) + - bugfix: PP для модеров, подправка окна и скрытие инфы (#6470) + - bugfix: подправление надочёта в панеле PP (#6471) + Honker9999999: + - bugfix: plasmamate kit (#6465) + PlayerUnknown14: + - bugfix: стало возможным мыть голову при выборе головы (#6466) + - qol: Перевод медицинского оборудования (#6172) + Sheya: + - add: Хамелеон шеи в хамелеон ките + dageavtobusnick: + - bugfix: anomalies bugfix (#6468) + - bugfix: Ящики в упаковке теперь правильно удаляются на карго шаттле (#6467) + - admin: подправление разделов, исправление недочётов + - qol: Шёпот теперь по умолчанию Shift+T + - admin: Админы теперь могут отменять события + - bugfix: Кнопки алёртов теперь вмещаются + - admin: Настройка форс событий + - admin: mass anime button fix (#6430) + - tweak: mob_suspension now affects mob spawners (#6429) + - bugfix: Потенциальное решение смертельности блоба (#6464) +'2025-01-28': + Antoonij: + - experiment: turf defines with block to 515 syntax (#6454) + - refactor: datumize bodyzones (#6469) + BeebBeebBoob: + - bugfix: Капсула генетиков теперь работает (#6472) + - admin: Обновление PP, время, фикс related by (#6473) + - add: Голомапы (#6476) + - del: datumize bodyzones" (#6480) + - bugfix: название у station map сдвигается в начале (#6482) + - bugfix: GeoIP работает в админ Options Panel (#6481) + - add: 'Добавление map: иконки в чейнджлог (#6484)' + Etrnlmelancholy: + - add: сатанинская одежда (#6474) + L343-CJ: + - add: Slimes can choose skin color (#6353) + Mahimka42: + - tweak: adjust instead of halt in security gas mask (#6446) + Navvok: + - bugfix: случайный взрыв руки от abandoned crate (#6477) + PiroMage: + - tweak: Nova Kitchen and Lavaland outpost zone (#6411) + PlayerUnknown14: + - qol: локализация интерфейса и ещё всякое (#6445) + Vesterlim13: + - admin: coldcolony fix (#6483) + dageavtobusnick: + - admin: admins now can spawn cargo crates (#6455) + - admin: sound emitters (#6451) + - admin: select equipment on ghosts (#6453) + - admin: Advanced Spawn button (#6438) + - admin: Оптимизация поиска и работы VV + несколько ВВ qol-ов (#6478) + - admin: Событие для тушения плазменых пожаров (#6475) +'2025-01-29': + PlayerUnknown14: + - qol: микроправки кода и локализации (#6488) +'2025-01-30': + Rafnik02: + - imageadd: органы, рюкзаки, папки в руки (#6490) + dageavtobusnick: + - bugfix: Категория у Advanced Spawn + возможность удаления излучателя звука (#6487) +'2025-01-31': + Antoonij: + - add: object posession component (#6461) + FlitchTime: + - bugfix: Задержка для дымогена и новый реагент взамен удалённого для ксеноборга + (#6495) + - unknown: Заменил название зоны внешнего коридора спутника на Дельтах (#6500) + dageavtobusnick: + - bugfix: player panel fixes (#6494) + - admin: Несколько PM qol-ов (#6497) + github-actions[bot]: + - server: Automatic NanoMap Update (#6486) + littleboobs: + - spellcheck: перевод датчиков костюма + фиксы локализации (#6485) diff --git a/html/create_object.html b/html/create_object.html index 503113d15e6..b818d40c3cc 100644 --- a/html/create_object.html +++ b/html/create_object.html @@ -11,6 +11,7 @@ Where: diff --git a/icons/_nanomaps/Nova_nanomap_z2.png b/icons/_nanomaps/Nova_nanomap_z2.png index 8b7b7fb350e..0befedf2260 100644 Binary files a/icons/_nanomaps/Nova_nanomap_z2.png and b/icons/_nanomaps/Nova_nanomap_z2.png differ diff --git a/icons/mob/inhands/clothing_lefthand.dmi b/icons/mob/inhands/clothing_lefthand.dmi index afd08d554a1..8d2721fbdb4 100644 Binary files a/icons/mob/inhands/clothing_lefthand.dmi and b/icons/mob/inhands/clothing_lefthand.dmi differ diff --git a/icons/mob/inhands/clothing_righthand.dmi b/icons/mob/inhands/clothing_righthand.dmi index 14a6b2efcb6..4f0f92a872e 100644 Binary files a/icons/mob/inhands/clothing_righthand.dmi and b/icons/mob/inhands/clothing_righthand.dmi differ diff --git a/icons/mob/inhands/folder_lefthand.dmi b/icons/mob/inhands/folder_lefthand.dmi new file mode 100644 index 00000000000..39639d77a35 Binary files /dev/null and b/icons/mob/inhands/folder_lefthand.dmi differ diff --git a/icons/mob/inhands/folder_righthand.dmi b/icons/mob/inhands/folder_righthand.dmi new file mode 100644 index 00000000000..f8ee8f5756c Binary files /dev/null and b/icons/mob/inhands/folder_righthand.dmi differ diff --git a/icons/mob/inhands/organ_lefthand.dmi b/icons/mob/inhands/organ_lefthand.dmi new file mode 100644 index 00000000000..780df01f227 Binary files /dev/null and b/icons/mob/inhands/organ_lefthand.dmi differ diff --git a/icons/mob/inhands/organ_righthand.dmi b/icons/mob/inhands/organ_righthand.dmi new file mode 100644 index 00000000000..86f43594d9b Binary files /dev/null and b/icons/mob/inhands/organ_righthand.dmi differ diff --git a/icons/obj/fish_items.dmi b/icons/obj/fish_items.dmi index 302e144ba24..fc3d149b8bf 100644 Binary files a/icons/obj/fish_items.dmi and b/icons/obj/fish_items.dmi differ diff --git a/icons/ui_icons/padlock.png b/icons/ui_icons/padlock.png new file mode 100644 index 00000000000..719a12e9c98 Binary files /dev/null and b/icons/ui_icons/padlock.png differ diff --git a/interface/skin.dmf b/interface/skin.dmf index 2f067dce3be..4b704d23be1 100644 --- a/interface/skin.dmf +++ b/interface/skin.dmf @@ -25,10 +25,10 @@ menu "menu" command = ".quit" category = "&Файл" elem - name = "&Изображение" + name = "&Экран" elem name = "&Размер" - category = "&Изображение" + category = "&Экран" saved-params = "is-checked" elem "stretch" name = "&Авто-подбор размера" @@ -81,7 +81,7 @@ menu "menu" group = "размер" elem name = "&Масштабирование" - category = "&Изображение" + category = "&Экран" saved-params = "is-checked;command" elem "NN" name = "&Метод ближайшего соседа" @@ -105,7 +105,7 @@ menu "menu" elem "textmode" name = "&Текст" command = ".winset \"menu.textmode.is-checked=true?mapwindow.map.text-mode=true:mapwindow.map.text-mode=false\"" - category = "&Изображение" + category = "&Экран" can-check = true elem name = "&Опции" @@ -249,7 +249,7 @@ window "outputwindow" button-type = pushbox elem "saybutton" type = BUTTON - pos = 549,460 + pos = 499,460 size = 50x20 anchor1 = 100,100 anchor2 = -1,-1 @@ -261,13 +261,13 @@ window "outputwindow" button-type = pushbox elem "mebutton" type = BUTTON - pos = 499,460 + pos = 549,460 size = 50x20 anchor1 = 100,100 anchor2 = -1,-1 border = line saved-params = "is-checked" - text = "Эмоции" + text = "Эмоция" command = ".winset \"mebutton.is-checked=true ? input.command=\"!me \\\"\" : input.command=\"\"mebutton.is-checked=true ? saybutton.is-checked=false\"\"mebutton.is-checked=true ? oocbutton.is-checked=false\"" is-flat = true button-type = pushbox diff --git a/paradise.dme b/paradise.dme index bb4d75c62af..0f2940420fc 100644 --- a/paradise.dme +++ b/paradise.dme @@ -65,6 +65,7 @@ #include "code\__DEFINES\do_afters.dm" #include "code\__DEFINES\dye_keys.dm" #include "code\__DEFINES\emotes_defines.dm" +#include "code\__DEFINES\ert.dm" #include "code\__DEFINES\flags.dm" #include "code\__DEFINES\fonts.dm" #include "code\__DEFINES\footstep.dm" @@ -166,6 +167,7 @@ #include "code\__DEFINES\dcs\signals_blob.dm" #include "code\__DEFINES\dcs\signals_lazy_templates.dm" #include "code\__DEFINES\dcs\signals_object.dm" +#include "code\__DEFINES\dcs\signals_silicon.dm" #include "code\__DEFINES\dcs\signals_turf.dm" #include "code\__DEFINES\traits\_traits.dm" #include "code\__DEFINES\traits\declarations.dm" @@ -192,7 +194,6 @@ #include "code\__HELPERS\heap.dm" #include "code\__HELPERS\icon_smoothing.dm" #include "code\__HELPERS\icons.dm" -#include "code\__HELPERS\level_check.dm" #include "code\__HELPERS\level_traits.dm" #include "code\__HELPERS\lighting_helpers.dm" #include "code\__HELPERS\maths.dm" @@ -220,6 +221,8 @@ #include "code\__HELPERS\unsorted.dm" #include "code\__HELPERS\verb_helpers.dm" #include "code\__HELPERS\visual_effects.dm" +#include "code\__HELPERS\data_struct\priority_queue.dm" +#include "code\__HELPERS\data_struct\queue.dm" #include "code\__HELPERS\paths\jps.dm" #include "code\__HELPERS\paths\path.dm" #include "code\__HELPERS\paths\sssp.dm" @@ -323,6 +326,7 @@ #include "code\controllers\subsystem\ambience.dm" #include "code\controllers\subsystem\area_contents.dm" #include "code\controllers\subsystem\asset_loading.dm" +#include "code\controllers\subsystem\augury.dm" #include "code\controllers\subsystem\capitalism.dm" #include "code\controllers\subsystem\chat.dm" #include "code\controllers\subsystem\cleanup.dm" @@ -331,12 +335,12 @@ #include "code\controllers\subsystem\demo.dm" #include "code\controllers\subsystem\early_assets.dm" #include "code\controllers\subsystem\events.dm" +#include "code\controllers\subsystem\explosions.dm" #include "code\controllers\subsystem\fires.dm" #include "code\controllers\subsystem\fluids.dm" #include "code\controllers\subsystem\game_events.dm" #include "code\controllers\subsystem\garbage.dm" #include "code\controllers\subsystem\ghost_spawns.dm" -#include "code\controllers\subsystem\holomap.dm" #include "code\controllers\subsystem\http.dm" #include "code\controllers\subsystem\icon_smooth.dm" #include "code\controllers\subsystem\idlenpcpool.dm" @@ -377,6 +381,7 @@ #include "code\controllers\subsystem\non-firing\cargo_quests.dm" #include "code\controllers\subsystem\non-firing\discord.dm" #include "code\controllers\subsystem\non-firing\holiday.dm" +#include "code\controllers\subsystem\non-firing\holomap.dm" #include "code\controllers\subsystem\non-firing\ipintel.dm" #include "code\controllers\subsystem\non-firing\medals.dm" #include "code\controllers\subsystem\non-firing\overlays.dm" @@ -498,6 +503,7 @@ #include "code\datums\components\label.dm" #include "code\datums\components\material_container.dm" #include "code\datums\components\overlay_lighting.dm" +#include "code\datums\components\object_possession.dm" #include "code\datums\components\paintable.dm" #include "code\datums\components\pellet_cloud.dm" #include "code\datums\components\persistent_overlay.dm" @@ -644,6 +650,7 @@ #include "code\datums\outfits\outfit.dm" #include "code\datums\outfits\outfit_admin.dm" #include "code\datums\outfits\outfit_debug.dm" +#include "code\datums\outfits\outfit_prisoner.dm" #include "code\datums\outfits\outfit_security_clown.dm" #include "code\datums\outfits\plasmamen.dm" #include "code\datums\outfits\vv_outfit.dm" @@ -1552,6 +1559,7 @@ #include "code\modules\admin\banappearance.dm" #include "code\modules\admin\banjob.dm" #include "code\modules\admin\centcom_ban_db.dm" +#include "code\modules\admin\check_antagonists.dm" #include "code\modules\admin\create_cargo_crate.dm" #include "code\modules\admin\create_mob.dm" #include "code\modules\admin\create_object.dm" @@ -1565,7 +1573,6 @@ #include "code\modules\admin\outfits.dm" #include "code\modules\admin\player_options_panel.dm" #include "code\modules\admin\player_panel_veth.dm" -#include "code\modules\admin\player_panel.dm" #include "code\modules\admin\secrets.dm" #include "code\modules\admin\sound_emitter.dm" #include "code\modules\admin\sql_notes.dm" @@ -1878,6 +1885,7 @@ #include "code\modules\asset_cache\assets\asset_seeds.dm" #include "code\modules\asset_cache\assets\asset_strip.dm" #include "code\modules\asset_cache\assets\asset_tgui.dm" +#include "code\modules\asset_cache\assets\common.dm" #include "code\modules\asset_cache\assets\supplypods.dm" #include "code\modules\asset_cache\transports\asset_transport.dm" #include "code\modules\asset_cache\transports\webroot_transport.dm" @@ -3279,6 +3287,7 @@ #include "code\modules\tgui\plugins\login.dm" #include "code\modules\tgui\plugins\modal.dm" #include "code\modules\tgui\states\admin.dm" +#include "code\modules\tgui\states\admin_mod.dm" #include "code\modules\tgui\states\always.dm" #include "code\modules\tgui\states\conscious.dm" #include "code\modules\tgui\states\contained.dm" @@ -3287,7 +3296,6 @@ #include "code\modules\tgui\states\hands.dm" #include "code\modules\tgui\states\human_adjacent.dm" #include "code\modules\tgui\states\inventory.dm" -#include "code\modules\tgui\states\admin_mod.dm" #include "code\modules\tgui\states\not_incapacitated.dm" #include "code\modules\tgui\states\notcontained.dm" #include "code\modules\tgui\states\observer.dm" diff --git a/tgui/packages/tgui/interfaces/Changelog.js b/tgui/packages/tgui/interfaces/Changelog.js index f45c66f998a..1a7762a9216 100644 --- a/tgui/packages/tgui/interfaces/Changelog.js +++ b/tgui/packages/tgui/interfaces/Changelog.js @@ -28,6 +28,7 @@ const icons = { image: { icon: 'image', color: 'green' }, imageadd: { icon: 'tg-image-plus', color: 'green' }, imagedel: { icon: 'tg-image-minus', color: 'red' }, + map: { icon: 'map-location-dot', color: 'green' }, qol: { icon: 'hand-holding-heart', color: 'green' }, refactor: { icon: 'tools', color: 'green' }, rscadd: { icon: 'check-circle', color: 'green' }, diff --git a/tgui/packages/tgui/interfaces/DNAModifier.js b/tgui/packages/tgui/interfaces/DNAModifier.js index 9153321c234..05f1d41b1fc 100644 --- a/tgui/packages/tgui/interfaces/DNAModifier.js +++ b/tgui/packages/tgui/interfaces/DNAModifier.js @@ -634,7 +634,7 @@ const DNAModifierIrradiating = (props, context) => {

-  Облучить субъект  +  Облучение субъекта 

diff --git a/tgui/packages/tgui/interfaces/Vending.js b/tgui/packages/tgui/interfaces/Vending.js index db7c047531c..fe02cee9859 100644 --- a/tgui/packages/tgui/interfaces/Vending.js +++ b/tgui/packages/tgui/interfaces/Vending.js @@ -110,7 +110,7 @@ export const Vending = (props, context) => { diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 51d4002801f..ee18f941e11 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -250,16 +250,16 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var k=(0,t.createLogger)("hotkeys"),y={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],b={},C=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"."},c=function(i){var h=String(i);if(h==="Ctrl+F5"||h==="Ctrl+R"){location.reload();return}if(h!=="Ctrl+F"&&!(i.event.defaultPrevented||i.isModifierKey()||S.includes(i.code))){h==="F5"&&(i.event.preventDefault(),i.event.returnValue=!1);var V=C(i.code);if(V){var v=y[V];if(v)return k.debug("macro",v),Byond.command(v);if(i.isDown()&&!b[V]){b[V]=!0;var s='KeyDown "'+V+'"';return k.debug(s),Byond.command(s)}if(i.isUp()&&b[V]){b[V]=!1;var g='KeyUp "'+V+'"';return k.debug(g),Byond.command(g)}}}},u=r.acquireHotKey=function(){function m(i){S.push(i)}return m}(),f=r.releaseHotKey=function(){function m(i){var h=S.indexOf(i);h>=0&&S.splice(h,1)}return m}(),l=r.releaseHeldKeys=function(){function m(){for(var i=0,h=Object.keys(b);i0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(k){return k.json()}).then(function(k){return Byond.iconRefMap=k}).catch(function(k){return t.logger.log(k)})}return p}()},1090:function(I,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AICard=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var u=null;return c.integrity>=75?u="green":c.integrity>=25?u="yellow":u="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:c.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u,value:c.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,c.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(f,l){return(0,e.createComponentVNode)(2,t.Box,{children:f},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:c.wireless?"check":"times",content:c.wireless?"Enabled":"Disabled",color:c.wireless?"green":"red",onClick:function(){function f(){return C("wireless")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.radio?"check":"times",content:c.radio?"Enabled":"Disabled",color:c.radio?"green":"red",onClick:function(){function f(){return C("radio")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:c.flushing||c.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return C("wipe")}return f}()})})]})})})]})})})}return k}()},39454:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AIFixer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var u=!0;(c.stat===2||c.stat===null)&&(u=!1);var f=null;c.integrity>=75?f="green":c.integrity>=25?f="yellow":f="red";var l=!0;return c.integrity>=100&&c.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:c.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:f,value:c.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:u?"green":"red",children:u?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(d,m){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},m)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.wireless?"times":"check",content:c.wireless?"Disabled":"Enabled",color:c.wireless?"red":"green",onClick:function(){function d(){return C("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.radio?"times":"check",content:c.radio?"Disabled":"Enabled",color:c.radio?"red":"green",onClick:function(){function d(){return C("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||c.active,content:!l||c.active?"Already Repaired":"Repair",onClick:function(){function d(){return C("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:c.active?"Reconstruction in progress.":""})]})})]})})})}return k}()},88422:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),k=r.APC=function(){function C(c,u){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return C}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},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"}},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.locked&&!d.siliconUser,i=d.normallyLocked,h=y[d.externalPower]||y[0],V=y[d.chargingStatus]||y[0],v=d.powerChannels||[],s=S[d.malfStatus]||S[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:h.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!m,color:d.isOperating?"":"bad",disabled:m,onClick:function(){function N(){return l("breaker")}return N}()}),children:["[ ",h.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:V.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:m,onClick:function(){function N(){return l("charge")}return N}()}),children:["[ ",V.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(N){var x=N.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:N.status>=2?"good":"bad",children:N.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!m&&(N.status===1||N.status===3),disabled:m,onClick:function(){function B(){return l("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!m&&N.status===2,disabled:m,onClick:function(){function B(){return l("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!m&&N.status===0,disabled:m,onClick:function(){function B(){return l("channel",x.off)}return B}()})],4),children:[N.powerLoad," W"]},N.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:s.icon,content:s.content,color:"bad",onClick:function(){function N(){return l(s.action)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function N(){return l("overload")}return N}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return l("cover")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function N(){return l("toggle_nightshift")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.emergencyLights?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return l("emergency_lighting")}return N}()})})]})})],4)}},99660:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ATM=function(){function l(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.view_screen,s=V.authenticated_account,g=V.ticks_left_locked_down,N=V.linked_db,x;if(g>0)x=(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)x=(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(s)switch(v){case 1:x=(0,e.createComponentVNode)(2,y);break;case 2:x=(0,e.createComponentVNode)(2,S);break;case 3:x=(0,e.createComponentVNode)(2,u);break;case 4:x=(0,e.createComponentVNode)(2,b);break;default:x=(0,e.createComponentVNode)(2,C)}else x=(0,e.createComponentVNode)(2,c);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Section,{children:x})]})})}return l}(),k=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.machine_id,s=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:s,icon:"eject",onClick:function(){function g(){return h("insert_card")}return g}()})})})]})},y=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=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:v===0,onClick:function(){function s(){return h("change_security_level",{new_security_level:0})}return s}()})}),(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:v===1,onClick:function(){function s(){return h("change_security_level",{new_security_level:1})}return s}()})}),(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,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Card and Account Pin",icon:"unlock",selected:v===2,onClick:function(){function s(){return h("change_security_level",{new_security_level:2})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},S=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"targetAccNumber",0),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"fundsAmount",0),x=N[0],B=N[1],L=(0,a.useLocalState)(m,"purpose",0),T=L[0],A=L[1],E=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:["$",E]}),(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 w(O,M){return g(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(O,M){return B(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function w(O,M){return A(M)}return w}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function w(){return h("transfer",{target_acc_number:s,funds_amount:x,purpose:T})}return w}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},b=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.insurance_type;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u041D\u0435\u0442 (0)",icon:"unlock",selected:v==="None",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"None"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u044E\u0434\u0436\u0435\u0442\u043D\u0430\u044F (0)",icon:"unlock",selected:v==="Bugetary",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Bugetary"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u0430\u044F (500)",icon:"unlock",selected:v==="Standart",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Standart"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0435\u043B\u044E\u043A\u0441 (2000)",icon:"unlock",selected:v==="Deluxe",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Deluxe"})}return s}()})]})}),(0,e.createComponentVNode)(2,f)]})},C=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"fundsAmount",0),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"insuranceAmount",0),x=N[0],B=N[1],L=V.owner_name,T=V.money,A=V.insurance;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function E(){return h("logout")}return E}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",T]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function E(w,O){return g(O)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function E(){return h("withdrawal",{funds_amount:s})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Insurance Points",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adding Insurance",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function E(w,O){return B(O)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add insurance points",icon:"sign-out-alt",onClick:function(){function E(){return h("insurance",{insurance_amount:x})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Toggle auto-replenishment of insurance",icon:"sign-out-alt",onClick:function(){function E(){return h("insurance_replenishment",{})}return E}()})})]})}),(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 E(){return h("view_screen",{view_screen:1})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function E(){return h("view_screen",{view_screen:2})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function E(){return h("view_screen",{view_screen:3})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change type of insurance",icon:"lock",onClick:function(){function E(){return h("view_screen",{view_screen:4})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function E(){return h("balance_statement")}return E}()})})]})],4)},c=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"accountID",null),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"accountPin",null),x=N[0],B=N[1],L=V.machine_id,T=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 A(E,w){return g(w)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function A(E,w){return B(w)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function A(){return h("attempt_auth",{account_num:s,account_pin:x})}return A}()})})]})})},u=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=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"})]}),v.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:s.is_deposit?"green":"red",children:["$",s.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.target_name})]},s)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},f=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function v(){return h("view_screen",{view_screen:0})}return v}()})}},86423:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(36352),k=n(98595),y=n(321),S=n(5485),b=r.AccountsUplinkTerminal=function(){function d(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.loginState,g=v.currentPage,N;if(s.logged_in)g===1?N=(0,e.createComponentVNode)(2,C):g===2?N=(0,e.createComponentVNode)(2,f):g===3&&(N=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.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,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return d}(),C=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.accounts,g=(0,t.useLocalState)(i,"searchText",""),N=g[0],x=g[1],B=(0,t.useLocalState)(i,"sortId","owner_name"),L=B[0],T=B[1],A=(0,t.useLocalState)(i,"sortOrder",!0),E=A[0],w=A[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,c,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,c,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,c,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,c,{id:"money",children:"Account Balance"})]}),s.filter((0,a.createSearch)(N,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,M){var P=E?1:-1;return O[L].localeCompare(M[L])*P}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function M(){return V("view_account_detail",{index:O.account_index})}return M}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},c=function(m,i){var h=(0,t.useLocalState)(i,"sortId","name"),V=h[0],v=h[1],s=(0,t.useLocalState)(i,"sortOrder",!0),g=s[0],N=s[1],x=m.id,B=m.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==x&&"transparent",width:"100%",onClick:function(){function L(){V===x?N(!g):(v(x),N(!0))}return L}(),children:[B,V===x&&(0,e.createComponentVNode)(2,o.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.is_printing,g=(0,t.useLocalState)(i,"searchText",""),N=g[0],x=g[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 B(){return V("create_new_account")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print Account List",disabled:s,ml:"0.25rem",onClick:function(){function B(){return V("print_records")}return B}()})]}),(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 B(L,T){return x(T)}return B}()})})]})},f=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.account_number,g=v.owner_name,N=v.money,x=v.suspended,B=v.transactions;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:"#"+s+" / "+g,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function L(){return V("back")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:N}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:x?"red":"green",children:[x?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:x?"Unsuspend":"Suspend",icon:x?"unlock":"lock",onClick:function(){function L(){return V("toggle_suspension")}return L}()})]})]})})}),(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"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:L.is_deposit?"green":"red",children:["$",L.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.target_name})]},L)})]})})})]})},l=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=(0,t.useLocalState)(i,"accName",""),g=s[0],N=s[1],x=(0,t.useLocalState)(i,"accDeposit",""),B=x[0],L=x[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 T(){return V("back")}return T}()}),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 T(A,E){return N(E)}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function T(A,E){return L(E)}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function T(){return V("finalise_create_account",{holder_name:g,starting_funds:B})}return T}()})]})}},23001:function(I,r,n){"use strict";r.__esModule=!0,r.AdminAntagMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(36352),k=n(98595),y=n(321),S=n(5485),b={0:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u044B",1:"\u0426\u0435\u043B\u0438",2:"\u0421\u0411",3:"\u041E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B",default:"\u0427\u0442\u043E-\u0442\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0440\u0430 \u043F\u0438\u0441\u0430\u0442\u044C \u0431\u0430\u0433 \u0440\u0435\u043F\u043E\u0440\u0442!"},C={0:function(){function V(){return(0,e.createComponentVNode)(2,l)}return V}(),1:function(){function V(){return(0,e.createComponentVNode)(2,d)}return V}(),2:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}(),3:function(){function V(){return(0,e.createComponentVNode)(2,i)}return V}(),default:function(){function V(){return"\u0427\u0442\u043E-\u0442\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0440\u0430 \u043F\u0438\u0441\u0430\u0442\u044C \u0431\u0430\u0433 \u0440\u0435\u043F\u043E\u0440\u0442!"}return V}()},c=function(v){return b[v]||b.default},u=function(v){return C[v]||C.default},f=r.AdminAntagMenu=function(){function V(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.loginState,L=x.currentPage,T=(0,t.useLocalState)(s,"tabIndex",0),A=T[0],E=T[1],w=(0,t.useLocalState)(s,"searchText",""),O=w[0],M=w[1];return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,title:"\u041C\u0435\u043D\u044E \u0441\u043F\u0435\u0446-\u0440\u043E\u043B\u0435\u0439",children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===0,onClick:function(){function P(){E(0)}return P}(),icon:"user",children:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u044B"},"Antagonists"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===1,onClick:function(){function P(){E(1)}return P}(),icon:"people-robbery",children:"\u0426\u0435\u043B\u0438"},"Objectives"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===2,onClick:function(){function P(){E(2)}return P}(),icon:"handcuffs",children:"\u0421\u0411"},"Security"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===3,onClick:function(){function P(){E(3)}return P}(),icon:"lock",children:"\u041E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B"},"HighValueItems")]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:c(A),fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C...",width:"300px",onInput:function(){function P(F,R){return M(R)}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function P(){return N("refresh")}return P}(),children:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C"})]}),children:u(A)()})})]})})})}return V}(),l=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.antagonists,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId","antag_names"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1],R=Object.keys(B);if(!R||R.length===0)return(0,e.createVNode)(1,"div",null,"\u041D\u0435\u0442 \u0430\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u043E\u0432.",16);var U=R.map(function(j){return Object.assign({key:j},B[j])});return(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{id:"name",children:"\u0418\u043C\u044F \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0430"}),(0,e.createComponentVNode)(2,h,{id:"",children:"\u041A\u043D\u043E\u043F\u043A\u0438"}),(0,e.createComponentVNode)(2,h,{id:"antag_names",children:"\u0422\u0438\u043F(-\u044B) \u0430\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u043E\u0432"}),(0,e.createComponentVNode)(2,h,{id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"})]}),U.filter((0,a.createSearch)(T,function(j){var W=j.key,K=j.name,$=j.status,ne=j.antag_names;return K+"|"+$+"|"+ne.join(", ")})).sort(function(j,W){var K=P?1:-1;if(j[w]===void 0||j[w]===null)return K;if(W[w]===void 0||W[w]===null)return-1*K;if(typeof j[w]=="number")return(j[w]-W[w])*K;var $=j[w],ne=W[w];return w==="antag_names"&&($=j[w].join(", "),ne=W[w].join(", ")),$.localeCompare(ne)*K}).map(function(j,W){var K=j.key,$=j.name,ne=j.body_destroyed,Y=j.is_hijacker,le=j.antag_mind_uid,de=j.ckey,oe=j.status,re=j.antag_names;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:ne?$:(0,e.createComponentVNode)(2,o.Button,{color:Y||!$?"red":"",tooltip:Y?"\u0423\u0433\u043E\u043D\u0449\u0438\u043A \u0448\u0430\u0442\u0442\u043B\u0430":"",onClick:function(){function Z(){return N("show_player_panel",{mind_uid:le})}return Z}(),children:$||"??? (\u041D\u0415\u0422 \u0418\u041C\u0415\u041D\u0418)"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("pm",{ckey:de})}return Z}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("follow",{datum_uid:le})}return Z}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("obs",{mind_uid:le})}return Z}(),children:"OBS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("tp",{mind_uid:le})}return Z}(),children:"TP"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:re.join(", ")}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:oe?"red":"grey",children:oe||"\u0416\u0438\u0432"})})]},W)})]})},d=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.objectives,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId2","target_name"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1];return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"obj_name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"target_name",children:"\u0426\u0435\u043B\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"owner_name",children:"\u0425\u043E\u0437\u044F\u0438\u043D"})]}),B.filter((0,a.createSearch)(T,function(R){return R.obj_name+"|"+R.target_name+"|"+(R.status?"success":"incompleted")+"|"+R.owner_name})).sort(function(R,U){var j=P?1:-1;return R[w]===void 0||R[w]===null||w==="target_name"&&R.no_target?j:U[w]===void 0||U[w]===null||w==="target_name"&&U.no_target?-1*j:typeof R[w]=="number"?(R[w]-U[w])*j:R[w].localeCompare(U[w])*j}).map(function(R,U){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:R.obj_desc,onClick:function(){function j(){return N("vv",{uid:R.obj_uid})}return j}(),children:R.obj_name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.no_target?"":R.track.length?R.track.map(function(j,W){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){return N("follow",{datum_uid:j})}return K}(),children:[R.target_name," ",R.track.length>1?"("+(parseInt(W,10)+1)+")":""]},W)}):R.target_name+" (\u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E)"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.status?"green":"grey",children:R.status?"\u0423\u0441\u043F\u0435\u0448\u043D\u043E":"\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){N("obj_owner",{owner_uid:R.owner_uid})}return j}(),children:R.owner_name})})]},U)})]}):"\u041D\u0435\u0442 \u0446\u0435\u043B\u0435\u0439!"},m=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.security,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId3","health"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1],R=function(W){return W.status===2?"red":W.status===1?"orange":W.broken_bone||W.internal_bleeding?"yellow":"grey"},U=function(W){return W.status===2?"\u041C\u0451\u0440\u0442\u0432":W.status===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":W.broken_bone&&W.internal_bleeding?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C, \u0412\u041A":W.broken_bone?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C":W.internal_bleeding?"\u0412\u041A":"\u0416\u0438\u0432"};return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"role",children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"antag",children:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"health",children:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435"})]}),B.filter((0,a.createSearch)(T,function(j){return j.name+"|"+j.role+"|"+U(j)+"|"+j.antag})).sort(function(j,W){var K=P?1:-1;return j[w]===void 0||j[w]===null?K:W[w]===void 0||W[w]===null?-1*K:typeof j[w]=="number"?(j[w]-W[w])*K:j[w].localeCompare(W[w])*K}).map(function(j,W){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){return N("show_player_panel",{mind_uid:j.mind_uid})}return K}(),children:j.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:j.role}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:R(j),children:U(j)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:j.antag?(0,e.createComponentVNode)(2,o.Button,{textColor:"red",translucent:!0,onClick:function(){function K(){N("tp",{mind_uid:j.mind_uid})}return K}(),children:j.antag}):""}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,value:j.health/j.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:j.health})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("pm",{ckey:j.ckey})}return K}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("follow",{datum_uid:j.mind_uid})}return K}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("obs",{mind_uid:j.mind_uid})}return K}(),children:"OBS"})]})]},W)})]}):"\u041D\u0435\u0442\u0443 \u0421\u0411!"},i=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.high_value_items,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId4","person"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1];return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"person",children:"\u041D\u043E\u0441\u0438\u0442\u0435\u043B\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"loc",children:"\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"admin_z",children:"\u0410\u0434\u043C\u0438\u043D\u0441\u043A\u0438\u0439 Z-\u0443\u0440\u043E\u0432\u0435\u043D\u044C"})]}),B.filter((0,a.createSearch)(T,function(R){return R.name+"|"+R.loc})).sort(function(R,U){var j=P?1:-1;return R[w]===void 0||R[w]===null?j:U[w]===void 0||U[w]===null?-1*j:typeof R[w]=="number"?(R[w]-U[w])*j:R[w].localeCompare(U[w])*j}).map(function(R,U){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:R.obj_desc,translucent:R.admin_z,onClick:function(){function j(){return N("vv",{uid:R.uid})}return j}(),children:R.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.admin_z?"grey":"",children:R.person})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.admin_z?"grey":"",children:R.loc})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:R.admin_z?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){N("follow",{datum_uid:R.uid})}return j}(),children:"FLW"})})]},U)})]}):"\u041D\u0435\u0442 \u043E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432!"},h=function(v,s){var g=v.id,N=v.sort_group,x=N===void 0?"sortId":N,B=v.default_sort,L=B===void 0?"antag_names":B,T=v.children,A=(0,t.useLocalState)(s,x,L),E=A[0],w=A[1],O=(0,t.useLocalState)(s,"sortOrder",!0),M=O[0],P=O[1];return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:E!==g&&"transparent",width:"100%",onClick:function(){function F(){E===g?P(!M):(w(g),P(!0))}return F}(),children:[T,E===g&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},79571:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardSLSlots=r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.AgentCard=function(){function C(c,u){var f=(0,t.useLocalState)(u,"tabIndex",0),l=f[0],d=f[1],m=function(){function i(h){switch(h){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);default:return(0,e.createComponentVNode)(2,y)}}return i}();return(0,e.createComponentVNode)(2,p.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===0,onClick:function(){function i(){return d(0)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===1,onClick:function(){function i(){return d(1)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===2,onClick:function(){function i(){return d(2)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),m(l)]})})})}return C}(),y=r.AgentCardInfo=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.registered_name,i=d.sex,h=d.age,V=d.assignment,v=d.associated_account_number,s=d.blood_type,g=d.dna_hash,N=d.fingerprint_hash,x=d.photo,B=d.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Button,{content:m||"[UNSET]",onClick:function(){function L(){return l("change_name")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,o.Button,{iconRight:!1,content:i||"[UNSET]",onClick:function(){function L(){return l("change_sex")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"[UNSET]",onClick:function(){function L(){return l("change_age")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Button,{content:V||"[UNSET]",onClick:function(){function L(){return l("change_occupation")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"[UNSET]",onClick:function(){function L(){return l("change_fingerprints")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,o.Button,{content:s||"[UNSET]",onClick:function(){function L(){return l("change_blood_type")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"[UNSET]",onClick:function(){function L(){return l("change_dna_hash")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"[UNSET]",onClick:function(){function L(){return l("change_money_account")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,o.Button,{content:x?"Update":"[UNSET]",onClick:function(){function L(){return l("change_photo")}return L}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Card Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,o.Button,{content:"Delete Card Info",onClick:function(){function L(){return l("delete_info")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,o.Button,{content:"Reset Access",onClick:function(){function L(){return l("clear_access")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,o.Button,{content:B?"Untrackable":"Trackable",onClick:function(){function L(){return l("change_ai_tracking")}return L}()})})]})})],4)}return C}(),S=r.AgentCardAppearances=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:m.map(function(i){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:i,vertical:!0,asset:!0,style:{margin:"1px"},image:i,imageAsset:"id_card64x64",onclick:function(){function h(){return l("change_appearance_new",{new_appearance:i})}return h}()},i)})})}return C}(),b=r.AgentCardSLSlots=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.saved_info;return(0,e.createComponentVNode)(2,o.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:m.map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.registered_name?i.registered_name+", "+i.assignment:"Slot "+i.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function h(){return l("clear_slot",{slot:i.id})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function h(){return l("save_slot",{slot:i.id})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!i.registered_name,onClick:function(){function h(){return l("load_slot",{slot:i.id})}return h}()})],4)},i.id)})})})}return C}()},56793:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},k=r.AiAirlock=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=p[u.power.main]||p[0],l=p[u.power.backup]||p[0],d=p[u.shock]||p[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!u.power.main,content:"Disrupt",onClick:function(){function m(){return c("disrupt-main")}return m}()}),children:[u.power.main?"Online":"Offline"," ",!u.wires.main_power&&"[Wires have been cut!]"||u.power.main_timeleft>0&&"["+u.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:!u.power.backup,content:"Disrupt",onClick:function(){function m(){return c("disrupt-backup")}return m}()}),children:[u.power.backup?"Online":"Offline"," ",!u.wires.backup_power&&"[Wires have been cut!]"||u.power.backup_timeleft>0&&"["+u.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(u.wires.shock&&u.shock!==2),content:"Restore",onClick:function(){function m(){return c("shock-restore")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!u.wires.shock,content:"Temporary",onClick:function(){function m(){return c("shock-temp")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!u.wires.shock||u.shock===0,content:"Permanent",onClick:function(){function m(){return c("shock-perm")}return m}()})],4),children:[u.shock===2?"Safe":"Electrified"," ",!u.wires.shock&&"[Wires have been cut!]"||u.shock_timeleft>0&&"["+u.shock_timeleft+"s]"||u.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:u.id_scanner?"power-off":"times",content:u.id_scanner?"Enabled":"Disabled",selected:u.id_scanner,disabled:!u.wires.id_scanner,onClick:function(){function m(){return c("idscan-toggle")}return m}()}),children:!u.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:u.emergency?"power-off":"times",content:u.emergency?"Enabled":"Disabled",selected:u.emergency,onClick:function(){function m(){return c("emergency-toggle")}return m}()})}),(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:u.locked?"lock":"unlock",content:u.locked?"Lowered":"Raised",selected:u.locked,disabled:!u.wires.bolts,onClick:function(){function m(){return c("bolt-toggle")}return m}()}),children:!u.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:u.lights?"power-off":"times",content:u.lights?"Enabled":"Disabled",selected:u.lights,disabled:!u.wires.lights,onClick:function(){function m(){return c("light-toggle")}return m}()}),children:!u.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:u.safe?"power-off":"times",content:u.safe?"Enabled":"Disabled",selected:u.safe,disabled:!u.wires.safe,onClick:function(){function m(){return c("safe-toggle")}return m}()}),children:!u.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:u.speed?"power-off":"times",content:u.speed?"Enabled":"Disabled",selected:u.speed,disabled:!u.wires.timing,onClick:function(){function m(){return c("speed-toggle")}return m}()}),children:!u.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:u.opened?"sign-out-alt":"sign-in-alt",content:u.opened?"Open":"Closed",selected:u.opened,disabled:u.locked||u.welded,onClick:function(){function m(){return c("open-close")}return m}()}),children:!!(u.locked||u.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),u.locked?"bolted":"",u.locked&&u.welded?" and ":"",u.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),k=r.AirAlarm=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:s?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!s&&(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)],4)]})})}return d}(),y=function(m){return m===0?"green":m===1?"orange":"red"},S=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.air,g=v.mode,N=v.atmos_alarm,x=v.locked,B=v.alarmActivated,L=v.rcon,T=v.target_temp,A;return s.danger.overall===0?N===0?A="Optimal":A="Caution: Atmos alert in area":s.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.pressure})," kPa",!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function E(){return V("mode",{mode:g===3?1:3})}return E}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.oxygen/100,fractionDigits:"1",color:y(s.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.nitrogen/100,fractionDigits:"1",color:y(s.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.co2/100,fractionDigits:"1",color:y(s.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.plasma/100,fractionDigits:"1",color:y(s.danger.plasma)})}),s.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.n2o/100,fractionDigits:"1",color:y(s.danger.n2o)})}),s.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.other/100,fractionDigits:"1",color:y(s.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function E(){return V("temperature")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:s.thermostat_state?"On":"Off",selected:s.thermostat_state,icon:"power-off",onClick:function(){function E(){return V("thermostat_state")}return E}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.overall),children:[A,!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function E(){return V(B?"atmos_reset":"atmos_alarm")}return E}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function E(){return V("set_rcon",{rcon:1})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function E(){return V("set_rcon",{rcon:2})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function E(){return V("set_rcon",{rcon:3})}return E}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},b=function(m,i){var h=(0,a.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===0,onClick:function(){function s(){return v(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===1,onClick:function(){function s(){return v(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===2,onClick:function(){function s(){return v(2)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===3,onClick:function(){function s(){return v(3)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},C=function(m,i){var h=(0,a.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},c=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.vents;return s.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return V("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction==="release"?"Blowing":"Siphoning",icon:g.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return V("command",{cmd:"direction",val:g.direction==="release"?0:1,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function N(){return V("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function N(){return V("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function N(){return V("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function N(){return V("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},u=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.scrubbers;return s.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return V("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return V("command",{cmd:"scrubbing",val:g.scrubbing===0?1:0,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return V("command",{cmd:"widenet",val:g.widenet===0?1:0,id_tag:g.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function N(){return V("command",{cmd:"co2_scrub",val:g.filter_co2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function N(){return V("command",{cmd:"tox_scrub",val:g.filter_toxins===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function N(){return V("command",{cmd:"n2o_scrub",val:g.filter_n2o===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function N(){return V("command",{cmd:"o2_scrub",val:g.filter_o2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function N(){return V("command",{cmd:"n2_scrub",val:g.filter_n2===0?1:0,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.modes,g=v.presets,N=v.emagged,x=v.mode,B=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:s.map(function(L){return(!L.emagonly||L.emagonly&&!!N)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===x,onClick:function(){function T(){return V("mode",{mode:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function T(){return V("preset",{preset:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},l=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),s.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:N.selected===-1?"Off":N.selected,onClick:function(){function x(){return V("command",{cmd:"set_threshold",env:N.env,var:N.val})}return x}()})},N.val)})]},g.name)})]})})}},12333:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AirlockAccessController=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.exterior_status,f=c.interior_status,l=c.processing,d,m;return u==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function i(){return C("force_ext")}return i}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function i(){return C("cycle_ext_door")}return i}()}),f==="open"?m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:f==="open"?"red":l?"yellow":null,onClick:function(){function i(){return C("force_int")}return i}()}):m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function i(){return C("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:u==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,m]})})]})})}return k}()},28736:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49148),k=1,y=2,S=4,b=8,C=r.AirlockElectronics=function(){function f(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)]})})})}return f}(),c=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:V&S?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:V&y?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:V&b?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:b})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:V&k?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:k})}return v}()})})]})]})})},u=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.selected_accesses,v=h.one_access,s=h.regions;return(0,e.createComponentVNode)(2,p.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function g(){return i("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return i("set_one_access",{access:"all"})}return g}()})],4),accesses:s,selectedList:V,accessMod:function(){function g(N){return i("set",{access:N})}return g}(),grantAll:function(){function g(){return i("grant_all")}return g}(),denyAll:function(){function g(){return i("clear_all")}return g}(),grantDep:function(){function g(N){return i("grant_region",{region:N})}return g}(),denyDep:function(){function g(N){return i("deny_region",{region:N})}return g}()})}},47365:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(70611),o=n(72253),p=n(36036),k=n(98595),y=function(c){return c[c.Increment=1]="Increment",c[c.Decrement=-1]="Decrement",c}(y||{}),S=r.AlertModal=function(){function c(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.autofocus,h=m.buttons,V=h===void 0?[]:h,v=m.large_buttons,s=m.message,g=s===void 0?"":s,N=m.timeout,x=m.title,B=(0,o.useLocalState)(f,"selected",0),L=B[0],T=B[1],A=V.some(function(F){return F.length>10}),E=A&&v?20:15,w=120+(A?E*V.length:0)+(g.length>40?Math.ceil(g.length/3):0)+(g.length&&v?5:0),O=345+(V.length>2?55:0),M=function(){function F(R){switch(R.key){case t.KEY.Space:case t.KEY.Enter:d("choose",{choice:V[L]});return;case t.KEY.Escape:d("cancel");return;case t.KEY.Left:R.preventDefault(),P(y.Decrement);return;case t.KEY.Tab:case t.KEY.Right:R.preventDefault(),P(y.Increment);return}}return F}(),P=function(){function F(R){var U=(L+R+V.length)%V.length;T(U)}return F}();return(0,e.createComponentVNode)(2,k.Window,{title:x,height:w,width:O,children:[!!N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:M,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,p.Box,{color:"label",overflow:"hidden",children:g})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:[!!i&&(0,e.createComponentVNode)(2,p.Autofocus),A?(0,e.createComponentVNode)(2,C,{selected:L}):(0,e.createComponentVNode)(2,b,{selected:L})]})]})})})]})}return c}(),b=function(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.buttons,h=i===void 0?[]:i,V=m.large_buttons,v=m.swapped_buttons,s=u.selected;return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,justify:"space-around",reverse:!v,children:h.map(function(g,N){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:V?1:void 0,children:(0,e.createComponentVNode)(2,p.Button,{fluid:!!V,minWidth:5,onClick:function(){function x(){return d("choose",{choice:g})}return x}(),overflowX:"hidden",px:2,py:V?.5:0,selected:s===N,textAlign:"center",children:V?g.toUpperCase():g})},N)})})},C=function(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.buttons,h=i===void 0?[]:i,V=m.large_buttons,v=m.swapped_buttons,s=u.selected;return(0,e.createComponentVNode)(2,p.Stack,{align:"center",fill:!0,justify:"space-around",reverse:!v,vertical:!0,children:h.map(function(g,N){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,width:V?"100%":void 0,m:0,children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,minWidth:20,onClick:function(){function x(){return d("choose",{choice:g})}return x}(),overflowX:"hidden",px:2,py:V?.5:0,selected:s===N,textAlign:"center",children:V?g.toUpperCase():g})},N)})})}},71824:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AppearanceChanger=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.change_race,l=u.species,d=u.specimen,m=u.change_gender,i=u.gender,h=u.has_gender,V=u.change_eye_color,v=u.change_skin_tone,s=u.change_skin_color,g=u.change_head_accessory_color,N=u.change_hair_color,x=u.change_secondary_hair_color,B=u.change_facial_hair_color,L=u.change_secondary_facial_hair_color,T=u.change_head_marking_color,A=u.change_body_marking_color,E=u.change_tail_marking_color,w=u.change_head_accessory,O=u.head_accessory_styles,M=u.head_accessory_style,P=u.change_hair,F=u.hair_styles,R=u.hair_style,U=u.change_hair_gradient,j=u.change_facial_hair,W=u.facial_hair_styles,K=u.facial_hair_style,$=u.change_head_markings,ne=u.head_marking_styles,Y=u.head_marking_style,le=u.change_body_markings,de=u.body_marking_styles,oe=u.body_marking_style,re=u.change_tail_markings,Z=u.tail_marking_styles,ae=u.tail_marking_style,J=u.change_body_accessory,X=u.body_accessory_styles,Q=u.body_accessory_style,q=u.change_alt_head,te=u.alt_head_styles,fe=u.alt_head_style,ye=!1;return(V||v||s||g||N||x||B||L||T||A||E)&&(ye=!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:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.specimen,selected:pe.specimen===d,onClick:function(){function Le(){return c("race",{race:pe.specimen})}return Le}()},pe.specimen)})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:i==="male",onClick:function(){function pe(){return c("gender",{gender:"male"})}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:i==="female",onClick:function(){function pe(){return c("gender",{gender:"female"})}return pe}()}),!h&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:i==="plural",onClick:function(){function pe(){return c("gender",{gender:"plural"})}return pe}()})]}),!!ye&&(0,e.createComponentVNode)(2,k),!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.headaccessorystyle,selected:pe.headaccessorystyle===M,onClick:function(){function Le(){return c("head_accessory",{head_accessory:pe.headaccessorystyle})}return Le}()},pe.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:F.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.hairstyle,selected:pe.hairstyle===R,onClick:function(){function Le(){return c("hair",{hair:pe.hairstyle})}return Le}()},pe.hairstyle)})}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function pe(){return c("hair_gradient")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function pe(){return c("hair_gradient_offset")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function pe(){return c("hair_gradient_colour")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function pe(){return c("hair_gradient_alpha")}return pe}()})]}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.facialhairstyle,selected:pe.facialhairstyle===K,onClick:function(){function Le(){return c("facial_hair",{facial_hair:pe.facialhairstyle})}return Le}()},pe.facialhairstyle)})}),!!$&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:ne.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.headmarkingstyle,selected:pe.headmarkingstyle===Y,onClick:function(){function Le(){return c("head_marking",{head_marking:pe.headmarkingstyle})}return Le}()},pe.headmarkingstyle)})}),!!le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:de.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.bodymarkingstyle,selected:pe.bodymarkingstyle===oe,onClick:function(){function Le(){return c("body_marking",{body_marking:pe.bodymarkingstyle})}return Le}()},pe.bodymarkingstyle)})}),!!re&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Z.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.tailmarkingstyle,selected:pe.tailmarkingstyle===ae,onClick:function(){function Le(){return c("tail_marking",{tail_marking:pe.tailmarkingstyle})}return Le}()},pe.tailmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:X.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.bodyaccessorystyle,selected:pe.bodyaccessorystyle===Q,onClick:function(){function Le(){return c("body_accessory",{body_accessory:pe.bodyaccessorystyle})}return Le}()},pe.bodyaccessorystyle)})}),!!q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:te.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.altheadstyle,selected:pe.altheadstyle===fe,onClick:function(){function Le(){return c("alt_head",{alt_head:pe.altheadstyle})}return Le}()},pe.altheadstyle)})})]})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=[{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:f.map(function(l){return!!u[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return c(l.action)}return d}()},l.key)})})}},72285:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosAlertConsole=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.priority||[],f=c.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),u.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"bad",onClick:function(){function d(){return C("clear",{zone:l})}return d}()}),2,null,l)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"average",onClick:function(){function d(){return C("clear",{zone:l})}return d}()}),2,null,l)})],0)})})})}return k}()},65805:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),p=n(98595),k=function(u){if(u===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(u===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(u===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(u){if(u===0)return"green";if(u===1)return"orange";if(u===2)return"red"},S=r.AtmosControl=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=(0,a.useLocalState)(f,"tabIndex",0),h=i[0],V=i[1],v=function(){function s(g){switch(g){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,C);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,p.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:h===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===0,onClick:function(){function s(){return V(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function s(){return V(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(h)]})})})}return c}(),b=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.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(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:h.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:k(h.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function V(){return d("open_alarm",{aref:h.ref})}return V}()})})]},h.name)})]})})},C=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.alarms,h=m.stationLevelNum,V=m.stationLevelName,v=(0,a.useLocalState)(f,"zoom",1),s=v[0],g=v[1],N=(0,a.useLocalState)(f,"z_current",h[0]),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function L(T){return g(T)}return L}(),zLevels:h,zNames:V,z_current:x,setZCurrent:B,children:i.map(function(L){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:L.x,y:L.y,z:L.z,z_current:x,zoom:s,icon:"circle",tooltip:L.name,color:y(L.danger),onClick:function(){function T(){return d("open_alarm",{aref:L.ref})}return T}()},L.ref)})})})}},87816:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosFilter=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.pressure,l=c.max_pressure,d=c.filter_type,m=c.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){function i(){return C("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:f===0,width:2.2,onClick:function(){function i(){return C("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:f,onDrag:function(){function i(h,V){return C("custom_pressure",{pressure:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function i(){return C("max_pressure")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{selected:i.gas_type===d,content:i.label,onClick:function(){function h(){return C("set_filter",{filter:i.gas_type})}return h}()},i.label)})})]})})})})}return k}()},52977:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosMixer=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.on,l=u.pressure,d=u.max_pressure,m=u.node1_concentration,i=u.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:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function h(){return c("power")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function h(){return c("min_pressure")}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function h(V,v){return c("custom_pressure",{pressure:v})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function h(){return c("max_pressure")}return h}()})]}),(0,e.createComponentVNode)(2,k,{node_name:"Node 1",node_ref:m}),(0,e.createComponentVNode)(2,k,{node_name:"Node 2",node_ref:i})]})})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=S.node_name,l=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return c("set_node",{node_name:f,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(m,i){return c("set_node",{node_name:f,concentration:i/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return c("set_node",{node_name:f,concentration:(l+10)/100})}return d}()})]})}},11748:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosPump=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.rate,l=c.max_rate,d=c.gas_unit,m=c.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){function i(){return C("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:f===0,width:2.2,onClick:function(){function i(){return C("min_rate")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:l,value:f,onDrag:function(){function i(h,V){return C("custom_rate",{rate:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function i(){return C("max_rate")}return i}()})]})]})})})})}return k}()},76511:function(I,r,n){"use strict";r.__esModule=!0,r.AutoDoc=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(39473),k=r.AutoDoc=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.HasTray,l=u.TguiIcons,d=u.occupant,m=u.isHealing,i=u.fixtimer,h=u.healtimer,V=(0,a.useLocalState)(b,"ChoosePart","chest"),v=V[0],s=V[1];return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,p.FlexItem,{basis:"30%",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l.human,style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l[v],style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})]}),(0,e.createComponentVNode)(2,p.FlexItem,{basis:"70%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",buttons:(0,e.createFragment)([Object.keys(l).map(function(g){return g!=="human"&&(0,e.createComponentVNode)(2,t.Button,{content:g,selected:g===v,onClick:function(){function N(){return s(g)}return N}(),z:!0},g)}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:f?"Eject Tray":"Reject Tray",locked:m,onClick:function(){function g(){return c("ChangeTrayState")}return g}()})],0),children:(0,e.createComponentVNode)(2,t.Box,{children:[!!(d[v]&&d[v].extOrgan)&&d[v].extOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createVNode)(1,"br"),g.open?"opened":"",g.broken?"broken":"",!!g.broken&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"fracture"})}return N}()}),(0,e.createVNode)(1,"br")],4),g.internalBleeding?"bleeding":"",!!g.internalBleeding&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"bleeding"})}return N}()}),(0,e.createVNode)(1,"br")],4),(0,e.createTextVNode)("Internals:"),(0,e.createComponentVNode)(2,t.Button,{content:"Complete",style:{"margin-left":"10px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"completeInternal"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.totalLoss:"",(0,e.createVNode)(1,"br")],0,g.name)}),!!(d[v]&&d[v].intOrgan)&&d[v].intOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createComponentVNode)(2,t.Button,{content:"Remove",style:{"margin-left":"1.5rem"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"remove"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.damage:"",!!g.totalLoss&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Heal",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"damage"})}return N}()}),(0,e.createVNode)(1,"br")],4)],0,g.name)}),!!d.TotalBruteBurn&&(0,e.createFragment)([(0,e.createTextVNode)("Total external damage is "),d.TotalBruteBurn,(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Start Healing",onClick:function(){function g(){return c("HealBruteBurn")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Reattach externals",onClick:function(){function g(){return c("CompleteExternal")}return g}()})],0),(0,e.createVNode)(1,"br"),!!i&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Fixing organ: "),i],0),!!h&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Healing external damage: "),h],0)]})})})]})})})}return y}()},59179:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(25328),S=function(c,u,f,l){return c.requirements===null?!0:!(c.requirements.metal*l>u||c.requirements.glass*l>f)},b=r.Autolathe=function(){function C(c,u){var f=(0,o.useBackend)(u),l=f.act,d=f.data,m=d.total_amount,i=d.max_amount,h=d.metal_amount,V=d.glass_amount,v=d.busyname,s=d.busyamt,g=d.showhacked,N=d.buildQueue,x=d.buildQueueLen,B=d.recipes,L=d.categories,T=(0,o.useSharedState)(u,"category",0),A=T[0],E=T[1];A===0&&(A="Tools");var w=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(u,"search_text",""),F=P[0],R=P[1],U=(0,y.createSearch)(F,function($){return $.name}),j="";x>0&&(j=N.map(function($,ne){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"times",color:"transparent",content:N[ne][0],onClick:function(){function Y(){return l("remove_from_queue",{remove_from_queue:N.indexOf($)+1})}return Y}()},$)},ne)}));var W=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||F)&&(d.showhacked||!$.hacked)}),F&&(0,t.filter)(U),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(B),K="Build";return F?K="Results for: '"+F+"':":A&&(K="Build ("+A+")"),(0,e.createComponentVNode)(2,k.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function $(ne){return E(ne)}return $}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(ne,Y){return R(Y)}return $}(),mb:1}),W.map(function($){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,p.DmIcon,{icon:$.icon,icon_state:$.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===1,disabled:!S($,d.metal_amount,d.glass_amount,1),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:1})}return ne}(),children:(0,y.toTitleCase)($.name)}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===10,disabled:!S($,d.metal_amount,d.glass_amount,10),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:10})}return ne}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===25,disabled:!S($,d.metal_amount,d.glass_amount,25),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:25})}return ne}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===$.max_multiplier,disabled:!S($,d.metal_amount,d.glass_amount,$.max_multiplier),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:$.max_multiplier})}return ne}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(ne){return(0,y.toTitleCase)(ne)+": "+$.requirements[ne]}).join(", ")||(0,e.createComponentVNode)(2,p.Box,{children:"No resources required."})]},$.ref)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,p.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Metal",children:w}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Total",children:M}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,p.Section,{title:"Building",children:(0,e.createComponentVNode)(2,p.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,p.Section,{title:"Build Queue",height:23.7,children:[j,(0,e.createComponentVNode)(2,p.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function $(){return l("clear_queue")}return $}()})]})]})]})})})}return C}()},64273:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(62411),k=r.Biogenerator=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.data,d=f.config,m=l.container,i=l.processing,h=d.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Operating,{operating:i,name:h}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return C}(),y=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.biomass,i=d.container,h=d.container_curr_reagents,V=d.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:m}),(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:"}),i?(0,e.createComponentVNode)(2,t.ProgressBar,{value:h,maxValue:V,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:h+" / "+V+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.has_plants,i=d.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:!m,tooltip:m?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function h(){return l("activate")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!i,tooltip:i?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function h(){return l("detach_container")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!m,tooltip:m?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function h(){return l("eject_plants")}return h}()})})]})})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.biomass,i=d.product_list,h=d.container,V=(0,a.useSharedState)(u,"vendAmount",1),v=V[0],s=V[1],g=Object.entries(i).map(function(N,x){var B=Object.entries(N[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:N[0],open:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:L.needs_container&&!h?(0,e.createComponentVNode)(2,t.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438"}):(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:m0?Math.floor(A/l):0,M=f?"@?%%!\u2116@"+l:l,P=A>=l,F=d-d%5+(d%5>0?5:0);return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:B}),(0,e.createComponentVNode)(2,t.ProgressBar,{color:w===0?"bad":w<100?"average":"good",value:T,maxValue:L,mt:1,mb:2,children:[w<=100?w:100," %"]}),(0,e.createComponentVNode)(2,t.Box,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.createComponentVNode)(2,t.Box,{color:A?P?"good":"average":"bad",as:"span",children:Math.floor(A)}),(0,e.createComponentVNode)(2,t.Button,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+M+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+F+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!P||d>0,onClick:function(){function R(){return c("probe",{rift_id:x})}return R}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:E?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",disabled:E||w<100,onClick:function(){function R(){return c("reward",{rift_id:x})}return R}(),mt:1.4})]})]})}return g}(),v=function(){function g(N){var x=N.servName,B=N.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(L,T){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},T)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return g}(),s=function(){function g(N){var x=N.scannerId,B=N.scannerName,L=N.scanStatus,T=N.canSwitch,A=N.switching,E=p[L],w=function(){function M(){if(E==="OFF")return[" ","silver"];if(E==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(E==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(E==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]}return M}(),O=w();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[A?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):T?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:E==="OFF"?"bad":"good",onClick:function(){function M(){return c("toggle_scanner",{scanner_id:x})}return M}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:E==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),E!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m&&m.map(function(g){return V(g)}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h&&h.map(function(g){return s(g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i&&i.map(function(g){return v(g)})})})]})})}return y}()},27629:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49968),k=r.BluespaceTap=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.product||[],l=u.desiredLevel,d=u.inputLevel,m=u.points,i=u.totalPoints,h=u.powerUse,V=u.availablePower,v=u.maxLevel,s=u.emagged,g=u.safeLevels,N=u.nextLevelPower,x=l>d&&"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:[!!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(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:d}),(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 B(){return c("set",{set_level:0})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function B(){return c("set",{set_level:d})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function B(){return c("decrease")}return B}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:x,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function B(L,T){return c("set",{set_level:T})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function B(){return c("increase")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return c("set",{set_level:v})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,p.formatPower)(h)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,p.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,p.formatPower)(V)})]})})}),(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:m}),(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:f.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=m,onClick:function(){function L(){return c("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return y}()},33758:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),p=n(36036),k=n(98595),y=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],S=[["hasBorer","bad","\u0412 \u043B\u043E\u0431\u043D\u043E\u0439 \u0434\u043E\u043B\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u043A\u0440\u0443\u043F\u043D\u043E\u0435 \u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0437\u043B\u043E\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u0442\u0441\u044F \u0445\u0438\u0440\u0443\u0440\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435."],["hasVirus","bad","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u0432\u0438\u0440\u0443\u0441 \u0432 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430."],["blind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430 \u043A\u0430\u0442\u0430\u0440\u0430\u043A\u0442\u0430."],["colourblind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043D\u0430\u0440\u0443\u0448\u0435\u043D\u0438\u044F \u0432 \u0440\u0430\u0431\u043E\u0442\u0435 \u0444\u043E\u0442\u043E\u0440\u0435\u0446\u0435\u043F\u0442\u043E\u0440\u043E\u0432"],["nearsighted","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u0441\u0435\u0442\u0447\u0430\u0442\u043A\u0438."]],b=[["\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435","oxyLoss"],["\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043C\u043E\u0437\u0433\u0430","brainLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435","radLoss"],["\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u0413\u0435\u043D\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","cloneLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"],["\u041F\u0430\u0440\u0430\u043B\u0438\u0447 \u0442\u0435\u043B\u0430","paralysis"]],C={average:[.25,.5],bad:[.5,1/0]},c=function(x,B){for(var L=[],T=0;T0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,p.Box,{children:L},L)],0)},null):null},f=function(x){if(x>100){if(x<300)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(x<400)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(x<500)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(x<700)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(x<800)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(x<900)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(x>=900)return"\u0421\u0435\u043F\u0441\u0438\u0441"}return""},l=r.BodyScanner=function(){function N(x,B){var L=(0,o.useBackend)(B),T=L.data,A=T.occupied,E=T.occupant,w=E===void 0?{}:E,O=A?(0,e.createComponentVNode)(2,d,{occupant:w}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,k.Window,{width:700,height:600,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0439 \u0441\u043A\u0430\u043D\u0435\u0440",children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:O})})}return N}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,m,{occupant:B}),(0,e.createComponentVNode)(2,i,{occupant:B}),(0,e.createComponentVNode)(2,h,{occupant:B}),(0,e.createComponentVNode)(2,v,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,s,{organs:B.intOrgan})]})},m=function(x,B){var L=(0,o.useBackend)(B),T=L.act,A=L.data,E=A.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Button,{icon:"print",onClick:function(){function w(){return T("print_p")}return w}(),children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442"}),(0,e.createComponentVNode)(2,p.Button,{icon:"print",onClick:function(){function w(){return T("insurance")}return w}(),children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.createComponentVNode)(2,p.Button,{icon:"user-slash",onClick:function(){function w(){return T("eject_id")}return w}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.createComponentVNode)(2,p.Button,{icon:"user-slash",onClick:function(){function w(){return T("ejectify")}return w}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})],4),children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u044F",children:E.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:E.maxHealth,value:E.health/E.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:y[E.stat][0],children:y[E.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(E.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(E.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u043F\u043B\u0430\u043D\u0442\u044B",children:E.implant_len?(0,e.createComponentVNode)(2,p.Box,{children:E.implant.map(function(w){return w.name}).join(", ")}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442"})})]})})},i=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:S.map(function(L,T){if(B[L[0]])return(0,e.createComponentVNode)(2,p.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041D\u0438\u043A\u0430\u043A\u0438\u0445 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0439 \u043E\u0442 \u043D\u043E\u0440\u043C\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E."})})},h=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,p.Table,{children:c(b,function(L,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:(0,e.createComponentVNode)(2,V,{value:B[L[1]],marginBottom:A100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:C,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,p.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u041E\u0436\u043E\u0433\u0438",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:u([!!B.internalBleeding&&"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435",!!B.burnWound&&"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043E\u0436\u043E\u0433\u0438 \u0442\u043A\u0430\u043D\u0435\u0439",!!B.lungRuptured&&"\u041F\u0440\u043E\u0431\u0438\u0442\u043E \u043B\u0451\u0433\u043A\u043E\u0435",!!B.status.broken&&B.status.broken,f(B.germ_level),!!B.open&&"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0439 \u0440\u0430\u0437\u0440\u0435\u0437"])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:[u([!!B.status.splinted&&(0,e.createComponentVNode)(2,p.Box,{color:"good",children:"\u041D\u0430\u043B\u043E\u0436\u0435\u043D\u0430 \u0448\u0438\u043D\u0430"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!B.status.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})]),u(B.shrapnel.map(function(T){return T.known?T.name:"\u0418\u043D\u043E\u0440\u043E\u0434\u043D\u043E\u0435 \u0442\u0435\u043B\u043E"}))]})]})]},L)})]})})},s=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,p.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041D/\u0414"})}):(0,e.createComponentVNode)(2,p.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,p.Table,{children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",children:"\u0422\u0440\u0430\u0432\u043C\u044B"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:C,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:u([f(B.germ_level)])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:u([B.robotic===1&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),B.robotic===2&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!B.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},42570:function(I,r,n){"use strict";r.__esModule=!0,r.BorgPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BorgPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.borg||{},f=c.cell||{},l=f.charge/f.maxcharge,d=c.channels||[],m=c.modules||[],i=c.upgrades||[],h=c.ais||[],V=c.laws||[];return(0,e.createComponentVNode)(2,o.Window,{title:"Borg Panel",width:700,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function v(){return C("rename")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:u.emagged?"check-square-o":"square-o",content:"Emagged",selected:u.emagged,onClick:function(){function v(){return C("toggle_emagged")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:u.lockdown,onClick:function(){function v(){return C("toggle_lockdown")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:u.scrambledcodes,onClick:function(){function v(){return C("toggle_scrambledcodes")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function v(){return C("reset_module")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[f.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,children:f.charge+" / "+f.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function v(){return C("set_charge")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function v(){return C("change_cell")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function v(){return C("remove_cell")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function s(){return C("toggle_radio",{channel:v.name})}return s}()},v.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:u.active_module===v.name?"check-square-o":"square-o",content:v.name+" module",selected:u.active_module===v.name,onClick:function(){function s(){return C("setmodule",{module:v.name})}return s}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function s(){return C("toggle_upgrade",{upgrade:v.type})}return s}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:h.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.connected?"check-square-o":"square-o",content:v.name,selected:v.connected,onClick:function(){function s(){return C("slavetoai",{slavetoai:v.ref})}return s}()},v.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:u.lawmanager,onClick:function(){function v(){return C("lawmanager")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:u.lawupdate,onClick:function(){function v(){return C("toggle_lawupdate")}return v}()})],4),children:V.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:v},v)})})]})})}return k}()},20464:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BotClean=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.locked,f=c.noaccess,l=c.maintpanel,d=c.on,m=c.autopatrol,i=c.canhack,h=c.emagged,V=c.remote_disabled,v=c.painame,s=c.cleanblood;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.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:f,onClick:function(){function g(){return C("power")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:f,onClick:function(){function g(){return C("autopatrol")}return g}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:h?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:h?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:f,color:"bad",onClick:function(){function g(){return C("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!V,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:f,onClick:function(){function g(){return C("disableremote")}return g}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0443\u0431\u043E\u0440\u043A\u0438",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"\u0423\u0431\u0438\u0440\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C",disabled:f,onClick:function(){function g(){return C("blood")}return g}()})}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:f,onClick:function(){function g(){return C("ejectpai")}return g}()})})]})})}return k}()},74439:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BotSecurity=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.locked,f=c.noaccess,l=c.maintpanel,d=c.on,m=c.autopatrol,i=c.canhack,h=c.emagged,V=c.remote_disabled,v=c.painame,s=c.check_id,g=c.check_weapons,N=c.check_warrant,x=c.arrest_mode,B=c.arrest_declare;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.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:f,onClick:function(){function L(){return C("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:f,onClick:function(){function L(){return C("autopatrol")}return L}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:h?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:h?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:f,color:"bad",onClick:function(){function L(){return C("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!V,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:f,onClick:function(){function L(){return C("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0417\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0446\u0435\u043B\u0438",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"\u041D\u0435\u043E\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0435 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u0438",disabled:f,onClick:function(){function L(){return C("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"\u0418\u043C\u0435\u044E\u0449\u0438\u0435 \u043D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435",disabled:f,onClick:function(){function L(){return C("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"\u0420\u0430\u0437\u044B\u0441\u043A\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u0438\u043A\u0438",disabled:f,onClick:function(){function L(){return C("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"\u0411\u0435\u0441\u0441\u0440\u043E\u0447\u043D\u043E\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0439 \u0432\u043C\u0435\u0441\u0442\u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",disabled:f,onClick:function(){function L(){return C("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"\u0421\u043E\u043E\u0431\u0449\u0430\u0442\u044C \u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0438 \u043F\u043E \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438",disabled:f,onClick:function(){function L(){return C("arrdeclare")}return L}()})]}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:f,onClick:function(){function L(){return C("ejectpai")}return L}()})})]})})}return k}()},10833:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),p=function(b,C){var c=b.cell,u=(0,o.useBackend)(C),f=u.act,l=c.cell_id,d=c.occupant,m=c.crimes,i=c.brigged_by,h=c.time_left_seconds,V=c.time_set_seconds,v=c.ref,s="";h>0&&(s+=" BrigCells__listRow--active");var g=function(){f("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:s,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(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.TimeDisplay,{totalSeconds:h})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},k=function(b){var C=b.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),C.map(function(c){return(0,e.createComponentVNode)(2,p,{cell:c},c.ref)})]})},y=r.BrigCells=function(){function S(b,C){var c=(0,o.useBackend)(C),u=c.act,f=c.data,l=f.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,k,{cells:l})})})})})}return S}()},45761:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BrigTimer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;c.nameText=c.occupant,c.timing&&(c.prisoner_hasrec?c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.occupant}):c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c.occupant}));var u="pencil-alt";c.prisoner_name&&(c.prisoner_hasrec||(u="exclamation-triangle"));var f=[],l=0;for(l=0;l60||!c.isAllowed,onClick:function(){function d(){return C("start")}return d}()})})]})})]})})}return k}()},26300:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsoleListContent=r.CameraConsole=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),p=n(25328),k=n(72253),y=n(36036),S=n(98595);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var b=function(m,i){var h,V;if(!i)return[];var v=m.findIndex(function(s){return s.name===i.name});return[(h=m[v-1])==null?void 0:h.name,(V=m[v+1])==null?void 0:V.name]},C=function(m,i){i===void 0&&(i="");var h=(0,p.createSearch)(i,function(V){return V.name});return(0,t.flow)([(0,a.filter)(function(V){return V==null?void 0:V.name}),i&&(0,a.filter)(h),(0,a.sortBy)(function(V){return V.name})])(m)},c=r.CameraConsole=function(){function d(m,i){var h=(0,k.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1],s=function(){function g(N){switch(N){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return g}();return(0,e.createComponentVNode)(2,S.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,y.Tabs,{children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:V===0,onClick:function(){function g(){return v(0)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:V===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," List"]},"List")]}),s(V)]})})})}return d}(),u=r.CameraConsoleMapContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=C(v.cameras),g=(0,k.useLocalState)(i,"zoom",1),N=g[0],x=g[1],B=v.mapRef,L=v.activeCamera,T=v.stationLevelNum,A=v.stationLevelName,E=(0,k.useLocalState)(i,"z_current",T[0]),w=E[0],O=E[1],M=b(s,L),P=M[0],F=M[1];return(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function R(U){return x(U)}return R}(),zLevels:T,zNames:A,z_current:w,setZCurrent:O,children:s.map(function(R){return(0,e.createComponentVNode)(2,y.NanoMap.Marker,{x:R.x,y:R.y,z:R.z,z_current:w,zoom:N,icon:"box",tooltip:R.name,color:R.status?"blue":"red",bordered:!0,onClick:function(){function U(){return V("switch_camera",{name:R.name})}return U}()},R.ref)})})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),L&&L.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!P,onClick:function(){function R(){return V("switch_camera",{name:P})}return R}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!F,onClick:function(){function R(){return V("switch_camera",{name:F})}return R}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),f=r.CameraConsoleOldContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=h.config,g=v.mapRef,N=v.activeCamera,x=(0,k.useLocalState)(i,"searchText",""),B=x[0],L=C(v.cameras,B),T=b(L,N),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,l)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function w(){return V("switch_camera",{name:A})}return w}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function w(){return V("switch_camera",{name:E})}return w}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return d}(),l=r.CameraConsoleListContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=(0,k.useLocalState)(i,"searchText",""),g=s[0],N=s[1],x=v.activeCamera,B=C(v.cameras,g);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(T,A){return N(A)}return L}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",x&&L.name===x.name&&"Button--selected"]),L.name,0,{title:L.name,onClick:function(){function T(){return V("switch_camera",{name:L.name})}return T}()},L.name)})})})]})}return d}()},52927:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(49968),k=n(98595),y=r.Canister=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.portConnected,d=f.tankPressure,m=f.releasePressure,i=f.defaultReleasePressure,h=f.minReleasePressure,V=f.maxReleasePressure,v=f.valveOpen,s=f.name,g=f.canLabel,N=f.colorContainer,x=f.color_index,B=f.hasHoldingTank,L=f.holdingTank,T="";x.prim&&(T=N.prim.options[x.prim].name);var A="";x.sec&&(A=N.sec.options[x.sec].name);var E="";x.ter&&(E=N.ter.options[x.ter].name);var w="";x.quart&&(w=N.quart.options[x.quart].name);var O=[],M=[],P=[],F=[],R=0;for(R=0;Rs.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.total_positions-s.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||!s.can_close,onClick:function(){function g(){return m("make_job_unavailable",{job:s.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:i.cooldown_time||!s.can_open,onClick:function(){function g(){return m("make_job_available",{job:s.title})}return g}()})}),(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(s.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:s.is_priority?"Yes":"No",selected:s.is_priority,disabled:i.cooldown_time||!s.can_prioritize,onClick:function(){function g(){return m("prioritize_job",{job:s.title})}return g}()})})]},s.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!i.authenticated||!i.scan_name?v=(0,e.createComponentVNode)(2,S):i.modify_name?v=(0,e.createComponentVNode)(2,p.AccessList,{accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function s(g){return m("set",{access:g})}return s}(),grantAll:function(){function s(){return m("grant_all")}return s}(),denyAll:function(){function s(){return m("clear_all")}return s}(),grantDep:function(){function s(g){return m("grant_region",{region:g})}return s}(),denyDep:function(){function s(g){return m("deny_region",{region:g})}return s}()}):v=(0,e.createComponentVNode)(2,b);break;case 3:i.authenticated?i.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!i.authenticated||i.records.length===0||i.target_dept,onClick:function(){function s(){return m("wipe_all_logs")}return s}()}),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(s){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.reason}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.deletedby})]},s.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 s(){return m("wipe_my_logs")}return s}()})})]}):v=(0,e.createComponentVNode)(2,C):v=(0,e.createComponentVNode)(2,S);break;case 4:!i.authenticated||!i.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),i.people_dept.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:s.buttontext,disabled:!s.demotable,onClick:function(){function g(){return m("remote_demote",{remote_demote:s.name})}return g}()})})]},s.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:V}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:h}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return u}()},64083:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(25328),S=r.CargoConsole=function(){function f(l,d){return(0,e.createComponentVNode)(2,k.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)]})})})}return f}(),b=function(l,d){var m=(0,o.useLocalState)(d,"contentsModal",null),i=m[0],h=m[1],V=(0,o.useLocalState)(d,"contentsModalTitle",null),v=V[0],s=V[1];if(i!==null&&v!==null)return(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,p.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[v,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,p.Box,{children:i.map(function(g){return(0,e.createComponentVNode)(2,p.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,p.Box,{m:2,children:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function g(){h(null),s(null)}return g}()})})]})},C=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.is_public,v=h.points,s=h.credits,g=h.timeleft,N=h.moving,x=h.at_station,B,L;return!N&&!x?(B="Docked off-station",L="Call Shuttle"):!N&&x?(B="Docked at the station",L="Return Shuttle"):N&&(L="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Status",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Points Available",children:v}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Credits Available",children:s}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Shuttle Status",children:B}),V===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,p.Button,{content:L,disabled:N,onClick:function(){function T(){return i("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Central Command Messages",onClick:function(){function T(){return i("showMessages")}return T}()})]})]})})})},c=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.categories,v=h.supply_packs,s=(0,o.useSharedState)(d,"category","Emergency"),g=s[0],N=s[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],L=x[1],T=(0,o.useLocalState)(d,"contentsModal",null),A=T[0],E=T[1],w=(0,o.useLocalState)(d,"contentsModalTitle",null),O=w[0],M=w[1],P=(0,y.createSearch)(B,function(U){return U.name}),F=(0,a.flow)([(0,t.filter)(function(U){return U.cat===V.filter(function(j){return j.name===g})[0].category||B}),B&&(0,t.filter)(P),(0,t.sortBy)(function(U){return U.name.toLowerCase()})])(v),R="Crate Catalogue";return B?R="Results for '"+B+"':":g&&(R="Browsing "+g),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:R,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:V.map(function(U){return U.name}),selected:g,onSelected:function(){function U(j){return N(j)}return U}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function U(j,W){return L(W)}return U}(),mb:1}),(0,e.createComponentVNode)(2,p.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:F.map(function(U){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,p.Box,{color:U.has_sale?"good":"default",children:[U.name," (",U.cost?U.cost+" Points":"",U.creditsCost&&U.cost?" ":"",U.creditsCost?U.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function j(){return i("order",{crate:U.ref,multiple:0})}return j}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function j(){return i("order",{crate:U.ref,multiple:1})}return j}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Contents",icon:"search",onClick:function(){function j(){E(U.contents),M(U.name)}return j}()})]})]},U.name)})})})]})})},u=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.requests,v=h.canapprove,s=h.orders;return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:V.map(function(g){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",g.comment]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Required Techs: ",g.pack_techs]})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,p.Button,{content:"Approve",color:"green",disabled:!v,onClick:function(){function N(){return i("approve",{ordernum:g.ordernum})}return N}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Deny",color:"red",onClick:function(){function N(){return i("deny",{ordernum:g.ordernum})}return N}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:s.map(function(g){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.ordernum)})})]})}},22794:function(I,r,n){"use strict";r.__esModule=!0,r.DelayHelper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.DelayHelper=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=b.data,u=c.delays,f=c.rev_delays,l=y.delay_list,d=y.reverse,m=d===void 0?!1:d;return(0,e.createComponentVNode)(2,o.LabeledControls,{wrap:!0,style:{"flex-direction":"column","flex-wrap":"wrap",height:"7.5em","justify-content":"start"},children:l.map(function(i,h){return(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:i.title,style:{"flex-direction":"column","min-width":"0"},children:(0,e.createComponentVNode)(2,o.Knob,{color:(m?f[h+1]:u[h+1])/10>10?"orange":"default",format:function(){function V(v){return(0,a.toFixed)(v,2)}return V}(),maxValue:10,minValue:0,inline:!0,onDrag:function(){function V(v,s){C("editTiming",{reverse:m,timer:""+(h+1),value:Math.max(s,0)})}return V}(),size:1,step:.02,unclamped:!0,unit:"s",value:(m?f[h+1]:u[h+1])/10})},h)})})}return k}()},23749:function(I,r,n){"use strict";r.__esModule=!0,r.PodBays=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=r.PodBays=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.bayNumber;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",onClick:function(){function f(){return C("clearBay")}return f}(),tooltip:"\n \u041E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0451\n\u0438\u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0430\u043D\u0433\u0430\u0440\u0430.",tooltipPosition:"top-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"question",tooltip:"\n \u041A\u0430\u0436\u0434\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\n\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0439 \u0437\u043E\u043D\u0435 \u043D\u0430 \u0426\u041A.\n\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u0431\u0443\u0434\u0443\u0442\n\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u044B \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430\u043C\u0438 \u0438\u0437 \u044D\u0442\u0438\u0445 \u0437\u043E\u043D\n\u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043E\u043F\u0446\u0438\u0435\u0439\n\xAB\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0438\u0437 \u0430\u043D\u0433\u0430\u0440\u0430\xBB \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443.",tooltipPosition:"top-end"})],4),fill:!0,title:"\u0410\u043D\u0433\u0430\u0440",children:o.BAYS.map(function(f,l){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return C("switchBay",{bayNumber:""+(l+1)})}return d}(),selected:u===""+(l+1),tooltipPosition:"bottom-end",children:f.title},l)})})}return k}()},8507:function(I,r,n){"use strict";r.__esModule=!0,r.PodLaunch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20345),p=r.PodLaunch=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.giveLauncher,f=(0,o.useCompact)(S),l=f[0];return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function d(){return C("giveLauncher")}return d}(),selected:u,textAlign:"center",tooltip:"\n \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u043D\u0430\u0442\u044C, \u0447\u0442\u043E\n \u041E\u0431 \u044D\u0442\u043E\u043C \u0433\u043E\u0432\u043E\u0440\u0438\u0442 \u041A\u043E\u0434\u0435\u043A\u0441 \u0410\u0441\u0442\u0430\u0440\u0442\u0435\u0441",tooltipPosition:"top",children:(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"1.4em",lineHeight:l?1.5:3,children:"\u0417\u0410\u041F\u0423\u0421\u041A"})})}return k}()},15802:function(I,r,n){"use strict";r.__esModule=!0,r.PodSounds=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=r.PodSounds=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.defaultSoundVolume,f=c.soundVolume;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"volume-up",onClick:function(){function l(){return C("soundVolume")}return l}(),selected:f!==u,tooltip:"\n \u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0417\u0443\u043A\u0430:"+f}),fill:!0,title:"\u0417\u0432\u0443\u043A\u0438",children:o.SOUNDS.map(function(l,d){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function m(){return C(l.act)}return m}(),selected:c[l.act],tooltip:l.tooltip,tooltipPosition:"top-end",children:l.title},d)})})}return k}()},94577:function(I,r,n){"use strict";r.__esModule=!0,r.PodStatusPage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(20345),k=r.PodStatusPage=function(){function b(C,c){var u=(0,p.useCompact)(c),f=u[0];return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:o.EFFECTS_ALL.map(function(l,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"label",mb:1,children:[!f&&(l.alt_label||l.label),":"]}),(0,e.createComponentVNode)(2,t.Box,{children:l.list.map(function(m,i){return(0,e.createComponentVNode)(2,y,{effect:m,hasMargin:l.list.length>1,index:i},i)})})]}),d=0;--J){var X=this.tryEntries[J],Q=X.completion;if(X.tryLoc==="root")return ae("end");if(X.tryLoc<=this.prev){var q=m.call(X,"catchLoc"),te=m.call(X,"finallyLoc");if(q&&te){if(this.prev=0;--ae){var J=this.tryEntries[ae];if(J.tryLoc<=this.prev&&m.call(J,"finallyLoc")&&this.prev=0;--Z){var ae=this.tryEntries[Z];if(ae.finallyLoc===re)return this.complete(ae.completion,ae.afterLoc),Y(ae),E}}return oe}(),catch:function(){function oe(re){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var ae=this.tryEntries[Z];if(ae.tryLoc===re){var J=ae.completion;if(J.type==="throw"){var X=J.arg;Y(ae)}return X}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(re,Z,ae){return this.delegate={iterator:de(re),resultName:Z,nextLoc:ae},this.method==="next"&&(this.arg=f),E}return oe}()},l}function S(f,l,d,m,i,h,V){try{var v=f[h](V),s=v.value}catch(g){return void d(g)}v.done?l(s):Promise.resolve(s).then(m,i)}function b(f){return function(){var l=this,d=arguments;return new Promise(function(m,i){var h=f.apply(l,d);function V(s){S(h,m,i,V,v,"next",s)}function v(s){S(h,m,i,V,v,"throw",s)}V(void 0)})}}var C=function(){var f=b(y().mark(function(){function l(d,m){return y().wrap(function(){function i(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,a.storage.set("podlauncher_preset_"+d,m);case 2:case"end":return h.stop()}}return i}(),l)}return l}()));return function(){function l(d,m){return f.apply(this,arguments)}return l}()}(),c=function(l,d){var m=(0,o.useBackend)(d),i=m.data,h=l.editing,V=l.deletePreset,v=l.loadPreset,s=l.presetIndex,g=l.setEditing,N=l.getPresets;return(0,e.createFragment)([!h&&(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"plus",onClick:function(){function x(){return g(!h)}return x}(),tooltip:"\u041D\u043E\u0432\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"download",inline:!0,onClick:function(){function x(){return C(s.toString(),i)}return x}(),tooltip:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"upload",inline:!0,onClick:function(){function x(){v(s)}return x}(),tooltip:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"trash",inline:!0,onClick:function(){function x(){return V(s)}return x}(),tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom-start"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"refresh",inline:!0,onClick:function(){function x(){return N()}return x}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0435\u0441\u0435\u0442\u043E\u0432",tooltipPosition:"bottom-start"})],0)},u=r.PresetsPage=function(){function f(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=(0,o.useLocalState)(d,"editing",!1),v=V[0],s=V[1],g=(0,o.useLocalState)(d,"hue",0),N=g[0],x=g[1],B=(0,o.useLocalState)(d,"name",""),L=B[0],T=B[1],A=(0,o.useLocalState)(d,"presetID",0),E=A[0],w=A[1],O=(0,o.useLocalState)(d,"presets",[]),M=O[0],P=O[1],F=function(){var W=b(y().mark(function(){function K($){var ne,Y;return y().wrap(function(){function le(de){for(;;)switch(de.prev=de.next){case 0:ne=[].concat(M),Y=0;case 2:if(!(Y=l.length-2?m%2===1?"top-start":"top-end":m%2===1?"bottom-start":"bottom-end",tooltip:d.title,width:"45px",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["supplypods64x64","pod_asset"+d.id]),style:{"pointer-events":"none",transform:"rotate(45deg) translate(-25%,-10%)"}})},d.id)})})}return k}()},8179:function(I,r,n){"use strict";r.__esModule=!0,r.TabPod=r.TabDrop=r.TabBay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TabPod=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"street-view",children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"undo-alt",children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),p=r.TabBay=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=(0,a.useLocalState)(b,"teleported",!1),l=f[0],d=f[1],m=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function i(){c("teleportCentcom"),d(!0)}return i}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m||!l,icon:"undo-alt",onClick:function(){function i(){c("teleportBack"),d(!1)}return i}(),children:m?m.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),k=r.TabDrop=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=(0,a.useLocalState)(b,"teleported",!1),l=f[0],d=f[1],m=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function i(){c("teleportDropoff"),d(!0)}return i}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m||!l,icon:"undo-alt",onClick:function(){function i(){c("teleportBack"),d(!1)}return i}(),children:m?m.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}()},18885:function(I,r,n){"use strict";r.__esModule=!0,r.Timing=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(22794),k=r.Timing=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.custom_rev_delay,l=u.effectReverse;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"undo",onClick:function(){function d(){return c("resetTiming")}return d}(),tooltip:"\n \u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0430\u0439\u043C\u0438\u043D\u0433\u0438\n /\u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",disabled:!l,icon:f===1?"toggle-on":"toggle-off",onClick:function(){function d(){return c("toggleRevDelays")}return d}(),selected:f,tooltip:"\n \u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430\n \u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u043F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438\n \u043E\u0431\u0440\u0430\u0449\u0430\u044E\u0442 \u0432\u0441\u043F\u044F\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"})],4),title:"\u0412\u0440\u0435\u043C\u044F",children:f?(0,e.createComponentVNode)(2,p.DelayHelper,{delay_list:o.REV_DELAYS,reverse:!0}):(0,e.createComponentVNode)(2,p.DelayHelper,{delay_list:o.DELAYS})})}return y}()},76417:function(I,r,n){"use strict";r.__esModule=!0,r.ViewTabHolder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(20345),k=r.ViewTabHolder=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mapRef,l=u.customDropoff,d=u.effectReverse,m=u.renderLighting,i=(0,p.useTab)(b),h=i[0],V=i[1],v=o.TABPAGES[h].component;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"arrow-circle-down",inline:!0,onClick:function(){function s(){V(2),c("tabSwitch",{tabIndex:2})}return s}(),selected:h===2,tooltip:"\u041C\u0435\u0441\u0442\u043E \u0412\u044B\u0441\u0430\u0434\u043A\u0438"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"rocket",inline:!0,onClick:function(){function s(){V(0),c("tabSwitch",{tabIndex:0})}return s}(),selected:h===0,tooltip:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"th",inline:!0,onClick:function(){function s(){V(1),c("tabSwitch",{tabIndex:1})}return s}(),selected:h===1,tooltip:"\u0410\u043D\u0433\u0430\u0440 \u041F\u043E\u0433\u0440\u0443\u0437\u043A\u0438"}),(0,e.createVNode)(1,"span",null,"|",16,{style:o.POD_GREY}),!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",inline:!0,onClick:function(){function s(){c("renderLighting"),c("refreshView")}return s}(),selected:m,tooltip:"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"sync-alt",inline:!0,onClick:function(){function s(){V(h),c("refreshView")}return s}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u043A\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430"})],0),fill:!0,title:"\u041E\u0441\u043C\u043E\u0442\u0440",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.ByondUi,{height:"100%",params:{id:f,type:"map",zoom:0}})})]})})}return y}()},7144:function(I,r,n){"use strict";r.__esModule=!0,r.TABPAGES=r.SOUNDS=r.REV_DELAYS=r.REVERSE_OPTIONS=r.POD_GREY=r.EFFECTS_NORMAL=r.EFFECTS_LOAD=r.EFFECTS_HARM=r.EFFECTS_ALL=r.DELAYS=r.BAYS=void 0;var e=n(8179),a=r.POD_GREY={color:"grey"},t=r.TABPAGES=[{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",component:e.TabPod},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u043D\u0433\u0430\u0440\u0430",component:e.TabBay},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043C\u0435\u0441\u0442\u0430 \u0432\u044B\u0433\u0440\u0443\u0437\u043A\u0438.",component:e.TabDrop}],o=r.REVERSE_OPTIONS=[{title:"\u041C\u043E\u0431\u044B",key:"Mobs",icon:"user"},{title:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Unanchored",icon:"cube"},{title:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Anchored",icon:"anchor"},{title:"\u041C\u0435\u0445\u0438",key:"Mecha",icon:"truck"}],p=r.DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u0440\u0438\u0431\u044B\u0442\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u044E"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],k=r.REV_DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430\u0434 \u0442\u043E\u0447\u043A\u043E\u0439 \u0432\u044B\u0441\u0430\u0434\u043A\u0438"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],y=r.SOUNDS=[{title:"Fall",act:"fallingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043F\u043E\u043A\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0430\u0434\u0430\u0435\u0442, \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F\n\u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u044F\u0435\u0442\u0441\u044F"},{title:"Land",act:"landingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Open",act:"openingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Exit",act:"leavingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u0443\u043B\u0435\u0442\u0430\u0435\u0442"}],S=r.BAYS=[{title:"1"},{title:"2"},{title:"3"},{title:"4"},{title:"\u0415\u0420\u0422"}],b=r.EFFECTS_LOAD=[{act:"launchAll",choiceNumber:0,icon:"globe",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441\u043E \u0432\u0441\u0435\u0445 \u0442\u0443\u0440\u0444\u043E\u0432"},{act:"launchOrdered",choiceNumber:1,icon:"sort-amount-down-alt",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441 \u0442\u0443\u0440\u0444\u043E\u0432 \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443"},{act:"launchRandomTurf",choiceNumber:2,icon:"dice",selected:"launchChoice",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0440\u0430\u043D\u0434\u043E\u043C\u043D\u044B\u0439 \u0442\u0443\u0440\u0444"},{divider:!0},{act:"launchWholeTurf",choiceNumber:0,icon:"expand",selected:"launchRandomItem",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0442\u0443\u0440\u0444\u0430"},{act:"launchRandomItem",choiceNumber:1,icon:"dice",selected:"launchRandomItem",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},{divider:!0},{act:"launchClone",icon:"clone",soloSelected:"launchClone",title:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}],C=r.EFFECTS_NORMAL=[{act:"effectTarget",icon:"user-check",soloSelected:"effectTarget",title:"\u041E\u0441\u043E\u0431\u0430\u044F \u0446\u0435\u043B\u044C"},{act:"effectBluespace",choiceNumber:0,icon:"hand-paper",selected:"effectBluespace",title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F"},{act:"effectStealth",icon:"user-ninja",soloSelected:"effectStealth",title:"\u0421\u043A\u0440\u044B\u0442\u043D\u043E"},{act:"effectQuiet",icon:"volume-mute",soloSelected:"effectQuiet",title:"\u0422\u0438\u0445\u043E"},{act:"effectMissile",icon:"rocket",soloSelected:"effectMissile",title:"\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u043A\u0435\u0442\u044B"},{act:"effectBurst",icon:"certificate",soloSelected:"effectBurst",title:"\u0417\u0430\u043F\u0443\u0441\u043A \u043A\u043B\u0430\u0441\u0442\u0435\u0440\u0430"},{act:"effectCircle",icon:"ruler-combined",soloSelected:"effectCircle",title:"\u041B\u044E\u0431\u043E\u0439 \u0443\u0433\u043E\u043B \u0441\u043F\u0443\u0441\u043A\u0430"},{act:"effectAnnounce",choiceNumber:0,icon:"ghost",selected:"effectAnnounce",title:"\u041D\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432\n(\u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435\n\u0440\u0430\u0437\u0432\u043B\u0435\u043A\u0430\u0442\u044C \u0441\u043A\u0443\u0447\u0430\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432)"}],c=r.EFFECTS_HARM=[{act:"explosionCustom",choiceNumber:1,icon:"bomb",selected:"explosionChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0432\u0437\u0440\u044B\u0432"},{act:"explosionBus",choiceNumber:2,icon:"bomb",selected:"explosionChoice",title:"\u0410\u0434\u043C\u0438\u043D\u0430\u0431\u0443\u0437-\u0432\u0437\u0440\u044B\u0432\n\u0418 \u0447\u0442\u043E \u043E\u043D\u0438 \u0441\u0434\u0435\u043B\u0430\u044E\u0442, \u0437\u0430\u0431\u0430\u043D\u044F\u0442 \u0442\u0435\u0431\u044F?"},{divider:!0},{act:"damageCustom",choiceNumber:1,icon:"skull",selected:"damageChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0443\u0440\u043E\u043D"},{act:"damageGib",choiceNumber:2,icon:"skull-crossbones",selected:"damageChoice",title:"\u0413\u0438\u0431"},{divider:!0},{act:"effectShrapnel",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",title:"\u041E\u0431\u043B\u0430\u043A\u043E \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432"},{act:"effectStun",icon:"sun",soloSelected:"effectStun",title:"\u0421\u0442\u0430\u043D"},{act:"effectLimb",icon:"socks",soloSelected:"effectLimb",title:"\u041F\u043E\u0442\u0435\u0440\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438"},{act:"effectOrgans",icon:"book-dead",soloSelected:"effectOrgans",title:"\u0420\u0430\u0437\u043B\u0435\u0442 \u0432\u0441\u0435\u0445 \u043E\u0440\u0433\u0430\u043D\u043E\u0432"}],u=r.EFFECTS_ALL=[{list:b,label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437",alt_label:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",tooltipPosition:"right"},{list:C,label:"\u041E\u0431\u044B\u0447\u043D\u044B\u0435 \u042D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"},{list:c,label:"\u0412\u0440\u0435\u0434\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"}]},20345:function(I,r,n){"use strict";r.__esModule=!0,r.useTab=r.useCompact=void 0;var e=n(72253),a=r.useCompact=function(){function o(p){return(0,e.useLocalState)(p,"compact",!1)}return o}(),t=r.useTab=function(){function o(p){return(0,e.useLocalState)(p,"tab",1)}return o}()},65875:function(I,r,n){"use strict";r.__esModule=!0,r.CentcomPodLauncher=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(20345),p=n(23749),k=n(8507),y=n(15802),S=n(94577),b=n(30590),C=n(72932),c=n(68569),u=n(18885),f=n(76417),l=r.CentcomPodLauncher=function(){function d(m,i){var h=(0,o.useCompact)(i),V=h[0];return(0,e.createComponentVNode)(2,t.Window,{height:V?360:440,title:"\u041C\u0435\u043D\u044E \u043A\u0430\u043F\u0441\u0443\u043B \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",width:V?460:750,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{shrink:0,children:(0,e.createComponentVNode)(2,S.PodStatusPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.PresetsPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,C.ReverseMenu)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,k.PodLaunch)})})]})}),!V&&(0,e.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,e.createComponentVNode)(2,f.ViewTabHolder)}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"9em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,direction:"column",children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,p.PodBays)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u.Timing)}),!V&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,y.PodSounds,{fill:!0})})]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"11em",children:(0,e.createComponentVNode)(2,c.StylePage)})]})})]})})})}return d}()},16780:function(){"use strict"},12226:function(I,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=n(79140),y=b(n(83331)),S=b(n(52754));function b(i){return i&&i.__esModule?i:{default:i}}function C(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */C=function(){return h};var i,h={},V=Object.prototype,v=V.hasOwnProperty,s=Object.defineProperty||function(J,X,Q){J[X]=Q.value},g=typeof Symbol=="function"?Symbol:{},N=g.iterator||"@@iterator",x=g.asyncIterator||"@@asyncIterator",B=g.toStringTag||"@@toStringTag";function L(J,X,Q){return Object.defineProperty(J,X,{value:Q,enumerable:!0,configurable:!0,writable:!0}),J[X]}try{L({},"")}catch(J){L=function(Q,q,te){return Q[q]=te}}function T(J,X,Q,q){var te=X&&X.prototype instanceof F?X:F,fe=Object.create(te.prototype),ye=new Z(q||[]);return s(fe,"_invoke",{value:le(J,Q,ye)}),fe}function A(J,X,Q){try{return{type:"normal",arg:J.call(X,Q)}}catch(q){return{type:"throw",arg:q}}}h.wrap=T;var E="suspendedStart",w="suspendedYield",O="executing",M="completed",P={};function F(){}function R(){}function U(){}var j={};L(j,N,function(){return this});var W=Object.getPrototypeOf,K=W&&W(W(ae([])));K&&K!==V&&v.call(K,N)&&(j=K);var $=U.prototype=F.prototype=Object.create(j);function ne(J){["next","throw","return"].forEach(function(X){L(J,X,function(Q){return this._invoke(X,Q)})})}function Y(J,X){function Q(te,fe,ye,pe){var Le=A(J[te],J,fe);if(Le.type!=="throw"){var D=Le.arg,ie=D.value;return ie&&typeof ie=="object"&&v.call(ie,"__await")?X.resolve(ie.__await).then(function(se){Q("next",se,ye,pe)},function(se){Q("throw",se,ye,pe)}):X.resolve(ie).then(function(se){D.value=se,ye(D)},function(se){return Q("throw",se,ye,pe)})}pe(Le.arg)}var q;s(this,"_invoke",{value:function(){function te(fe,ye){function pe(){return new X(function(Le,D){Q(fe,ye,Le,D)})}return q=q?q.then(pe,pe):pe()}return te}()})}function le(J,X,Q){var q=E;return function(te,fe){if(q===O)throw Error("Generator is already running");if(q===M){if(te==="throw")throw fe;return{value:i,done:!0}}for(Q.method=te,Q.arg=fe;;){var ye=Q.delegate;if(ye){var pe=de(ye,Q);if(pe){if(pe===P)continue;return pe}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(q===E)throw q=M,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);q=O;var Le=A(J,X,Q);if(Le.type==="normal"){if(q=Q.done?M:w,Le.arg===P)continue;return{value:Le.arg,done:Q.done}}Le.type==="throw"&&(q=M,Q.method="throw",Q.arg=Le.arg)}}}function de(J,X){var Q=X.method,q=J.iterator[Q];if(q===i)return X.delegate=null,Q==="throw"&&J.iterator.return&&(X.method="return",X.arg=i,de(J,X),X.method==="throw")||Q!=="return"&&(X.method="throw",X.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),P;var te=A(q,J.iterator,X.arg);if(te.type==="throw")return X.method="throw",X.arg=te.arg,X.delegate=null,P;var fe=te.arg;return fe?fe.done?(X[J.resultName]=fe.value,X.next=J.nextLoc,X.method!=="return"&&(X.method="next",X.arg=i),X.delegate=null,P):fe:(X.method="throw",X.arg=new TypeError("iterator result is not an object"),X.delegate=null,P)}function oe(J){var X={tryLoc:J[0]};1 in J&&(X.catchLoc=J[1]),2 in J&&(X.finallyLoc=J[2],X.afterLoc=J[3]),this.tryEntries.push(X)}function re(J){var X=J.completion||{};X.type="normal",delete X.arg,J.completion=X}function Z(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(oe,this),this.reset(!0)}function ae(J){if(J||J===""){var X=J[N];if(X)return X.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var Q=-1,q=function(){function te(){for(;++Q=0;--te){var fe=this.tryEntries[te],ye=fe.completion;if(fe.tryLoc==="root")return q("end");if(fe.tryLoc<=this.prev){var pe=v.call(fe,"catchLoc"),Le=v.call(fe,"finallyLoc");if(pe&&Le){if(this.prev=0;--q){var te=this.tryEntries[q];if(te.tryLoc<=this.prev&&v.call(te,"finallyLoc")&&this.prev=0;--Q){var q=this.tryEntries[Q];if(q.finallyLoc===X)return this.complete(q.completion,q.afterLoc),re(q),P}}return J}(),catch:function(){function J(X){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var q=this.tryEntries[Q];if(q.tryLoc===X){var te=q.completion;if(te.type==="throw"){var fe=te.arg;re(q)}return fe}}throw Error("illegal catch attempt")}return J}(),delegateYield:function(){function J(X,Q,q){return this.delegate={iterator:ae(X),resultName:Q,nextLoc:q},this.method==="next"&&(this.arg=i),P}return J}()},h}function c(i,h,V,v,s,g,N){try{var x=i[g](N),B=x.value}catch(L){return void V(L)}x.done?h(B):Promise.resolve(B).then(v,s)}function u(i){return function(){var h=this,V=arguments;return new Promise(function(v,s){var g=i.apply(h,V);function N(B){c(g,v,s,N,x,"next",B)}function x(B){c(g,v,s,N,x,"throw",B)}N(void 0)})}}function f(i,h){i.prototype=Object.create(h.prototype),i.prototype.constructor=i,l(i,h)}function l(i,h){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,v){return V.__proto__=v,V},l(i,h)}var d={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},m=r.Changelog=function(i){function h(){var v;return v=i.call(this)||this,v.getData=function(s,g){g===void 0&&(g=1);var N=(0,t.useBackend)(v.context),x=N.act,B=v,L=6;if(g>L)return v.setData("Failed to load data after "+L+" attempts");x("get_month",{date:s}),fetch((0,k.resolveAsset)(s+".yml")).then(function(){var T=u(C().mark(function(){function A(E){var w,O,M;return C().wrap(function(){function P(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,E.text();case 2:w=F.sent,O=/^Cannot find/,O.test(w)?(M=50+g*50,B.setData("Loading changelog data"+".".repeat(g+3)),setTimeout(function(){B.getData(s,g+1)},M)):B.setData(S.default.load(w,{schema:S.default.CORE_SCHEMA}));case 5:case"end":return F.stop()}}return P}(),A)}return A}()));return function(A){return T.apply(this,arguments)}}())},v.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},v.dateChoices=[],v}f(h,i);var V=h.prototype;return V.setData=function(){function v(s){this.setState({data:s})}return v}(),V.setSelectedDate=function(){function v(s){this.setState({selectedDate:s})}return v}(),V.setSelectedIndex=function(){function v(s){this.setState({selectedIndex:s})}return v}(),V.componentDidMount=function(){function v(){var s=this,g=(0,t.useBackend)(this.context),N=g.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return s.dateChoices.push((0,y.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return v}(),V.render=function(){function v(){var s=this,g=this.state,N=g.data,x=g.selectedDate,B=g.selectedIndex,L=(0,t.useBackend)(this.context),T=L.data.dates,A=this.dateChoices,E=A.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===0,icon:"chevron-left",onClick:function(){function F(){var R=B-1;return s.setData("Loading changelog data..."),s.setSelectedIndex(R),s.setSelectedDate(A[R]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[R])}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:A,onSelected:function(){function F(R){var U=A.indexOf(R);return s.setData("Loading changelog data..."),s.setSelectedIndex(U),s.setSelectedDate(R),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[U])}return F}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===A.length-1,icon:"chevron-right",onClick:function(){function F(){var R=B+1;return s.setData("Loading changelog data..."),s.setSelectedIndex(R),s.setSelectedDate(A[R]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[R])}return F}()})})]}),w=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"Paradise Station",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thanks to: ",16),(0,e.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,e.createTextVNode)(".")],0),E]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[E,(0,e.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Coders: ",16),(0,e.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Spriters: ",16),(0,e.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,e.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,e.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,e.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Some icons by"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,e.createTextVNode)(". All rights reserved. Licensed under a"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,e.createTextVNode)(".")],0)]}),M=/#\d+/,P=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(F){var R=F[0],U=F[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,y.default)(R,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(U).map(function(j){var W=j[0],K=j[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[W,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:K.map(function($){var ne=Object.keys($)[0],Y=$[ne],le=Y.match(M),de=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[ne]?d[ne].color:d.unknown.color,name:d[ne]?d[ne].icon:d.unknown.icon})});return le!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[de,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",Y.charAt(0).toUpperCase()+Y.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+le[0].substring(1)})})]},ne+Y)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[de,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:Y})]},ne+Y)})})})],4,W)})})},R)});return(0,e.createComponentVNode)(2,p.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[w,P,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return v}(),h}(e.Component)},91360:function(I,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),k=n(98595),y=r.CheckboxListInputModal=function(){function b(C,c){var u=(0,p.useBackend)(c),f=u.act,l=u.data,d=l.items,m=d===void 0?[]:d,i=l.message,h=i===void 0?"":i,V=l.init_value,v=l.timeout,s=l.title,g=(0,p.useLocalState)(c,"edittedItems",m),N=g[0],x=g[1],B=330+Math.ceil(h.length/3),L=function(){function T(A){A===void 0&&(A=null);var E=[].concat(N);E=E.map(function(w){return w.key===A.key?Object.assign({},w,{checked:!A.checked}):w}),x(E)}return T}();return(0,e.createComponentVNode)(2,k.Window,{title:s,width:325,height:B,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:h,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S,{filteredItems:N,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return b}(),S=function(C,c){var u=C.filteredItems,f=C.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(l,d){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:d,onClick:function(){function m(){return f(l)}return m}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(m){return m.toUpperCase()})},d)})})}},36108:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),p=n(98595),k=[1,5,10,20,30,50,100],y=[1,5,10],S=r.ChemDispenser=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.chemicals;return(0,e.createComponentVNode)(2,p.Window,{width:580,height:400+h.length*8,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c)]})})})}return u}(),b=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.amount,V=i.energy,v=i.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[V," / ",v," \u0415\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:k.map(function(s,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:h===s,content:s,onClick:function(){function N(){return m("amount",{amount:s})}return N}()})},g)})})})]})})})},C=function(f,l){for(var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.chemicals,V=h===void 0?[]:h,v=[],s=0;s<(V.length+1)%3;s++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:i.glass?"\u0421\u0438\u043D\u0442\u0435\u0437 \u043D\u0430\u043F\u0438\u0442\u043A\u043E\u0432":"\u0421\u0438\u043D\u0442\u0435\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u043E\u0432",children:[V.map(function(g,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function x(){return m("dispense",{reagent:g.id})}return x}()},N)}),v.map(function(g,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},c=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.isBeakerLoaded,V=i.beakerCurrentVolume,v=i.beakerMaxVolume,s=i.beakerContents,g=s===void 0?[]:s;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!h&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[V," / ",v," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:!h,onClick:function(){function N(){return m("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:h,beakerContents:g,buttons:function(){function N(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"\u0418\u0437\u043E\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",icon:"compress-arrows-alt",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-1})}return B}()}),y.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function T(){return m("remove",{reagent:x.id,amount:B})}return T}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:x.volume})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u041E\u043A\u0440\u0443\u0433\u043B\u0438\u0442\u044C",tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u043B\u0438\u0448\u043D\u0435\u0435, \u043E\u043A\u0440\u0443\u0433\u043B\u044F\u044F \u043E\u0431\u044A\u0451\u043C \u0434\u043E "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return N}()})})})}},13146:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(85870),k=n(98595),y=r.ChemHeater=function(){function C(c,u){return(0,e.createComponentVNode)(2,k.Window,{width:450,height:275,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return C}(),S=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.targetTemp,i=d.targetTempReached,h=d.autoEject,V=d.isActive,v=d.currentTemp,s=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435",icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function g(){return l("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:V?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",icon:"power-off",selected:V,disabled:!s,onClick:function(){function g(){return l("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(m,0),minValue:0,maxValue:1e3,onDrag:function(){function g(N,x){return l("adjust_temperature",{target:x})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:i?"good":"average",children:s&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(N){return(0,a.toFixed)(N)+" K"}return g}()})||"\u2014"})]})})})},b=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.isBeakerLoaded,i=d.beakerCurrentVolume,h=d.beakerMaxVolume,V=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:!!m&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[i," / ",h," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:m,beakerContents:V})})})}},56541:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(85870),k=n(3939),y=n(35840),S=["icon"];function b(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}function C(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,c(B,L)}function c(B,L){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},c(B,L)}var u=[1,5,10],f=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:w.condi?"\u0410\u043D\u0430\u043B\u0438\u0437 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430":"\u0410\u043D\u0430\u043B\u0438\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",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:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:(O.desc||"").length>0?O.desc:"\u041D/\u0414"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u0440\u043E\u0432\u0438",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u041D\u041A-\u043A\u043E\u0434",className:"LabeledList__breakContents",children:O.blood_dna})],4),!w.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:w.printing?"spinner":"print",disabled:w.printing,iconSpin:!!w.printing,ml:"0.5rem",content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return E("print",{idx:O.idx,beaker:L.args.beaker})}return M}()})]})})})})},l=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(l||{}),d=r.ChemMaster=function(){function B(L,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,k.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),m=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=w.beaker,M=w.beaker_reagents,P=w.buffer_reagents,F=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440",onClick:function(){function R(){return E("eject")}return R}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440",onClick:function(){function R(){return E("eject")}return R}()}),children:O?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function R(U,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function P(F,R){return(0,e.createComponentVNode)(2,t.Box,{mb:R0&&(F=P.map(function(R){var U=R.id,j=R.sprite;return(0,e.createComponentVNode)(2,g,{icon:j,color:"translucent",onClick:function(){function W(){return E("set_sprite_style",{production_mode:O,style:U})}return W}(),selected:M===U},U)})),(0,e.createComponentVNode)(2,s,{productionData:L.productionData,children:F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:F})})},x=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=w.loaded_pill_bottle_style,M=w.containerstyles,P=w.loaded_pill_bottle,F={width:"20px",height:"20px"},R=M.map(function(U){var j=U.color,W=U.name,K=O===j;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:F.width,height:F.height},onClick:function(){function $(){return E("set_container_style",{style:j})}return $}(),icon:K&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,tooltipPosition:"top",children:[!K&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:F.width,height:F.height,"background-color":j,opacity:.6,filter:"alpha(opacity=60)"}})]},j)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u041A\u0430\u0441\u0442\u043E\u043C\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440",onClick:function(){function U(){return E("ejectp")}return U}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:F.width,height:F.height},icon:"tint-slash",onClick:function(){function U(){return E("clear_container_style")}return U}(),selected:!O,tooltip:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",tooltipPosition:"top"}),R]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u041A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})})})};(0,k.modalRegisterBodyOverride)("analyze",f)},37173:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(76910),k=n(3939),y=n(98595),S=n(79140),b=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=h.args,x=N.activerecord,B=N.realname,L=N.health,T=N.unidentity,A=N.strucenzymes,E=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"\u0417\u0430\u043F\u0438\u0441\u0438 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:E.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.oxy,inline:!0,children:E[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.toxin,inline:!0,children:E[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.brute,inline:!0,children:E[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.burn,inline:!0,children:E[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0423\u0418",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0424",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!g.disk,icon:"arrow-circle-down",content:"\u0418\u043C\u043F\u043E\u0440\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",onClick:function(){function w(){return s("disk",{option:"load"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418",onClick:function(){function w(){return s("disk",{option:"save",savetype:"ui"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418 \u0438 \u0423\u0424",onClick:function(){function w(){return s("disk",{option:"save",savetype:"ue"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0421\u0424",onClick:function(){function w(){return s("disk",{option:"save",savetype:"se"})}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"\u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",onClick:function(){function w(){return s("clone",{ref:x})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",onClick:function(){function w(){return s("del_rec")}return w}()})]})]})})},C=r.CloningConsole=function(){function i(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.menu;return(0,k.modalRegisterBodyOverride)("view_rec",b),(0,e.createComponentVNode)(2,y.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,u)})]})]})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,icon:"home",onClick:function(){function x(){return s("menu",{num:1})}return x}(),children:"\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,icon:"folder",onClick:function(){function x(){return s("menu",{num:2})}return x}(),children:"\u0417\u0430\u043F\u0438\u0441\u0438"})]})},u=function(h,V){var v=(0,t.useBackend)(V),s=v.data,g=s.menu,N;return g===1?N=(0,e.createComponentVNode)(2,f):g===2&&(N=(0,e.createComponentVNode)(2,l)),N},f=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.loading,x=g.scantemp,B=g.occupant,L=g.locked,T=g.can_brainscan,A=g.scan_mode,E=g.numberofpods,w=g.pods,O=g.selected_pod,M=L&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0441\u043A\u0430\u043D\u0435\u0440\u0430:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:M,icon:M?"toggle-on":"toggle-off",content:M?"\u0410\u043A\u0442\u0438\u0432\u043D\u0430":"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u0430",onClick:function(){function P(){return s("lock")}return P}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:M||!B,icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",onClick:function(){function P(){return s("eject")}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 \u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435..."]}):(0,e.createComponentVNode)(2,o.Box,{color:x.color,children:x.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"\u041C\u043E\u0437\u0433":"\u0422\u0435\u043B\u043E",onClick:function(){function P(){return s("toggle_mode")}return P}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",mt:"0.5rem",mb:"0",onClick:function(){function P(){return s("scan")}return P}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",level:"2",children:E?w.map(function(P,F){var R;return P.status==="cloning"?R=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:P.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(P.progress,0)+"%"})}):P.status==="mess"?R=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"\u041E\u0448\u0438\u0431\u043A\u0430"}):R=(0,e.createComponentVNode)(2,o.Button,{selected:O===P.pod,icon:O===P.pod&&"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",mt:"0.5rem",onClick:function(){function U(){return s("selectpod",{ref:P.pod})}return U}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)("pod_"+P.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u2116",F+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:P.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:P.biomass>=150?"circle":"circle-o"}),"\xA0",P.biomass]}),R]},F)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B. \u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."})})],4)},l=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.records;return N.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:N.map(function(x,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:x.realname,onClick:function(){function L(){return s("view_rec",{ref:x.record})}return L}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u0417\u0430\u043F\u0438\u0441\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})},d=function(h,V){var v,s=(0,t.useBackend)(V),g=s.act,N=s.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(v={},v[x.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:x.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return g("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},m=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.scanner,x=g.numberofpods,B=g.autoallowed,L=g.autoprocess,T=g.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function A(){return s("autoprocess",{on:L?0:1})}return A}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443",onClick:function(){function A(){return s("disk",{option:"eject"})}return A}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043A\u0430\u043D\u0435\u0440",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:["\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0445 \u043A\u0430\u043F\u0441\u0443\u043B - ",x]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})})]})})}},18259:function(I,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.CoinMint=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.materials,l=u.moneyBag,d=u.moneyBagContent,m=u.moneyBagMaxContent,i=(l?210:138)+Math.ceil(f.length/4)*64;return(0,e.createComponentVNode)(2,p.Window,{width:256,height:i,title:"\u041C\u043E\u043D\u0435\u0442\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0441",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["\u041F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u043E \u043C\u043E\u043D\u0435\u0442: ",u.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0422\u0438\u043F \u041C\u043E\u043D\u0435\u0442",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:u.active&&"bad",tooltip:!l&&"\u041D\u0443\u0436\u0435\u043D \u0434\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",disabled:!l,onClick:function(){function h(){return c("activate")}return h}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:u.maxMaterials,value:u.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"\u0418\u0437\u0432\u0432\u043B\u0435\u0447\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",onClick:function(){function h(){return c("ejectMat")}return h}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:f.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:h.id===u.chosenMaterial,tooltip:h.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",h.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:h.amount})]}),onClick:function(){function V(){return c("selectMaterial",{material:h.id})}return V}()},h.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:u.active,onClick:function(){function h(){return c("ejectBag")}return h}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:m,value:d,children:[d," / ",m]})})})]})})})}return y}()},93858:function(I,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),p=n(98595),k=n(44879),y=n(14448),S=n(4454),b=n(35840),C=n(9394),c=n(19203),u=["prefixed","alpha","color","fluid","onChange"];/** + */var k=(0,t.createLogger)("hotkeys"),y={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],b={},C=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"."},c=function(i){var h=String(i);if(h==="Ctrl+F5"||h==="Ctrl+R"){location.reload();return}if(h!=="Ctrl+F"&&!(i.event.defaultPrevented||i.isModifierKey()||S.includes(i.code))){h==="F5"&&(i.event.preventDefault(),i.event.returnValue=!1);var V=C(i.code);if(V){var v=y[V];if(v)return k.debug("macro",v),Byond.command(v);if(i.isDown()&&!b[V]){b[V]=!0;var s='KeyDown "'+V+'"';return k.debug(s),Byond.command(s)}if(i.isUp()&&b[V]){b[V]=!1;var g='KeyUp "'+V+'"';return k.debug(g),Byond.command(g)}}}},u=r.acquireHotKey=function(){function m(i){S.push(i)}return m}(),f=r.releaseHotKey=function(){function m(i){var h=S.indexOf(i);h>=0&&S.splice(h,1)}return m}(),l=r.releaseHeldKeys=function(){function m(){for(var i=0,h=Object.keys(b);i0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(k){return k.json()}).then(function(k){return Byond.iconRefMap=k}).catch(function(k){return t.logger.log(k)})}return p}()},1090:function(I,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AICard=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var u=null;return c.integrity>=75?u="green":c.integrity>=25?u="yellow":u="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:c.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u,value:c.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,c.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(f,l){return(0,e.createComponentVNode)(2,t.Box,{children:f},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:c.wireless?"check":"times",content:c.wireless?"Enabled":"Disabled",color:c.wireless?"green":"red",onClick:function(){function f(){return C("wireless")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.radio?"check":"times",content:c.radio?"Enabled":"Disabled",color:c.radio?"green":"red",onClick:function(){function f(){return C("radio")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:c.flushing||c.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return C("wipe")}return f}()})})]})})})]})})})}return k}()},39454:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AIFixer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var u=!0;(c.stat===2||c.stat===null)&&(u=!1);var f=null;c.integrity>=75?f="green":c.integrity>=25?f="yellow":f="red";var l=!0;return c.integrity>=100&&c.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:c.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:f,value:c.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:u?"green":"red",children:u?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(d,m){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},m)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.wireless?"times":"check",content:c.wireless?"Disabled":"Enabled",color:c.wireless?"red":"green",onClick:function(){function d(){return C("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.radio?"times":"check",content:c.radio?"Disabled":"Enabled",color:c.radio?"red":"green",onClick:function(){function d(){return C("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||c.active,content:!l||c.active?"Already Repaired":"Repair",onClick:function(){function d(){return C("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:c.active?"Reconstruction in progress.":""})]})})]})})})}return k}()},88422:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),k=r.APC=function(){function C(c,u){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return C}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},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"}},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.locked&&!d.siliconUser,i=d.normallyLocked,h=y[d.externalPower]||y[0],V=y[d.chargingStatus]||y[0],v=d.powerChannels||[],s=S[d.malfStatus]||S[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:h.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!m,color:d.isOperating?"":"bad",disabled:m,onClick:function(){function N(){return l("breaker")}return N}()}),children:["[ ",h.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:V.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:m,onClick:function(){function N(){return l("charge")}return N}()}),children:["[ ",V.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(N){var x=N.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:N.status>=2?"good":"bad",children:N.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!m&&(N.status===1||N.status===3),disabled:m,onClick:function(){function B(){return l("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!m&&N.status===2,disabled:m,onClick:function(){function B(){return l("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!m&&N.status===0,disabled:m,onClick:function(){function B(){return l("channel",x.off)}return B}()})],4),children:[N.powerLoad," W"]},N.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:s.icon,content:s.content,color:"bad",onClick:function(){function N(){return l(s.action)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function N(){return l("overload")}return N}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return l("cover")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function N(){return l("toggle_nightshift")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.emergencyLights?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return l("emergency_lighting")}return N}()})})]})})],4)}},99660:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ATM=function(){function l(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.view_screen,s=V.authenticated_account,g=V.ticks_left_locked_down,N=V.linked_db,x;if(g>0)x=(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)x=(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(s)switch(v){case 1:x=(0,e.createComponentVNode)(2,y);break;case 2:x=(0,e.createComponentVNode)(2,S);break;case 3:x=(0,e.createComponentVNode)(2,u);break;case 4:x=(0,e.createComponentVNode)(2,b);break;default:x=(0,e.createComponentVNode)(2,C)}else x=(0,e.createComponentVNode)(2,c);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Section,{children:x})]})})}return l}(),k=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.machine_id,s=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:s,icon:"eject",onClick:function(){function g(){return h("insert_card")}return g}()})})})]})},y=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=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:v===0,onClick:function(){function s(){return h("change_security_level",{new_security_level:0})}return s}()})}),(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:v===1,onClick:function(){function s(){return h("change_security_level",{new_security_level:1})}return s}()})}),(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,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Card and Account Pin",icon:"unlock",selected:v===2,onClick:function(){function s(){return h("change_security_level",{new_security_level:2})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},S=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"targetAccNumber",0),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"fundsAmount",0),x=N[0],B=N[1],L=(0,a.useLocalState)(m,"purpose",0),T=L[0],A=L[1],E=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:["$",E]}),(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 w(O,M){return g(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(O,M){return B(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function w(O,M){return A(M)}return w}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function w(){return h("transfer",{target_acc_number:s,funds_amount:x,purpose:T})}return w}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},b=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.insurance_type;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u041D\u0435\u0442 (0)",icon:"unlock",selected:v==="None",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"None"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u044E\u0434\u0436\u0435\u0442\u043D\u0430\u044F (0)",icon:"unlock",selected:v==="Bugetary",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Bugetary"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u0430\u044F (500)",icon:"unlock",selected:v==="Standart",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Standart"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0435\u043B\u044E\u043A\u0441 (2000)",icon:"unlock",selected:v==="Deluxe",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Deluxe"})}return s}()})]})}),(0,e.createComponentVNode)(2,f)]})},C=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"fundsAmount",0),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"insuranceAmount",0),x=N[0],B=N[1],L=V.owner_name,T=V.money,A=V.insurance;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function E(){return h("logout")}return E}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",T]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function E(w,O){return g(O)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function E(){return h("withdrawal",{funds_amount:s})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Insurance Points",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adding Insurance",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function E(w,O){return B(O)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add insurance points",icon:"sign-out-alt",onClick:function(){function E(){return h("insurance",{insurance_amount:x})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Toggle auto-replenishment of insurance",icon:"sign-out-alt",onClick:function(){function E(){return h("insurance_replenishment",{})}return E}()})})]})}),(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 E(){return h("view_screen",{view_screen:1})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function E(){return h("view_screen",{view_screen:2})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function E(){return h("view_screen",{view_screen:3})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change type of insurance",icon:"lock",onClick:function(){function E(){return h("view_screen",{view_screen:4})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function E(){return h("balance_statement")}return E}()})})]})],4)},c=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"accountID",null),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"accountPin",null),x=N[0],B=N[1],L=V.machine_id,T=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 A(E,w){return g(w)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function A(E,w){return B(w)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function A(){return h("attempt_auth",{account_num:s,account_pin:x})}return A}()})})]})})},u=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=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"})]}),v.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:s.is_deposit?"green":"red",children:["$",s.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.target_name})]},s)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},f=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function v(){return h("view_screen",{view_screen:0})}return v}()})}},86423:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(36352),k=n(98595),y=n(321),S=n(5485),b=r.AccountsUplinkTerminal=function(){function d(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.loginState,g=v.currentPage,N;if(s.logged_in)g===1?N=(0,e.createComponentVNode)(2,C):g===2?N=(0,e.createComponentVNode)(2,f):g===3&&(N=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.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,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return d}(),C=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.accounts,g=(0,t.useLocalState)(i,"searchText",""),N=g[0],x=g[1],B=(0,t.useLocalState)(i,"sortId","owner_name"),L=B[0],T=B[1],A=(0,t.useLocalState)(i,"sortOrder",!0),E=A[0],w=A[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,c,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,c,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,c,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,c,{id:"money",children:"Account Balance"})]}),s.filter((0,a.createSearch)(N,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,M){var P=E?1:-1;return O[L].localeCompare(M[L])*P}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function M(){return V("view_account_detail",{index:O.account_index})}return M}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},c=function(m,i){var h=(0,t.useLocalState)(i,"sortId","name"),V=h[0],v=h[1],s=(0,t.useLocalState)(i,"sortOrder",!0),g=s[0],N=s[1],x=m.id,B=m.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==x&&"transparent",width:"100%",onClick:function(){function L(){V===x?N(!g):(v(x),N(!0))}return L}(),children:[B,V===x&&(0,e.createComponentVNode)(2,o.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.is_printing,g=(0,t.useLocalState)(i,"searchText",""),N=g[0],x=g[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 B(){return V("create_new_account")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print Account List",disabled:s,ml:"0.25rem",onClick:function(){function B(){return V("print_records")}return B}()})]}),(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 B(L,T){return x(T)}return B}()})})]})},f=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.account_number,g=v.owner_name,N=v.money,x=v.suspended,B=v.transactions;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:"#"+s+" / "+g,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function L(){return V("back")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:N}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:x?"red":"green",children:[x?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:x?"Unsuspend":"Suspend",icon:x?"unlock":"lock",onClick:function(){function L(){return V("toggle_suspension")}return L}()})]})]})})}),(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"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:L.is_deposit?"green":"red",children:["$",L.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.target_name})]},L)})]})})})]})},l=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=(0,t.useLocalState)(i,"accName",""),g=s[0],N=s[1],x=(0,t.useLocalState)(i,"accDeposit",""),B=x[0],L=x[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 T(){return V("back")}return T}()}),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 T(A,E){return N(E)}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function T(A,E){return L(E)}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function T(){return V("finalise_create_account",{holder_name:g,starting_funds:B})}return T}()})]})}},23001:function(I,r,n){"use strict";r.__esModule=!0,r.AdminAntagMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(36352),k=n(98595),y=n(321),S=n(5485),b={0:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u044B",1:"\u0426\u0435\u043B\u0438",2:"\u0421\u0411",3:"\u041E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B",default:"\u0427\u0442\u043E-\u0442\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0440\u0430 \u043F\u0438\u0441\u0430\u0442\u044C \u0431\u0430\u0433 \u0440\u0435\u043F\u043E\u0440\u0442!"},C={0:function(){function V(){return(0,e.createComponentVNode)(2,l)}return V}(),1:function(){function V(){return(0,e.createComponentVNode)(2,d)}return V}(),2:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}(),3:function(){function V(){return(0,e.createComponentVNode)(2,i)}return V}(),default:function(){function V(){return"\u0427\u0442\u043E-\u0442\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0440\u0430 \u043F\u0438\u0441\u0430\u0442\u044C \u0431\u0430\u0433 \u0440\u0435\u043F\u043E\u0440\u0442!"}return V}()},c=function(v){return b[v]||b.default},u=function(v){return C[v]||C.default},f=r.AdminAntagMenu=function(){function V(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.loginState,L=x.currentPage,T=(0,t.useLocalState)(s,"tabIndex",0),A=T[0],E=T[1],w=(0,t.useLocalState)(s,"searchText",""),O=w[0],M=w[1];return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,title:"\u041C\u0435\u043D\u044E \u0441\u043F\u0435\u0446-\u0440\u043E\u043B\u0435\u0439",children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===0,onClick:function(){function P(){E(0)}return P}(),icon:"user",children:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u044B"},"Antagonists"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===1,onClick:function(){function P(){E(1)}return P}(),icon:"people-robbery",children:"\u0426\u0435\u043B\u0438"},"Objectives"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===2,onClick:function(){function P(){E(2)}return P}(),icon:"handcuffs",children:"\u0421\u0411"},"Security"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===3,onClick:function(){function P(){E(3)}return P}(),icon:"lock",children:"\u041E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B"},"HighValueItems")]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:c(A),fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C...",width:"300px",onInput:function(){function P(F,R){return M(R)}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function P(){return N("refresh")}return P}(),children:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C"})]}),children:u(A)()})})]})})})}return V}(),l=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.antagonists,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId","antag_names"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1],R=Object.keys(B);if(!R||R.length===0)return(0,e.createVNode)(1,"div",null,"\u041D\u0435\u0442 \u0430\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u043E\u0432.",16);var U=R.map(function(j){return Object.assign({key:j},B[j])});return(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{id:"name",children:"\u0418\u043C\u044F \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0430"}),(0,e.createComponentVNode)(2,h,{id:"",children:"\u041A\u043D\u043E\u043F\u043A\u0438"}),(0,e.createComponentVNode)(2,h,{id:"antag_names",children:"\u0422\u0438\u043F(-\u044B) \u0430\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u043E\u0432"}),(0,e.createComponentVNode)(2,h,{id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"})]}),U.filter((0,a.createSearch)(T,function(j){var W=j.key,K=j.name,$=j.status,ne=j.antag_names;return K+"|"+$+"|"+ne.join(", ")})).sort(function(j,W){var K=P?1:-1;if(j[w]===void 0||j[w]===null)return K;if(W[w]===void 0||W[w]===null)return-1*K;if(typeof j[w]=="number")return(j[w]-W[w])*K;var $=j[w],ne=W[w];return w==="antag_names"&&($=j[w].join(", "),ne=W[w].join(", ")),$.localeCompare(ne)*K}).map(function(j,W){var K=j.key,$=j.name,ne=j.body_destroyed,Y=j.is_hijacker,le=j.antag_mind_uid,de=j.ckey,oe=j.status,re=j.antag_names;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:ne?$:(0,e.createComponentVNode)(2,o.Button,{color:Y||!$?"red":"",tooltip:Y?"\u0423\u0433\u043E\u043D\u0449\u0438\u043A \u0448\u0430\u0442\u0442\u043B\u0430":"",onClick:function(){function Z(){return N("show_player_panel",{mind_uid:le})}return Z}(),children:$||"??? (\u041D\u0415\u0422 \u0418\u041C\u0415\u041D\u0418)"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("pm",{ckey:de})}return Z}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("follow",{datum_uid:le})}return Z}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("obs",{mind_uid:le})}return Z}(),children:"OBS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("tp",{mind_uid:le})}return Z}(),children:"TP"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:re.join(", ")}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:oe?"red":"grey",children:oe||"\u0416\u0438\u0432"})})]},W)})]})},d=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.objectives,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId2","target_name"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1];return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"obj_name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"target_name",children:"\u0426\u0435\u043B\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"owner_name",children:"\u0425\u043E\u0437\u044F\u0438\u043D"})]}),B.filter((0,a.createSearch)(T,function(R){return R.obj_name+"|"+R.target_name+"|"+(R.status?"success":"incompleted")+"|"+R.owner_name})).sort(function(R,U){var j=P?1:-1;return R[w]===void 0||R[w]===null||w==="target_name"&&R.no_target?j:U[w]===void 0||U[w]===null||w==="target_name"&&U.no_target?-1*j:typeof R[w]=="number"?(R[w]-U[w])*j:R[w].localeCompare(U[w])*j}).map(function(R,U){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:R.obj_desc,onClick:function(){function j(){return N("vv",{uid:R.obj_uid})}return j}(),children:R.obj_name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.no_target?"":R.track.length?R.track.map(function(j,W){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){return N("follow",{datum_uid:j})}return K}(),children:[R.target_name," ",R.track.length>1?"("+(parseInt(W,10)+1)+")":""]},W)}):R.target_name+" (\u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E)"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.status?"green":"grey",children:R.status?"\u0423\u0441\u043F\u0435\u0448\u043D\u043E":"\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){N("obj_owner",{owner_uid:R.owner_uid})}return j}(),children:R.owner_name})})]},U)})]}):"\u041D\u0435\u0442 \u0446\u0435\u043B\u0435\u0439!"},m=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.security,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId3","health"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1],R=function(W){return W.status===2?"red":W.status===1?"orange":W.broken_bone||W.internal_bleeding?"yellow":"grey"},U=function(W){return W.status===2?"\u041C\u0451\u0440\u0442\u0432":W.status===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":W.broken_bone&&W.internal_bleeding?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C, \u0412\u041A":W.broken_bone?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C":W.internal_bleeding?"\u0412\u041A":"\u0416\u0438\u0432"};return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"role",children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"antag",children:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"health",children:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435"})]}),B.filter((0,a.createSearch)(T,function(j){return j.name+"|"+j.role+"|"+U(j)+"|"+j.antag})).sort(function(j,W){var K=P?1:-1;return j[w]===void 0||j[w]===null?K:W[w]===void 0||W[w]===null?-1*K:typeof j[w]=="number"?(j[w]-W[w])*K:j[w].localeCompare(W[w])*K}).map(function(j,W){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){return N("show_player_panel",{mind_uid:j.mind_uid})}return K}(),children:j.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:j.role}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:R(j),children:U(j)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:j.antag?(0,e.createComponentVNode)(2,o.Button,{textColor:"red",translucent:!0,onClick:function(){function K(){N("tp",{mind_uid:j.mind_uid})}return K}(),children:j.antag}):""}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,value:j.health/j.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:j.health})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("pm",{ckey:j.ckey})}return K}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("follow",{datum_uid:j.mind_uid})}return K}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("obs",{mind_uid:j.mind_uid})}return K}(),children:"OBS"})]})]},W)})]}):"\u041D\u0435\u0442\u0443 \u0421\u0411!"},i=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.high_value_items,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId4","person"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1];return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"person",children:"\u041D\u043E\u0441\u0438\u0442\u0435\u043B\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"loc",children:"\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"admin_z",children:"\u0410\u0434\u043C\u0438\u043D\u0441\u043A\u0438\u0439 Z-\u0443\u0440\u043E\u0432\u0435\u043D\u044C"})]}),B.filter((0,a.createSearch)(T,function(R){return R.name+"|"+R.loc})).sort(function(R,U){var j=P?1:-1;return R[w]===void 0||R[w]===null?j:U[w]===void 0||U[w]===null?-1*j:typeof R[w]=="number"?(R[w]-U[w])*j:R[w].localeCompare(U[w])*j}).map(function(R,U){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:R.obj_desc,translucent:R.admin_z,onClick:function(){function j(){return N("vv",{uid:R.uid})}return j}(),children:R.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.admin_z?"grey":"",children:R.person})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.admin_z?"grey":"",children:R.loc})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:R.admin_z?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){N("follow",{datum_uid:R.uid})}return j}(),children:"FLW"})})]},U)})]}):"\u041D\u0435\u0442 \u043E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432!"},h=function(v,s){var g=v.id,N=v.sort_group,x=N===void 0?"sortId":N,B=v.default_sort,L=B===void 0?"antag_names":B,T=v.children,A=(0,t.useLocalState)(s,x,L),E=A[0],w=A[1],O=(0,t.useLocalState)(s,"sortOrder",!0),M=O[0],P=O[1];return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:E!==g&&"transparent",width:"100%",onClick:function(){function F(){E===g?P(!M):(w(g),P(!0))}return F}(),children:[T,E===g&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},79571:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardSLSlots=r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.AgentCard=function(){function C(c,u){var f=(0,t.useLocalState)(u,"tabIndex",0),l=f[0],d=f[1],m=function(){function i(h){switch(h){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);default:return(0,e.createComponentVNode)(2,y)}}return i}();return(0,e.createComponentVNode)(2,p.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===0,onClick:function(){function i(){return d(0)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===1,onClick:function(){function i(){return d(1)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===2,onClick:function(){function i(){return d(2)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),m(l)]})})})}return C}(),y=r.AgentCardInfo=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.registered_name,i=d.sex,h=d.age,V=d.assignment,v=d.associated_account_number,s=d.blood_type,g=d.dna_hash,N=d.fingerprint_hash,x=d.photo,B=d.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Button,{content:m||"[UNSET]",onClick:function(){function L(){return l("change_name")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,o.Button,{iconRight:!1,content:i||"[UNSET]",onClick:function(){function L(){return l("change_sex")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"[UNSET]",onClick:function(){function L(){return l("change_age")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Button,{content:V||"[UNSET]",onClick:function(){function L(){return l("change_occupation")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"[UNSET]",onClick:function(){function L(){return l("change_fingerprints")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,o.Button,{content:s||"[UNSET]",onClick:function(){function L(){return l("change_blood_type")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"[UNSET]",onClick:function(){function L(){return l("change_dna_hash")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"[UNSET]",onClick:function(){function L(){return l("change_money_account")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,o.Button,{content:x?"Update":"[UNSET]",onClick:function(){function L(){return l("change_photo")}return L}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Card Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,o.Button,{content:"Delete Card Info",onClick:function(){function L(){return l("delete_info")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,o.Button,{content:"Reset Access",onClick:function(){function L(){return l("clear_access")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,o.Button,{content:B?"Untrackable":"Trackable",onClick:function(){function L(){return l("change_ai_tracking")}return L}()})})]})})],4)}return C}(),S=r.AgentCardAppearances=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:m.map(function(i){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:i,vertical:!0,asset:!0,style:{margin:"1px"},image:i,imageAsset:"id_card64x64",onclick:function(){function h(){return l("change_appearance_new",{new_appearance:i})}return h}()},i)})})}return C}(),b=r.AgentCardSLSlots=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.saved_info;return(0,e.createComponentVNode)(2,o.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:m.map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.registered_name?i.registered_name+", "+i.assignment:"Slot "+i.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function h(){return l("clear_slot",{slot:i.id})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function h(){return l("save_slot",{slot:i.id})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!i.registered_name,onClick:function(){function h(){return l("load_slot",{slot:i.id})}return h}()})],4)},i.id)})})})}return C}()},56793:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},k=r.AiAirlock=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=p[u.power.main]||p[0],l=p[u.power.backup]||p[0],d=p[u.shock]||p[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!u.power.main,content:"Disrupt",onClick:function(){function m(){return c("disrupt-main")}return m}()}),children:[u.power.main?"Online":"Offline"," ",!u.wires.main_power&&"[Wires have been cut!]"||u.power.main_timeleft>0&&"["+u.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:!u.power.backup,content:"Disrupt",onClick:function(){function m(){return c("disrupt-backup")}return m}()}),children:[u.power.backup?"Online":"Offline"," ",!u.wires.backup_power&&"[Wires have been cut!]"||u.power.backup_timeleft>0&&"["+u.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(u.wires.shock&&u.shock!==2),content:"Restore",onClick:function(){function m(){return c("shock-restore")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!u.wires.shock,content:"Temporary",onClick:function(){function m(){return c("shock-temp")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!u.wires.shock||u.shock===0,content:"Permanent",onClick:function(){function m(){return c("shock-perm")}return m}()})],4),children:[u.shock===2?"Safe":"Electrified"," ",!u.wires.shock&&"[Wires have been cut!]"||u.shock_timeleft>0&&"["+u.shock_timeleft+"s]"||u.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:u.id_scanner?"power-off":"times",content:u.id_scanner?"Enabled":"Disabled",selected:u.id_scanner,disabled:!u.wires.id_scanner,onClick:function(){function m(){return c("idscan-toggle")}return m}()}),children:!u.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:u.emergency?"power-off":"times",content:u.emergency?"Enabled":"Disabled",selected:u.emergency,onClick:function(){function m(){return c("emergency-toggle")}return m}()})}),(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:u.locked?"lock":"unlock",content:u.locked?"Lowered":"Raised",selected:u.locked,disabled:!u.wires.bolts,onClick:function(){function m(){return c("bolt-toggle")}return m}()}),children:!u.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:u.lights?"power-off":"times",content:u.lights?"Enabled":"Disabled",selected:u.lights,disabled:!u.wires.lights,onClick:function(){function m(){return c("light-toggle")}return m}()}),children:!u.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:u.safe?"power-off":"times",content:u.safe?"Enabled":"Disabled",selected:u.safe,disabled:!u.wires.safe,onClick:function(){function m(){return c("safe-toggle")}return m}()}),children:!u.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:u.speed?"power-off":"times",content:u.speed?"Enabled":"Disabled",selected:u.speed,disabled:!u.wires.timing,onClick:function(){function m(){return c("speed-toggle")}return m}()}),children:!u.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:u.opened?"sign-out-alt":"sign-in-alt",content:u.opened?"Open":"Closed",selected:u.opened,disabled:u.locked||u.welded,onClick:function(){function m(){return c("open-close")}return m}()}),children:!!(u.locked||u.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),u.locked?"bolted":"",u.locked&&u.welded?" and ":"",u.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),k=r.AirAlarm=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:s?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!s&&(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)],4)]})})}return d}(),y=function(m){return m===0?"green":m===1?"orange":"red"},S=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.air,g=v.mode,N=v.atmos_alarm,x=v.locked,B=v.alarmActivated,L=v.rcon,T=v.target_temp,A;return s.danger.overall===0?N===0?A="Optimal":A="Caution: Atmos alert in area":s.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.pressure})," kPa",!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function E(){return V("mode",{mode:g===3?1:3})}return E}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.oxygen/100,fractionDigits:"1",color:y(s.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.nitrogen/100,fractionDigits:"1",color:y(s.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.co2/100,fractionDigits:"1",color:y(s.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.plasma/100,fractionDigits:"1",color:y(s.danger.plasma)})}),s.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.n2o/100,fractionDigits:"1",color:y(s.danger.n2o)})}),s.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.other/100,fractionDigits:"1",color:y(s.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function E(){return V("temperature")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:s.thermostat_state?"On":"Off",selected:s.thermostat_state,icon:"power-off",onClick:function(){function E(){return V("thermostat_state")}return E}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.overall),children:[A,!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function E(){return V(B?"atmos_reset":"atmos_alarm")}return E}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function E(){return V("set_rcon",{rcon:1})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function E(){return V("set_rcon",{rcon:2})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function E(){return V("set_rcon",{rcon:3})}return E}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},b=function(m,i){var h=(0,a.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===0,onClick:function(){function s(){return v(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===1,onClick:function(){function s(){return v(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===2,onClick:function(){function s(){return v(2)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===3,onClick:function(){function s(){return v(3)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},C=function(m,i){var h=(0,a.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},c=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.vents;return s.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return V("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction==="release"?"Blowing":"Siphoning",icon:g.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return V("command",{cmd:"direction",val:g.direction==="release"?0:1,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function N(){return V("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function N(){return V("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function N(){return V("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function N(){return V("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},u=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.scrubbers;return s.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return V("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return V("command",{cmd:"scrubbing",val:g.scrubbing===0?1:0,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return V("command",{cmd:"widenet",val:g.widenet===0?1:0,id_tag:g.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function N(){return V("command",{cmd:"co2_scrub",val:g.filter_co2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function N(){return V("command",{cmd:"tox_scrub",val:g.filter_toxins===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function N(){return V("command",{cmd:"n2o_scrub",val:g.filter_n2o===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function N(){return V("command",{cmd:"o2_scrub",val:g.filter_o2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function N(){return V("command",{cmd:"n2_scrub",val:g.filter_n2===0?1:0,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.modes,g=v.presets,N=v.emagged,x=v.mode,B=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:s.map(function(L){return(!L.emagonly||L.emagonly&&!!N)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===x,onClick:function(){function T(){return V("mode",{mode:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function T(){return V("preset",{preset:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},l=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),s.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:N.selected===-1?"Off":N.selected,onClick:function(){function x(){return V("command",{cmd:"set_threshold",env:N.env,var:N.val})}return x}()})},N.val)})]},g.name)})]})})}},12333:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AirlockAccessController=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.exterior_status,f=c.interior_status,l=c.processing,d,m;return u==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function i(){return C("force_ext")}return i}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function i(){return C("cycle_ext_door")}return i}()}),f==="open"?m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:f==="open"?"red":l?"yellow":null,onClick:function(){function i(){return C("force_int")}return i}()}):m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function i(){return C("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:u==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,m]})})]})})}return k}()},28736:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49148),k=1,y=2,S=4,b=8,C=r.AirlockElectronics=function(){function f(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)]})})})}return f}(),c=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:V&S?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:V&y?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:V&b?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:b})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:V&k?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:k})}return v}()})})]})]})})},u=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.selected_accesses,v=h.one_access,s=h.regions;return(0,e.createComponentVNode)(2,p.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function g(){return i("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return i("set_one_access",{access:"all"})}return g}()})],4),accesses:s,selectedList:V,accessMod:function(){function g(N){return i("set",{access:N})}return g}(),grantAll:function(){function g(){return i("grant_all")}return g}(),denyAll:function(){function g(){return i("clear_all")}return g}(),grantDep:function(){function g(N){return i("grant_region",{region:N})}return g}(),denyDep:function(){function g(N){return i("deny_region",{region:N})}return g}()})}},47365:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(70611),o=n(72253),p=n(36036),k=n(98595),y=function(c){return c[c.Increment=1]="Increment",c[c.Decrement=-1]="Decrement",c}(y||{}),S=r.AlertModal=function(){function c(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.autofocus,h=m.buttons,V=h===void 0?[]:h,v=m.large_buttons,s=m.message,g=s===void 0?"":s,N=m.timeout,x=m.title,B=(0,o.useLocalState)(f,"selected",0),L=B[0],T=B[1],A=V.some(function(F){return F.length>10}),E=A&&v?20:15,w=120+(A?E*V.length:0)+(g.length>40?Math.ceil(g.length/3):0)+(g.length&&v?5:0),O=345+(V.length>2?55:0),M=function(){function F(R){switch(R.key){case t.KEY.Space:case t.KEY.Enter:d("choose",{choice:V[L]});return;case t.KEY.Escape:d("cancel");return;case t.KEY.Left:R.preventDefault(),P(y.Decrement);return;case t.KEY.Tab:case t.KEY.Right:R.preventDefault(),P(y.Increment);return}}return F}(),P=function(){function F(R){var U=(L+R+V.length)%V.length;T(U)}return F}();return(0,e.createComponentVNode)(2,k.Window,{title:x,height:w,width:O,children:[!!N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:M,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,p.Box,{color:"label",overflow:"hidden",children:g})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:[!!i&&(0,e.createComponentVNode)(2,p.Autofocus),A?(0,e.createComponentVNode)(2,C,{selected:L}):(0,e.createComponentVNode)(2,b,{selected:L})]})]})})})]})}return c}(),b=function(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.buttons,h=i===void 0?[]:i,V=m.large_buttons,v=m.swapped_buttons,s=u.selected;return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,justify:"space-around",reverse:!v,children:h.map(function(g,N){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:V?1:void 0,children:(0,e.createComponentVNode)(2,p.Button,{fluid:!!V,minWidth:5,onClick:function(){function x(){return d("choose",{choice:g})}return x}(),overflowX:"hidden",px:2,py:V?.5:0,selected:s===N,textAlign:"center",children:V?g.toUpperCase():g})},N)})})},C=function(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.buttons,h=i===void 0?[]:i,V=m.large_buttons,v=m.swapped_buttons,s=u.selected;return(0,e.createComponentVNode)(2,p.Stack,{align:"center",fill:!0,justify:"space-around",reverse:!v,vertical:!0,children:h.map(function(g,N){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,width:V?"100%":void 0,m:0,children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,minWidth:20,onClick:function(){function x(){return d("choose",{choice:g})}return x}(),overflowX:"hidden",px:2,py:V?.5:0,selected:s===N,textAlign:"center",children:V?g.toUpperCase():g})},N)})})}},71824:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AppearanceChanger=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.change_race,l=u.species,d=u.specimen,m=u.change_gender,i=u.gender,h=u.has_gender,V=u.change_eye_color,v=u.change_skin_tone,s=u.change_skin_color,g=u.change_head_accessory_color,N=u.change_hair_color,x=u.change_secondary_hair_color,B=u.change_facial_hair_color,L=u.change_secondary_facial_hair_color,T=u.change_head_marking_color,A=u.change_body_marking_color,E=u.change_tail_marking_color,w=u.change_head_accessory,O=u.head_accessory_styles,M=u.head_accessory_style,P=u.change_hair,F=u.hair_styles,R=u.hair_style,U=u.change_hair_gradient,j=u.change_facial_hair,W=u.facial_hair_styles,K=u.facial_hair_style,$=u.change_head_markings,ne=u.head_marking_styles,Y=u.head_marking_style,le=u.change_body_markings,de=u.body_marking_styles,oe=u.body_marking_style,re=u.change_tail_markings,Z=u.tail_marking_styles,ae=u.tail_marking_style,J=u.change_body_accessory,X=u.body_accessory_styles,Q=u.body_accessory_style,q=u.change_alt_head,te=u.alt_head_styles,fe=u.alt_head_style,ye=!1;return(V||v||s||g||N||x||B||L||T||A||E)&&(ye=!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:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.specimen,selected:pe.specimen===d,onClick:function(){function Le(){return c("race",{race:pe.specimen})}return Le}()},pe.specimen)})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:i==="male",onClick:function(){function pe(){return c("gender",{gender:"male"})}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:i==="female",onClick:function(){function pe(){return c("gender",{gender:"female"})}return pe}()}),!h&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:i==="plural",onClick:function(){function pe(){return c("gender",{gender:"plural"})}return pe}()})]}),!!ye&&(0,e.createComponentVNode)(2,k),!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.headaccessorystyle,selected:pe.headaccessorystyle===M,onClick:function(){function Le(){return c("head_accessory",{head_accessory:pe.headaccessorystyle})}return Le}()},pe.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:F.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.hairstyle,selected:pe.hairstyle===R,onClick:function(){function Le(){return c("hair",{hair:pe.hairstyle})}return Le}()},pe.hairstyle)})}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function pe(){return c("hair_gradient")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function pe(){return c("hair_gradient_offset")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function pe(){return c("hair_gradient_colour")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function pe(){return c("hair_gradient_alpha")}return pe}()})]}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.facialhairstyle,selected:pe.facialhairstyle===K,onClick:function(){function Le(){return c("facial_hair",{facial_hair:pe.facialhairstyle})}return Le}()},pe.facialhairstyle)})}),!!$&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:ne.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.headmarkingstyle,selected:pe.headmarkingstyle===Y,onClick:function(){function Le(){return c("head_marking",{head_marking:pe.headmarkingstyle})}return Le}()},pe.headmarkingstyle)})}),!!le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:de.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.bodymarkingstyle,selected:pe.bodymarkingstyle===oe,onClick:function(){function Le(){return c("body_marking",{body_marking:pe.bodymarkingstyle})}return Le}()},pe.bodymarkingstyle)})}),!!re&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Z.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.tailmarkingstyle,selected:pe.tailmarkingstyle===ae,onClick:function(){function Le(){return c("tail_marking",{tail_marking:pe.tailmarkingstyle})}return Le}()},pe.tailmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:X.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.bodyaccessorystyle,selected:pe.bodyaccessorystyle===Q,onClick:function(){function Le(){return c("body_accessory",{body_accessory:pe.bodyaccessorystyle})}return Le}()},pe.bodyaccessorystyle)})}),!!q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:te.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.altheadstyle,selected:pe.altheadstyle===fe,onClick:function(){function Le(){return c("alt_head",{alt_head:pe.altheadstyle})}return Le}()},pe.altheadstyle)})})]})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=[{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:f.map(function(l){return!!u[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return c(l.action)}return d}()},l.key)})})}},72285:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosAlertConsole=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.priority||[],f=c.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),u.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"bad",onClick:function(){function d(){return C("clear",{zone:l})}return d}()}),2,null,l)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"average",onClick:function(){function d(){return C("clear",{zone:l})}return d}()}),2,null,l)})],0)})})})}return k}()},65805:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),p=n(98595),k=function(u){if(u===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(u===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(u===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(u){if(u===0)return"green";if(u===1)return"orange";if(u===2)return"red"},S=r.AtmosControl=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=(0,a.useLocalState)(f,"tabIndex",0),h=i[0],V=i[1],v=function(){function s(g){switch(g){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,C);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,p.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:h===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===0,onClick:function(){function s(){return V(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function s(){return V(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(h)]})})})}return c}(),b=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.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(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:h.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:k(h.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function V(){return d("open_alarm",{aref:h.ref})}return V}()})})]},h.name)})]})})},C=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.alarms,h=m.stationLevelNum,V=m.stationLevelName,v=(0,a.useLocalState)(f,"zoom",1),s=v[0],g=v[1],N=(0,a.useLocalState)(f,"z_current",h[0]),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function L(T){return g(T)}return L}(),zLevels:h,zNames:V,z_current:x,setZCurrent:B,children:i.map(function(L){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:L.x,y:L.y,z:L.z,z_current:x,zoom:s,icon:"circle",tooltip:L.name,color:y(L.danger),onClick:function(){function T(){return d("open_alarm",{aref:L.ref})}return T}()},L.ref)})})})}},87816:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosFilter=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.pressure,l=c.max_pressure,d=c.filter_type,m=c.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){function i(){return C("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:f===0,width:2.2,onClick:function(){function i(){return C("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:f,onDrag:function(){function i(h,V){return C("custom_pressure",{pressure:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function i(){return C("max_pressure")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{selected:i.gas_type===d,content:i.label,onClick:function(){function h(){return C("set_filter",{filter:i.gas_type})}return h}()},i.label)})})]})})})})}return k}()},52977:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosMixer=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.on,l=u.pressure,d=u.max_pressure,m=u.node1_concentration,i=u.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:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function h(){return c("power")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function h(){return c("min_pressure")}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function h(V,v){return c("custom_pressure",{pressure:v})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function h(){return c("max_pressure")}return h}()})]}),(0,e.createComponentVNode)(2,k,{node_name:"Node 1",node_ref:m}),(0,e.createComponentVNode)(2,k,{node_name:"Node 2",node_ref:i})]})})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=S.node_name,l=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return c("set_node",{node_name:f,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(m,i){return c("set_node",{node_name:f,concentration:i/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return c("set_node",{node_name:f,concentration:(l+10)/100})}return d}()})]})}},11748:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosPump=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.rate,l=c.max_rate,d=c.gas_unit,m=c.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){function i(){return C("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:f===0,width:2.2,onClick:function(){function i(){return C("min_rate")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:l,value:f,onDrag:function(){function i(h,V){return C("custom_rate",{rate:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function i(){return C("max_rate")}return i}()})]})]})})})})}return k}()},76511:function(I,r,n){"use strict";r.__esModule=!0,r.AutoDoc=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(39473),k=r.AutoDoc=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.HasTray,l=u.TguiIcons,d=u.occupant,m=u.isHealing,i=u.fixtimer,h=u.healtimer,V=(0,a.useLocalState)(b,"ChoosePart","chest"),v=V[0],s=V[1];return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,p.FlexItem,{basis:"30%",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l.human,style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l[v],style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})]}),(0,e.createComponentVNode)(2,p.FlexItem,{basis:"70%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",buttons:(0,e.createFragment)([Object.keys(l).map(function(g){return g!=="human"&&(0,e.createComponentVNode)(2,t.Button,{content:g,selected:g===v,onClick:function(){function N(){return s(g)}return N}(),z:!0},g)}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:f?"Eject Tray":"Reject Tray",locked:m,onClick:function(){function g(){return c("ChangeTrayState")}return g}()})],0),children:(0,e.createComponentVNode)(2,t.Box,{children:[!!(d[v]&&d[v].extOrgan)&&d[v].extOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createVNode)(1,"br"),g.open?"opened":"",g.broken?"broken":"",!!g.broken&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"fracture"})}return N}()}),(0,e.createVNode)(1,"br")],4),g.internalBleeding?"bleeding":"",!!g.internalBleeding&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"bleeding"})}return N}()}),(0,e.createVNode)(1,"br")],4),(0,e.createTextVNode)("Internals:"),(0,e.createComponentVNode)(2,t.Button,{content:"Complete",style:{"margin-left":"10px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"completeInternal"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.totalLoss:"",(0,e.createVNode)(1,"br")],0,g.name)}),!!(d[v]&&d[v].intOrgan)&&d[v].intOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createComponentVNode)(2,t.Button,{content:"Remove",style:{"margin-left":"1.5rem"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"remove"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.damage:"",!!g.totalLoss&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Heal",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"damage"})}return N}()}),(0,e.createVNode)(1,"br")],4)],0,g.name)}),!!d.TotalBruteBurn&&(0,e.createFragment)([(0,e.createTextVNode)("Total external damage is "),d.TotalBruteBurn,(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Start Healing",onClick:function(){function g(){return c("HealBruteBurn")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Reattach externals",onClick:function(){function g(){return c("CompleteExternal")}return g}()})],0),(0,e.createVNode)(1,"br"),!!i&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Fixing organ: "),i],0),!!h&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Healing external damage: "),h],0)]})})})]})})})}return y}()},59179:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(25328),S=function(c,u,f,l){return c.requirements===null?!0:!(c.requirements.metal*l>u||c.requirements.glass*l>f)},b=r.Autolathe=function(){function C(c,u){var f=(0,o.useBackend)(u),l=f.act,d=f.data,m=d.total_amount,i=d.max_amount,h=d.metal_amount,V=d.glass_amount,v=d.busyname,s=d.busyamt,g=d.showhacked,N=d.buildQueue,x=d.buildQueueLen,B=d.recipes,L=d.categories,T=(0,o.useSharedState)(u,"category",0),A=T[0],E=T[1];A===0&&(A="Tools");var w=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(u,"search_text",""),F=P[0],R=P[1],U=(0,y.createSearch)(F,function($){return $.name}),j="";x>0&&(j=N.map(function($,ne){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"times",color:"transparent",content:N[ne][0],onClick:function(){function Y(){return l("remove_from_queue",{remove_from_queue:N.indexOf($)+1})}return Y}()},$)},ne)}));var W=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||F)&&(d.showhacked||!$.hacked)}),F&&(0,t.filter)(U),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(B),K="Build";return F?K="Results for: '"+F+"':":A&&(K="Build ("+A+")"),(0,e.createComponentVNode)(2,k.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function $(ne){return E(ne)}return $}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(ne,Y){return R(Y)}return $}(),mb:1}),W.map(function($){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,p.DmIcon,{icon:$.icon,icon_state:$.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===1,disabled:!S($,d.metal_amount,d.glass_amount,1),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:1})}return ne}(),children:(0,y.toTitleCase)($.name)}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===10,disabled:!S($,d.metal_amount,d.glass_amount,10),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:10})}return ne}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===25,disabled:!S($,d.metal_amount,d.glass_amount,25),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:25})}return ne}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===$.max_multiplier,disabled:!S($,d.metal_amount,d.glass_amount,$.max_multiplier),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:$.max_multiplier})}return ne}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(ne){return(0,y.toTitleCase)(ne)+": "+$.requirements[ne]}).join(", ")||(0,e.createComponentVNode)(2,p.Box,{children:"No resources required."})]},$.ref)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,p.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Metal",children:w}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Total",children:M}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,p.Section,{title:"Building",children:(0,e.createComponentVNode)(2,p.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,p.Section,{title:"Build Queue",height:23.7,children:[j,(0,e.createComponentVNode)(2,p.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function $(){return l("clear_queue")}return $}()})]})]})]})})})}return C}()},64273:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(62411),k=r.Biogenerator=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.data,d=f.config,m=l.container,i=l.processing,h=d.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Operating,{operating:i,name:h}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return C}(),y=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.biomass,i=d.container,h=d.container_curr_reagents,V=d.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:m}),(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:"}),i?(0,e.createComponentVNode)(2,t.ProgressBar,{value:h,maxValue:V,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:h+" / "+V+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.has_plants,i=d.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:!m,tooltip:m?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function h(){return l("activate")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!i,tooltip:i?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function h(){return l("detach_container")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!m,tooltip:m?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function h(){return l("eject_plants")}return h}()})})]})})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.biomass,i=d.product_list,h=d.container,V=(0,a.useSharedState)(u,"vendAmount",1),v=V[0],s=V[1],g=Object.entries(i).map(function(N,x){var B=Object.entries(N[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:N[0],open:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:L.needs_container&&!h?(0,e.createComponentVNode)(2,t.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438"}):(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:m0?Math.floor(A/l):0,M=f?"@?%%!\u2116@"+l:l,P=A>=l,F=d-d%5+(d%5>0?5:0);return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:B}),(0,e.createComponentVNode)(2,t.ProgressBar,{color:w===0?"bad":w<100?"average":"good",value:T,maxValue:L,mt:1,mb:2,children:[w<=100?w:100," %"]}),(0,e.createComponentVNode)(2,t.Box,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.createComponentVNode)(2,t.Box,{color:A?P?"good":"average":"bad",as:"span",children:Math.floor(A)}),(0,e.createComponentVNode)(2,t.Button,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+M+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+F+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!P||d>0,onClick:function(){function R(){return c("probe",{rift_id:x})}return R}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:E?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",disabled:E||w<100,onClick:function(){function R(){return c("reward",{rift_id:x})}return R}(),mt:1.4})]})]})}return g}(),v=function(){function g(N){var x=N.servName,B=N.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(L,T){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},T)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return g}(),s=function(){function g(N){var x=N.scannerId,B=N.scannerName,L=N.scanStatus,T=N.canSwitch,A=N.switching,E=p[L],w=function(){function M(){if(E==="OFF")return[" ","silver"];if(E==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(E==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(E==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]}return M}(),O=w();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[A?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):T?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:E==="OFF"?"bad":"good",onClick:function(){function M(){return c("toggle_scanner",{scanner_id:x})}return M}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:E==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),E!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m&&m.map(function(g){return V(g)}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h&&h.map(function(g){return s(g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i&&i.map(function(g){return v(g)})})})]})})}return y}()},27629:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49968),k=r.BluespaceTap=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.product||[],l=u.desiredLevel,d=u.inputLevel,m=u.points,i=u.totalPoints,h=u.powerUse,V=u.availablePower,v=u.maxLevel,s=u.emagged,g=u.safeLevels,N=u.nextLevelPower,x=l>d&&"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:[!!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(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:d}),(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 B(){return c("set",{set_level:0})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function B(){return c("set",{set_level:d})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function B(){return c("decrease")}return B}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:x,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function B(L,T){return c("set",{set_level:T})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function B(){return c("increase")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return c("set",{set_level:v})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,p.formatPower)(h)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,p.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,p.formatPower)(V)})]})})}),(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:m}),(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:f.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=m,onClick:function(){function L(){return c("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return y}()},33758:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),p=n(36036),k=n(98595),y=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],S=[["hasBorer","bad","\u0412 \u043B\u043E\u0431\u043D\u043E\u0439 \u0434\u043E\u043B\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u043A\u0440\u0443\u043F\u043D\u043E\u0435 \u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0437\u043B\u043E\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u0442\u0441\u044F \u0445\u0438\u0440\u0443\u0440\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435."],["hasVirus","bad","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u0432\u0438\u0440\u0443\u0441 \u0432 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430."],["blind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430 \u043A\u0430\u0442\u0430\u0440\u0430\u043A\u0442\u0430."],["colourblind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043D\u0430\u0440\u0443\u0448\u0435\u043D\u0438\u044F \u0432 \u0440\u0430\u0431\u043E\u0442\u0435 \u0444\u043E\u0442\u043E\u0440\u0435\u0446\u0435\u043F\u0442\u043E\u0440\u043E\u0432"],["nearsighted","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u0441\u0435\u0442\u0447\u0430\u0442\u043A\u0438."]],b=[["\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435","oxyLoss"],["\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043C\u043E\u0437\u0433\u0430","brainLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435","radLoss"],["\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u0413\u0435\u043D\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","cloneLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"],["\u041F\u0430\u0440\u0430\u043B\u0438\u0447 \u0442\u0435\u043B\u0430","paralysis"]],C={average:[.25,.5],bad:[.5,1/0]},c=function(x,B){for(var L=[],T=0;T0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,p.Box,{children:L},L)],0)},null):null},f=function(x){if(x>100){if(x<300)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(x<400)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(x<500)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(x<700)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(x<800)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(x<900)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(x>=900)return"\u0421\u0435\u043F\u0441\u0438\u0441"}return""},l=r.BodyScanner=function(){function N(x,B){var L=(0,o.useBackend)(B),T=L.data,A=T.occupied,E=T.occupant,w=E===void 0?{}:E,O=A?(0,e.createComponentVNode)(2,d,{occupant:w}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,k.Window,{width:700,height:600,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0439 \u0441\u043A\u0430\u043D\u0435\u0440",children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:O})})}return N}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,m,{occupant:B}),(0,e.createComponentVNode)(2,i,{occupant:B}),(0,e.createComponentVNode)(2,h,{occupant:B}),(0,e.createComponentVNode)(2,v,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,s,{organs:B.intOrgan})]})},m=function(x,B){var L=(0,o.useBackend)(B),T=L.act,A=L.data,E=A.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Button,{icon:"print",onClick:function(){function w(){return T("print_p")}return w}(),children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442"}),(0,e.createComponentVNode)(2,p.Button,{icon:"print",onClick:function(){function w(){return T("insurance")}return w}(),children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.createComponentVNode)(2,p.Button,{icon:"user-slash",onClick:function(){function w(){return T("eject_id")}return w}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.createComponentVNode)(2,p.Button,{icon:"user-slash",onClick:function(){function w(){return T("ejectify")}return w}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})],4),children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u044F",children:E.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:E.maxHealth,value:E.health/E.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:y[E.stat][0],children:y[E.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(E.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(E.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u043F\u043B\u0430\u043D\u0442\u044B",children:E.implant_len?(0,e.createComponentVNode)(2,p.Box,{children:E.implant.map(function(w){return w.name}).join(", ")}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442"})})]})})},i=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:S.map(function(L,T){if(B[L[0]])return(0,e.createComponentVNode)(2,p.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041D\u0438\u043A\u0430\u043A\u0438\u0445 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0439 \u043E\u0442 \u043D\u043E\u0440\u043C\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E."})})},h=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,p.Table,{children:c(b,function(L,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:(0,e.createComponentVNode)(2,V,{value:B[L[1]],marginBottom:A100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:C,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,p.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u041E\u0436\u043E\u0433\u0438",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:u([!!B.internalBleeding&&"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435",!!B.burnWound&&"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043E\u0436\u043E\u0433\u0438 \u0442\u043A\u0430\u043D\u0435\u0439",!!B.lungRuptured&&"\u041F\u0440\u043E\u0431\u0438\u0442\u043E \u043B\u0451\u0433\u043A\u043E\u0435",!!B.status.broken&&B.status.broken,f(B.germ_level),!!B.open&&"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0439 \u0440\u0430\u0437\u0440\u0435\u0437"])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:[u([!!B.status.splinted&&(0,e.createComponentVNode)(2,p.Box,{color:"good",children:"\u041D\u0430\u043B\u043E\u0436\u0435\u043D\u0430 \u0448\u0438\u043D\u0430"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!B.status.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})]),u(B.shrapnel.map(function(T){return T.known?T.name:"\u0418\u043D\u043E\u0440\u043E\u0434\u043D\u043E\u0435 \u0442\u0435\u043B\u043E"}))]})]})]},L)})]})})},s=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,p.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041D/\u0414"})}):(0,e.createComponentVNode)(2,p.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,p.Table,{children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",children:"\u0422\u0440\u0430\u0432\u043C\u044B"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:C,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:u([f(B.germ_level)])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:u([B.robotic===1&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),B.robotic===2&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!B.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},42570:function(I,r,n){"use strict";r.__esModule=!0,r.BorgPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BorgPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.borg||{},f=c.cell||{},l=f.charge/f.maxcharge,d=c.channels||[],m=c.modules||[],i=c.upgrades||[],h=c.ais||[],V=c.laws||[];return(0,e.createComponentVNode)(2,o.Window,{title:"Borg Panel",width:700,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function v(){return C("rename")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:u.emagged?"check-square-o":"square-o",content:"Emagged",selected:u.emagged,onClick:function(){function v(){return C("toggle_emagged")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:u.lockdown,onClick:function(){function v(){return C("toggle_lockdown")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:u.scrambledcodes,onClick:function(){function v(){return C("toggle_scrambledcodes")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function v(){return C("reset_module")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[f.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,children:f.charge+" / "+f.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function v(){return C("set_charge")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function v(){return C("change_cell")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function v(){return C("remove_cell")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function s(){return C("toggle_radio",{channel:v.name})}return s}()},v.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:u.active_module===v.name?"check-square-o":"square-o",content:v.name+" module",selected:u.active_module===v.name,onClick:function(){function s(){return C("setmodule",{module:v.name})}return s}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function s(){return C("toggle_upgrade",{upgrade:v.type})}return s}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:h.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.connected?"check-square-o":"square-o",content:v.name,selected:v.connected,onClick:function(){function s(){return C("slavetoai",{slavetoai:v.ref})}return s}()},v.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:u.lawmanager,onClick:function(){function v(){return C("lawmanager")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:u.lawupdate,onClick:function(){function v(){return C("toggle_lawupdate")}return v}()})],4),children:V.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:v},v)})})]})})}return k}()},20464:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BotClean=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.locked,f=c.noaccess,l=c.maintpanel,d=c.on,m=c.autopatrol,i=c.canhack,h=c.emagged,V=c.remote_disabled,v=c.painame,s=c.cleanblood;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.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:f,onClick:function(){function g(){return C("power")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:f,onClick:function(){function g(){return C("autopatrol")}return g}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:h?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:h?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:f,color:"bad",onClick:function(){function g(){return C("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!V,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:f,onClick:function(){function g(){return C("disableremote")}return g}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0443\u0431\u043E\u0440\u043A\u0438",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"\u0423\u0431\u0438\u0440\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C",disabled:f,onClick:function(){function g(){return C("blood")}return g}()})}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:f,onClick:function(){function g(){return C("ejectpai")}return g}()})})]})})}return k}()},74439:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BotSecurity=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.locked,f=c.noaccess,l=c.maintpanel,d=c.on,m=c.autopatrol,i=c.canhack,h=c.emagged,V=c.remote_disabled,v=c.painame,s=c.check_id,g=c.check_weapons,N=c.check_warrant,x=c.arrest_mode,B=c.arrest_declare;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.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:f,onClick:function(){function L(){return C("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:f,onClick:function(){function L(){return C("autopatrol")}return L}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:h?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:h?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:f,color:"bad",onClick:function(){function L(){return C("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!V,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:f,onClick:function(){function L(){return C("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0417\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0446\u0435\u043B\u0438",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"\u041D\u0435\u043E\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0435 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u0438",disabled:f,onClick:function(){function L(){return C("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"\u0418\u043C\u0435\u044E\u0449\u0438\u0435 \u043D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435",disabled:f,onClick:function(){function L(){return C("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"\u0420\u0430\u0437\u044B\u0441\u043A\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u0438\u043A\u0438",disabled:f,onClick:function(){function L(){return C("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"\u0411\u0435\u0441\u0441\u0440\u043E\u0447\u043D\u043E\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0439 \u0432\u043C\u0435\u0441\u0442\u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",disabled:f,onClick:function(){function L(){return C("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"\u0421\u043E\u043E\u0431\u0449\u0430\u0442\u044C \u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0438 \u043F\u043E \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438",disabled:f,onClick:function(){function L(){return C("arrdeclare")}return L}()})]}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:f,onClick:function(){function L(){return C("ejectpai")}return L}()})})]})})}return k}()},10833:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),p=function(b,C){var c=b.cell,u=(0,o.useBackend)(C),f=u.act,l=c.cell_id,d=c.occupant,m=c.crimes,i=c.brigged_by,h=c.time_left_seconds,V=c.time_set_seconds,v=c.ref,s="";h>0&&(s+=" BrigCells__listRow--active");var g=function(){f("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:s,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(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.TimeDisplay,{totalSeconds:h})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},k=function(b){var C=b.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),C.map(function(c){return(0,e.createComponentVNode)(2,p,{cell:c},c.ref)})]})},y=r.BrigCells=function(){function S(b,C){var c=(0,o.useBackend)(C),u=c.act,f=c.data,l=f.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,k,{cells:l})})})})})}return S}()},45761:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BrigTimer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;c.nameText=c.occupant,c.timing&&(c.prisoner_hasrec?c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.occupant}):c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c.occupant}));var u="pencil-alt";c.prisoner_name&&(c.prisoner_hasrec||(u="exclamation-triangle"));var f=[],l=0;for(l=0;l60||!c.isAllowed,onClick:function(){function d(){return C("start")}return d}()})})]})})]})})}return k}()},26300:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsoleListContent=r.CameraConsole=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),p=n(25328),k=n(72253),y=n(36036),S=n(98595);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var b=function(m,i){var h,V;if(!i)return[];var v=m.findIndex(function(s){return s.name===i.name});return[(h=m[v-1])==null?void 0:h.name,(V=m[v+1])==null?void 0:V.name]},C=function(m,i){i===void 0&&(i="");var h=(0,p.createSearch)(i,function(V){return V.name});return(0,t.flow)([(0,a.filter)(function(V){return V==null?void 0:V.name}),i&&(0,a.filter)(h),(0,a.sortBy)(function(V){return V.name})])(m)},c=r.CameraConsole=function(){function d(m,i){var h=(0,k.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1],s=function(){function g(N){switch(N){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return g}();return(0,e.createComponentVNode)(2,S.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,y.Tabs,{children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:V===0,onClick:function(){function g(){return v(0)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:V===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," List"]},"List")]}),s(V)]})})})}return d}(),u=r.CameraConsoleMapContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=C(v.cameras),g=(0,k.useLocalState)(i,"zoom",1),N=g[0],x=g[1],B=v.mapRef,L=v.activeCamera,T=v.stationLevelNum,A=v.stationLevelName,E=(0,k.useLocalState)(i,"z_current",T[0]),w=E[0],O=E[1],M=b(s,L),P=M[0],F=M[1];return(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function R(U){return x(U)}return R}(),zLevels:T,zNames:A,z_current:w,setZCurrent:O,children:s.map(function(R){return(0,e.createComponentVNode)(2,y.NanoMap.Marker,{x:R.x,y:R.y,z:R.z,z_current:w,zoom:N,icon:"box",tooltip:R.name,color:R.status?"blue":"red",bordered:!0,onClick:function(){function U(){return V("switch_camera",{name:R.name})}return U}()},R.ref)})})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),L&&L.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!P,onClick:function(){function R(){return V("switch_camera",{name:P})}return R}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!F,onClick:function(){function R(){return V("switch_camera",{name:F})}return R}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),f=r.CameraConsoleOldContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=h.config,g=v.mapRef,N=v.activeCamera,x=(0,k.useLocalState)(i,"searchText",""),B=x[0],L=C(v.cameras,B),T=b(L,N),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,l)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function w(){return V("switch_camera",{name:A})}return w}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function w(){return V("switch_camera",{name:E})}return w}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return d}(),l=r.CameraConsoleListContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=(0,k.useLocalState)(i,"searchText",""),g=s[0],N=s[1],x=v.activeCamera,B=C(v.cameras,g);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(T,A){return N(A)}return L}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",x&&L.name===x.name&&"Button--selected"]),L.name,0,{title:L.name,onClick:function(){function T(){return V("switch_camera",{name:L.name})}return T}()},L.name)})})})]})}return d}()},52927:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(49968),k=n(98595),y=r.Canister=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.portConnected,d=f.tankPressure,m=f.releasePressure,i=f.defaultReleasePressure,h=f.minReleasePressure,V=f.maxReleasePressure,v=f.valveOpen,s=f.name,g=f.canLabel,N=f.colorContainer,x=f.color_index,B=f.hasHoldingTank,L=f.holdingTank,T="";x.prim&&(T=N.prim.options[x.prim].name);var A="";x.sec&&(A=N.sec.options[x.sec].name);var E="";x.ter&&(E=N.ter.options[x.ter].name);var w="";x.quart&&(w=N.quart.options[x.quart].name);var O=[],M=[],P=[],F=[],R=0;for(R=0;Rs.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.total_positions-s.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||!s.can_close,onClick:function(){function g(){return m("make_job_unavailable",{job:s.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:i.cooldown_time||!s.can_open,onClick:function(){function g(){return m("make_job_available",{job:s.title})}return g}()})}),(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(s.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:s.is_priority?"Yes":"No",selected:s.is_priority,disabled:i.cooldown_time||!s.can_prioritize,onClick:function(){function g(){return m("prioritize_job",{job:s.title})}return g}()})})]},s.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!i.authenticated||!i.scan_name?v=(0,e.createComponentVNode)(2,S):i.modify_name?v=(0,e.createComponentVNode)(2,p.AccessList,{accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function s(g){return m("set",{access:g})}return s}(),grantAll:function(){function s(){return m("grant_all")}return s}(),denyAll:function(){function s(){return m("clear_all")}return s}(),grantDep:function(){function s(g){return m("grant_region",{region:g})}return s}(),denyDep:function(){function s(g){return m("deny_region",{region:g})}return s}()}):v=(0,e.createComponentVNode)(2,b);break;case 3:i.authenticated?i.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!i.authenticated||i.records.length===0||i.target_dept,onClick:function(){function s(){return m("wipe_all_logs")}return s}()}),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(s){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.reason}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.deletedby})]},s.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 s(){return m("wipe_my_logs")}return s}()})})]}):v=(0,e.createComponentVNode)(2,C):v=(0,e.createComponentVNode)(2,S);break;case 4:!i.authenticated||!i.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),i.people_dept.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:s.buttontext,disabled:!s.demotable,onClick:function(){function g(){return m("remote_demote",{remote_demote:s.name})}return g}()})})]},s.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:V}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:h}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return u}()},64083:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(25328),S=r.CargoConsole=function(){function f(l,d){return(0,e.createComponentVNode)(2,k.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)]})})})}return f}(),b=function(l,d){var m=(0,o.useLocalState)(d,"contentsModal",null),i=m[0],h=m[1],V=(0,o.useLocalState)(d,"contentsModalTitle",null),v=V[0],s=V[1];if(i!==null&&v!==null)return(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,p.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[v,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,p.Box,{children:i.map(function(g){return(0,e.createComponentVNode)(2,p.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,p.Box,{m:2,children:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function g(){h(null),s(null)}return g}()})})]})},C=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.is_public,v=h.points,s=h.credits,g=h.timeleft,N=h.moving,x=h.at_station,B,L;return!N&&!x?(B="Docked off-station",L="Call Shuttle"):!N&&x?(B="Docked at the station",L="Return Shuttle"):N&&(L="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Status",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Points Available",children:v}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Credits Available",children:s}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Shuttle Status",children:B}),V===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,p.Button,{content:L,disabled:N,onClick:function(){function T(){return i("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Central Command Messages",onClick:function(){function T(){return i("showMessages")}return T}()})]})]})})})},c=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.categories,v=h.supply_packs,s=(0,o.useSharedState)(d,"category","Emergency"),g=s[0],N=s[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],L=x[1],T=(0,o.useLocalState)(d,"contentsModal",null),A=T[0],E=T[1],w=(0,o.useLocalState)(d,"contentsModalTitle",null),O=w[0],M=w[1],P=(0,y.createSearch)(B,function(U){return U.name}),F=(0,a.flow)([(0,t.filter)(function(U){return U.cat===V.filter(function(j){return j.name===g})[0].category||B}),B&&(0,t.filter)(P),(0,t.sortBy)(function(U){return U.name.toLowerCase()})])(v),R="Crate Catalogue";return B?R="Results for '"+B+"':":g&&(R="Browsing "+g),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:R,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:V.map(function(U){return U.name}),selected:g,onSelected:function(){function U(j){return N(j)}return U}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function U(j,W){return L(W)}return U}(),mb:1}),(0,e.createComponentVNode)(2,p.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:F.map(function(U){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,p.Box,{color:U.has_sale?"good":"default",children:[U.name," (",U.cost?U.cost+" Points":"",U.creditsCost&&U.cost?" ":"",U.creditsCost?U.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function j(){return i("order",{crate:U.ref,multiple:0})}return j}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function j(){return i("order",{crate:U.ref,multiple:1})}return j}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Contents",icon:"search",onClick:function(){function j(){E(U.contents),M(U.name)}return j}()})]})]},U.name)})})})]})})},u=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.requests,v=h.canapprove,s=h.orders;return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:V.map(function(g){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",g.comment]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Required Techs: ",g.pack_techs]})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,p.Button,{content:"Approve",color:"green",disabled:!v,onClick:function(){function N(){return i("approve",{ordernum:g.ordernum})}return N}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Deny",color:"red",onClick:function(){function N(){return i("deny",{ordernum:g.ordernum})}return N}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:s.map(function(g){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.ordernum)})})]})}},22794:function(I,r,n){"use strict";r.__esModule=!0,r.DelayHelper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.DelayHelper=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=b.data,u=c.delays,f=c.rev_delays,l=y.delay_list,d=y.reverse,m=d===void 0?!1:d;return(0,e.createComponentVNode)(2,o.LabeledControls,{wrap:!0,style:{"flex-direction":"column","flex-wrap":"wrap",height:"7.5em","justify-content":"start"},children:l.map(function(i,h){return(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:i.title,style:{"flex-direction":"column","min-width":"0"},children:(0,e.createComponentVNode)(2,o.Knob,{color:(m?f[h+1]:u[h+1])/10>10?"orange":"default",format:function(){function V(v){return(0,a.toFixed)(v,2)}return V}(),maxValue:10,minValue:0,inline:!0,onDrag:function(){function V(v,s){C("editTiming",{reverse:m,timer:""+(h+1),value:Math.max(s,0)})}return V}(),size:1,step:.02,unclamped:!0,unit:"s",value:(m?f[h+1]:u[h+1])/10})},h)})})}return k}()},23749:function(I,r,n){"use strict";r.__esModule=!0,r.PodBays=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=r.PodBays=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.bayNumber;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",onClick:function(){function f(){return C("clearBay")}return f}(),tooltip:"\n \u041E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0451\n\u0438\u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0430\u043D\u0433\u0430\u0440\u0430.",tooltipPosition:"top-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"question",tooltip:"\n \u041A\u0430\u0436\u0434\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\n\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0439 \u0437\u043E\u043D\u0435 \u043D\u0430 \u0426\u041A.\n\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u0431\u0443\u0434\u0443\u0442\n\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u044B \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430\u043C\u0438 \u0438\u0437 \u044D\u0442\u0438\u0445 \u0437\u043E\u043D\n\u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043E\u043F\u0446\u0438\u0435\u0439\n\xAB\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0438\u0437 \u0430\u043D\u0433\u0430\u0440\u0430\xBB \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443.",tooltipPosition:"top-end"})],4),fill:!0,title:"\u0410\u043D\u0433\u0430\u0440",children:o.BAYS.map(function(f,l){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return C("switchBay",{bayNumber:""+(l+1)})}return d}(),selected:u===""+(l+1),tooltipPosition:"bottom-end",children:f.title},l)})})}return k}()},8507:function(I,r,n){"use strict";r.__esModule=!0,r.PodLaunch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20345),p=r.PodLaunch=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.giveLauncher,f=(0,o.useCompact)(S),l=f[0];return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function d(){return C("giveLauncher")}return d}(),selected:u,textAlign:"center",tooltip:"\n \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u043D\u0430\u0442\u044C, \u0447\u0442\u043E\n \u041E\u0431 \u044D\u0442\u043E\u043C \u0433\u043E\u0432\u043E\u0440\u0438\u0442 \u041A\u043E\u0434\u0435\u043A\u0441 \u0410\u0441\u0442\u0430\u0440\u0442\u0435\u0441",tooltipPosition:"top",children:(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"1.4em",lineHeight:l?1.5:3,children:"\u0417\u0410\u041F\u0423\u0421\u041A"})})}return k}()},15802:function(I,r,n){"use strict";r.__esModule=!0,r.PodSounds=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=r.PodSounds=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.defaultSoundVolume,f=c.soundVolume;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"volume-up",onClick:function(){function l(){return C("soundVolume")}return l}(),selected:f!==u,tooltip:"\n \u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0417\u0443\u043A\u0430:"+f}),fill:!0,title:"\u0417\u0432\u0443\u043A\u0438",children:o.SOUNDS.map(function(l,d){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function m(){return C(l.act)}return m}(),selected:c[l.act],tooltip:l.tooltip,tooltipPosition:"top-end",children:l.title},d)})})}return k}()},94577:function(I,r,n){"use strict";r.__esModule=!0,r.PodStatusPage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(20345),k=r.PodStatusPage=function(){function b(C,c){var u=(0,p.useCompact)(c),f=u[0];return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:o.EFFECTS_ALL.map(function(l,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"label",mb:1,children:[!f&&(l.alt_label||l.label),":"]}),(0,e.createComponentVNode)(2,t.Box,{children:l.list.map(function(m,i){return(0,e.createComponentVNode)(2,y,{effect:m,hasMargin:l.list.length>1,index:i},i)})})]}),d=0;--J){var X=this.tryEntries[J],Q=X.completion;if(X.tryLoc==="root")return ae("end");if(X.tryLoc<=this.prev){var q=m.call(X,"catchLoc"),te=m.call(X,"finallyLoc");if(q&&te){if(this.prev=0;--ae){var J=this.tryEntries[ae];if(J.tryLoc<=this.prev&&m.call(J,"finallyLoc")&&this.prev=0;--Z){var ae=this.tryEntries[Z];if(ae.finallyLoc===re)return this.complete(ae.completion,ae.afterLoc),Y(ae),E}}return oe}(),catch:function(){function oe(re){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var ae=this.tryEntries[Z];if(ae.tryLoc===re){var J=ae.completion;if(J.type==="throw"){var X=J.arg;Y(ae)}return X}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(re,Z,ae){return this.delegate={iterator:de(re),resultName:Z,nextLoc:ae},this.method==="next"&&(this.arg=f),E}return oe}()},l}function S(f,l,d,m,i,h,V){try{var v=f[h](V),s=v.value}catch(g){return void d(g)}v.done?l(s):Promise.resolve(s).then(m,i)}function b(f){return function(){var l=this,d=arguments;return new Promise(function(m,i){var h=f.apply(l,d);function V(s){S(h,m,i,V,v,"next",s)}function v(s){S(h,m,i,V,v,"throw",s)}V(void 0)})}}var C=function(){var f=b(y().mark(function(){function l(d,m){return y().wrap(function(){function i(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,a.storage.set("podlauncher_preset_"+d,m);case 2:case"end":return h.stop()}}return i}(),l)}return l}()));return function(){function l(d,m){return f.apply(this,arguments)}return l}()}(),c=function(l,d){var m=(0,o.useBackend)(d),i=m.data,h=l.editing,V=l.deletePreset,v=l.loadPreset,s=l.presetIndex,g=l.setEditing,N=l.getPresets;return(0,e.createFragment)([!h&&(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"plus",onClick:function(){function x(){return g(!h)}return x}(),tooltip:"\u041D\u043E\u0432\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"download",inline:!0,onClick:function(){function x(){return C(s.toString(),i)}return x}(),tooltip:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"upload",inline:!0,onClick:function(){function x(){v(s)}return x}(),tooltip:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"trash",inline:!0,onClick:function(){function x(){return V(s)}return x}(),tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom-start"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"refresh",inline:!0,onClick:function(){function x(){return N()}return x}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0435\u0441\u0435\u0442\u043E\u0432",tooltipPosition:"bottom-start"})],0)},u=r.PresetsPage=function(){function f(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=(0,o.useLocalState)(d,"editing",!1),v=V[0],s=V[1],g=(0,o.useLocalState)(d,"hue",0),N=g[0],x=g[1],B=(0,o.useLocalState)(d,"name",""),L=B[0],T=B[1],A=(0,o.useLocalState)(d,"presetID",0),E=A[0],w=A[1],O=(0,o.useLocalState)(d,"presets",[]),M=O[0],P=O[1],F=function(){var W=b(y().mark(function(){function K($){var ne,Y;return y().wrap(function(){function le(de){for(;;)switch(de.prev=de.next){case 0:ne=[].concat(M),Y=0;case 2:if(!(Y=l.length-2?m%2===1?"top-start":"top-end":m%2===1?"bottom-start":"bottom-end",tooltip:d.title,width:"45px",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["supplypods64x64","pod_asset"+d.id]),style:{"pointer-events":"none",transform:"rotate(45deg) translate(-25%,-10%)"}})},d.id)})})}return k}()},8179:function(I,r,n){"use strict";r.__esModule=!0,r.TabPod=r.TabDrop=r.TabBay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TabPod=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"street-view",children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"undo-alt",children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),p=r.TabBay=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=(0,a.useLocalState)(b,"teleported",!1),l=f[0],d=f[1],m=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function i(){c("teleportCentcom"),d(!0)}return i}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m||!l,icon:"undo-alt",onClick:function(){function i(){c("teleportBack"),d(!1)}return i}(),children:m?m.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),k=r.TabDrop=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=(0,a.useLocalState)(b,"teleported",!1),l=f[0],d=f[1],m=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function i(){c("teleportDropoff"),d(!0)}return i}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m||!l,icon:"undo-alt",onClick:function(){function i(){c("teleportBack"),d(!1)}return i}(),children:m?m.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}()},18885:function(I,r,n){"use strict";r.__esModule=!0,r.Timing=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(22794),k=r.Timing=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.custom_rev_delay,l=u.effectReverse;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"undo",onClick:function(){function d(){return c("resetTiming")}return d}(),tooltip:"\n \u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0430\u0439\u043C\u0438\u043D\u0433\u0438\n /\u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",disabled:!l,icon:f===1?"toggle-on":"toggle-off",onClick:function(){function d(){return c("toggleRevDelays")}return d}(),selected:f,tooltip:"\n \u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430\n \u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u043F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438\n \u043E\u0431\u0440\u0430\u0449\u0430\u044E\u0442 \u0432\u0441\u043F\u044F\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"})],4),title:"\u0412\u0440\u0435\u043C\u044F",children:f?(0,e.createComponentVNode)(2,p.DelayHelper,{delay_list:o.REV_DELAYS,reverse:!0}):(0,e.createComponentVNode)(2,p.DelayHelper,{delay_list:o.DELAYS})})}return y}()},76417:function(I,r,n){"use strict";r.__esModule=!0,r.ViewTabHolder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(20345),k=r.ViewTabHolder=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mapRef,l=u.customDropoff,d=u.effectReverse,m=u.renderLighting,i=(0,p.useTab)(b),h=i[0],V=i[1],v=o.TABPAGES[h].component;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"arrow-circle-down",inline:!0,onClick:function(){function s(){V(2),c("tabSwitch",{tabIndex:2})}return s}(),selected:h===2,tooltip:"\u041C\u0435\u0441\u0442\u043E \u0412\u044B\u0441\u0430\u0434\u043A\u0438"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"rocket",inline:!0,onClick:function(){function s(){V(0),c("tabSwitch",{tabIndex:0})}return s}(),selected:h===0,tooltip:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"th",inline:!0,onClick:function(){function s(){V(1),c("tabSwitch",{tabIndex:1})}return s}(),selected:h===1,tooltip:"\u0410\u043D\u0433\u0430\u0440 \u041F\u043E\u0433\u0440\u0443\u0437\u043A\u0438"}),(0,e.createVNode)(1,"span",null,"|",16,{style:o.POD_GREY}),!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",inline:!0,onClick:function(){function s(){c("renderLighting"),c("refreshView")}return s}(),selected:m,tooltip:"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"sync-alt",inline:!0,onClick:function(){function s(){V(h),c("refreshView")}return s}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u043A\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430"})],0),fill:!0,title:"\u041E\u0441\u043C\u043E\u0442\u0440",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.ByondUi,{height:"100%",params:{id:f,type:"map",zoom:0}})})]})})}return y}()},7144:function(I,r,n){"use strict";r.__esModule=!0,r.TABPAGES=r.SOUNDS=r.REV_DELAYS=r.REVERSE_OPTIONS=r.POD_GREY=r.EFFECTS_NORMAL=r.EFFECTS_LOAD=r.EFFECTS_HARM=r.EFFECTS_ALL=r.DELAYS=r.BAYS=void 0;var e=n(8179),a=r.POD_GREY={color:"grey"},t=r.TABPAGES=[{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",component:e.TabPod},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u043D\u0433\u0430\u0440\u0430",component:e.TabBay},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043C\u0435\u0441\u0442\u0430 \u0432\u044B\u0433\u0440\u0443\u0437\u043A\u0438.",component:e.TabDrop}],o=r.REVERSE_OPTIONS=[{title:"\u041C\u043E\u0431\u044B",key:"Mobs",icon:"user"},{title:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Unanchored",icon:"cube"},{title:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Anchored",icon:"anchor"},{title:"\u041C\u0435\u0445\u0438",key:"Mecha",icon:"truck"}],p=r.DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u0440\u0438\u0431\u044B\u0442\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u044E"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],k=r.REV_DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430\u0434 \u0442\u043E\u0447\u043A\u043E\u0439 \u0432\u044B\u0441\u0430\u0434\u043A\u0438"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],y=r.SOUNDS=[{title:"Fall",act:"fallingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043F\u043E\u043A\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0430\u0434\u0430\u0435\u0442, \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F\n\u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u044F\u0435\u0442\u0441\u044F"},{title:"Land",act:"landingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Open",act:"openingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Exit",act:"leavingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u0443\u043B\u0435\u0442\u0430\u0435\u0442"}],S=r.BAYS=[{title:"1"},{title:"2"},{title:"3"},{title:"4"},{title:"\u0415\u0420\u0422"}],b=r.EFFECTS_LOAD=[{act:"launchAll",choiceNumber:0,icon:"globe",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441\u043E \u0432\u0441\u0435\u0445 \u0442\u0443\u0440\u0444\u043E\u0432"},{act:"launchOrdered",choiceNumber:1,icon:"sort-amount-down-alt",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441 \u0442\u0443\u0440\u0444\u043E\u0432 \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443"},{act:"launchRandomTurf",choiceNumber:2,icon:"dice",selected:"launchChoice",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0440\u0430\u043D\u0434\u043E\u043C\u043D\u044B\u0439 \u0442\u0443\u0440\u0444"},{divider:!0},{act:"launchWholeTurf",choiceNumber:0,icon:"expand",selected:"launchRandomItem",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0442\u0443\u0440\u0444\u0430"},{act:"launchRandomItem",choiceNumber:1,icon:"dice",selected:"launchRandomItem",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},{divider:!0},{act:"launchClone",icon:"clone",soloSelected:"launchClone",title:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}],C=r.EFFECTS_NORMAL=[{act:"effectTarget",icon:"user-check",soloSelected:"effectTarget",title:"\u041E\u0441\u043E\u0431\u0430\u044F \u0446\u0435\u043B\u044C"},{act:"effectBluespace",choiceNumber:0,icon:"hand-paper",selected:"effectBluespace",title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F"},{act:"effectStealth",icon:"user-ninja",soloSelected:"effectStealth",title:"\u0421\u043A\u0440\u044B\u0442\u043D\u043E"},{act:"effectQuiet",icon:"volume-mute",soloSelected:"effectQuiet",title:"\u0422\u0438\u0445\u043E"},{act:"effectMissile",icon:"rocket",soloSelected:"effectMissile",title:"\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u043A\u0435\u0442\u044B"},{act:"effectBurst",icon:"certificate",soloSelected:"effectBurst",title:"\u0417\u0430\u043F\u0443\u0441\u043A \u043A\u043B\u0430\u0441\u0442\u0435\u0440\u0430"},{act:"effectCircle",icon:"ruler-combined",soloSelected:"effectCircle",title:"\u041B\u044E\u0431\u043E\u0439 \u0443\u0433\u043E\u043B \u0441\u043F\u0443\u0441\u043A\u0430"},{act:"effectAnnounce",choiceNumber:0,icon:"ghost",selected:"effectAnnounce",title:"\u041D\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432\n(\u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435\n\u0440\u0430\u0437\u0432\u043B\u0435\u043A\u0430\u0442\u044C \u0441\u043A\u0443\u0447\u0430\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432)"}],c=r.EFFECTS_HARM=[{act:"explosionCustom",choiceNumber:1,icon:"bomb",selected:"explosionChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0432\u0437\u0440\u044B\u0432"},{act:"explosionBus",choiceNumber:2,icon:"bomb",selected:"explosionChoice",title:"\u0410\u0434\u043C\u0438\u043D\u0430\u0431\u0443\u0437-\u0432\u0437\u0440\u044B\u0432\n\u0418 \u0447\u0442\u043E \u043E\u043D\u0438 \u0441\u0434\u0435\u043B\u0430\u044E\u0442, \u0437\u0430\u0431\u0430\u043D\u044F\u0442 \u0442\u0435\u0431\u044F?"},{divider:!0},{act:"damageCustom",choiceNumber:1,icon:"skull",selected:"damageChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0443\u0440\u043E\u043D"},{act:"damageGib",choiceNumber:2,icon:"skull-crossbones",selected:"damageChoice",title:"\u0413\u0438\u0431"},{divider:!0},{act:"effectShrapnel",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",title:"\u041E\u0431\u043B\u0430\u043A\u043E \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432"},{act:"effectStun",icon:"sun",soloSelected:"effectStun",title:"\u0421\u0442\u0430\u043D"},{act:"effectLimb",icon:"socks",soloSelected:"effectLimb",title:"\u041F\u043E\u0442\u0435\u0440\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438"},{act:"effectOrgans",icon:"book-dead",soloSelected:"effectOrgans",title:"\u0420\u0430\u0437\u043B\u0435\u0442 \u0432\u0441\u0435\u0445 \u043E\u0440\u0433\u0430\u043D\u043E\u0432"}],u=r.EFFECTS_ALL=[{list:b,label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437",alt_label:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",tooltipPosition:"right"},{list:C,label:"\u041E\u0431\u044B\u0447\u043D\u044B\u0435 \u042D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"},{list:c,label:"\u0412\u0440\u0435\u0434\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"}]},20345:function(I,r,n){"use strict";r.__esModule=!0,r.useTab=r.useCompact=void 0;var e=n(72253),a=r.useCompact=function(){function o(p){return(0,e.useLocalState)(p,"compact",!1)}return o}(),t=r.useTab=function(){function o(p){return(0,e.useLocalState)(p,"tab",1)}return o}()},65875:function(I,r,n){"use strict";r.__esModule=!0,r.CentcomPodLauncher=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(20345),p=n(23749),k=n(8507),y=n(15802),S=n(94577),b=n(30590),C=n(72932),c=n(68569),u=n(18885),f=n(76417),l=r.CentcomPodLauncher=function(){function d(m,i){var h=(0,o.useCompact)(i),V=h[0];return(0,e.createComponentVNode)(2,t.Window,{height:V?360:440,title:"\u041C\u0435\u043D\u044E \u043A\u0430\u043F\u0441\u0443\u043B \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",width:V?460:750,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{shrink:0,children:(0,e.createComponentVNode)(2,S.PodStatusPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.PresetsPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,C.ReverseMenu)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,k.PodLaunch)})})]})}),!V&&(0,e.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,e.createComponentVNode)(2,f.ViewTabHolder)}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"9em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,direction:"column",children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,p.PodBays)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u.Timing)}),!V&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,y.PodSounds,{fill:!0})})]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"11em",children:(0,e.createComponentVNode)(2,c.StylePage)})]})})]})})})}return d}()},16780:function(){"use strict"},12226:function(I,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=n(79140),y=b(n(83331)),S=b(n(52754));function b(i){return i&&i.__esModule?i:{default:i}}function C(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */C=function(){return h};var i,h={},V=Object.prototype,v=V.hasOwnProperty,s=Object.defineProperty||function(J,X,Q){J[X]=Q.value},g=typeof Symbol=="function"?Symbol:{},N=g.iterator||"@@iterator",x=g.asyncIterator||"@@asyncIterator",B=g.toStringTag||"@@toStringTag";function L(J,X,Q){return Object.defineProperty(J,X,{value:Q,enumerable:!0,configurable:!0,writable:!0}),J[X]}try{L({},"")}catch(J){L=function(Q,q,te){return Q[q]=te}}function T(J,X,Q,q){var te=X&&X.prototype instanceof F?X:F,fe=Object.create(te.prototype),ye=new Z(q||[]);return s(fe,"_invoke",{value:le(J,Q,ye)}),fe}function A(J,X,Q){try{return{type:"normal",arg:J.call(X,Q)}}catch(q){return{type:"throw",arg:q}}}h.wrap=T;var E="suspendedStart",w="suspendedYield",O="executing",M="completed",P={};function F(){}function R(){}function U(){}var j={};L(j,N,function(){return this});var W=Object.getPrototypeOf,K=W&&W(W(ae([])));K&&K!==V&&v.call(K,N)&&(j=K);var $=U.prototype=F.prototype=Object.create(j);function ne(J){["next","throw","return"].forEach(function(X){L(J,X,function(Q){return this._invoke(X,Q)})})}function Y(J,X){function Q(te,fe,ye,pe){var Le=A(J[te],J,fe);if(Le.type!=="throw"){var D=Le.arg,ie=D.value;return ie&&typeof ie=="object"&&v.call(ie,"__await")?X.resolve(ie.__await).then(function(se){Q("next",se,ye,pe)},function(se){Q("throw",se,ye,pe)}):X.resolve(ie).then(function(se){D.value=se,ye(D)},function(se){return Q("throw",se,ye,pe)})}pe(Le.arg)}var q;s(this,"_invoke",{value:function(){function te(fe,ye){function pe(){return new X(function(Le,D){Q(fe,ye,Le,D)})}return q=q?q.then(pe,pe):pe()}return te}()})}function le(J,X,Q){var q=E;return function(te,fe){if(q===O)throw Error("Generator is already running");if(q===M){if(te==="throw")throw fe;return{value:i,done:!0}}for(Q.method=te,Q.arg=fe;;){var ye=Q.delegate;if(ye){var pe=de(ye,Q);if(pe){if(pe===P)continue;return pe}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(q===E)throw q=M,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);q=O;var Le=A(J,X,Q);if(Le.type==="normal"){if(q=Q.done?M:w,Le.arg===P)continue;return{value:Le.arg,done:Q.done}}Le.type==="throw"&&(q=M,Q.method="throw",Q.arg=Le.arg)}}}function de(J,X){var Q=X.method,q=J.iterator[Q];if(q===i)return X.delegate=null,Q==="throw"&&J.iterator.return&&(X.method="return",X.arg=i,de(J,X),X.method==="throw")||Q!=="return"&&(X.method="throw",X.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),P;var te=A(q,J.iterator,X.arg);if(te.type==="throw")return X.method="throw",X.arg=te.arg,X.delegate=null,P;var fe=te.arg;return fe?fe.done?(X[J.resultName]=fe.value,X.next=J.nextLoc,X.method!=="return"&&(X.method="next",X.arg=i),X.delegate=null,P):fe:(X.method="throw",X.arg=new TypeError("iterator result is not an object"),X.delegate=null,P)}function oe(J){var X={tryLoc:J[0]};1 in J&&(X.catchLoc=J[1]),2 in J&&(X.finallyLoc=J[2],X.afterLoc=J[3]),this.tryEntries.push(X)}function re(J){var X=J.completion||{};X.type="normal",delete X.arg,J.completion=X}function Z(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(oe,this),this.reset(!0)}function ae(J){if(J||J===""){var X=J[N];if(X)return X.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var Q=-1,q=function(){function te(){for(;++Q=0;--te){var fe=this.tryEntries[te],ye=fe.completion;if(fe.tryLoc==="root")return q("end");if(fe.tryLoc<=this.prev){var pe=v.call(fe,"catchLoc"),Le=v.call(fe,"finallyLoc");if(pe&&Le){if(this.prev=0;--q){var te=this.tryEntries[q];if(te.tryLoc<=this.prev&&v.call(te,"finallyLoc")&&this.prev=0;--Q){var q=this.tryEntries[Q];if(q.finallyLoc===X)return this.complete(q.completion,q.afterLoc),re(q),P}}return J}(),catch:function(){function J(X){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var q=this.tryEntries[Q];if(q.tryLoc===X){var te=q.completion;if(te.type==="throw"){var fe=te.arg;re(q)}return fe}}throw Error("illegal catch attempt")}return J}(),delegateYield:function(){function J(X,Q,q){return this.delegate={iterator:ae(X),resultName:Q,nextLoc:q},this.method==="next"&&(this.arg=i),P}return J}()},h}function c(i,h,V,v,s,g,N){try{var x=i[g](N),B=x.value}catch(L){return void V(L)}x.done?h(B):Promise.resolve(B).then(v,s)}function u(i){return function(){var h=this,V=arguments;return new Promise(function(v,s){var g=i.apply(h,V);function N(B){c(g,v,s,N,x,"next",B)}function x(B){c(g,v,s,N,x,"throw",B)}N(void 0)})}}function f(i,h){i.prototype=Object.create(h.prototype),i.prototype.constructor=i,l(i,h)}function l(i,h){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,v){return V.__proto__=v,V},l(i,h)}var d={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},map:{icon:"map-location-dot",color:"green"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},m=r.Changelog=function(i){function h(){var v;return v=i.call(this)||this,v.getData=function(s,g){g===void 0&&(g=1);var N=(0,t.useBackend)(v.context),x=N.act,B=v,L=6;if(g>L)return v.setData("Failed to load data after "+L+" attempts");x("get_month",{date:s}),fetch((0,k.resolveAsset)(s+".yml")).then(function(){var T=u(C().mark(function(){function A(E){var w,O,M;return C().wrap(function(){function P(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,E.text();case 2:w=F.sent,O=/^Cannot find/,O.test(w)?(M=50+g*50,B.setData("Loading changelog data"+".".repeat(g+3)),setTimeout(function(){B.getData(s,g+1)},M)):B.setData(S.default.load(w,{schema:S.default.CORE_SCHEMA}));case 5:case"end":return F.stop()}}return P}(),A)}return A}()));return function(A){return T.apply(this,arguments)}}())},v.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},v.dateChoices=[],v}f(h,i);var V=h.prototype;return V.setData=function(){function v(s){this.setState({data:s})}return v}(),V.setSelectedDate=function(){function v(s){this.setState({selectedDate:s})}return v}(),V.setSelectedIndex=function(){function v(s){this.setState({selectedIndex:s})}return v}(),V.componentDidMount=function(){function v(){var s=this,g=(0,t.useBackend)(this.context),N=g.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return s.dateChoices.push((0,y.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return v}(),V.render=function(){function v(){var s=this,g=this.state,N=g.data,x=g.selectedDate,B=g.selectedIndex,L=(0,t.useBackend)(this.context),T=L.data.dates,A=this.dateChoices,E=A.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===0,icon:"chevron-left",onClick:function(){function F(){var R=B-1;return s.setData("Loading changelog data..."),s.setSelectedIndex(R),s.setSelectedDate(A[R]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[R])}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:A,onSelected:function(){function F(R){var U=A.indexOf(R);return s.setData("Loading changelog data..."),s.setSelectedIndex(U),s.setSelectedDate(R),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[U])}return F}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===A.length-1,icon:"chevron-right",onClick:function(){function F(){var R=B+1;return s.setData("Loading changelog data..."),s.setSelectedIndex(R),s.setSelectedDate(A[R]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[R])}return F}()})})]}),w=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"Paradise Station",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thanks to: ",16),(0,e.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,e.createTextVNode)(".")],0),E]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[E,(0,e.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Coders: ",16),(0,e.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Spriters: ",16),(0,e.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,e.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,e.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,e.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Some icons by"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,e.createTextVNode)(". All rights reserved. Licensed under a"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,e.createTextVNode)(".")],0)]}),M=/#\d+/,P=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(F){var R=F[0],U=F[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,y.default)(R,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(U).map(function(j){var W=j[0],K=j[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[W,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:K.map(function($){var ne=Object.keys($)[0],Y=$[ne],le=Y.match(M),de=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[ne]?d[ne].color:d.unknown.color,name:d[ne]?d[ne].icon:d.unknown.icon})});return le!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[de,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",Y.charAt(0).toUpperCase()+Y.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+le[0].substring(1)})})]},ne+Y)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[de,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:Y})]},ne+Y)})})})],4,W)})})},R)});return(0,e.createComponentVNode)(2,p.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[w,P,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return v}(),h}(e.Component)},91360:function(I,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),k=n(98595),y=r.CheckboxListInputModal=function(){function b(C,c){var u=(0,p.useBackend)(c),f=u.act,l=u.data,d=l.items,m=d===void 0?[]:d,i=l.message,h=i===void 0?"":i,V=l.init_value,v=l.timeout,s=l.title,g=(0,p.useLocalState)(c,"edittedItems",m),N=g[0],x=g[1],B=330+Math.ceil(h.length/3),L=function(){function T(A){A===void 0&&(A=null);var E=[].concat(N);E=E.map(function(w){return w.key===A.key?Object.assign({},w,{checked:!A.checked}):w}),x(E)}return T}();return(0,e.createComponentVNode)(2,k.Window,{title:s,width:325,height:B,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:h,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S,{filteredItems:N,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return b}(),S=function(C,c){var u=C.filteredItems,f=C.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(l,d){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:d,onClick:function(){function m(){return f(l)}return m}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(m){return m.toUpperCase()})},d)})})}},36108:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),p=n(98595),k=[1,5,10,20,30,50,100],y=[1,5,10],S=r.ChemDispenser=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.chemicals;return(0,e.createComponentVNode)(2,p.Window,{width:580,height:400+h.length*8,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c)]})})})}return u}(),b=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.amount,V=i.energy,v=i.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[V," / ",v," \u0415\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:k.map(function(s,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:h===s,content:s,onClick:function(){function N(){return m("amount",{amount:s})}return N}()})},g)})})})]})})})},C=function(f,l){for(var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.chemicals,V=h===void 0?[]:h,v=[],s=0;s<(V.length+1)%3;s++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:i.glass?"\u0421\u0438\u043D\u0442\u0435\u0437 \u043D\u0430\u043F\u0438\u0442\u043A\u043E\u0432":"\u0421\u0438\u043D\u0442\u0435\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u043E\u0432",children:[V.map(function(g,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function x(){return m("dispense",{reagent:g.id})}return x}()},N)}),v.map(function(g,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},c=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.isBeakerLoaded,V=i.beakerCurrentVolume,v=i.beakerMaxVolume,s=i.beakerContents,g=s===void 0?[]:s;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!h&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[V," / ",v," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:!h,onClick:function(){function N(){return m("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:h,beakerContents:g,buttons:function(){function N(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"\u0418\u0437\u043E\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",icon:"compress-arrows-alt",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-1})}return B}()}),y.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function T(){return m("remove",{reagent:x.id,amount:B})}return T}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:x.volume})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u041E\u043A\u0440\u0443\u0433\u043B\u0438\u0442\u044C",tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u043B\u0438\u0448\u043D\u0435\u0435, \u043E\u043A\u0440\u0443\u0433\u043B\u044F\u044F \u043E\u0431\u044A\u0451\u043C \u0434\u043E "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return N}()})})})}},13146:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(85870),k=n(98595),y=r.ChemHeater=function(){function C(c,u){return(0,e.createComponentVNode)(2,k.Window,{width:450,height:275,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return C}(),S=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.targetTemp,i=d.targetTempReached,h=d.autoEject,V=d.isActive,v=d.currentTemp,s=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435",icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function g(){return l("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:V?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",icon:"power-off",selected:V,disabled:!s,onClick:function(){function g(){return l("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(m,0),minValue:0,maxValue:1e3,onDrag:function(){function g(N,x){return l("adjust_temperature",{target:x})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:i?"good":"average",children:s&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(N){return(0,a.toFixed)(N)+" K"}return g}()})||"\u2014"})]})})})},b=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.isBeakerLoaded,i=d.beakerCurrentVolume,h=d.beakerMaxVolume,V=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:!!m&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[i," / ",h," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:m,beakerContents:V})})})}},56541:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(85870),k=n(3939),y=n(35840),S=["icon"];function b(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}function C(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,c(B,L)}function c(B,L){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},c(B,L)}var u=[1,5,10],f=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:w.condi?"\u0410\u043D\u0430\u043B\u0438\u0437 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430":"\u0410\u043D\u0430\u043B\u0438\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",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:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:(O.desc||"").length>0?O.desc:"\u041D/\u0414"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u0440\u043E\u0432\u0438",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u041D\u041A-\u043A\u043E\u0434",className:"LabeledList__breakContents",children:O.blood_dna})],4),!w.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:w.printing?"spinner":"print",disabled:w.printing,iconSpin:!!w.printing,ml:"0.5rem",content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return E("print",{idx:O.idx,beaker:L.args.beaker})}return M}()})]})})})})},l=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(l||{}),d=r.ChemMaster=function(){function B(L,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,k.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),m=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=w.beaker,M=w.beaker_reagents,P=w.buffer_reagents,F=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440",onClick:function(){function R(){return E("eject")}return R}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440",onClick:function(){function R(){return E("eject")}return R}()}),children:O?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function R(U,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function P(F,R){return(0,e.createComponentVNode)(2,t.Box,{mb:R0&&(F=P.map(function(R){var U=R.id,j=R.sprite;return(0,e.createComponentVNode)(2,g,{icon:j,color:"translucent",onClick:function(){function W(){return E("set_sprite_style",{production_mode:O,style:U})}return W}(),selected:M===U},U)})),(0,e.createComponentVNode)(2,s,{productionData:L.productionData,children:F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:F})})},x=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=w.loaded_pill_bottle_style,M=w.containerstyles,P=w.loaded_pill_bottle,F={width:"20px",height:"20px"},R=M.map(function(U){var j=U.color,W=U.name,K=O===j;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:F.width,height:F.height},onClick:function(){function $(){return E("set_container_style",{style:j})}return $}(),icon:K&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,tooltipPosition:"top",children:[!K&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:F.width,height:F.height,"background-color":j,opacity:.6,filter:"alpha(opacity=60)"}})]},j)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u041A\u0430\u0441\u0442\u043E\u043C\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440",onClick:function(){function U(){return E("ejectp")}return U}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:F.width,height:F.height},icon:"tint-slash",onClick:function(){function U(){return E("clear_container_style")}return U}(),selected:!O,tooltip:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",tooltipPosition:"top"}),R]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u041A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})})})};(0,k.modalRegisterBodyOverride)("analyze",f)},37173:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(76910),k=n(3939),y=n(98595),S=n(79140),b=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=h.args,x=N.activerecord,B=N.realname,L=N.health,T=N.unidentity,A=N.strucenzymes,E=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"\u0417\u0430\u043F\u0438\u0441\u0438 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:E.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.oxy,inline:!0,children:E[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.toxin,inline:!0,children:E[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.brute,inline:!0,children:E[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.burn,inline:!0,children:E[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0423\u0418",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0424",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!g.disk,icon:"arrow-circle-down",content:"\u0418\u043C\u043F\u043E\u0440\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",onClick:function(){function w(){return s("disk",{option:"load"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418",onClick:function(){function w(){return s("disk",{option:"save",savetype:"ui"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418 \u0438 \u0423\u0424",onClick:function(){function w(){return s("disk",{option:"save",savetype:"ue"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0421\u0424",onClick:function(){function w(){return s("disk",{option:"save",savetype:"se"})}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"\u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",onClick:function(){function w(){return s("clone",{ref:x})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",onClick:function(){function w(){return s("del_rec")}return w}()})]})]})})},C=r.CloningConsole=function(){function i(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.menu;return(0,k.modalRegisterBodyOverride)("view_rec",b),(0,e.createComponentVNode)(2,y.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,u)})]})]})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,icon:"home",onClick:function(){function x(){return s("menu",{num:1})}return x}(),children:"\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,icon:"folder",onClick:function(){function x(){return s("menu",{num:2})}return x}(),children:"\u0417\u0430\u043F\u0438\u0441\u0438"})]})},u=function(h,V){var v=(0,t.useBackend)(V),s=v.data,g=s.menu,N;return g===1?N=(0,e.createComponentVNode)(2,f):g===2&&(N=(0,e.createComponentVNode)(2,l)),N},f=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.loading,x=g.scantemp,B=g.occupant,L=g.locked,T=g.can_brainscan,A=g.scan_mode,E=g.numberofpods,w=g.pods,O=g.selected_pod,M=L&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0441\u043A\u0430\u043D\u0435\u0440\u0430:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:M,icon:M?"toggle-on":"toggle-off",content:M?"\u0410\u043A\u0442\u0438\u0432\u043D\u0430":"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u0430",onClick:function(){function P(){return s("lock")}return P}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:M||!B,icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",onClick:function(){function P(){return s("eject")}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 \u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435..."]}):(0,e.createComponentVNode)(2,o.Box,{color:x.color,children:x.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"\u041C\u043E\u0437\u0433":"\u0422\u0435\u043B\u043E",onClick:function(){function P(){return s("toggle_mode")}return P}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",mt:"0.5rem",mb:"0",onClick:function(){function P(){return s("scan")}return P}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",level:"2",children:E?w.map(function(P,F){var R;return P.status==="cloning"?R=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:P.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(P.progress,0)+"%"})}):P.status==="mess"?R=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"\u041E\u0448\u0438\u0431\u043A\u0430"}):R=(0,e.createComponentVNode)(2,o.Button,{selected:O===P.pod,icon:O===P.pod&&"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",mt:"0.5rem",onClick:function(){function U(){return s("selectpod",{ref:P.pod})}return U}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)("pod_"+P.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u2116",F+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:P.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:P.biomass>=150?"circle":"circle-o"}),"\xA0",P.biomass]}),R]},F)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B. \u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."})})],4)},l=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.records;return N.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:N.map(function(x,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:x.realname,onClick:function(){function L(){return s("view_rec",{ref:x.record})}return L}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u0417\u0430\u043F\u0438\u0441\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})},d=function(h,V){var v,s=(0,t.useBackend)(V),g=s.act,N=s.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(v={},v[x.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:x.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return g("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},m=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.scanner,x=g.numberofpods,B=g.autoallowed,L=g.autoprocess,T=g.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function A(){return s("autoprocess",{on:L?0:1})}return A}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443",onClick:function(){function A(){return s("disk",{option:"eject"})}return A}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043A\u0430\u043D\u0435\u0440",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:["\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0445 \u043A\u0430\u043F\u0441\u0443\u043B - ",x]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})})]})})}},18259:function(I,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.CoinMint=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.materials,l=u.moneyBag,d=u.moneyBagContent,m=u.moneyBagMaxContent,i=(l?210:138)+Math.ceil(f.length/4)*64;return(0,e.createComponentVNode)(2,p.Window,{width:256,height:i,title:"\u041C\u043E\u043D\u0435\u0442\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0441",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["\u041F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u043E \u043C\u043E\u043D\u0435\u0442: ",u.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0422\u0438\u043F \u041C\u043E\u043D\u0435\u0442",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:u.active&&"bad",tooltip:!l&&"\u041D\u0443\u0436\u0435\u043D \u0434\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",disabled:!l,onClick:function(){function h(){return c("activate")}return h}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:u.maxMaterials,value:u.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"\u0418\u0437\u0432\u0432\u043B\u0435\u0447\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",onClick:function(){function h(){return c("ejectMat")}return h}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:f.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:h.id===u.chosenMaterial,tooltip:h.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",h.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:h.amount})]}),onClick:function(){function V(){return c("selectMaterial",{material:h.id})}return V}()},h.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:u.active,onClick:function(){function h(){return c("ejectBag")}return h}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:m,value:d,children:[d," / ",m]})})})]})})})}return y}()},93858:function(I,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),p=n(98595),k=n(44879),y=n(14448),S=n(4454),b=n(35840),C=n(9394),c=n(19203),u=["prefixed","alpha","color","fluid","onChange"];/** * @file * @copyright 2023 itsmeow * @license MIT - */function f(T,A){T.prototype=Object.create(A.prototype),T.prototype.constructor=T,l(T,A)}function l(T,A){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,w){return E.__proto__=w,E},l(T,A)}function d(T,A){if(T==null)return{};var E={};for(var w in T)if({}.hasOwnProperty.call(T,w)){if(A.includes(w))continue;E[w]=T[w]}return E}var m=r.ColorPickerModal=function(){function T(A,E){var w=(0,t.useBackend)(E),O=w.data,M=O.timeout,P=O.message,F=O.title,R=O.autofocus,U=O.default_color,j=U===void 0?"#000000":U,W=(0,t.useLocalState)(E,"color_picker_choice",(0,y.hexToHsva)(j)),K=W[0],$=W[1];return(0,e.createComponentVNode)(2,p.Window,{height:400,title:F,width:600,theme:"generic",children:[!!M&&(0,e.createComponentVNode)(2,a.Loader,{value:M}),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[P&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:P})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!R&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,i,{color:K,setColor:$,defaultColor:j})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c.InputButtons,{input:(0,y.hsvaToHex)(K)})})]})})]})}return T}(),i=r.ColorSelector=function(){function T(A,E){var w=A.color,O=A.setColor,M=A.defaultColor,P=function(){function U(j){O(function(W){return Object.assign({},W,j)})}return U}(),F=(0,y.hsvaToRgba)(w),R=(0,y.hsvaToHex)(w);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,g,{hsva:w,onChange:P}),(0,e.createComponentVNode)(2,N,{hue:w.h,onChange:P,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:R,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:R})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:M,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:M})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,y.hsvaToHex)(w).substring(1),onChange:function(){function U(j){C.logger.info(j),O((0,y.hexToHsva)(j))}return U}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N,{hue:w.h,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.h,callback:function(){function U(j,W){return P({h:W})}return U}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,x,{color:w,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.s,callback:function(){function U(j,W){return P({s:W})}return U}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{color:w,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.v,callback:function(){function U(j,W){return P({v:W})}return U}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.r,callback:function(){function U(j,W){F.r=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.g,callback:function(){function U(j,W){F.g=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.b,callback:function(){function U(j,W){F.b=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})})]})})]})}return T}(),h=function(A){var E=A.value,w=A.callback,O=A.min,M=O===void 0?0:O,P=A.max,F=P===void 0?100:P,R=A.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(E),step:1,minValue:M,maxValue:F,onChange:w,unit:R})},V=function(A){return"#"+A},v=r.HexColorInput=function(){function T(A){var E=A.prefixed,w=A.alpha,O=A.color,M=A.fluid,P=A.onChange,F=d(A,u),R=function(){function j(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,w?8:6)}return j}(),U=function(){function j(W){return(0,y.validHex)(W,w)}return j}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},F,{fluid:M,color:O,onChange:P,escape:R,format:E?V:void 0,validate:U})))}return T}(),s=r.ColorInput=function(T){function A(w){var O;return O=T.call(this)||this,O.props=void 0,O.state=void 0,O.handleInput=function(M){var P=O.props.escape(M.currentTarget.value);O.setState({localValue:P})},O.handleBlur=function(M){M.currentTarget&&(O.props.validate(M.currentTarget.value)?O.props.onChange(O.props.escape?O.props.escape(M.currentTarget.value):M.currentTarget.value):O.setState({localValue:O.props.escape(O.props.color)}))},O.props=w,O.state={localValue:O.props.escape(O.props.color)},O}f(A,T);var E=A.prototype;return E.componentDidUpdate=function(){function w(O,M){O.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return w}(),E.render=function(){function w(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,b.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return w}(),A}(e.Component),g=function(A){var E=A.hsva,w=A.onChange,O=function(R){w({s:R.left*100,v:100-R.top*100})},M=function(R){w({s:(0,k.clamp)(E.s+R.left*100,0,100),v:(0,k.clamp)(E.v-R.top*100,0,100)})},P={"background-color":(0,y.hsvaToHslString)({h:E.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,S.Interactive,{onMove:O,onKey:M,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(E.s)+"%, Brightness "+Math.round(E.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-E.v/100,left:E.s/100,color:(0,y.hsvaToHslString)(E)})}),2,{style:P})},N=function(A){var E=A.className,w=A.hue,O=A.onChange,M=function(U){O({h:360*U.left})},P=function(U){O({h:(0,k.clamp)(w+U.left*360,0,360)})},F=(0,b.classes)(["react-colorful__hue",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{onMove:M,onKey:P,"aria-label":"Hue","aria-valuenow":Math.round(w),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:w/360,color:(0,y.hsvaToHslString)({h:w,s:100,v:100,a:1})})}),2)},x=function(A){var E=A.className,w=A.color,O=A.onChange,M=function(U){O({s:100*U.left})},P=function(U){O({s:(0,k.clamp)(w.s+U.left*100,0,100)})},F=(0,b.classes)(["react-colorful__saturation",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:w.h,s:0,v:w.v,a:1})+", "+(0,y.hsvaToHslString)({h:w.h,s:100,v:w.v,a:1})+")"},onMove:M,onKey:P,"aria-label":"Saturation","aria-valuenow":Math.round(w.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:w.s/100,color:(0,y.hsvaToHslString)({h:w.h,s:w.s,v:w.v,a:1})})}),2)},B=function(A){var E=A.className,w=A.color,O=A.onChange,M=function(U){O({v:100*U.left})},P=function(U){O({v:(0,k.clamp)(w.v+U.left*100,0,100)})},F=(0,b.classes)(["react-colorful__value",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:w.h,s:w.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:w.h,s:w.s,v:100,a:1})+")"},onMove:M,onKey:P,"aria-label":"Value","aria-valuenow":Math.round(w.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:w.v/100,color:(0,y.hsvaToHslString)({h:w.h,s:w.s,v:w.v,a:1})})}),2)},L=function(A){var E=A.className,w=A.color,O=A.onChange,M=A.target,P=(0,y.hsvaToRgba)(w),F=function($){P[M]=$,O((0,y.rgbaToHsva)(P))},R=function($){F(255*$.left)},U=function($){F((0,k.clamp)(P[M]+$.left*255,0,255))},j=(0,b.classes)(["react-colorful__"+M,E]),W=M==="r"?"rgb("+Math.round(P.r)+",0,0)":M==="g"?"rgb(0,"+Math.round(P.g)+",0)":"rgb(0,0,"+Math.round(P.b)+")";return(0,e.createVNode)(1,"div",j,(0,e.createComponentVNode)(2,S.Interactive,{onMove:R,onKey:U,"aria-valuenow":P[M],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+M+"-pointer",left:P[M]/255,color:W})}),2)}},63818:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={1:function(){function m(){return(0,e.createComponentVNode)(2,b)}return m}(),2:function(){function m(){return(0,e.createComponentVNode)(2,u)}return m}(),3:function(){function m(){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f)})})}return m}(),4:function(){function m(){return(0,e.createComponentVNode)(2,d)}return m}(),default:function(){function m(){return"\u041E\u0448\u0438\u0431\u043A\u0430. \u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0435 menu_state. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439 NT."}return m}()},k=function(i){return p[i]},y=r.CommunicationsComputer=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,title:"\u041A\u043E\u043D\u0441\u043E\u043B\u044C \u0441\u0432\u044F\u0437\u0438",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,S),k(g)()]})})})}return m}(),S=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.authenticated,N=s.noauthbutton,x=s.esc_section,B=s.esc_callable,L=s.esc_recallable,T=s.esc_status,A=s.authhead,E=s.is_ai,w=s.lastCallLoc,O=!1,M;return g?g===1?M="\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435":g===2?M="\u041A\u0430\u043F\u0438\u0442\u0430\u043D":g===3?M="\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F":g===4?(M="\u0417\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0426\u0435\u043D\u0442\u041A\u043E\u043C\u0430",O=!0):M="\u041E\u0428\u0418\u0411\u041A\u0410: \u0421\u043E\u043E\u0431\u0449\u0438\u0442\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u0431\u0430\u0433\u0435!":M="\u0412\u0445\u043E\u0434 \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0410\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u043E\u0441\u0442\u0443\u043F",children:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:g?"sign-out-alt":"id-card",selected:g,disabled:N,content:g?"\u0412\u044B\u0439\u0442\u0438 ("+M+")":"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function P(){return v("auth")}return P}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!x&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u042D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!T&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:T}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"\u0412\u044B\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B",disabled:!A,onClick:function(){function P(){return v("callshuttle")}return P}()})}),!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B",disabled:!A||E,onClick:function(){function P(){return v("cancelshuttle")}return P}()})}),!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0432\u044B\u0437\u043E\u0432/\u043E\u0442\u0437\u044B\u0432 \u0438\u0437",children:w})]})})})],4)},b=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin;return g?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,c)},C=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin,N=s.gamma_armory_location,x=s.admin_levels,B=s.authenticated,L=s.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.createComponentVNode)(2,l,{levels:x,required_access:g,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",disabled:!g,onClick:function(){function T(){return v("send_to_cc_announcement_page")}return T}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",disabled:!g,onClick:function(){function T(){return v("make_other_announcement")}return T}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0411\u0420",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420",disabled:!g,onClick:function(){function T(){return v("dispatch_ert")}return T}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043D":"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0437\u0430\u043F\u0440\u0435\u0449\u0451\u043D",tooltip:L?"\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u041E\u0411\u0420":"\u041E\u0411\u0420 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D",disabled:!g,onClick:function(){function T(){return v("toggle_ert_allowed")}return T}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438",disabled:!g,onClick:function(){function T(){return v("send_nuke_codes")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:'\u041E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"',children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"':'\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"',disabled:!g,onClick:function(){function T(){return v("move_gamma_armory")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0440\u0443\u0433\u043E\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"\u0424\u0430\u043A\u0441-\u043C\u0435\u043D\u0435\u0434\u0436\u0435\u0440",disabled:!g,onClick:function(){function T(){return v("view_fax")}return T}()})})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0434\u0435\u0439\u0441\u0442\u0438\u0439, \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0434\u043B\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,c)})]})},c=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.msg_cooldown,N=s.emagged,x=s.cc_cooldown,B=s.security_level_color,L=s.str_security_level,T=s.levels,A=s.authcapt,E=s.authhead,w=s.messages,O="\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442\u043D\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435";g>0&&(O+=" ("+g+"s)");var M=N?"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 [\u041D\u0415\u0418\u0417\u0412\u0415\u0421\u0422\u041D\u041E]":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",P="\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438";return x>0&&(M+=" ("+x+"s)",P+=" ("+x+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u0430\u043F\u0438\u0442\u0430\u043D"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",color:B,children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.createComponentVNode)(2,l,{levels:T,required_access:A})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:O,disabled:!A||g>0,onClick:function(){function F(){return v("announce")}return F}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!A||x>0,onClick:function(){function F(){return v("MessageSyndicate")}return F}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0440\u0435\u043B\u0435",disabled:!A,onClick:function(){function F(){return v("RestoreBackup")}return F}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!A||x>0,onClick:function(){function F(){return v("MessageCentcomm")}return F}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:P,disabled:!A||x>0,onClick:function(){function F(){return v("nukerequest")}return F}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0438\u0441\u043F\u043B\u0435\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0414\u0438\u0441\u043F\u043B\u0435\u0435\u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0430",disabled:!E,onClick:function(){function F(){return v("status")}return F}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0445\u043E\u0434\u044F\u0449\u0438\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C ("+w.length+")",disabled:!E,onClick:function(){function F(){return v("messagelist")}return F}()})})]})})})],4)},u=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.stat_display,N=s.authhead,x=s.current_message_title,B=g.presets.map(function(T){return(0,e.createComponentVNode)(2,t.Button,{content:T.label,selected:T.name===g.type,disabled:!N,onClick:function(){function A(){return v("setstat",{statdisp:T.id})}return A}()},T.name)}),L=g.alerts.map(function(T){return(0,e.createComponentVNode)(2,t.Button,{content:T.label,selected:T.alert===g.icon,disabled:!N,onClick:function(){function A(){return v("setstat",{statdisp:3,alert:T.alert})}return A}()},T.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u044D\u043A\u0440\u0430\u043D\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function T(){return v("main")}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u0435\u0441\u0435\u0442\u044B",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:g.line_1,disabled:!N,onClick:function(){function T(){return v("setmsg1")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:g.line_2,disabled:!N,onClick:function(){function T(){return v("setmsg2")}return T}()})})]})})})},f=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.authhead,N=s.current_message_title,x=s.current_message,B=s.messages,L=s.security_level,T;if(N)T=(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:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439",disabled:!g,onClick:function(){function E(){return v("messagelist")}return E}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:x})})});else{var A=B.map(function(E){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:E.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C",disabled:!g||N===E.title,onClick:function(){function w(){return v("messagelist",{msgid:E.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",disabled:!g,onClick:function(){function w(){return v("delmessage",{msgid:E.id})}return w}()})]},E.id)});T=(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function E(){return v("main")}return E}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:A})})}return(0,e.createComponentVNode)(2,t.Box,{children:T})},l=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=i.levels,N=i.required_access,x=i.use_confirm,B=s.security_level;return x?g.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function T(){return v("newalertlevel",{level:L.id})}return T}()},L.name)}):g.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function T(){return v("newalertlevel",{level:L.id})}return T}()},L.name)})},d=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin;if(!g)return v("main");var N=(0,a.useLocalState)(h,"subtitle",""),x=N[0],B=N[1],L=(0,a.useLocalState)(h,"text",""),T=L[0],A=L[1],E=(0,a.useLocalState)(h,"classified",0),w=E[0],O=E[1],M=(0,a.useLocalState)(h,"beepsound","Beep"),P=M[0],F=M[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function R(){return v("main")}return R}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0442\u0443\u0442.",fluid:!0,value:x,onChange:function(){function R(U,j){return B(j)}return R}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043A\u0441\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F,\n\u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0441\u044F.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function R(U,j){return A(j)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:w,content:"\u0417\u0430\u0441\u0435\u043A\u0440\u0435\u0447\u0435\u043D\u043E",fluid:!0,m:"5px",tooltip:w?"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043D\u0430 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0441\u0432\u044F\u0437\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438":"\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u043E \u043E\u0431\u044A\u044F\u0432\u0438\u0442\u044C",onClick:function(){function R(){return O(!w)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function R(){return v("make_cc_announcement",{subtitle:x,text:T,classified:w,beepsound:P})}return R}()})]})})}},21813:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(73379),k=n(98595);function y(V,v){V.prototype=Object.create(v.prototype),V.prototype.constructor=V,S(V,v)}function S(V,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,g){return s.__proto__=g,s},S(V,v)}var b={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},C=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],c=r.Contractor=function(){function V(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B;x.unauthorized?B=(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 E(){}return E}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:x.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,m,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:C,finishedTimeout:3e3,onFinished:function(){function E(){return N("complete_load_animation")}return E}()})});var L=(0,t.useLocalState)(s,"viewingPhoto",""),T=L[0],A=L[1];return(0,e.createComponentVNode)(2,k.Window,{width:500,height:600,theme:"syndicate",children:[T&&(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,k.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return V}(),u=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.tc_available,L=x.tc_paid_out,T=x.completed_contracts,A=x.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function E(){return N("claim")}return E}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return N("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function L(){return N("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.contracts,L=x.contract_active,T=x.can_extract,A=!!L&&B.filter(function(P){return P.status===1})[0],E=A&&A.time_left>0,w=(0,t.useLocalState)(s,"viewingPhoto",""),O=w[0],M=w[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||E,icon:"parachute-box",content:["Call Extraction",E&&(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:A.time_left,format:function(){function P(F,R){return" ("+R.substr(3)+")"}return P}()})],onClick:function(){function P(){return N("extract")}return P}()})},v,{children:B.slice().sort(function(P,F){return P.status===1?-1:F.status===1?1:P.status-F.status}).map(function(P){var F;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:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function R(){return M("target_photo_"+P.uid+".png")}return R}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!b[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:b[P.status][1],display:"inline-block",mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:b[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function R(){return N("abort")}return R}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.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 ",P.completed_time]}),!!P.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."]}),!!P.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: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(P)]}),(F=P.difficulties)==null?void 0:F.map(function(R,U){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:R.name+" ("+R.reward+" TC)",onClick:function(){function j(){return N("activate",{uid:P.uid,difficulty:U+1})}return j}()},U)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var s=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,N=v.objective.locs.target_area_id,x=v.objective.locs.target_coords,B=s===N;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(x[1]-g[1],x[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},m=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:L.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,buttons:T.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+T.cost+" Rep)",onClick:function(){function A(){return N("refund",{uid:T.uid})}return A}()}),children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},i=function(V){function v(g){var N;return N=V.call(this,g)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}y(v,V);var s=v.prototype;return s.tick=function(){function g(){var N=this.props,x=this.state;if(x.currentIndex<=N.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=x.currentDisplay;B.push(N.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout)}return g}(),s.componentDidMount=function(){function g(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return g}(),s.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),s.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}return g}(),v}(e.Component),h=function(v,s){var g=(0,t.useLocalState)(s,"viewingPhoto",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:N}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return x("")}return B}()})]})}},54151:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ConveyorSwitch=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.slowFactor,f=c.minSpeed,l=c.maxSpeed,d=c.oneWay,m=c.position;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:"Lever position",children:m>0?"forward":m<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!d,onClick:function(){function i(){return C("toggleOneWay")}return i}()})}),(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 i(){return C("slowFactor",{value:u-.5})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function i(){return C("slowFactor",{value:u-.1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:u,fillValue:u,minValue:f,maxValue:l,step:.1,format:function(){function i(h){return h+"s."}return i}(),onChange:function(){function i(h,V){return C("slowFactor",{value:V})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function i(){return C("slowFactor",{value:u+.1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function i(){return C("slowFactor",{value:u+.5})}return i}()})," "]})]})})]})})})})}return k}()},73169:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),p=n(36036),k=n(36352),y=n(76910),S=n(98595),b=function(h,V){return h.dead?"\u041C\u0451\u0440\u0442\u0432":parseInt(h.health,10)<=V?"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435":parseInt(h.stat,10)===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":"\u0416\u0438\u0432"},C=function(h,V){return h.dead?"red":parseInt(h.health,10)<=V?"orange":parseInt(h.stat,10)===1?"blue":"green"},c=r.CrewMonitor=function(){function i(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=(0,o.useLocalState)(V,"tabIndex",g.IndexToggler),x=N[0],B=N[1],L=function(){function T(A){switch(A){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,m);default:return"\u0427\u0422\u041E-\u0422\u041E \u0422\u041E\u0427\u041D\u041E \u041D\u0415 \u0422\u0410\u041A!"}}return T}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,p.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,p.Tabs,{children:[g.isBS?(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===0,onClick:function(){function T(){return B(0)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0438"]},"ComDataView"):null,g.isBP?(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===1,onClick:function(){function T(){return B(1)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u0421\u043B\u0443\u0436\u0431\u0435 \u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438"]},"SecDataView"):null,(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===2,onClick:function(){function T(){return B(2)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0431 \u042D\u043A\u0438\u043F\u0430\u0436\u0435"]},"DataView"),(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===3,onClick:function(){function T(){return B(3)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"map-marked-alt"})," \u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u041A\u0430\u0440\u0442\u044B"]},"MapView")]}),L(x)]})})})}return i}(),u=function(h){var V=h.crewData,v=h.context,s=(0,o.useBackend)(v),g=s.act,N=s.data,x=(0,a.sortBy)(function(E){return E.name})(V||[]),B=(0,o.useLocalState)(v,"search",""),L=B[0],T=B[1],A=(0,t.createSearch)(L,function(E){return E.name+"|"+E.assignment+"|"+E.area});return(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, \u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u0438\u043B\u0438 \u041B\u043E\u043A\u0430\u0446\u0438\u044E...",width:"100%",onInput:function(){function E(w,O){return T(O)}return E}()}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"})]}),x.filter(A).map(function(E){return(0,e.createComponentVNode)(2,p.Table.Row,{bold:!!E.is_command,children:[(0,e.createComponentVNode)(2,k.TableCell,{children:[E.name," (",E.assignment,")"]}),(0,e.createComponentVNode)(2,k.TableCell,{children:[(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:C(E,N.critThreshold),children:b(E,N.critThreshold)}),E.sensor_type>=2?(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:E.oxy}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:E.tox}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.burn,children:E.fire}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.brute,children:E.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,k.TableCell,{children:E.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"location-arrow",content:E.area+" ("+E.x+", "+E.y+")",onClick:function(){function w(){return g("track",{track:E.ref})}return w}()}):E.area+" ("+E.x+", "+E.y+")":"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E"})]},E.ref)})]})]})},f=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},l=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},d=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},m=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.stationLevelNum,x=g.stationLevelName,B=(0,o.useLocalState)(V,"zoom",1),L=B[0],T=B[1],A=(0,o.useLocalState)(V,"z_current",N[0]),E=A[0],w=A[1],O=function(R){return R.is_command&&g.isBS||R.is_security&&g.isBP?"square":"circle"},M=function(R){return R.is_command&&g.isBS||R.is_security&&g.isBP?10:6},P=function(R,U){return R.is_command&&g.isBS||R.is_security&&g.isBP?R.dead?"red":parseInt(R.health,10)<=U?"orange":parseInt(R.stat,10)===1?"blue":"violet":C(R,U)};return(0,e.createComponentVNode)(2,p.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,p.NanoMap,{onZoom:function(){function F(R){return T(R)}return F}(),zLevels:N,zNames:x,z_current:E,setZCurrent:w,children:g.crewmembers.filter(function(F){return F.sensor_type===3}).map(function(F){return(0,e.createComponentVNode)(2,p.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:E,zoom:L,icon:O(F),size:M(F),tooltip:F.name+" ("+F.assignment+")",color:P(F,g.critThreshold),onClick:function(){function R(){g.isAI&&s("track",{track:F.ref})}return R}()},F.ref)})})})}},63987:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(41260),t=n(72253),o=n(36036),p=n(98595),k=[{label:"\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435",type:"oxyLoss"},{label:"\u0422\u043E\u043A\u0441\u0438\u043D\u044B",type:"toxLoss"},{label:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",type:"bruteLoss"},{label:"\u041E\u0436\u043E\u0433\u0438",type:"fireLoss"}],y=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0421\u043C\u0435\u0440\u0442\u044C"]],S=r.Cryo=function(){function c(u,f){return(0,e.createComponentVNode)(2,p.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return c}(),b=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.isOperating,h=m.hasOccupant,V=m.occupant,v=V===void 0?[]:V,s=m.cellTemperature,g=m.cellTemperatureStatus,N=m.isBeakerLoaded,x=m.auto_eject_healthy,B=m.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:2,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!h,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:h?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:v.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:v.health,max:v.maxHealth,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:y[v.stat][0],children:y[v.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),k.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:v[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C."}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",onClick:function(){function L(){return d(i?"switchOff":"switchOn")}return L}(),selected:i,children:i?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:g,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:s})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){function L(){return d(x?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},C=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.isBeakerLoaded,h=m.beakerLabel,V=m.beakerVolume;return i?(0,e.createFragment)([h?"\xAB"+h+"\xBB":(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.createComponentVNode)(2,o.Box,{color:!V&&"bad",children:V?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:V,format:function(){function v(s){var g=Math.round(s),N=(0,a.declensionRu)(g,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),x=(0,a.declensionRu)(g,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+g+" "+x}return v}()}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})],0):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},86099:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),k=r.CryopodConsole=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.account_name,d=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!d&&(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},m)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.frozen_items,m=function(h){var V=h.toString();return V.startsWith("the ")&&(V=V.slice(4,V.length)),(0,p.toTitleCase)(V)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m(i.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function h(){return f("one_item",{item:i.uid})}return h}()})},i)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function i(){return f("all_items")}return i}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},94848:function(I,r,n){"use strict";r.__esModule=!0,r.Customat=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=function(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=b.product,d=f.user,m=f.userMoney,i=f.vend_ready,h=l.price===0,V="ERROR!",v="";h?(V="FREE",v="arrow-circle-down"):(V=l.price,v="shopping-cart");var s=!i||l.stock===0||!h&&l.price>m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.icon,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:l.stock<=0&&"bad"||"good",children:[l.stock," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:s,icon:v,content:V,textAlign:"left",onClick:function(){function g(){return u("vend",{Key:l.Key})}return g}()})})]})},y=r.Customat=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.guestNotice,d=f.userMoney,m=f.user,i=f.products,h=f.vend_ready,V=f.panel_open,v=f.speaker;return(0,e.createComponentVNode)(2,p.Window,{width:470,height:600,title:"Customat",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"User",children:m&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:l})}),!!V&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:v?"check":"volume-mute",selected:v,content:"Speaker",textAlign:"left",onClick:function(){function s(){return u("toggle_voice",{})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:i.map(function(s){return(0,e.createComponentVNode)(2,k,{product:s,productStock:s.stock},s.name)})})})})]})})})}return S}()},12692:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),k=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["ui","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u0418","dna"],["se","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0424","dna"],["buffer","\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445","syringe"],["rejuvenators","\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B","flask"]],S=[5,10,20,30,50],b=r.DNAModifier=function(){function s(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.irradiating,A=L.dnaBlockSize,E=L.occupant;N.dnaBlockSize=A,N.isDNAInvalid=!E.isViableSubject||!E.uniqueIdentity||!E.structuralEnzymes;var w;return T&&(w=(0,e.createComponentVNode)(2,V,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,p.ComplexModal),w,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c)})]})})]})}return s}(),C=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.locked,A=L.hasOccupant,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u044B\u0439 \u0437\u0430\u043C\u043E\u043A:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",onClick:function(){function w(){return B("toggleLock")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",onClick:function(){function w(){return B("ejectOccupant")}return w}()})],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:"\u0418\u043C\u044F",children:E.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:E.minHealth,max:E.maxHealth,value:E.health/E.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[E.stat][0],children:k[E.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),N.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 \u041D\u0435\u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0439 \u0441\u0443\u0431\u044A\u0435\u043A\u0442. \u041F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0439 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:E.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 \u041D/\u0414"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."})})},c=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedMenuKey,A=L.hasOccupant,E=L.occupant;if(A){if(N.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"),"\u041C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0438 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B."]})})})}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"),"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."]})})});var w;return T==="ui"?w=(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,l)],4):T==="se"?w=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?w=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(w=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(O,M){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:T===O[0],onClick:function(){function P(){return B("selectMenuKey",{key:O[0]})}return P}(),children:O[1]},M)})}),w]})},u=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedUIBlock,A=L.selectedUISubBlock,E=L.selectedUITarget,w=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u0432",children:[(0,e.createComponentVNode)(2,v,{dnaString:w.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:E,format:function(){function O(M){return M.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(M,P){return B("changeUITarget",{value:P})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",mt:"0.5rem",onClick:function(){function O(){return B("pulseUIRadiation")}return O}()})]})},f=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedSEBlock,A=L.selectedSESubBlock,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0445 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u043E\u0432",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",onClick:function(){function w(){return B("pulseSERadiation")}return w}()})]})},l=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0437\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041C\u043E\u0449\u043D\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function E(w,O){return B("radiationIntensity",{value:O})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function E(w,O){return B("radiationDuration",{value:O})}return E}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0435\u0439",tooltip:"\u041C\u0443\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0431\u043B\u043E\u043A, \u0423\u0418 \u0438\u043B\u0438 \u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function E(){return B("pulseRadiation")}return E}()})]})},d=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.buffers,A=T.map(function(E,w){return(0,e.createComponentVNode)(2,m,{id:w+1,name:"\u042F\u0447\u0435\u0439\u043A\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u2116"+(w+1),buffer:E},w)});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:"\u0411\u0443\u0444\u0435\u0440",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,i)})]})},m=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.id,A=g.name,E=g.buffer,w=L.isInjectorReady,O=A+(E.data?" - "+E.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:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!E.data,icon:"trash",content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",onClick:function(){function M(){return B("bufferOption",{option:"clear",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E.data,icon:"pen",content:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",onClick:function(){function M(){return B("bufferOption",{option:"changeLabel",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E.data||!L.hasDisk,icon:"save",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",tooltip:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u044F\u0447\u0435\u0439\u043A\u0443 \u0431\u0443\u0444\u0435\u0440\u0430 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443.",tooltipPosition:"bottom-start",onClick:function(){function M(){return B("bufferOption",{option:"saveDisk",id:T})}return M}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0423\u0418 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUI",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0423\u0418 \u0438 \u0423\u0424 \u0441\u0443\u0431\u044A\u0435\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUIAndUE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveSE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"\u0421 \u0434\u0438\u0441\u043A\u0435\u0442\u044B",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"loadDisk",id:T})}return M}()})]}),!!E.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:E.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[E.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!E.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043D\u043D\u044B\u0445",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:w?"syringe":"spinner",iconSpin:!w,content:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:w?"syringe":"spinner",iconSpin:!w,content:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440 \u0431\u043B\u043E\u043A\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T,block:1})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"transfer",id:T})}return M}()})]})],4)]}),!E.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u0443\u0441\u0442."})]})})},i=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",onClick:function(){function E(){return B("wipeDisk")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function E(){return B("ejectDisk")}return E}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430",children:A.label?A.label:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[A.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!A.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):(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"),"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430."]})})},h=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.isBeakerLoaded,A=L.beakerVolume,E=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B \u0438 \u0451\u043C\u043A\u043E\u0441\u0442\u0438",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C",onClick:function(){function w(){return B("ejectBeaker")}return w}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0432\u0435\u0441\u0442\u0438 \u0445\u0438\u043C\u0438\u043A\u0430\u0442\u044B",children:[S.map(function(w,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:w>A,icon:"syringe",content:w,onClick:function(){function M(){return B("injectRejuvenators",{amount:w})}return M}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"\u0412\u0441\u0435",onClick:function(){function w(){return B("injectRejuvenators",{amount:A})}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:E||"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:["\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C: ",A,"u"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0443\u0441\u0442\u043E"})]})]}):(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,"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430.",16)]})})})},V=function(g,N){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)("\xA0\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442\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)("\u0412 \u0442\u0435\u0447\u0435\u043D\u0438\u0438 "),g.duration,(0,e.createTextVNode)(" \u0441\u0435\u043A\u0443\u043D\u0434"),g.duration%10===1&&g.duration%100!==11?"\u044B":""],0)})]})},v=function(g,N){for(var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.dnaString,A=g.selectedBlock,E=g.selectedSubblock,w=g.blockSize,O=g.action,M=T.split(""),P=0,F=[],R=function(){for(var W=U/w+1,K=[],$=function(){var le=ne+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:A===W&&E===le,content:M[U+ne],mb:"0",onClick:function(){function de(){return B(O,{block:W,subblock:le})}return de}()}))},ne=0;neh.spawnpoints?"red":"green",children:[h.total," \u0432\u044B\u0431\u0440\u0430\u043D\u043E, \u043F\u0440\u043E\u0442\u0438\u0432 ",h.spawnpoints," \u0442\u043E\u0447\u0435\u043A \u0441\u043F\u0430\u0432\u043D\u0430"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420",onClick:function(){function N(){return i("dispatch_ert",{silent:s})}return N}()})})]})})},c=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.ert_request_messages;return(0,e.createComponentVNode)(2,t.Section,{children:V&&V.length?V.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:v.sender_real_name,onClick:function(){function s(){return i("view_player_panel",{uid:v.sender_uid})}return s}(),tooltip:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C Player panel"}),children:v.message},(0,p.decodeHtmlEntities)(v.time))}):(0,e.createComponentVNode)(2,t.Box,{fluid:!0,italic:!0,textAlign:"center",children:"\u041D\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432 \u041E\u0411\u0420"})})},u=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=(0,a.useLocalState)(d,"text",""),v=V[0],s=V[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u043F\u0440\u0438\u0447\u0438\u043D\u0443 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F \u041E\u0411\u0420.\n\u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D.",rows:10,fluid:!0,multiline:1,value:v,onChange:function(){function g(N,x){return s(x)}return g}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"\u041E\u0442\u043A\u043B\u043E\u043D\u0438\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u041E\u0411\u0420",fluid:!0,icon:"times",center:!0,mt:"5px",textAlign:"center",onClick:function(){function g(){return i("deny_ert",{reason:v})}return g}()})]})}},82565:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=r.Electropack=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.power,l=u.code,d=u.frequency,m=u.minFrequency,i=u.maxFrequency;return(0,e.createComponentVNode)(2,p.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function h(){return c("power")}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return c("reset",{reset:"freq"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:i/10,value:d/10,format:function(){function h(V){return(0,a.toFixed)(V,1)}return h}(),width:"80px",onChange:function(){function h(V,v){return c("freq",{freq:v})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return c("reset",{reset:"code"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function h(V,v){return c("code",{code:v})}return h}()})})]})})})})}return y}()},36730:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.EvolutionMenu=function(){function S(b,C){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:574,theme:"changeling",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,y)]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.evo_points,d=f.can_respec;return(0,e.createComponentVNode)(2,t.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{ml:2.5,disabled:!d,content:"Readapt",icon:"sync",onClick:function(){function m(){return u("readapt")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.evo_points,d=f.ability_list,m=f.purchased_abilities,i=f.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:i?"square-o":"check-square-o",selected:!i,content:"Compact",onClick:function(){function h(){return u("set_view_mode",{mode:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:i?"check-square-o":"square-o",selected:i,content:"Expanded",onClick:function(){function h(){return u("set_view_mode",{mode:1})}return h}()})],4),children:d.map(function(h,V){return(0,e.createComponentVNode)(2,t.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{ml:.5,color:"#dedede",children:h.name}),m.includes(h.power_path)&&(0,e.createComponentVNode)(2,t.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,t.Box,{as:"span",bold:!0,color:"#1b945c",children:h.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:h.cost>l||m.includes(h.power_path),content:"Evolve",onClick:function(){function v(){return u("purchase",{power_path:h.power_path})}return v}()})})]}),!!i&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:h.description+" "+h.helptext})]},V)})})}},17370:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),p=n(36036),k=n(73379),y=n(98595),S=["id","amount","lineDisplay","onClick"];function b(V,v){if(V==null)return{};var s={};for(var g in V)if({}.hasOwnProperty.call(V,g)){if(v.includes(g))continue;s[g]=V[g]}return s}var C=2e3,c={bananium:"clown",tranquillite:"mime"},u=r.ExosuitFabricator=function(){function V(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),B&&(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)})]})})]})})})}return V}(),f=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.materials,L=x.capacity,T=Object.values(B).reduce(function(A,E){return A+E},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,p.Box,{color:"label",mt:"0.25rem",children:[(T/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,i,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function E(){return N("withdraw",{id:A})}return E}()},A)})})},l=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.curCategory,L=x.categories,T=x.designs,A=x.syncing,E=(0,o.useLocalState)(s,"searchText",""),w=E[0],O=E[1],M=(0,t.createSearch)(w,function(F){return F.name}),P=T.filter(M);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,p.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function F(R){return N("category",{cat:R})}return F}()}),buttons:(0,e.createComponentVNode)(2,p.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,p.Button,{icon:"plus",content:"Queue all",onClick:function(){function F(){return N("queueall")}return F}()}),(0,e.createComponentVNode)(2,p.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function F(){return N("sync")}return F}()})]}),children:[(0,e.createComponentVNode)(2,p.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function F(R,U){return O(U)}return F}()}),P.map(function(F){return(0,e.createComponentVNode)(2,h,{design:F},F.id)}),P.length===0&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"No designs found."})]})},d=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.building,L=x.buildStart,T=x.buildEnd,A=x.worldTime;return(0,e.createComponentVNode)(2,p.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,p.ProgressBar.Countdown,{start:L,current:A,end:T,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,k.Countdown,{current:A,timeLeft:T-A,format:function(){function E(w,O){return O.substr(3)}return E}()}),")"]})]})})})},m=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.queue,L=x.processingQueue,T=Object.entries(x.queueDeficit).filter(function(E){return E[1]<0}),A=B.reduce(function(E,w){return E+w.time},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function E(){return N("process")}return E}()}),(0,e.createComponentVNode)(2,p.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function E(){return N("unqueueall")}return E}()})]}),children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(E,w){return(0,e.createComponentVNode)(2,p.Box,{color:E.notEnough&&"bad",children:[w+1,". ",E.name,w>0&&(0,e.createComponentVNode)(2,p.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:w+1,to:w})}return O}()}),w0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,p.Divider),"Processing time:",(0,e.createComponentVNode)(2,p.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,p.Divider),"Lacking materials to complete:",T.map(function(E){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,i,{id:E[0],amount:-E[1],lineDisplay:!0})},E[0])})]})],0)})})},i=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=v.id,L=v.amount,T=v.lineDisplay,A=v.onClick,E=b(v,S),w=x.materials[B]||0,O=L||w;if(!(O<=0&&!(B==="metal"||B==="glass"))){var M=L&&L>w;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},E,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__material--amount",color:M&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,p.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,p.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/C*10)/10," ","sheets)"]})]})],4)})))}},h=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=v.design;return(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,p.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function L(){return N("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,p.Button,{icon:"plus-circle",onClick:function(){function L(){return N("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,i,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,p.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},97086:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=0,k=1013,y=function(C){var c="good",u=80,f=95,l=110,d=120;return Cl?c="average":C>d&&(c="bad"),c},S=r.ExternalAirlockController=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.chamber_pressure,m=l.exterior_status,i=l.interior_status,h=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(d),value:d,minValue:p,maxValue:k,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:h,onClick:function(){function V(){return f("cycle_ext")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:h,onClick:function(){function V(){return f("cycle_int")}return V}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:i==="open"?"red":h?"yellow":null,onClick:function(){function V(){return f("force_ext")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:i==="open"?"red":h?"yellow":null,onClick:function(){function V(){return f("force_int")}return V}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!h,onClick:function(){function V(){return f("abort")}return V}()})})]})]})})}return b}()},96142:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.FaxMachine=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function u(){return C("scan")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authenticated?"sign-out-alt":"id-card",selected:c.authenticated,disabled:!c.scan_name&&!c.authenticated,content:c.authenticated?"Log Out":"Log In",onClick:function(){function u(){return C("auth")}return u}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:c.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.paper?"eject":"paperclip",disabled:!c.authenticated&&!c.paper,content:c.paper?c.paper:"-----",onClick:function(){function u(){return C("paper")}return u}()}),!!c.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function u(){return C("rename")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:c.destination?c.destination:"-----",disabled:!c.authenticated,onClick:function(){function u(){return C("dept")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:c.sendError?c.sendError:"Send",disabled:!c.paper||!c.destination||!c.authenticated||c.sendError,onClick:function(){function u(){return C("send")}return u}()})})]})})]})})}return k}()},83767:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=b.icon_state,d=b.direction,m=b.isSelected,i=b.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:f.icon,icon_state:l,direction:d,onClick:i,style:{"border-style":m&&"solid"||"none","border-width":"2px","border-color":"orange",padding:m&&"0px"||"2px"}})},k={NORTH:1,SOUTH:2,EAST:4,WEST:8},y=r.FloorPainter=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.availableStyles,d=f.selectedStyle,m=f.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function i(){return u("cycle_style",{offset:-1})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function i(h){return u("select_style",{style:h})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function i(){return u("cycle_style",{offset:1})}return i}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:l.map(function(i){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,p,{icon_state:i,isSelected:d===i,onSelect:function(){function h(){return u("select_style",{style:i})}return h}()})},i)})})}),(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:[k.NORTH,null,k.SOUTH].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[i+k.WEST,i,i+k.EAST].map(function(h){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:h===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,p,{icon_state:d,direction:h,isSelected:h===m,onSelect:function(){function V(){return u("select_direction",{direction:h})}return V}()})},h)})},i)})})})})]})})})}return S}()},53424:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=function(l){return l?"("+l.join(", ")+")":"ERROR"},y=function(l,d,m){if(!(!l||!d)){if(l[2]!==d[2]||m!==1)return null;var i=Math.atan2(d[1]-l[1],d[0]-l[0]),h=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(i),distance:h}}},S=r.GPS=function(){function f(l,d){var m=(0,t.useBackend)(d),i=m.data,h=i.emped,V=i.active,v=i.area,s=i.position,g=i.saved;return(0,e.createComponentVNode)(2,p.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:h?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,b,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,C)}),V?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,c,{area:v,position:s})}),g&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,c,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,u,{height:"100%"})})],0):(0,e.createComponentVNode)(2,b)],0)})})})}return f}(),b=function(l,d){var m=l.emp;return(0,e.createComponentVNode)(2,o.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:m?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),m?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},C=function(l,d){var m=(0,t.useBackend)(d),i=m.act,h=m.data,V=h.active,v=h.tag,s=h.same_z,g=(0,t.useLocalState)(d,"newTag",v),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function B(){return i("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function B(){return i("tag",{newtag:N})}return B}(),onInput:function(){function B(L,T){return x(T)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return i("tag",{newtag:N})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!s,icon:s?"compress":"expand",content:s?"Local Sector":"Global",onClick:function(){function B(){return i("same_z")}return B}()})})]})})},c=function(l,d){var m=l.title,i=l.area,h=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:m||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[i&&(0,e.createFragment)([i,(0,e.createVNode)(1,"br")],0),k(h)]})})},u=function(l,d){var m=(0,t.useBackend)(d),i=m.data,h=i.position,V=i.signals,v=i.upgraded;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Signals",overflow:"auto"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(s){return Object.assign({},s,y(h,s.position,v))}).map(function(s,g){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:g%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:s.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:s.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:s.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(s.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:s.distance>0?"arrow-right":"circle",rotation:-s.angle}),"\xA0",Math.floor(s.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:k(s.position)})]},g)})})})))}},68703:function(I,r,n){"use strict";r.__esModule=!0,r.GasAnalyzerHistory=r.GasAnalyzerContent=r.GasAnalyzer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GasAnalyzerContent=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.gasmixes,d=f.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:l[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",onClick:function(){function m(){return u("autoscantoggle")}return m}(),tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:l[0].total_moles?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Moles",children:(l[0].total_moles?l[0].total_moles:"-")+" mol"}),l[0].oxygen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:l[0].oxygen.toFixed(2)+" mol ("+(l[0].oxygen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].nitrogen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:l[0].nitrogen.toFixed(2)+" mol ("+(l[0].nitrogen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].carbon_dioxide?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:l[0].carbon_dioxide.toFixed(2)+" mol ("+(l[0].carbon_dioxide/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].toxins?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:l[0].toxins.toFixed(2)+" mol ("+(l[0].toxins/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].sleeping_agent?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:l[0].sleeping_agent.toFixed(2)+" mol ("+(l[0].sleeping_agent/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].agent_b?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Agent B",children:l[0].agent_b.toFixed(2)+" mol ("+(l[0].agent_b/l[0].total_moles).toFixed(2)*100+" %)"}):"",(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(l[0].total_moles?(l[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(l[0].total_moles?l[0].temperature.toFixed(2):"-")+" K)"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume",children:(l[0].total_moles?l[0].volume:"-")+" L"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(l[0].total_moles?l[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heat Capacity",children:l[0].heat_capacity+" / K"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Thermal Energy",children:l[0].thermal_energy})]}):(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},l[0])}return S}(),k=r.GasAnalyzerHistory=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.historyGasmixes,d=f.historyViewMode,m=f.historyIndex;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Scan History",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){function i(){return u("clearhistory")}return i}(),textAlign:"center",disabled:l.length===0}),children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"50%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"kPa",onClick:function(){function i(){return u("modekpa")}return i}(),textAlign:"center",selected:d==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function i(){return u("modemol")}return i}(),textAlign:"center",selected:d==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(i,h){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:h+1+". "+(d==="mol"?i[0].total_moles.toFixed(2):i[0].pressure.toFixed(2)),onClick:function(){function V(){return u("input",{target:h+1})}return V}(),textAlign:"left",selected:h+1===m,fluid:!0})},i[0])})})]})}return S}(),y=r.GasAnalyzer=function(){function S(b,C){var c={float:"left",width:"67%"},u={float:"right",width:"33%"};return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{grow:!0,children:(0,e.createComponentVNode)(2,p)}),2,{style:c}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,k)}),2,{style:u})]})})}return S}()},27546:function(I,r,n){"use strict";r.__esModule=!0,r.GasFreezer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GasFreezer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.pressure,l=c.temperature,d=c.temperatureCelsius,m=c.min,i=c.max,h=c.target,V=c.targetCelsius,v=(l-m)/(i-m);return(0,e.createComponentVNode)(2,o.Window,{width:560,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:u,onClick:function(){function s(){return C("power")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[f," \u043A\u041F\u0430"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[v<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[l," \xB0K (",d," \xB0C)"]}),v>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[l," \xB0K (",d," \xB0C)"]})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",justify:"end",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:(h-m)/(i-m),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[h," \xB0K (",V," \xB0C)"]})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",title:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function s(){return C("temp",{temp:m})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(h),unit:"\xB0K",minValue:Math.round(m),maxValue:Math.round(i),step:5,stepPixelSize:3,onDrag:function(){function s(g,N){return C("temp",{temp:N})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",title:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function s(){return C("temp",{temp:i})}return s}()})]})]})})})})}return k}()},89124:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(35840),o=n(36036),p=n(3939),k=n(98595),y=r.GeneModder=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.has_seed;return(0,e.createComponentVNode)(2,k.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,p.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,S)]})})})}return d}(),S=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Insert Gene from Disk",disabled:!s||!s.can_insert||s.is_core,icon:"arrow-circle-down",onClick:function(){function g(){return V("insert")}return g}()}),children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})},b=function(m,i){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,o.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},C=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.has_seed,g=v.seed,N=v.has_disk,x=v.disk,B,L;return s?B=(0,e.createComponentVNode)(2,o.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",(0,t.classes)(["seeds32x32",g.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:g.name,onClick:function(){function T(){return V("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return V("variant_name")}return T}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function T(){return V("eject_seed")}return T}()})}),N?L=x.name:L="None",(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:L,onClick:function(){function T(){return V("eject_disk")}return T}()})})})]})})},c=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.disk,g=v.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(s!=null&&s.can_extract),icon:"save",onClick:function(){function x(){return V("extract",{id:N.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!N.is_type||!s.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return V("replace",{id:N.id})}return x}()})})]},N)})," ",(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace All",disabled:!(s!=null&&s.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return V("bulk_replace_core")}return N}()})})})]},"Core Genes")},u=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.reagent_genes,s=V.has_reagent;return(0,e.createComponentVNode)(2,l,{title:"Reagent Genes",gene_set:v,do_we_show:s})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.trait_genes,s=V.has_trait;return(0,e.createComponentVNode)(2,l,{title:"Trait Genes",gene_set:v,do_we_show:s})},l=function(m,i){var h=m.title,V=m.gene_set,v=m.do_we_show,s=(0,a.useBackend)(i),g=s.act,N=s.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:h,open:!0,children:v?V.map(function(B){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(x!=null&&x.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},h)}},73053:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),p=r.GenericCrewManifest=function(){function k(y,S){return(0,e.createComponentVNode)(2,t.Window,{width:588,height:510,theme:"nologo",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 k}()},42914:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GhostHudPanel=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.security,f=c.medical,l=c.diagnostic,d=c.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,k,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,k,{label:"Security",type:"security",is_active:u}),(0,e.createComponentVNode)(2,k,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,k,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=S.label,f=S.type,l=f===void 0?null:f,d=S.is_active,m=S.act_on,i=m===void 0?"hud_on":m,h=S.act_off,V=h===void 0?"hud_off":h;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:u}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return c(d?V:i,{hud_type:l})}return v}()})})]})}},25825:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GlandDispenser=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.glands,f=u===void 0?[]:u;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:f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return C("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return k}()},67834:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=[1,5,10,20,30,50],k=null,y=r.HandheldChemDispenser=function(){function C(c,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,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),(0,e.createComponentVNode)(2,b)]})})})}return C}(),S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.amount,i=d.energy,h=d.maxEnergy,V=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[i," / ",h," \u0415\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:p.map(function(v,s){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:m===v,content:v,onClick:function(){function g(){return l("amount",{amount:v})}return g}()})},s)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="dispense",content:"\u0421\u0438\u043D\u0442\u0435\u0437",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="remove",content:"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="isolate",content:"\u0418\u0437\u043E\u043B\u044F\u0446\u0438\u044F",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},b=function(c,u){for(var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.chemicals,i=m===void 0?[]:m,h=d.current_reagent,V=[],v=0;v<(i.length+1)%3;v++)V.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"\u0412\u044B\u0431\u043E\u0440 \u043D\u0430\u043F\u0438\u0442\u043A\u0430":"\u0412\u044B\u0431\u043E\u0440 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",children:[i.map(function(s,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:h===s.id,content:s.title,style:{"margin-left":"2px"},onClick:function(){function N(){return l("dispense",{reagent:s.id})}return N}()},g)}),V.map(function(s,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},75926:function(I,r,n){"use strict";r.__esModule=!0,r.ImplantPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ImplantPad=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.implant,f=c.contains_case,l=c.tag,d=(0,a.useLocalState)(S,"newTag",l),m=d[0],i=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function h(){return C("eject_case")}return h}()})}),children:u&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:u.icon,icon_state:u.icon_state,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),u.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:u.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:u.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:u.function}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:l,onEnter:function(){function h(){return C("tag",{newtag:m})}return h}(),onInput:function(){function h(V,v){return i(v)}return h}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===m,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function h(){return C("tag",{newtag:m})}return h}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):f?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return k}()},25471:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=r.Instrument=function(){function c(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data;return(0,e.createComponentVNode)(2,p.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,C)]})})]})}return c}(),y=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.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 h(){return d("help")}return h}()})]})})})},S=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.lines,h=m.playing,V=m.repeat,v=m.maxRepeats,s=m.tempo,g=m.minTempo,N=m.maxTempo,x=m.tickLag,B=m.volume,L=m.minVolume,T=m.maxVolume,A=m.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 E(){return d("help")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function E(){return d("newsong")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function E(){return d("import")}return E}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:h,disabled:i.length===0||V<0,icon:"play",content:"Play",onClick:function(){function E(){return d("play")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!h,icon:"stop",content:"Stop",onClick:function(){function E(){return d("stop")}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:V,stepPixelSize:59,onChange:function(){function E(w,O){return d("repeat",{new:O})}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:s>=N,content:"-",as:"span",mr:"0.5rem",onClick:function(){function E(){return d("tempo",{new:s+x})}return E}()}),(0,a.round)(600/s)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:s<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function E(){return d("tempo",{new:s-x})}return E}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:T,value:B,stepPixelSize:6,onDrag:function(){function E(w,O){return d("setvolume",{new:O})}return E}()})}),(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,b)]})},b=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.allowedInstrumentNames,h=m.instrumentLoaded,V=m.instrument,v=m.canNoteShift,s=m.noteShift,g=m.noteShiftMin,N=m.noteShiftMax,x=m.sustainMode,B=m.sustainLinearDuration,L=m.sustainExponentialDropoff,T=m.legacy,A=m.sustainDropoffVolume,E=m.sustainHeldNote,w,O;return x===1?(w="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function M(P){return(0,a.round)(P*100)/100+" seconds"}return M}(),onChange:function(){function M(P,F){return d("setlinearfalloff",{new:F/10})}return M}()})):x===2&&(w="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function M(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return M}(),onChange:function(){function M(P,F){return d("setexpfalloff",{new:F})}return M}()})),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:h?(0,e.createComponentVNode)(2,o.Dropdown,{options:i,selected:V,width:"50%",onSelected:function(){function M(P){return d("switchinstrument",{name:P})}return M}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:N,value:s,stepPixelSize:2,format:function(){function M(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return M}(),onChange:function(){function M(P,F){return d("setnoteshift",{new:F})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:w,onSelected:function(){function M(P){return d("setsustainmode",{new:P})}return M}()}),O]}),(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 M(P,F){return d("setdropoffvolume",{new:F})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:E,icon:E?"toggle-on":"toggle-off",content:E?"Yes":"No",onClick:function(){function M(){return d("togglesustainhold")}return M}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function M(){return d("reset")}return M}()})]})})})},C=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.playing,h=m.lines,V=m.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:!V||i,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:h.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!V,icon:V?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!V&&(h.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:h.map(function(v,s){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:s+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:s+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:s+1})}return g}()})],4),children:v},s)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},65021:function(I,r,n){"use strict";r.__esModule=!0,r.ItemPixelShift=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ItemPixelShift=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.pixel_x,f=c.pixel_y,l=c.max_shift_x,d=c.max_shift_y,m=c.random_drop_on;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:160,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:"X-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:u===-l,onClick:function(){function i(){return C("shift_left")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:u,minValue:-l,maxValue:l,onChange:function(){function i(h,V){return C("custom_x",{pixel_x:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:u===l,onClick:function(){function i(){return C("shift_right")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Y-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:f===d,onClick:function(){function i(){return C("shift_up")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:f,minValue:-d,maxValue:d,onChange:function(){function i(h,V){return C("custom_y",{pixel_y:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:f===-d,onClick:function(){function i(){return C("shift_down")}return i}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){function i(){return C("move_to_top")}return i}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function i(){return C("toggle")}return i}()})})]})})]})})}return k}()},13618:function(I,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),p=n(98595),k=n(19203),y=n(51057),S=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},b={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},C=3,c=function(l){var d="";if(l.altKey&&(d+="Alt"),l.ctrlKey&&(d+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(d+="Shift"),l.location===C&&(d+="Numpad"),S(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var m=l.keyCode-48;d+="Shift"+m}else{var i=l.key.toUpperCase();d+=b[i]||i}return d},u=r.KeyComboModal=function(){function f(l,d){var m=(0,t.useBackend)(d),i=m.act,h=m.data,V=h.init_value,v=h.large_buttons,s=h.message,g=s===void 0?"":s,N=h.title,x=h.timeout,B=(0,t.useLocalState)(d,"input",V),L=B[0],T=B[1],A=(0,t.useLocalState)(d,"binding",!0),E=A[0],w=A[1],O=function(){function F(R){if(!E){R.key===a.KEY.Enter&&i("submit",{entry:L}),R.key===a.KEY.Escape&&i("cancel");return}if(R.preventDefault(),S(R)){M(c(R)),w(!1);return}else if(R.key===a.KEY.Escape){M(V),w(!1);return}}return F}(),M=function(){function F(R){R!==L&&T(R)}return F}(),P=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&v?5:0);return(0,e.createComponentVNode)(2,p.Window,{title:N,width:240,height:P,children:[x&&(0,e.createComponentVNode)(2,y.Loader,{value:x}),(0,e.createComponentVNode)(2,p.Window.Content,{onKeyDown:function(){function F(R){O(R)}return F}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:E,content:E&&E!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function F(){M(V),w(!0)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,k.InputButtons,{input:L})})]})]})})]})}return f}()},35655:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.KeycardAuth=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!c.swiping&&!c.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!c.redAvailable,onClick:function(){function l(){return C("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!c.hasSwiped&&!c.ertreason&&c.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):c.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):c.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):c.hasSwiped&&(f=(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:[u,c.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:c.ertreason?"":"red",icon:c.ertreason?"check":"pencil-alt",content:c.ertreason?c.ertreason:"-----",disabled:c.busy,onClick:function(){function l(){return C("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:c.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:c.busy||c.hasConfirm,onClick:function(){function l(){return C("reset")}return l}()}),children:f})]})})}return k}()},40951:function(I,r,n){"use strict";r.__esModule=!0,r.LaborClaimConsole=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=r.LaborClaimConsole=function(){function b(C,c){return(0,e.createComponentVNode)(2,p.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,t.useBackend)(c),f=u.act,l=u.data,d=l.can_go_home,m=l.emagged,i=l.id_inserted,h=l.id_name,V=l.id_points,v=l.id_goal,s=l.unclaimed_points,g=m?0:1,N=m?"ERR0R":d?"Completed!":"Insufficient";return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:!!i&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:V/v,ranges:{good:[g,1/0],bad:[-1/0,g]},children:V+" / "+v+" "+N})||!!m&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Move shuttle",disabled:!d,onClick:function(){function x(){return f("move_shuttle")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed points",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Claim points ("+s+")",disabled:!i||!s,onClick:function(){function x(){return f("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:i?h:"-------------",onClick:function(){function x(){return f("handle_id")}return x}()})})]})})},S=function(C,c){var u=(0,t.useBackend)(c),f=u.data,l=f.ores;return(0,e.createComponentVNode)(2,o.Section,{title:"Material values",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:"Material"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(d.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},9525:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.LawManager=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.isAdmin,m=l.isSlaved,i=l.isMalf,h=l.isAIMalf,V=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:[!!(d&&m)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",m,"."]}),!!(i||h)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:V===0,onClick:function(){function v(){return f("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:V===1,onClick:function(){function v(){return f("set_view",{set_view:1})}return v}()})]}),V===0&&(0,e.createComponentVNode)(2,k),V===1&&(0,e.createComponentVNode)(2,y)]})})}return b}(),k=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.has_zeroth_laws,m=l.zeroth_laws,i=l.has_ion_laws,h=l.ion_laws,V=l.ion_law_nr,v=l.has_inherent_laws,s=l.inherent_laws,g=l.has_supplied_laws,N=l.supplied_laws,x=l.channels,B=l.channel,L=l.isMalf,T=l.isAdmin,A=l.zeroth_law,E=l.ion_law,w=l.inherent_law,O=l.supplied_law,M=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:m,ctx:c}),!!i&&(0,e.createComponentVNode)(2,S,{title:V,laws:h,ctx:c}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:s,ctx:c}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:N,ctx:c}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:x.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===B,onClick:function(){function F(){return f("law_channel",{law_channel:P.channel})}return F}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return f("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return f("notify_laws")}return P}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_zeroth_law")}return P}()})]})]}),(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: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 P(){return f("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_ion_law")}return P}()})]})]}),(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:w}),(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 P(){return f("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_inherent_law")}return P}()})]})]}),(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:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:M,onClick:function(){function P(){return f("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name+" - "+m.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function i(){return f("transfer_laws",{transfer_laws:m.ref})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.laws.has_ion_laws>0&&m.laws.ion_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_zeroth_laws>0&&m.laws.zeroth_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_inherent_laws>0&&m.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_supplied_laws>0&&m.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)})]})},m.name)})})},S=function(C,c){var u=(0,a.useBackend)(C.ctx),f=u.act,l=u.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:C.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),C.laws.map(function(m){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:m.state?"Yes":"No",selected:m.state,onClick:function(){function i(){return f("state_law",{ref:m.ref,state_law:m.state?0:1})}return i}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function i(){return f("edit_law",{edit_law:m.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function i(){return f("delete_law",{delete_law:m.ref})}return i}()})],4)]})]},m.law)})]})})}},90447:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),k=n(92986),y=n(98595),S=r.ListInputModal=function(){function c(u,f){var l=(0,p.useBackend)(f),d=l.act,m=l.data,i=m.items,h=i===void 0?[]:i,V=m.message,v=V===void 0?"":V,s=m.init_value,g=m.timeout,N=m.title,x=(0,p.useLocalState)(f,"selected",h.indexOf(s)),B=x[0],L=x[1],T=(0,p.useLocalState)(f,"searchBarVisible",h.length>10),A=T[0],E=T[1],w=(0,p.useLocalState)(f,"searchQuery",""),O=w[0],M=w[1],P=function(){function ne(Y){var le=K.length-1;if(Y===k.KEY_DOWN)if(B===null||B===le){var de;L(0),(de=document.getElementById("0"))==null||de.scrollIntoView()}else{var oe;L(B+1),(oe=document.getElementById((B+1).toString()))==null||oe.scrollIntoView()}else if(Y===k.KEY_UP)if(B===null||B===0){var re;L(le),(re=document.getElementById(le.toString()))==null||re.scrollIntoView()}else{var Z;L(B-1),(Z=document.getElementById((B-1).toString()))==null||Z.scrollIntoView()}}return ne}(),F=function(){function ne(Y){Y!==B&&L(Y)}return ne}(),R=function(){function ne(){E(!1),E(!0)}return ne}(),U=function(){function ne(Y){var le=String.fromCharCode(Y),de=h.find(function(Z){return Z==null?void 0:Z.toLowerCase().startsWith(le==null?void 0:le.toLowerCase())});if(de){var oe,re=h.indexOf(de);L(re),(oe=document.getElementById(re.toString()))==null||oe.scrollIntoView()}}return ne}(),j=function(){function ne(Y){var le;Y!==O&&(M(Y),L(0),(le=document.getElementById("0"))==null||le.scrollIntoView())}return ne}(),W=function(){function ne(){E(!A),M("")}return ne}(),K=h.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(O.toLowerCase())}),$=330+Math.ceil(v.length/3);return A||setTimeout(function(){var ne;return(ne=document.getElementById(B.toString()))==null?void 0:ne.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:N,width:325,height:$,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function ne(Y){var le=window.event?Y.which:Y.keyCode;(le===k.KEY_DOWN||le===k.KEY_UP)&&(Y.preventDefault(),P(le)),le===k.KEY_ENTER&&(Y.preventDefault(),d("submit",{entry:K[B]})),!A&&le>=k.KEY_A&&le<=k.KEY_Z&&(Y.preventDefault(),U(le)),le===k.KEY_ESCAPE&&(Y.preventDefault(),d("cancel"))}return ne}(),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 ne(){return W()}return ne}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b,{filteredItems:K,onClick:F,onFocusSearch:R,searchBarVisible:A,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,C,{filteredItems:K,onSearch:j,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[B]})})]})})})]})}return c}(),b=function(u,f){var l=(0,p.useBackend)(f),d=l.act,m=u.filteredItems,i=u.onClick,h=u.onFocusSearch,V=u.searchBarVisible,v=u.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:m.map(function(s,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function N(){return i(g)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),d("submit",{entry:m[v]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;V&&B>=k.KEY_A&&B<=k.KEY_Z&&(x.preventDefault(),h())}return N}(),selected:g===v,style:{animation:"none",transition:"none"},children:s.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},C=function(u,f){var l=(0,p.useBackend)(f),d=l.act,m=u.filteredItems,i=u.onSearch,h=u.searchQuery,V=u.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(s){s.preventDefault(),d("submit",{entry:m[V]})}return v}(),onInput:function(){function v(s,g){return i(g)}return v}(),placeholder:"Search...",value:h})}},26826:function(I,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k={Default:function(){function u(f,l){return f.gear.gear_tier-l.gear.gear_tier}return u}(),Alphabetical:function(){function u(f,l){return f.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return u}(),Cost:function(){function u(f,l){return f.gear.cost-l.gear.cost}return u}()},y=r.Loadout=function(){function u(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=(0,t.useLocalState)(l,"search",!1),V=h[0],v=h[1],s=(0,t.useLocalState)(l,"searchText",""),g=s[0],N=s[1],x=(0,t.useLocalState)(l,"category",Object.keys(i.gears)[0]),B=x[0],L=x[1],T=(0,t.useLocalState)(l,"tweakedGear",""),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,p.Window,{width:975,height:650,children:[A&&(0,e.createComponentVNode)(2,c,{tweakedGear:A,setTweakedGear:E}),(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,S,{category:B,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,C,{setTweakedGear:E})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,b,{category:B,search:V,setSearch:v,searchText:g,setSearchText:N})})]})})]})})]})}return u}(),S=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.category,V=f.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(i.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===h,style:{"white-space":"nowrap"},onClick:function(){function s(){return V(v)}return s}(),children:v},v)})})},b=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=i.user_tier,V=i.gear_slots,v=i.max_gear_slots,s=f.category,g=f.search,N=f.setSearch,x=f.searchText,B=f.setSearchText,L=(0,t.useLocalState)(l,"sortType","Default"),T=L[0],A=L[1],E=(0,t.useLocalState)(l,"sortReverse",!1),w=E[0],O=E[1],M=(0,a.createSearch)(x,function(F){return F.name}),P;return x.length>2?P=Object.entries(i.gears).reduce(function(F,R){var U=R[0],j=R[1];return F.concat(Object.entries(j).map(function(W){var K=W[0],$=W[1];return{key:K,gear:$}}))},[]).filter(function(F){var R=F.gear;return M(R)}):P=Object.entries(i.gears[s]).map(function(F){var R=F[0],U=F[1];return{key:R,gear:U}}),P.sort(k[T]),w&&(P=P.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:T,options:Object.keys(k),onSelected:function(){function F(R){return A(R)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:w?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:w?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function F(){return O(!w)}return F}()})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:x,onInput:function(){function F(R){return B(R.target.value)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:g,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function F(){N(!g),B("")}return F}()})})]}),children:P.map(function(F){var R=F.key,U=F.gear,j=12,W=Object.keys(i.selected_gears).includes(R),K=(U.cost===1,U.cost+" Points"),$=(0,e.createComponentVNode)(2,o.Box,{children:[U.name.length>j&&(0,e.createComponentVNode)(2,o.Box,{children:U.name}),U.gear_tier>h&&(0,e.createComponentVNode)(2,o.Box,{mt:U.name.length>j&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),ne=(0,e.createFragment)([U.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:U.allowed_roles.map(function(le){return(0,e.createComponentVNode)(2,o.Box,{children:le},le)})}),tooltipPosition:"left"}),Object.entries(U.tweaks).map(function(le){var de=le[0],oe=le[1];return oe.map(function(re){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:re.icon,tooltip:re.tooltip,tooltipPosition:"top"},de)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:U.desc,tooltipPosition:"top"})],0),Y=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:U.gear_tier>0&&"Tier "+U.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:K})]});return(0,e.createComponentVNode)(2,o.ImageButtonTS,{m:.5,imageSize:84,dmIcon:U.icon,dmIconState:U.icon_state,tooltip:(U.name.length>j||U.gear_tier>0)&&$,tooltipPosition:"bottom",selected:W,disabled:U.gear_tier>h||V+U.cost>v&&!W,buttons:ne,buttonsAlt:Y,onClick:function(){function le(){return m("toggle_gear",{gear:U.index_name})}return le}(),children:U.name},R)})})},C=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.setTweakedGear,V=Object.entries(i.gears).reduce(function(v,s){var g=s[0],N=s[1],x=Object.entries(N).filter(function(B){var L=B[0];return Object.keys(i.selected_gears).includes(L)}).map(function(B){var L=B[0],T=B[1];return Object.assign({key:L},T)});return v.concat(x)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return m("clear_loadout")}return v}()}),children:V.map(function(v){var s=i.selected_gears[v.key];return(0,e.createComponentVNode)(2,o.ImageButtonTS,{fluid:!0,imageSize:48,base64:s.icon,dmIcon:s.icon_file?s.icon_file:v.icon,dmIconState:s.icon_state?s.icon_state:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function g(){return h(v)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"times",iconColor:"red",width:"32px",onClick:function(){function g(){return m("toggle_gear",{gear:v.index_name})}return g}()})],0),children:s.name?s.name:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:i.gear_slots,maxValue:i.max_gear_slots,ranges:{bad:[i.max_gear_slots,1/0],average:[i.max_gear_slots*.66,i.max_gear_slots],good:[0,i.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",i.gear_slots,"/",i.max_gear_slots]})})})})]})},c=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.tweakedGear,V=f.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:h.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return V("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(h.tweaks).map(function(v){var s=v[0],g=v[1];return g.map(function(N){var x=i.selected_gears[h.key][s];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N.name,color:x?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function B(){return m("set_tweak",{gear:h.index_name,tweak:s})}return B}()}),children:[x||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+x}})]},s)})})})})})})}},88832:function(I,r,n){"use strict";r.__esModule=!0,r.MatrixMathTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),p=n(98595),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:b.value,step:.005,format:function(){function f(l){return(0,o.toFixed)(l,3)}return f}(),width:"100%",onChange:function(){function f(l,d){return u("change_var",{var_name:b.varName,var_value:d})}return f}()})},y=r.MatrixMathTester=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.matrix_a,d=f.matrix_b,m=f.matrix_c,i=f.matrix_d,h=f.matrix_e,V=f.matrix_f,v=f.pixelated,s=(0,a.useLocalState)(C,"scale_x",1),g=s[0],N=s[1],x=(0,a.useLocalState)(C,"scale_y",1),B=x[0],L=x[1],T=(0,a.useLocalState)(C,"translate_x",0),A=T[0],E=T[1],w=(0,a.useLocalState)(C,"translate_y",0),O=w[0],M=w[1],P=(0,a.useLocalState)(C,"shear_x",0),F=P[0],R=P[1],U=(0,a.useLocalState)(C,"shear_y",0),j=U[0],W=U[1],K=(0,a.useLocalState)(C,"angle",0),$=K[0],ne=K[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Transform Editor",width:290,height:270,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,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:"30%"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"25%",children:"X"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"25%",children:"Y"})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Position(c, f)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:m,varName:"c"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:V,varName:"f"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Incline(b, d)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:d,varName:"b"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:i,varName:"d"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Scale(a,e)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:l,varName:"a"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:h,varName:"e"})})]})]}),(0,e.createComponentVNode)(2,t.Table,{mt:3,children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Action"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"X"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Y"})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"up-right-and-down-left-from-center",content:"Scale",width:"100%",onClick:function(){function Y(){return u("scale",{x:g,y:B})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:g,step:.05,format:function(){function Y(le){return(0,o.toFixed)(le,2)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return N(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:B,step:.05,format:function(){function Y(le){return(0,o.toFixed)(le,2)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return L(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:"Translate",width:"100%",onClick:function(){function Y(){return u("translate",{x:A,y:O})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:A,step:1,format:function(){function Y(le){return(0,o.toFixed)(le,0)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return E(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:O,step:1,format:function(){function Y(le){return(0,o.toFixed)(le,0)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return M(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"maximize",content:"Shear",width:"100%",onClick:function(){function Y(){return u("shear",{x:F,y:j})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:F,step:.005,format:function(){function Y(le){return(0,o.toFixed)(le,3)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return R(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:j,step:.005,format:function(){function Y(le){return(0,o.toFixed)(le,3)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return W(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"rotate-right",content:"Rotate",width:"100%",onClick:function(){function Y(){return u("turn",{angle:$})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:$,step:.5,maxValue:360,minValue:-360,format:function(){function Y(le){return(0,o.toFixed)(le,1)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return ne(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"dog",color:"bad",selected:v,content:"PET",tooltip:"Pixel Enhanced Transforming",tooltipPosition:"bottom",width:"100%",onClick:function(){function Y(){return u("toggle_pixel")}return Y}()})})]})]})]})})})}return S}()},72106:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.MechBayConsole=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.recharge_port,f=u&&u.mech,l=f&&f.cell,d=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function m(){return C("reconnect")}return m}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(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 k}()},7466:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=n(25328),y=r.MechaControlConsole=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.beacons,d=f.stored_data;return d.length?(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function m(){return u("clear_log")}return m}()}),children:d.map(function(m){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",m.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,k.decodeHtmlEntities)(m.message)})]},m.time)})})})}):(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:l.length&&l.map(function(m){return(0,e.createComponentVNode)(2,o.Section,{title:m.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function i(){return u("send_message",{mt:m.uid})}return i}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function i(){return u("get_log",{mt:m.uid})}return i}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function i(){return u("shock",{mt:m.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:[m.maxHealth*.75,1/0],average:[m.maxHealth*.5,m.maxHealth*.75],bad:[-1/0,m.maxHealth*.5]},value:m.health,maxValue:m.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:m.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.cellMaxCharge*.75,1/0],average:[m.cellMaxCharge*.5,m.cellMaxCharge*.75],bad:[-1/0,m.cellMaxCharge*.5]},value:m.cellCharge,maxValue:m.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[m.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:m.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,k.toTitleCase)(m.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:m.active||"None"}),m.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[m.cargoMax*.75,1/0],average:[m.cargoMax*.5,m.cargoMax*.75],good:[-1/0,m.cargoMax*.5]},value:m.cargoUsed,maxValue:m.cargoMax})})||null]})},m.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},79625:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(3939),k=n(98595),y=n(321),S=n(5485),b=n(22091),C={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},c={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},u=function(T,A){(0,p.modalOpen)(T,"edit",{field:A.edit,value:A.value})},f=function(T,A){var E=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"\u0412\u0438\u0440\u0443\u0441",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:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435",children:E.spread_text}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u043C\u0435\u0442\u043E\u0434\u044B \u043B\u0435\u0447\u0435\u043D\u0438\u044F",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0430\u043C\u0435\u0442\u043A\u0438",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C",color:C[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function L(T,A){var E=(0,t.useBackend)(A),w=E.data,O=w.loginState,M=w.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,k.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var P;return M===2?P=(0,e.createComponentVNode)(2,d):M===3?P=(0,e.createComponentVNode)(2,m):M===4?P=(0,e.createComponentVNode)(2,i):M===5?P=(0,e.createComponentVNode)(2,s):M===6&&(P=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,k.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,B),P]})})]})}return L}(),d=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.records,P=(0,t.useLocalState)(A,"searchText",""),F=P[0],R=P[1],U=(0,t.useLocalState)(A,"sortId","name"),j=U[0],W=U[1],K=(0,t.useLocalState)(A,"sortOrder",!0),$=K[0],ne=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u0437\u0430\u043F\u0438\u0441\u0438",icon:"wrench",ml:"0.25rem",onClick:function(){function Y(){return w("screen",{screen:3})}return Y}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, ID, \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0438\u043B\u0438 \u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",onInput:function(){function Y(le,de){return R(de)}return Y}()})})]})}),(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,N,{id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"\u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"})]}),M.filter((0,a.createSearch)(F,function(Y){return Y.name+"|"+Y.id+"|"+Y.rank+"|"+Y.p_stat+"|"+Y.m_stat})).sort(function(Y,le){var de=$?1:-1;return Y[j].localeCompare(le[j])*de}).map(function(Y){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+c[Y.p_stat],onClick:function(){function le(){return w("view_record",{view_record:Y.ref})}return le}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",Y.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.m_stat})]},Y.id)})]})})})],4)},m=function(T,A){var E=(0,t.useBackend)(A),w=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:"\u0420\u0435\u0437\u0435\u0440\u0432\u043D\u043E\u0435 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443",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:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441 \u0434\u0438\u0441\u043A\u0435\u0442\u044B",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:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445 \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439",onClick:function(){function O(){return w("del_all")}return O}()})})]})})},i=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical,P=O.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:"\u041E\u0441\u043D\u043E\u0432\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:P?"spinner":"print",disabled:P,iconSpin:!!P,content:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u044C",ml:"0.5rem",onClick:function(){function F(){return w("print_record")}return F}()}),children:(0,e.createComponentVNode)(2,h)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C",onClick:function(){function F(){return w("new")}return F}()}),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"),"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C",onClick:function(){function F(){return w("del_r")}return F}()}),children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,v)],4)],0)},h=function(T,A){var E=(0,t.useBackend)(A),w=E.data,O=w.general;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:"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:O.fields.map(function(M,P){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return u(A,M)}return F}()})]},P)})})}),!!O.has_photos&&O.photos.map(function(M,P){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"\u0424\u043E\u0442\u043E \u2116",P+1]},P)})]})},V=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(P,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(P.value),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:P.line_break?"1rem":"initial",onClick:function(){function R(){return u(A,P)}return R}()})]},F)})})})})},v=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439",onClick:function(){function P(){return(0,p.modalOpen)(A,"add_comment")}return P}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):M.comments.map(function(P,F){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:P.header}),(0,e.createVNode)(1,"br"),P.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function R(){return w("del_c",{del_c:F+1})}return R}()})]},F)})})})},s=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.virus,P=(0,t.useLocalState)(A,"searchText",""),F=P[0],R=P[1],U=(0,t.useLocalState)(A,"sortId2","name"),j=U[0],W=U[1],K=(0,t.useLocalState)(A,"sortOrder2",!0),$=K[0],ne=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435, \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0421\u0442\u0430\u0434\u0438\u0439 \u0438\u043B\u0438 \u0422\u044F\u0436\u0435\u0441\u0442\u044C",onInput:function(){function Y(le,de){return R(de)}return Y}()})}),(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,x,{id:"name",children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,x,{id:"max_stages",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439"}),(0,e.createComponentVNode)(2,x,{id:"severity",children:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C"})]}),M.filter((0,a.createSearch)(F,function(Y){return Y.name+"|"+Y.max_stages+"|"+Y.severity})).sort(function(Y,le){var de=$?1:-1;return Y[j].localeCompare(le[j])*de}).map(function(Y){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+Y.severity,onClick:function(){function le(){return w("vir",{vir:Y.D})}return le}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",Y.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:C[Y.severity],children:Y.severity})]},Y.id)})]})})})})],4)},g=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"\u041C\u0435\u0434\u0431\u043E\u0442\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})})}):(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:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B"})]}),M.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+P.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",P.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[P.area||"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"," (",P.x,", ",P.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"\u0412\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.use_beaker?"\u0401\u043C\u043A\u043E\u0441\u0442\u044C: "+P.total_volume+"/"+P.maximum_volume:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 \u0441\u0438\u043D\u0442\u0435\u0437\u0430\u0442\u043E\u0440"})]},P.id)})]})})})},N=function(T,A){var E=(0,t.useLocalState)(A,"sortId","name"),w=E[0],O=E[1],M=(0,t.useLocalState)(A,"sortOrder",!0),P=M[0],F=M[1],R=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:w!==R&&"transparent",onClick:function(){function j(){w===R?F(!P):(O(R),F(!0))}return j}(),children:[U,w===R&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(T,A){var E=(0,t.useLocalState)(A,"sortId2","name"),w=E[0],O=E[1],M=(0,t.useLocalState)(A,"sortOrder2",!0),P=M[0],F=M[1],R=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:w!==R&&"transparent",onClick:function(){function j(){w===R?F(!P):(O(R),F(!0))}return j}(),children:[U,w===R&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.screen,P=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function F(){w("screen",{screen:2})}return F}(),children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function F(){w("screen",{screen:5})}return F}(),children:"\u0411\u0430\u0437\u0430 \u0434\u0430\u043D\u043D\u044B\u0445 \u0432\u0438\u0440\u0443\u0441\u043E\u0432"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===6,onClick:function(){function F(){return w("screen",{screen:6})}return F}(),children:"\u041E\u0442\u0441\u043B\u0435\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u043C\u0435\u0434\u0431\u043E\u0442\u043E\u0432"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u0437\u044B \u0434\u0430\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),M===4&&P&&!P.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["\u0417\u0430\u043F\u0438\u0441\u044C: ",P.fields[0].value]})]})})};(0,p.modalRegisterBodyOverride)("virus",f)},52306:function(I,r,n){"use strict";r.__esModule=!0,r.Mimicking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Mimicking=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.slots||[];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:[u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:f.selected,onClick:function(){function l(){return C("Choose",{id:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function l(){return C("Delete",{id:f.id})}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",f.voice]})},f.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function f(){return C("Add")}return f}()})]})})})})}return k}()},66238:function(I,r,n){"use strict";r.__esModule=!0,r.Minesweeper=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Minesweeper=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.matrix,f=c.showMessage,l=c.tokens,d=c.uiWidth,m={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(g){return g.preventDefault()});var i=function(){function g(N,x,B){N.button!==0&&N.button!==2||C("Square",{X:x,Y:B,mode:N.button===2?s[V]:V})}return g}(),h=(0,a.useLocalState)(S,"mode","bomb"),V=h[0],v=h[1],s={flag:"bomb",bomb:"flag"};return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",width:d+80,height:750,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,{title:"\u0418\u0433\u0440\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435",textAlign:"center",fill:!0,fitted:!0,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",iconColor:"black",selected:V==="bomb",onClick:function(){function g(){return v("bomb")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"flag",iconColor:"red",selected:V==="flag",onClick:function(){function g(){return v("flag")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",onClick:function(){function g(){return C("Mode",{mode:"16x30"})}return g}()})],4),children:[(0,e.createVNode)(1,"p"),Object.keys(u).map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(u[g]).map(function(N){return(0,e.createComponentVNode)(2,t.Button,{m:"1px",height:"30px",width:"30px",className:u[g][N].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:u[g][N].open?u[g][N].bomb?"bomb":"":u[g][N].flag?"flag":"",textColor:u[g][N].open?u[g][N].bomb?"black":m[u[g][N].around]:u[g][N].flag?"red":"gray",onMouseDown:function(){function x(B){return i(B,g,N)}return x}(),children:u[g][N].open&&!u[g][N].bomb&&u[g][N].around?u[g][N].around:" "},N)})},g)}),(0,e.createVNode)(1,"p"),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",className:"Minesweeper__message",children:["\u0414\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B \u043D\u0443\u0436\u043D\u043E \u043F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438 \u0432\u0441\u0435 \u0431\u043E\u043C\u0431\u044B, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435 \u043F\u0443\u0441\u0442\u044B\u0435 \u043A\u043B\u0435\u0442\u043A\u0438.",(0,e.createVNode)(1,"br"),"\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043A\u0435\u043D\u043E\u0432: ",l,(0,e.createVNode)(1,"br"),f]})]})})})})}return k}()},21385:function(I,r,n){"use strict";r.__esModule=!0,r.MiniGamesMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.MiniGamesMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.spawners||[],f=c.thunderdome_eligible,l=c.notifications_enabled;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.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:f?"good":"bad",onClick:function(){function d(){return C("toggle_minigames")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:l?"good":"bad",onClick:function(){function d(){return C("toggle_notifications")}return d}()}),(0,e.createComponentVNode)(2,t.Section,{children:u.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:d.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function m(){return C("jump",{ID:d.uids})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function m(){return C("spawn",{ID:d.uids})}return m}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:d.desc}),!!d.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:d.fluff}),!!d.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:d.important_info})]},d.name)})})]})})}return k}()},87684:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=["title","items"];function y(l,d){if(l==null)return{};var m={};for(var i in l)if({}.hasOwnProperty.call(l,i)){if(d.includes(i))continue;m[i]=l[i]}return m}var S={Alphabetical:function(){function l(d,m){return d-m}return l}(),Availability:function(){function l(d,m){return-(d.affordable-m.affordable)}return l}(),Price:function(){function l(d,m){return d.price-m.price}return l}()},b=r.MiningVendor=function(){function l(d,m){return(0,e.createComponentVNode)(2,p.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,p.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,c)]})})})}return l}(),C=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.has_id,s=V.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,e.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return h("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},c=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.has_id,s=V.id,g=V.items,N=(0,t.useLocalState)(m,"search",""),x=N[0],B=N[1],L=(0,t.useLocalState)(m,"sort","Alphabetical"),T=L[0],A=L[1],E=(0,t.useLocalState)(m,"descending",!1),w=E[0],O=E[1],M=(0,a.createSearch)(x,function(R){return R[0]}),P=!1,F=Object.entries(g).map(function(R,U){var j=Object.entries(R[1]).filter(M).map(function(W){return W[1].affordable=v&&s.points>=W[1].price,W[1]}).sort(S[T]);if(j.length!==0)return w&&(j=j.reverse()),P=!0,(0,e.createComponentVNode)(2,f,{title:R[0],items:j},R[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?F:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(d,m){var i=(0,t.useLocalState)(m,"search",""),h=i[0],V=i[1],v=(0,t.useLocalState)(m,"sort",""),s=v[0],g=v[1],N=(0,t.useLocalState)(m,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return V(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function L(T){return g(T)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"21px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return B(!x)}return L}()})})]})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=d.title,s=d.items,g=y(d,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:s.map(function(N){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:N.imageId,imageAsset:"mining_vendor64x64",content:N.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:N.price,icon:"shopping-cart",iconSize:1,iconColor:!V.has_id||V.id.points"})}),!!O&&(0,e.createComponentVNode)(2,d,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:F?(0,e.createComponentVNode)(2,f,{text:P,defaultText:"",color:"silver"}):(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})}return x}(),c=function(B,L){var T=B.iconName,A=B.machineName,E=B.noMachine,w=B.noMachineText,O=B.noMachineElem,M="Unknown machine",P=E?w:A||"Unknown machine",F=P===w,R=P===w||P===M;return E&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!E&&(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{mr:1,size:1.1,name:T})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.createComponentVNode)(2,o.Box,{as:"span",wordWrap:"break-word",color:F?"label":"silver",fontSize:"1.1rem",bold:!0,italic:R,children:P})})]})},u=function(B,L){var T=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:T})},f=function(B,L){var T=B.text,A=B.defaultText,E=b(B,k);return T?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},E,{children:T}))):(0,e.createComponentVNode)(2,u,{text:A})},l=function(B,L){var T=B.noConfirm,A=T===void 0?!1:T,E=b(B,y);return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},E))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},E)))},d=function(B,L){var T=B.label,A=B.wrapContent,E=B.noWrapContent,w=B.compactLabel,O=w===void 0?!1:w,M=b(B,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},M,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:O?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:O?"auto":0,maxWidth:O?"none":20,color:"label",nowrap:!0,children:T}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:A}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:E})]})))},m=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},i=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},h=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,f,{text:w,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return A("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!w,onClick:function(){function O(){return A("clear_tag")}return O}()})],4)})},V=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.frequency,O=E.minFrequency,M=E.maxFrequency,P=E.canReset;return(0,e.createComponentVNode)(2,d,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:M/10,value:w/10,format:function(){function F(R){return(0,a.toFixed)(R,1)}return F}(),onChange:function(){function F(R,U){return A("set_frequency",{frequency:U*10})}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!P,tooltip:"Reset",onClick:function(){function F(){return A("reset_frequency")}return F}()})],4)})},v=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.attachedTags;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add tag",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_tag")}return O}()}),children:w.map(function(O,M){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O})}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{icon:"minus",color:"red",onClick:function(){function P(){return A("remove_tag",{tag_index:M})}return P}()})})})},M)})})},s=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.bolts,O=E.pressureCheck,M=E.temperatureCheck,P=E.oxygenCheck,F=E.toxinsCheck,R=E.nitrogenCheck,U=E.carbonDioxideCheck,j=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:M,label:"Monitor temperature"},{bitflag:4,checked:P,label:"Monitor oxygen concentration"},{bitflag:8,checked:F,label:"Monitor plasma concentration"},{bitflag:16,checked:R,label:"Monitor nitrogen concentration"},{bitflag:32,checked:U,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:w?"check":"times",selected:w,content:w?"YES":"NO",onClick:function(){function W(){return A("toggle_bolts")}return W}()})}),j.map(function(W){return(0,e.createComponentVNode)(2,d,{label:W.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:W.checked,onClick:function(){function K(){return A("toggle_flag",{bitflag:W.bitflag})}return K}()})},W.bitflag)})],0)},g=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.sensors;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,d,{mr:0,compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:11.3})]})}),Object.keys(w).map(function(O){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O}),w[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:w[O]}):(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"edit",onClick:function(){function M(){return A("change_label",{sensor_tag:O})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!w[O],onClick:function(){function M(){return A("clear_label",{sensor_tag:O})}return M}()})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:.5}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){function M(){return A("del_sensor",{sensor_tag:O})}return M}()})})]})},O)})]})},N=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.inputTag,O=E.outputTag,M=E.bufferTag,P=E.bufferFitsInput,F=E.bufferFitsOutput,R=E.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:w,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:R||!w,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:w&&M===w,disabled:!P,onClick:function(){function U(){return A("link_input")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!w,onClick:function(){function U(){return A("unlink_input")}return U}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:R||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&M===O,disabled:!F,onClick:function(){function U(){return A("link_output")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!O,onClick:function(){function U(){return A("unlink_output")}return U}()})],4)})],4)}},64713:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(76910),k=n(98595),y=n(3939),S=n(22091),b=["icon","iconSpin","selected","security","onClick","title","children"],C=["name"];function c(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}var u=128,f=["security","engineering","medical","science","service","supply"],l={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function B(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.is_security,M=w.is_admin,P=w.is_silent,F=w.is_printing,R=w.screen,U=w.channels,j=w.channel_idx,W=j===void 0?-1:j,K=(0,t.useLocalState)(T,"menuOpen",!1),$=K[0],ne=K[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),le=Y[0],de=Y[1],oe=(0,t.useLocalState)(T,"censorMode",!1),re=oe[0],Z=oe[1],ae;R===0||R===2?ae=(0,e.createComponentVNode)(2,i):R===1&&(ae=(0,e.createComponentVNode)(2,h));var J=U.reduce(function(X,Q){return X+Q.unread},0);return(0,e.createComponentVNode)(2,k.Window,{theme:O&&"security",width:800,height:600,children:[le?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,k.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,m,{icon:"bars",title:"Toggle Menu",onClick:function(){function X(){return ne(!$)}return X}()}),(0,e.createComponentVNode)(2,m,{icon:"newspaper",title:"Headlines",selected:R===0,onClick:function(){function X(){return E("headlines")}return X}(),children:J>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:J>=10?"9+":J})}),(0,e.createComponentVNode)(2,m,{icon:"briefcase",title:"Job Openings",selected:R===1,onClick:function(){function X(){return E("jobs")}return X}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:U.map(function(X){return(0,e.createComponentVNode)(2,m,{icon:X.icon,title:X.name,selected:R===2&&U[W-1]===X,onClick:function(){function Q(){return E("channel",{uid:X.uid})}return Q}(),children:X.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:X.unread>=10?"9+":X.unread})},X)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!M)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function X(){return(0,y.modalOpen)(T,"wanted_notice")}return X}()}),(0,e.createComponentVNode)(2,m,{security:!0,icon:re?"minus-square":"minus-square-o",title:"Censor Mode: "+(re?"On":"Off"),mb:"0.5rem",onClick:function(){function X(){return Z(!re)}return X}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,m,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function X(){return(0,y.modalOpen)(T,"create_story")}return X}()}),(0,e.createComponentVNode)(2,m,{icon:"plus-circle",title:"New Channel",onClick:function(){function X(){return(0,y.modalOpen)(T,"create_channel")}return X}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,m,{icon:F?"spinner":"print",iconSpin:F,title:F?"Printing...":"Print Newspaper",onClick:function(){function X(){return E("print_newspaper")}return X}()}),(0,e.createComponentVNode)(2,m,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function X(){return E("toggle_mute")}return X}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ae]})]})})]})}return B}(),m=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=L.icon,O=w===void 0?"":w,M=L.iconSpin,P=L.selected,F=P===void 0?!1:P,R=L.security,U=R===void 0?!1:R,j=L.onClick,W=L.title,K=L.children,$=c(L,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",F&&"Newscaster__menuButton--selected",U&&"Newscaster__menuButton--security"]),onClick:j},$,{children:[F&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:M,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),K]})))},i=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.screen,M=w.is_admin,P=w.channel_idx,F=w.channel_can_manage,R=w.channels,U=w.stories,j=w.wanted,W=(0,t.useLocalState)(T,"fullStories",[]),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"censorMode",!1),Y=ne[0],le=ne[1],de=O===2&&P>-1?R[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,V,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:de?de.icon:"newspaper",mr:"0.5rem"}),de?de.name:"Headlines"],0),children:U.length>0?U.slice().reverse().map(function(oe){return!K.includes(oe.uid)&&oe.body.length+3>u?Object.assign({},oe,{body_short:oe.body.substr(0,u-4)+"..."}):oe}).map(function(oe,re){return(0,e.createComponentVNode)(2,V,{story:oe},re)}):(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."]})}),!!de&&(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)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!de.admin&&!M,selected:de.censored,icon:de.censored?"comment-slash":"comment",content:de.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function oe(){return E("censor_channel",{uid:de.uid})}return oe}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!F,icon:"cog",content:"Manage",onClick:function(){function oe(){return(0,y.modalOpen)(T,"manage_channel",{uid:de.uid})}return oe}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:de.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:de.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:de.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"}),U.reduce(function(oe,re){return oe+re.view_count},0).toLocaleString()]})]})})]})},h=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.jobs,M=w.wanted,P=Object.entries(O).reduce(function(F,R){var U=R[0],j=R[1];return F+j.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!M&&(0,e.createComponentVNode)(2,V,{story:M,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:P>0?f.map(function(F){return Object.assign({},l[F],{id:F,jobs:O[F]})}).filter(function(F){return!!F&&F.jobs.length>0}).map(function(F){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+F.id]),title:F.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:F.fluff_text}),children:F.jobs.map(function(R){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!R.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",R.title]},R.title)})},F.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."})]})]})},V=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=L.story,M=L.wanted,P=M===void 0?!1:M,F=(0,t.useLocalState)(T,"fullStories",[]),R=F[0],U=F[1],j=(0,t.useLocalState)(T,"censorMode",!1),W=j[0],K=j[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&W&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return E("censor_story",{uid:O.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,p.timeAgo)(O.publish_time,w.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function($,ne){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},ne)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return U([].concat(R,[O.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(L,T){var A=L.name,E=c(L,C),w=(0,t.useLocalState)(T,"viewingPhoto",""),O=w[0],M=w[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function P(){return M(A)}return P}()},E)))},s=function(L,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),E=A[0],w=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:E}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return w("")}return O}()})]})},g=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=!!L.args.uid&&w.channels.filter(function(te){return te.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,y.modalClose)(T);return}var M=L.id==="manage_channel",P=!!L.args.is_admin,F=L.args.scanned_user,R=(0,t.useLocalState)(T,"author",(O==null?void 0:O.author)||F||"Unknown"),U=R[0],j=R[1],W=(0,t.useLocalState)(T,"name",(O==null?void 0:O.name)||""),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"description",(O==null?void 0:O.description)||""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"icon",(O==null?void 0:O.icon)||"newspaper"),oe=de[0],re=de[1],Z=(0,t.useLocalState)(T,"isPublic",M?!!(O!=null&&O.public):!1),ae=Z[0],J=Z[1],X=(0,t.useLocalState)(T,"adminLocked",(O==null?void 0:O.admin)===1||!1),Q=X[0],q=X[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:M?"Manage "+O.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:!P,width:"100%",value:U,onInput:function(){function te(fe,ye){return j(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:K,onInput:function(){function te(fe,ye){return $(ye)}return te}()})}),(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:Y,onInput:function(){function te(fe,ye){return le(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:oe,width:"35%",mr:"0.5rem",onInput:function(){function te(fe,ye){return re(ye)}return te}()}),(0,e.createComponentVNode)(2,o.Icon,{name:oe,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:ae,icon:ae?"toggle-on":"toggle-off",content:ae?"Yes":"No",onClick:function(){function te(){return J(!ae)}return te}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return q(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||K.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,L.id,"",{author:U,name:K.substr(0,49),description:Y.substr(0,128),icon:oe,public:ae?1:0,admin_locked:Q?1:0})}return te}()})]})},N=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.photo,M=w.channels,P=w.channel_idx,F=P===void 0?-1:P,R=!!L.args.is_admin,U=L.args.scanned_user,j=M.slice().sort(function(te,fe){if(F<0)return 0;var ye=M[F-1];if(ye.uid===te.uid)return-1;if(ye.uid===fe.uid)return 1}).filter(function(te){return R||!te.frozen&&(te.author===U||!!te.public)}),W=(0,t.useLocalState)(T,"author",U||"Unknown"),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"channel",j.length>0?j[0].name:""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"title",""),oe=de[0],re=de[1],Z=(0,t.useLocalState)(T,"body",""),ae=Z[0],J=Z[1],X=(0,t.useLocalState)(T,"adminLocked",!1),Q=X[0],q=X[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:K,onInput:function(){function te(fe,ye){return $(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:j.map(function(te){return te.name}),mb:"0",width:"100%",onSelected:function(){function te(fe){return le(fe)}return te}()})}),(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:oe,onInput:function(){function te(fe,ye){return re(ye)}return te}()})}),(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:ae,onInput:function(){function te(fe,ye){return J(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function te(){return E(O?"eject_photo":"attach_photo")}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:oe,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"}),ae.split("\n").map(function(te,fe){return(0,e.createComponentVNode)(2,o.Box,{children:te||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return q(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||Y.trim().length===0||oe.trim().length===0||ae.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,"create_story","",{author:K,channel:Y,title:oe.substr(0,127),body:ae.substr(0,1023),admin_locked:Q?1:0})}return te}()})]})},x=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.photo,M=w.wanted,P=!!L.args.is_admin,F=L.args.scanned_user,R=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||F||"Unknown"),U=R[0],j=R[1],W=(0,t.useLocalState)(T,"name",(M==null?void 0:M.title.substr(8))||""),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"description",(M==null?void 0:M.body)||""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin_locked)===1||!1),oe=de[0],re=de[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:!P,width:"100%",value:U,onInput:function(){function Z(ae,J){return j(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:K,maxLength:"128",onInput:function(){function Z(ae,J){return $(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Y,maxLength:"512",rows:"4",onInput:function(){function Z(ae,J){return le(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function Z(){return E(O?"eject_photo":"attach_photo")}return Z}()}),!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function Z(){return re(!oe)}return Z}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!M,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Z(){E("clear_wanted_notice"),(0,y.modalClose)(T)}return Z}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||K.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Z(){(0,y.modalAnswer)(T,L.id,"",{author:U,name:K.substr(0,127),description:Y.substr(0,511),admin_locked:oe?1:0})}return Z}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",N),(0,y.modalRegisterBodyOverride)("wanted_notice",x)},97351:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaBloodScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(39473),p=n(98595),k=r.NinjaBloodScan=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data;return(0,e.createComponentVNode)(2,p.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,p.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.vialIcons,m=l.noVialIcon,i=l.bloodOwnerNames,h=l.bloodOwnerSpecies,V=l.bloodOwnerTypes,v=l.blockButtons,s=l.scanStates,g={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},N=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start"}),children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(B,L){return(0,e.createComponentVNode)(2,o.FlexItem,{direction:"column",width:"33.3%",ml:L?2:0,children:[(0,e.createComponentVNode)(2,t.Section,{title:i[L]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:N[s[L]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v?g.disabled:g.blue,height:"100%",width:"100%",disabled:v,onClick:function(){function T(){return f("vial_out",{button_num:L+1})}return T}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[L]||m),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:i[L]||" - ",content:"\u0420\u0430\u0441\u0430: "+(h[L]||" - ")+"\n"+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(V[L]||" - ")),position:"bottom"})]})})]},L)})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:v,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){function B(){return f("scan_blood")}return B}()})})]})})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.progressBar;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"green",value:l,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",mt:1,children:l?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(l+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"}),2)})})}},32989:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaMindScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NinjaMindScan=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.occupantIcon,l=u.occupant_name,d=u.occupant_health,m=u.scanned_occupants,i=l==="none"?1:0;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{shrink:1,alignContent:"left",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+f,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,alignContent:"right",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:d})]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:i,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("scan_occupant")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",width:"250px",textAlign:"center",disabled:i,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("go_out")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",width:"250px",textAlign:"center",disabled:i,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("teleport_out")}return h}()})]})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.createComponentVNode)(2,t.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:m.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:h.scanned_occupant})})},h.scanned_occupant)})})})})]})}},41166:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NuclearBomb=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;return c.extended?(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authdisk?"eject":"id-card",selected:c.authdisk,content:c.diskname?c.diskname:"-----",tooltip:c.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function u(){return C("auth")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!c.authdisk,selected:c.authcode,content:c.codemsg,onClick:function(){function u(){return C("code")}return u}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.anchored?"check":"times",selected:c.anchored,disabled:!c.authfull,content:c.anchored?"YES":"NO",onClick:function(){function u(){return C("toggle_anchor")}return u}()})}),c.authfull&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:c.time,disabled:!c.authfull,tooltip:"Set Timer",onClick:function(){function u(){return C("set_time")}return u}()})})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",color:c.timer?"red":"",children:c.time+"s"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.safety?"check":"times",selected:c.safety,disabled:!c.authfull,content:c.safety?"ON":"OFF",tooltip:c.safety?"Disable Safety":"Enable Safety",onClick:function(){function u(){return C("toggle_safety")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(c.timer,"bomb"),disabled:c.safety||!c.authfull,color:"red",content:c.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function u(){return C("toggle_armed")}return u}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function u(){return C("deploy")}return u}()})})})})}return k}()},52416:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),p=n(72253),k=n(36036),y=n(98595),S=r.NumberInputModal=function(){function C(c,u){var f=(0,p.useBackend)(u),l=f.act,d=f.data,m=d.init_value,i=d.large_buttons,h=d.message,V=h===void 0?"":h,v=d.timeout,s=d.title,g=(0,p.useLocalState)(u,"input",m),N=g[0],x=g[1],B=function(){function A(E){E!==N&&x(E)}return A}(),L=function(){function A(E){E!==N&&x(E)}return A}(),T=140+Math.max(Math.ceil(V.length/3),V.length>0&&i?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:s,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(E){var w=window.event?E.which:E.keyCode;w===o.KEY_ENTER&&l("submit",{entry:N}),w===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k.Box,{color:"label",children:V})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,b,{input:N,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return C}(),b=function(c,u){var f=(0,p.useBackend)(u),l=f.act,d=f.data,m=d.min_value,i=d.max_value,h=d.init_value,V=d.round_value,v=c.input,s=c.onClick,g=c.onChange,N=Math.round(v!==m?Math.max(v/2,m):i/2),x=v===m&&m>0||v===1;return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===m,icon:"angle-double-left",onClick:function(){function B(){return s(m)}return B}(),tooltip:v===m?"Min":"Min ("+m+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!V,minValue:m,maxValue:i,onChange:function(){function B(L,T){return g(T)}return B}(),onEnter:function(){function B(L,T){return l("submit",{entry:T})}return B}(),value:v})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===i,icon:"angle-double-right",onClick:function(){function B(){return s(i)}return B}(),tooltip:v===i?"Max":"Max ("+i+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return s(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===h,icon:"redo",onClick:function(){function B(){return s(h)}return B}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},1218:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),p=n(36036),k=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435","oxyLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],C=r.OperatingComputer=function(){function l(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.hasOccupant,s=V.choice,g;return s?g=(0,e.createComponentVNode)(2,f):g=v?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Tabs,{children:[(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!s,icon:"user",onClick:function(){function N(){return h("choiceOff")}return N}(),children:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442"}),(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!!s,icon:"cog",onClick:function(){function N(){return h("choiceOn")}return N}(),children:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return l}(),c=function(d,m){var i=(0,t.useBackend)(m),h=i.data,V=h.occupant;return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u044F",children:V.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[V.stat][0],children:k[V.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,s){return(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:v[0],children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:"100",value:V[v[1]]/100,ranges:S,children:(0,a.round)(V[v[1]])},s)},s)}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:b[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius),"\xB0C, ",(0,a.round)(V.btFaren),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u0443\u043B\u044C\u0441",children:[V.pulse," \u0443\u0434/\u043C\u0438\u043D"]})],4)]})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438",level:"2",children:V.inSurgery?V.surgeries.map(function(v){var s=v.bodypartName,g=v.surgeryName,N=v.stepName;return(0,e.createComponentVNode)(2,p.Section,{title:s,level:"4",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F",children:g}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u044D\u0442\u0430\u043F",children:N})]})},s)}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u043D\u0435 \u043F\u0440\u043E\u0432\u043E\u0434\u044F\u0442\u0441\u044F."})})})]})},u=function(){return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.verbose,s=V.health,g=V.healthAlarm,N=V.oxy,x=V.oxyAlarm,B=V.crit;return(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0414\u0438\u043D\u0430\u043C\u0438\u043A",children:(0,e.createComponentVNode)(2,p.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",onClick:function(){function L(){return h(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:s?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(s?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return h("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return h("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u043A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u043C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(B?"critOff":"critOn")}return L}()})})]})}},46892:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595);function k(m,i){var h=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(h)return(h=h.call(m)).next.bind(h);if(Array.isArray(m)||(h=y(m))||i&&m&&typeof m.length=="number"){h&&(m=h);var V=0;return function(){return V>=m.length?{done:!0}:{done:!1,value:m[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 y(m,i){if(m){if(typeof m=="string")return S(m,i);var h={}.toString.call(m).slice(8,-1);return h==="Object"&&m.constructor&&(h=m.constructor.name),h==="Map"||h==="Set"?Array.from(m):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?S(m,i):void 0}}function S(m,i){(i==null||i>m.length)&&(i=m.length);for(var h=0,V=Array(i);hh},u=function(i,h){var V=i.name,v=h.name;if(!V||!v)return 0;var s=V.match(b),g=v.match(b);if(s&&g&&V.replace(b,"")===v.replace(b,"")){var N=parseInt(s[1],10),x=parseInt(g[1],10);return N-x}return c(V,v)},f=function(i,h){var V=(0,t.useBackend)(h),v=V.act,s=i.searchText,g=i.source,N=i.title,x=g.filter(C(s));return x.sort(u),g.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+g.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return v("orbit",{ref:B.ref})}return L}()},B.name)})})},l=function(i,h){var V=(0,t.useBackend)(h),v=V.act,s=i.color,g=i.thing;return(0,e.createComponentVNode)(2,o.Button,{color:s,onClick:function(){function N(){return v("orbit",{ref:g.ref})}return N}(),children:g.name})},d=r.Orbit=function(){function m(i,h){for(var V=(0,t.useBackend)(h),v=V.act,s=V.data,g=s.alive,N=s.antagonists,x=s.highlights,B=s.auto_observe,L=s.dead,T=s.ghosts,A=s.misc,E=s.npcs,w=(0,t.useLocalState)(h,"searchText",""),O=w[0],M=w[1],P={},F=k(N),R;!(R=F()).done;){var U=R.value;P[U.antag]===void 0&&(P[U.antag]=[]),P[U.antag].push(U)}var j=Object.entries(P);j.sort(function(K,$){return c(K[0],$[0])});var W=function(){function K($){for(var ne=0,Y=[j.map(function(oe){var re=oe[0],Z=oe[1];return Z}),x,g,T,L,E,A];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:j.map(function(K){var $=K[0],ne=K[1];return(0,e.createComponentVNode)(2,o.Section,{title:$,level:2,children:ne.filter(C(O)).sort(u).map(function(Y){return(0,e.createComponentVNode)(2,l,{color:"bad",thing:Y},Y.name)})},$)})}),x.length>0&&(0,e.createComponentVNode)(2,f,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+g.length+")",children:g.filter(C(O)).sort(u).map(function(K){return(0,e.createComponentVNode)(2,l,{color:"good",thing:K},K.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+T.length+")",children:T.filter(C(O)).sort(u).map(function(K){return(0,e.createComponentVNode)(2,l,{color:"grey",thing:K},K.name)})}),(0,e.createComponentVNode)(2,f,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"NPCs",source:E,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"Misc",source:A,searchText:O})]})})}return m}()},15421:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=n(9394);function y(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var S=(0,k.createLogger)("OreRedemption"),b=function(h){return h.toLocaleString("en-US")+" pts"},C=r.OreRedemption=function(){function i(h,V){return(0,e.createComponentVNode)(2,p.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{height:"100%"})}),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})})})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.id,x=g.points,B=g.disk,L=Object.assign({},(y(h),h));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:N?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:N.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return s("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return s("insert_id")}return T}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:b(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:b(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:b(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return s("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return s("eject_disk")}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return s("download")}return T}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},u=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.sheets,x=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},f=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.alloys,x=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,m,{ore:B},B.id)})]})))})},l=function(h,V){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:h.title}),(v=h.columns)==null?void 0:v.map(function(s){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:s[1],textAlign:"center",color:"label",bold:!0,children:s[0]},s)})]})})},d=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=h.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return s(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})},m=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=h.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return s(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})}},30373:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),k=n(70752),y=function(C){var c;try{c=k("./"+C+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",C);throw f}var u=c[C];return u||(0,p.routingError)("missingExport",C)},S=r.PAI=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.app_template,m=l.app_icon,i=l.app_title,h=y(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:m,mr:1}),i,d!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function V(){return f("MASTER_back")}return V}()})]}),p:1,children:(0,e.createComponentVNode)(2,h)})})})}return b}()},85175:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),k=n(59395),y=function(u){var f;try{f=k("./"+u+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",u);throw d}var l=f[u];return l||(0,p.routingError)("missingExport",u)},S=r.PDA=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.app,h=m.owner;if(!h)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var V=y(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,b)}),(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,V)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,C)})]})})})}return c}(),b=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.idInserted,h=m.idLink,V=m.stationTime,v=m.cartridge_name,s=m.request_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 g(){return d("Authenticate")}return g}(),content:i?h:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject")}return g}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject_Request")}return g}(),content:s?["Eject "+s]:"No Request Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:V})]})},C=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.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 h(){return d("Back")}return h}()})}),(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 h(){d("Home")}return h}()})})]})})}},38280:function(I,r,n){"use strict";r.__esModule=!0,r.PDAPainter=r.PDAColorRow=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=r.PDAPainter=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.statusLabel,l=u.pdaTypes,d=u.hasPDA,m=u.pdaIcon,i=u.pdaIconState,h=u.pdaOwnerName,V=u.pdaJobName;return(0,e.createComponentVNode)(2,t.Window,{width:545,height:350,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:24,shrink:0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:d?"eject":"exclamation-triangle",selected:d,content:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function v(){return c(d?"eject_pda":"insert_pda")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:h||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:V||"\u041D/\u0414"})]})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",flex:"1",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.DmIcon,{height:"160px",icon:m,icon_state:i,style:{"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"},align:"middle"})}),(0,e.createComponentVNode)(2,o.LabeledList,{m:"5px",children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:f})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!d,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA",confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){function v(){return c("erase_pda")}return v}()})]})})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:27,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",flex:"1",children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",scrollable:!0,fill:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:Object.keys(l).map(function(v){return(0,e.createComponentVNode)(2,k,{selectedPda:v,selectedPdaIcon:l[v][0]},v)})})})})})]})})})}return y}(),k=r.PDAColorRow=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.hasPDA,l=u.pdaIcon,d=S.selectedPda;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{icon:l,icon_state:d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,disabled:!f,icon:d,content:d,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function m(){return c("choose_pda",{selectedPda:d})}return m}()})})]})}return y}()},68654:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49968),k=r.Pacman=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.broken,l=u.anchored,d=u.active,m=u.fuel_type,i=u.fuel_usage,h=u.fuel_stored,V=u.fuel_cap,v=u.is_ai,s=u.tmp_current,g=u.tmp_max,N=u.tmp_overheat,x=u.output_max,B=u.power_gen,L=u.output_set,T=u.has_fuel,A=h/V,E=s/g,w=L*B,O=Math.round(h/i),M=Math.round(O/60),P=O>120?M+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(f||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!f&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!f&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!f&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!T,selected:d,onClick:function(){function F(){return c("toggle_power")}return F}()}),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:L,minValue:1,maxValue:x,step:1,className:"mt-1",onDrag:function(){function F(R,U){return c("change_power",{change_power:U})}return F}()}),"(",(0,p.formatPower)(w),")"]})})}),(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:[s," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[N>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),N>20&&N<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),N>1&&N<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),N===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:d||v||!T,onClick:function(){function F(){return c("eject_fuel")}return F}()}),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:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(h/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:[i/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!T&&(i?P:"N/A"),!T&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},33388:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PersonalCrafting=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.busy,d=f.category,m=f.display_craftable_only,i=f.display_compact,h=f.prev_cat,V=f.next_cat,v=f.subcategory,s=f.prev_subcat,g=f.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){function N(){return u("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:i?"check-square-o":"square-o",selected:i,onClick:function(){function N(){return u("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return u("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function N(){return u("forwardCat")}return N}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s,icon:"arrow-left",onClick:function(){function N(){return u("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function N(){return u("forwardSubCat")}return N}()})]}),i?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.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 h(){return u("make",{make:i.ref})}return h}()}),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&&m.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)})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.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 h(){return u("make",{make:i.ref})}return h}()}),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&&m.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)})]})}},56150:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(88510),k=n(64795),y=n(25328);function S(f,l){var d=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(d)return(d=d.call(f)).next.bind(d);if(Array.isArray(f)||(d=b(f))||l&&f&&typeof f.length=="number"){d&&(f=d);var m=0;return function(){return m>=f.length?{done:!0}:{done:!1,value:f[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(f,l){if(f){if(typeof f=="string")return C(f,l);var d={}.toString.call(f).slice(8,-1);return d==="Object"&&f.constructor&&(d=f.constructor.name),d==="Map"||d==="Set"?Array.from(f):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?C(f,l):void 0}}function C(f,l){(l==null||l>f.length)&&(l=f.length);for(var d=0,m=Array(l);df?this.substring(0,f)+"...":this};var c=function(l,d){d===void 0&&(d="");var m=(0,y.createSearch)(d,function(i){return i.altername});return(0,k.flow)([(0,p.filter)(function(i){return i==null?void 0:i.altername}),d&&(0,p.filter)(m),(0,p.sortBy)(function(i){return i.id})])(l)},u=r.Photocopier=function(){function f(l,d){for(var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.copies,v=h.maxcopies,s=(0,a.useLocalState)(d,"searchText",""),g=s[0],N=s[1],x=c((0,p.sortBy)(function(P){return P.category})(h.forms||[]),g),B=[],L=S(x),T;!(T=L()).done;){var A=T.value;B.includes(A.category)||B.push(A.category)}var E=(0,a.useLocalState)(d,"number",0),w=E[0],O=E[1],M;return h.category===""?M=x:M=x.filter(function(P){return P.category===h.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:h.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:h.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:h.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":h.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.copyitem&&!h.mob,icon:h.copyitem||h.mob?"eject":"times",content:h.copyitem?h.copyitem:h.mob?"\u0416\u043E\u043F\u0430 "+h.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return i("removedocument")}return P}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.folder,icon:h.folder?"eject":"times",content:h.folder?h.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return i("removefolder")}return P}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:h.toner===0||h.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return i("print_form")}return P}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:h.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function P(){return i("ai_pic")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:h.toner===0||!h.copyitem&&!h.mob,onClick:function(){function P(){return i("copy")}return P}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:h.toner===0,onClick:function(){function P(){return i("ai_text")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:V,stepPixelSize:10,onChange:function(){function P(F,R){return i("copies",{new:R})}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!h.category,onClick:function(){function P(){return i("choose_category",{category:""})}return P}()})}),B.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:P,selected:h.category===P,onClick:function(){function F(){return i("choose_category",{category:P})}return F}()},P)},P)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function P(F,R){return N(R)}return P}()}),children:M.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:P.altername.trimLongStr(37),tooltip:P.altername,selected:h.form_id===P.id,onClick:function(){function F(){return i("choose_form",{path:P.path,id:P.id})}return F}()})},P.path)})})})]})})})}return f}()},49177:function(I,r,n){"use strict";r.__esModule=!0,r.PlayerPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=["checked"];function k(u,f){if(u==null)return{};var l={};for(var d in u)if({}.hasOwnProperty.call(u,d)){if(f.includes(d))continue;l[d]=u[d]}return l}var y=function(f,l){var d,m={ghost:["ghost","dead","observer"],human:["human","carbon"],monkey:["monkey"],cyborg:["cyborg","robot","borg"],ai:["ai","artificial intelligence"],animal:["simple","animal"]};return((d=m[l])==null?void 0:d.some(function(i){return f.toLowerCase().includes(i)}))||!1},S=r.PlayerPanel=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=function(){function V(v,s){s===void 0&&(s={}),m(v,Object.assign({selectedPlayerCkey:i.ckey},s))}return V}();return i.ckey?(0,e.createComponentVNode)(2,o.Window,{title:"Options Panel - "+i.ckey,width:800,height:950,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return h("refresh")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Old Panel",onClick:function(){function V(){return h("old_pp")}return V}()})]}),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)]})})}):(0,e.createComponentVNode)(2,o.Window,{title:"Options Panel - Error",width:800,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"No valid player data found. Please refresh or select a valid player."}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return m("refresh")}return V}()})]})})})}return u}(),b=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=(0,a.useLocalState)(l,"show_ip",!1),V=h[0],v=h[1],s=(0,a.useLocalState)(l,"show_cid",!1),g=s[0],N=s[1],x=function(L,T){T===void 0&&(T={}),m(L,Object.assign({selectedPlayerCkey:i.ckey},T))};return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Player Information",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Character:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.characterName}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Ckey:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.ckey})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.rank}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Discord:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.discord})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Account Registered:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.accountRegistered}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Playtime as Crew:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:i.playtime,onClick:function(){function B(){return x("playtime")}return B}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"CID:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:g?i.CID:"Hidden",onClick:function(){function B(){return N(!g)}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"IP Address:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V?i.ipAddress:"Hidden",onClick:function(){function B(){return v(!V)}return B}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Mob Type:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.mobType}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Byond Version:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.byondVersion})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Related By CID:"}),(0,e.createComponentVNode)(2,t.Button,{content:"Related by CID",color:"blue",onClick:function(){function B(){return x("relatedbycid")}return B}()}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Related By IP:"}),(0,e.createComponentVNode)(2,t.Button,{content:"Related by IP",color:"blue",onClick:function(){function B(){return x("relatedbyip")}return B}()})]})]})})})},C=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=function(g,N){N===void 0&&(N={}),m(g,Object.assign({selectedPlayerCkey:i.ckey},N))},V=function(g){return i.adminRights.toLowerCase().includes(g)||!1},v=function(g){i.ckey&&h("toggleMute",{type:g})};return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Punish",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"times",content:"KICK",color:"red",onClick:function(){function s(){return h("kick")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"JOBBAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("jobban")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bullseye",content:"ADD TO WATCHLIST",color:"red",onClick:function(){function s(){return h("watchlist")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"BAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("ban")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"APPEARANCE BAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("appban")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bolt",content:"SMITE",color:"red",hidden:!V("event"),onClick:function(){function s(){return h("smite")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"hand-holding-heart",content:"BLESS",onClick:function(){function s(){return h("bless")}return s}()}):null]})]})})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Message",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment",content:"PM",onClick:function(){function s(){return h("pm")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment-alt",content:"NARRATE",onClick:function(){function s(){return h("narrate")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"SEND ALERT",onClick:function(){function s(){return h("sendalert")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"SM",disabled:!V("event"),onClick:function(){function s(){return h("sm")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"crown",content:"MAN UP",onClick:function(){function s(){return h("manup")}return s}()}):null,V("sound")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"music",content:"PLAY SOUND TO",onClick:function(){function s(){return h("playsoundto")}return s}()}):null]})]})})})]}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Movement",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"FLW",onClick:function(){function s(){return h("flw")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"download",content:"GET",onClick:function(){function s(){return h("get")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"paper-plane",content:"SEND",onClick:function(){function s(){return h("send")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"running",content:"JUMPTO",onClick:function(){function s(){return h("jumpto")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"sign-out-alt",content:"LOBBY",onClick:function(){function s(){return h("lobby")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"columns",content:"SEND TO CRYO",onClick:function(){function s(){return h("cryo")}return s}()}):null]})]})})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"book",content:"LOGS",onClick:function(){function s(){return h("logs")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"clipboard",content:"NOTES",onClick:function(){function s(){return h("notes")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"PLAYTIME",onClick:function(){function s(){return h("playtime")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"globe",content:"GEOIP",onClick:function(){function s(){return h("geoip")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"TRAITOR PANEL",onClick:function(){function s(){return h("tp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"code",content:"VV",onClick:function(){function s(){return h("vv")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"database",content:"CHECK GLOBAL CCDB",onClick:function(){function s(){return h("ccdb")}return s}()}):null]})]})})})]}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:[V("spawn")?(0,e.createComponentVNode)(2,t.Section,{title:"Transformation",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ghost",content:"MAKE GHOST",color:y(i.mobType,"ghost")?"good":"",onClick:function(){function s(){return h("makeghost")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user",content:"MAKE HUMAN",color:y(i.mobType,"human")?"good":"",onClick:function(){function s(){return h("makehuman")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"paw",content:"MAKE MONKEY",color:y(i.mobType,"monkey")?"good":"",onClick:function(){function s(){return h("makemonkey")}return s}()})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"robot",content:"MAKE CYBORG",color:y(i.mobType,"cyborg")?"good":"",onClick:function(){function s(){return h("makeborg")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microchip",content:"MAKE AI",color:y(i.mobType,"ai")?"good":"",onClick:function(){function s(){return h("makeai")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microchip",content:"ANIMALIZE",color:y(i.mobType,"animal")?"good":"",onClick:function(){function s(){return h("makeanimal")}return s}()})]})]})}):null,y(i.mobType,"ghost")?(0,e.createComponentVNode)(2,t.Section,{title:"Observer",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"TOGGLE RESPAWNABILITY",onClick:function(){function s(){return h("respawnability")}return s}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"staff-snake",content:"RE-INCARNATE",disabled:!V("spawn"),onClick:function(){function s(){return h("reviveghost")}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"heart",content:"HEALTHSCAN",onClick:function(){function s(){return h("healthscan")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GIVE DISEASE",onClick:function(){function s(){return h("giveDisease")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CURE DISEASE",onClick:function(){function s(){return h("cureDisease")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CURE ALL BAD DISEASES",onClick:function(){function s(){return h("cureAllDiseases")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CHEMSCAN",onClick:function(){function s(){return h("chemscan")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"plus",content:"REJUVINATE",disabled:!V("rejuvinate"),onClick:function(){function s(){return h("aheal")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"dna",content:"SHOW DNA",onClick:function(){function s(){return h("mutate")}return s}()}):null]})]})})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:[V("admin")?(0,e.createComponentVNode)(2,t.Section,{title:"Mob Manipulation",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"pencil",content:"MOB RANDOM NAME",onClick:function(){function s(){return h("randomizename")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"shirt",content:"SELECT EQUIPMENT",disabled:!V("event"),onClick:function(){function s(){return h("selectequip")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microphone",content:"CHANGE VOICE",onClick:function(){function s(){return h("changevoice")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"circle-user",content:"MIRROR UI TO ADMIN",onClick:function(){function s(){return h("mirroradmin")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"pen",content:"CHARACTER RANDOM NAME",onClick:function(){function s(){return h("userandomname")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eraser",content:"ERASE FLAVOR",onClick:function(){function s(){return h("eraseflavortext")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"shirt",content:"CHECK CONTENTS",onClick:function(){function s(){return h("checkcontents")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"circle-user",content:"MIRROR UI TO PLAYER",onClick:function(){function s(){return h("mirrorplayer")}return s}()}):null]})]})}):null,(0,e.createComponentVNode)(2,t.Section,{title:"Misc",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME 1",onClick:function(){function s(){return h("thunderdome1")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME 2",onClick:function(){function s(){return h("thunderdome2")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment",content:"FORCESAY",onClick:function(){function s(){return h("forcesay")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"handcuffs",content:"PRISON",onClick:function(){function s(){return h("prison")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL RELEASE",onClick:function(){function s(){return h("contractor_release")}return s}()}):null,V("event")||V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cookie",content:"SPAWN COOKIE",onClick:function(){function s(){return h("spawncookie")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME ADMIN",onClick:function(){function s(){return h("thunderdomeadmin")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"THUNDERDOME OBSERVER",onClick:function(){function s(){return h("thunderdomeobserver")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"wheelchair-move",content:"AROOM WRAP",onClick:function(){function s(){return h("adminroom")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL START",onClick:function(){function s(){return h("contractor_start")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL STOP",onClick:function(){function s(){return h("contractor_stop")}return s}()}):null,(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Some Admin Button",onClick:function(){function s(){return h("someadminbutton")}return s}()})]})]})})]})]}),(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Mute Controls",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:7,children:[(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.ic,onClick:function(){function s(){return v("ic")}return s}(),content:"IC"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.ooc,onClick:function(){function s(){return v("ooc")}return s}(),content:"OOC"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.pray,onClick:function(){function s(){return v("pray")}return s}(),content:"PRAY"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.emote,onClick:function(){function s(){return v("emote")}return s}(),content:"EMOTE"})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.adminhelp,onClick:function(){function s(){return v("adminhelp")}return s}(),content:"ADMINHELP"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.deadchat,onClick:function(){function s(){return v("deadchat")}return s}(),content:"DEADCHAT"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.all,onClick:function(){function s(){return v("all")}return s}(),content:"ALL"})]})]})})})})]})},c=function(f){var l=f.checked,d=k(f,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:l?"red":"green",icon:l?"check-square-o":"square-o"},d)))}},94158:function(I,r,n){"use strict";r.__esModule=!0,r.PodTracking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PodTracking=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Position",children:[f.podx,", ",f.pody,", ",f.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:f.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:f.passengers})]})},f.name)})})})}return k}()},70857:function(I,r,n){"use strict";r.__esModule=!0,r.PollListPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PollListPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.polls||{};return(0,e.createComponentVNode)(2,o.Window,{title:"Poll List Panel",width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Poll List Panel",children:["Currently running polls Note when editing polls or their options changes are not saved until you press Sumbit Poll.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"New Poll",onClick:function(){function f(){return C("newpoll")}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.question,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function l(){return C("editpoll",{poll_to_edit:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function l(){return C("deletepoll",{poll_to_delete:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Results",onClick:function(){function l(){return C("resultspoll",{poll_to_result:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Box,{children:f.description}),(0,e.createComponentVNode)(2,t.Divider)]},"poll")})})]})})})}return k}()},45736:function(I,r,n){"use strict";r.__esModule=!0,r.PollManagement=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),p=n(98595),k=r.PollManagement=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.poll,d=f.has_poll,m=f.poll_types,i=f.interval_types,h=(0,a.useLocalState)(C,"question",l.question),V=h[0],v=h[1],s=(0,a.useLocalState)(C,"poll_type",l.poll_type),g=s[0],N=s[1],x=(0,a.useLocalState)(C,"options_allowed",l.options_allowed),B=x[0],L=x[1],T=(0,a.useLocalState)(C,"admin_only",l.admin_only),A=T[0],E=T[1],w=(0,a.useLocalState)(C,"dont_show",l.dont_show),O=w[0],M=w[1],P=(0,a.useLocalState)(C,"allow_revoting",l.allow_revoting),F=P[0],R=P[1],U=(0,a.useLocalState)(C,"interval",l.interval),j=U[0],W=U[1],K=(0,a.useLocalState)(C,"duration",l.duration),$=K[0],ne=K[1],Y=(0,a.useLocalState)(C,"start_datetime",l.start_datetime),le=Y[0],de=Y[1],oe=(0,a.useLocalState)(C,"end_datetime",l.end_datetime),re=oe[0],Z=oe[1],ae=(0,a.useLocalState)(C,"subtitle",l.subtitle),J=ae[0],X=ae[1],Q=(0,a.useLocalState)(C,"minimum_playtime",l.minimum_playtime),q=Q[0],te=Q[1],fe=(0,a.useLocalState)(C,"run_duration",l.run_duration),ye=fe[0],pe=fe[1],Le=(0,a.useLocalState)(C,"run_start",l.run_start),D=Le[0],ie=Le[1],se=(0,a.useLocalState)(C,"clear_votes",l.clear_votes),Ce=se[0],he=se[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Poll Management",width:600,height:640,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Poll Creation",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Question:",(0,e.createComponentVNode)(2,t.Input,{width:40,placeholder:"Question goes here",value:V,onChange:function(){function ve(Be,we){return v(we)}return ve}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{inline:!0,pl:1,children:"Choice:"}),(0,e.createComponentVNode)(2,t.Dropdown,{width:10,disabled:d,options:m,selected:g,onSelected:function(){function ve(Be){return N(Be)}return ve}()}),d&g!=="Multiple Choice"?null:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Mult-choice options allowed:",(0,e.createComponentVNode)(2,t.NumberInput,{width:3,minValue:0,maxValue:100,value:B,onChange:function(){function ve(Be,we){return L(!B)}return ve}()})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Admin only",checked:A,onClick:function(){function ve(){return E(!A)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Don't show",checked:O,onClick:function(){function ve(){return M(!O)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Allow revoting",checked:F,onClick:function(){function ve(){return R(!F)}return ve}()}),"Min. playtime to vote (in hours):",(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{width:3,placeholder:"Number of hours",value:q,onChange:function(){function ve(Be,we){return te(we)}return ve}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:[(0,e.createComponentVNode)(2,t.Box,{children:"Duration"}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",py:1,content:ye?"Run for":"Run until",onClick:function(){function ve(){return pe(!ye)}return ve}()}),ye?(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,t.NumberInput,{placeholder:"Amount number",width:3,minValue:0,maxValue:100,value:$,onChange:function(){function ve(Be,we){return ne(we)}return ve}()}),(0,e.createComponentVNode)(2,t.Dropdown,{options:i,selected:j,onSelected:function(){function ve(Be){return W(Be)}return ve}()})]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Until:",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:re||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return Z(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Start"}),(0,e.createComponentVNode)(2,t.Button,{content:D?"Now":"At datetime",onClick:function(){function ve(){return ie(!D)}return ve}()}),D?null:(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:le||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return de(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Subtitle (Optional)",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:10,width:20,rows:"12",value:J,onChange:function(){function ve(Be,we){return X(we)}return ve}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d?(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Clear poll votes",onClick:function(){function ve(){return u("clear_poll_votes")}return ve}()}),l.poll_votes," players have voted"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Clear votes on edit",checked:Ce,onClick:function(){function ve(){return he(!Ce)}return ve}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:2,content:"Submit Poll",onClick:function(){function ve(){return u("submit_poll",{question:V,poll_type:g,options_allowed:B,admin_only:A,dont_show:O,allow_revoting:F,interval:j,duration:$,start_datetime:le,end_datetime:re,subtitle:J,poll_votes:q,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})]}):(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:1,m:2,content:"Initliaze Question",onClick:function(){function ve(){return u("initialize_poll",{question:V,poll_type:g,options_allowed:B,admin_only:A,dont_show:O,allow_revoting:F,interval:j,duration:$,start_datetime:le,end_datetime:re,subtitle:J,poll_votes:q,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Questions Manage",children:d?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{children:"First enter the poll question details and press Initialize Question. Then add poll options and press Submit Poll to save and create the question and options. No options are required for Text Reply polls."})})]})})}return S}(),y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.poll,d=l.options,m=(0,a.useLocalState)(C,"poll_type",null),i=m[0],h=m[1];return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add Option",onClick:function(){function V(){return u("add_poll_option")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Option "+V.num,children:[V.text,i==="Rating"?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value: ",V.min_val," | Maximum value:"," ",V.max_val,"Minimum description: ",V.desc_min,"Middle description: ",V.desc_mid,"Maximum description: ",V.desc_max]}):null,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function v(){return u("edit_poll_option",{option_to_edit:V.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function v(){return u("delete_poll_option",{option_to_delete:V.id})}return v}()}),(0,e.createComponentVNode)(2,t.Divider)]},"option")})})})]})}},80378:function(I,r,n){"use strict";r.__esModule=!0,r.PollOptionPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),p=n(98595),k=r.PollOptionPanel=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.poll_question,l=u.is_rating,d=u.option,m=(0,a.useLocalState)(b,"text",d.text),i=m[0],h=m[1],V=(0,a.useLocalState)(b,"default_percentage_calc",d.default_percentage_calc),v=V[0],s=V[1],g=(0,a.useLocalState)(b,"min_val",d.min_val),N=g[0],x=g[1],B=(0,a.useLocalState)(b,"max_val",d.max_val),L=B[0],T=B[1],A=(0,a.useLocalState)(b,"desc_min_check",d.desc_min_check),E=A[0],w=A[1],O=(0,a.useLocalState)(b,"desc_mid_check",d.desc_mid_check),M=O[0],P=O[1],F=(0,a.useLocalState)(b,"desc_max_check",d.desc_max_check),R=F[0],U=F[1],j=(0,a.useLocalState)(b,"desc_min_text",d.desc_min_text),W=j[0],K=j[1],$=(0,a.useLocalState)(b,"desc_mid_text",d.desc_min_text),ne=$[0],Y=$[1],le=(0,a.useLocalState)(b,"desc_max_text",d.desc_min_text),de=le[0],oe=le[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Poll Option Panel",width:400,height:l?320:180,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:f,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{width:"100%",content:i,onChange:function(){function re(Z,ae){return h(ae)}return re}()})}),(0,e.createVNode)(1,"br"),l?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value",(0,e.createComponentVNode)(2,t.Input,{value:N}),"Maximum Value",(0,e.createComponentVNode)(2,t.Input,{value:L}),(0,e.createComponentVNode)(2,Table,{children:[(0,e.createComponentVNode)(2,Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Minimum description",checked:E,onClick:function(){function re(){return w(!E)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Middle description",checked:M,onClick:function(){function re(){return P(!M)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Maximum description",checked:R,onClick:function(){function re(){return U(!R)}return re}()})})]}),(0,e.createComponentVNode)(2,Table.Row,{children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:W,onEnter:function(){function re(Z,ae){return K(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:ne,onEnter:function(){function re(Z,ae){return Y(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:de,onEnter:function(){function re(Z,ae){return oe(ae)}return re}()})})]})]}),(0,e.createVNode)(1,"br")]}):null,(0,e.createComponentVNode)(2,o.ButtonCheckbox,{checked:v,content:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u043F\u0446\u0438\u044E \u0432 \u0440\u0430\u0441\u0447\u0435\u0442 \u043F\u0440\u043E\u0446\u0435\u043D\u0442\u0430 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u043E\u043F\u0440\u043E\u0441\u0430",onClick:function(){function re(){return s(!v)}return re}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Sumbit",onClick:function(){function re(){return c("submit_option",{text:i,default_percentage_calc:v,min_val:N,max_val:L,desc_min_check:E,desc_mid_check:M,desc_max_check:R,desc_min_text:W,desc_mid_text:ne,desc_max_text:de})}return re}()})]})})})}return y}()},84676:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=["tempKey"];function k(C,c){if(C==null)return{};var u={};for(var f in C)if({}.hasOwnProperty.call(C,f)){if(c.includes(f))continue;u[f]=C[f]}return u}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(c,u){var f=c.tempKey,l=k(c,p),d=y[f];if(!d)return null;var m=(0,a.useBackend)(u),i=m.data,h=m.act,V=i.currentTemp,v=d.label,s=d.icon,g=f===V,N=function(){h("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:g,onClick:N},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s}),v]})))},b=r.PoolController=function(){function C(c,u){for(var f=(0,a.useBackend)(u),l=f.data,d=l.emagged,m=l.currentTemp,i=y[m]||y.normal,h=i.label,V=i.color,v=[],s=0,g=Object.entries(y);s50?"battery-half":"battery-quarter")||V==="C"&&"bolt"||V==="F"&&"battery-full"||V==="M"&&"slash",color:V==="N"&&(v>50?"yellow":"red")||V==="C"&&"yellow"||V==="F"&&"green"||V==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=p.pureComponentHooks;var m=function(h){var V,v,s=h.status;switch(s){case"AOn":V=!0,v=!0;break;case"AOff":V=!0,v=!1;break;case"On":V=!1,v=!0;break;case"Off":V=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(V?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:V?void 0:"M",title:g})};m.defaultHooks=p.pureComponentHooks},50992:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(3939),k=n(321),y=n(5485),S=n(98595),b=r.PrisonerImplantManager=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.loginState,i=d.prisonerInfo,h=d.chemicalInfo,V=d.trackingInfo,v;if(!m.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var s=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.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 g(){return l("id_card")}return g}()})}),(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 g(){return l("reset_points")}return g}()})]}),(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 g(){return(0,p.modalOpen)(u,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden: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:V.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function N(){return(0,p.modalOpen)(u,"warn",{uid:g.uid})}return N}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:h.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),s.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume1100?"purple":m>500?"orange":m>250?"yellow":"green"},S=function(m,i){for(var h=[],V=0;V0?"envelope-open-text":"envelope",onClick:function(){function x(){return h("setScreen",{setScreen:6})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){function x(){return h("setScreen",{setScreen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function x(){return h("setScreen",{setScreen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function x(){return h("setScreen",{setScreen:3})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){function x(){return h("setScreen",{setScreen:9})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function x(){return h("setScreen",{setScreen:10})}return x}()})})]}),!!s&&(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function x(){return h("setScreen",{setScreen:8})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Speaker Off":"Speaker On",selected:!g,icon:g?"volume-mute":"volume-up",onClick:function(){function x(){return h("toggleSilent")}return x}()})})]})},S=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.department,s,g;switch(d.purpose){case"ASSISTANCE":s=V.assist_dept,g="Request assistance from another department";break;case"SUPPLIES":s=V.supply_dept,g="Request supplies from another department";break;case"INFO":s=V.info_dept,g="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return h("setScreen",{setScreen:0})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:s.filter(function(N){return N!==v}).map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function x(){return h("writeInput",{write:N,priority:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function x(){return h("writeInput",{write:N,priority:2})}return x}()})]},N)})})})},b=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v;switch(d.type){case"SUCCESS":v="Message sent successfully";break;case"FAIL":v="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function s(){return h("setScreen",{setScreen:0})}return s}()})})},C=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v,s;switch(d.type){case"MESSAGES":v=V.message_log,s="Message Log";break;case"SHIPPING":v=V.shipping_log,s="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:s,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return h("setScreen",{setScreen:0})}return g}()}),children:v.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:g},g)})})},c=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.recipient,s=V.message,g=V.msgVerified,N=V.msgStamped;return(0,e.createComponentVNode)(2,t.Section,{title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function x(){return h("setScreen",{setScreen:0})}return x}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:N})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function x(){return h("department",{department:v})}return x}()})]})},u=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.message,s=V.announceAuth;return(0,e.createComponentVNode)(2,t.Section,{title:"Station-Wide Announcement",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return h("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:v||"Edit Message",icon:"edit",onClick:function(){function g(){return h("writeAnnouncement")}return g}()}),s?(0,e.createComponentVNode)(2,t.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(s&&v),onClick:function(){function g(){return h("sendAnnouncement")}return g}()})]})},f=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.shipDest,s=V.msgVerified,g=V.ship_dept;return(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 N(){return h("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:s})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(v&&s),onClick:function(){function N(){return h("printLabel")}return N}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:(0,e.createComponentVNode)(2,t.Button,{content:v===N?"Selected":"Select",selected:v===N,onClick:function(){function x(){return h("shipSelect",{shipSelect:N})}return x}()})},N)})})})]})}},3786:function(I,r,n){"use strict";r.__esModule=!0,r.RequestManager=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595);/** + */function f(T,A){T.prototype=Object.create(A.prototype),T.prototype.constructor=T,l(T,A)}function l(T,A){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,w){return E.__proto__=w,E},l(T,A)}function d(T,A){if(T==null)return{};var E={};for(var w in T)if({}.hasOwnProperty.call(T,w)){if(A.includes(w))continue;E[w]=T[w]}return E}var m=r.ColorPickerModal=function(){function T(A,E){var w=(0,t.useBackend)(E),O=w.data,M=O.timeout,P=O.message,F=O.title,R=O.autofocus,U=O.default_color,j=U===void 0?"#000000":U,W=(0,t.useLocalState)(E,"color_picker_choice",(0,y.hexToHsva)(j)),K=W[0],$=W[1];return(0,e.createComponentVNode)(2,p.Window,{height:400,title:F,width:600,theme:"generic",children:[!!M&&(0,e.createComponentVNode)(2,a.Loader,{value:M}),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[P&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:P})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!R&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,i,{color:K,setColor:$,defaultColor:j})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c.InputButtons,{input:(0,y.hsvaToHex)(K)})})]})})]})}return T}(),i=r.ColorSelector=function(){function T(A,E){var w=A.color,O=A.setColor,M=A.defaultColor,P=function(){function U(j){O(function(W){return Object.assign({},W,j)})}return U}(),F=(0,y.hsvaToRgba)(w),R=(0,y.hsvaToHex)(w);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,g,{hsva:w,onChange:P}),(0,e.createComponentVNode)(2,N,{hue:w.h,onChange:P,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:R,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:R})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:M,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:M})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,y.hsvaToHex)(w).substring(1),onChange:function(){function U(j){C.logger.info(j),O((0,y.hexToHsva)(j))}return U}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N,{hue:w.h,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.h,callback:function(){function U(j,W){return P({h:W})}return U}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,x,{color:w,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.s,callback:function(){function U(j,W){return P({s:W})}return U}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{color:w,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.v,callback:function(){function U(j,W){return P({v:W})}return U}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.r,callback:function(){function U(j,W){F.r=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.g,callback:function(){function U(j,W){F.g=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.b,callback:function(){function U(j,W){F.b=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})})]})})]})}return T}(),h=function(A){var E=A.value,w=A.callback,O=A.min,M=O===void 0?0:O,P=A.max,F=P===void 0?100:P,R=A.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(E),step:1,minValue:M,maxValue:F,onChange:w,unit:R})},V=function(A){return"#"+A},v=r.HexColorInput=function(){function T(A){var E=A.prefixed,w=A.alpha,O=A.color,M=A.fluid,P=A.onChange,F=d(A,u),R=function(){function j(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,w?8:6)}return j}(),U=function(){function j(W){return(0,y.validHex)(W,w)}return j}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},F,{fluid:M,color:O,onChange:P,escape:R,format:E?V:void 0,validate:U})))}return T}(),s=r.ColorInput=function(T){function A(w){var O;return O=T.call(this)||this,O.props=void 0,O.state=void 0,O.handleInput=function(M){var P=O.props.escape(M.currentTarget.value);O.setState({localValue:P})},O.handleBlur=function(M){M.currentTarget&&(O.props.validate(M.currentTarget.value)?O.props.onChange(O.props.escape?O.props.escape(M.currentTarget.value):M.currentTarget.value):O.setState({localValue:O.props.escape(O.props.color)}))},O.props=w,O.state={localValue:O.props.escape(O.props.color)},O}f(A,T);var E=A.prototype;return E.componentDidUpdate=function(){function w(O,M){O.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return w}(),E.render=function(){function w(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,b.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return w}(),A}(e.Component),g=function(A){var E=A.hsva,w=A.onChange,O=function(R){w({s:R.left*100,v:100-R.top*100})},M=function(R){w({s:(0,k.clamp)(E.s+R.left*100,0,100),v:(0,k.clamp)(E.v-R.top*100,0,100)})},P={"background-color":(0,y.hsvaToHslString)({h:E.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,S.Interactive,{onMove:O,onKey:M,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(E.s)+"%, Brightness "+Math.round(E.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-E.v/100,left:E.s/100,color:(0,y.hsvaToHslString)(E)})}),2,{style:P})},N=function(A){var E=A.className,w=A.hue,O=A.onChange,M=function(U){O({h:360*U.left})},P=function(U){O({h:(0,k.clamp)(w+U.left*360,0,360)})},F=(0,b.classes)(["react-colorful__hue",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{onMove:M,onKey:P,"aria-label":"Hue","aria-valuenow":Math.round(w),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:w/360,color:(0,y.hsvaToHslString)({h:w,s:100,v:100,a:1})})}),2)},x=function(A){var E=A.className,w=A.color,O=A.onChange,M=function(U){O({s:100*U.left})},P=function(U){O({s:(0,k.clamp)(w.s+U.left*100,0,100)})},F=(0,b.classes)(["react-colorful__saturation",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:w.h,s:0,v:w.v,a:1})+", "+(0,y.hsvaToHslString)({h:w.h,s:100,v:w.v,a:1})+")"},onMove:M,onKey:P,"aria-label":"Saturation","aria-valuenow":Math.round(w.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:w.s/100,color:(0,y.hsvaToHslString)({h:w.h,s:w.s,v:w.v,a:1})})}),2)},B=function(A){var E=A.className,w=A.color,O=A.onChange,M=function(U){O({v:100*U.left})},P=function(U){O({v:(0,k.clamp)(w.v+U.left*100,0,100)})},F=(0,b.classes)(["react-colorful__value",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:w.h,s:w.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:w.h,s:w.s,v:100,a:1})+")"},onMove:M,onKey:P,"aria-label":"Value","aria-valuenow":Math.round(w.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:w.v/100,color:(0,y.hsvaToHslString)({h:w.h,s:w.s,v:w.v,a:1})})}),2)},L=function(A){var E=A.className,w=A.color,O=A.onChange,M=A.target,P=(0,y.hsvaToRgba)(w),F=function($){P[M]=$,O((0,y.rgbaToHsva)(P))},R=function($){F(255*$.left)},U=function($){F((0,k.clamp)(P[M]+$.left*255,0,255))},j=(0,b.classes)(["react-colorful__"+M,E]),W=M==="r"?"rgb("+Math.round(P.r)+",0,0)":M==="g"?"rgb(0,"+Math.round(P.g)+",0)":"rgb(0,0,"+Math.round(P.b)+")";return(0,e.createVNode)(1,"div",j,(0,e.createComponentVNode)(2,S.Interactive,{onMove:R,onKey:U,"aria-valuenow":P[M],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+M+"-pointer",left:P[M]/255,color:W})}),2)}},63818:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={1:function(){function m(){return(0,e.createComponentVNode)(2,b)}return m}(),2:function(){function m(){return(0,e.createComponentVNode)(2,u)}return m}(),3:function(){function m(){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f)})})}return m}(),4:function(){function m(){return(0,e.createComponentVNode)(2,d)}return m}(),default:function(){function m(){return"\u041E\u0448\u0438\u0431\u043A\u0430. \u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0435 menu_state. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439 NT."}return m}()},k=function(i){return p[i]},y=r.CommunicationsComputer=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,title:"\u041A\u043E\u043D\u0441\u043E\u043B\u044C \u0441\u0432\u044F\u0437\u0438",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,S),k(g)()]})})})}return m}(),S=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.authenticated,N=s.noauthbutton,x=s.esc_section,B=s.esc_callable,L=s.esc_recallable,T=s.esc_status,A=s.authhead,E=s.is_ai,w=s.lastCallLoc,O=!1,M;return g?g===1?M="\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435":g===2?M="\u041A\u0430\u043F\u0438\u0442\u0430\u043D":g===3?M="\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F":g===4?(M="\u0417\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0426\u0435\u043D\u0442\u041A\u043E\u043C\u0430",O=!0):M="\u041E\u0428\u0418\u0411\u041A\u0410: \u0421\u043E\u043E\u0431\u0449\u0438\u0442\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u0431\u0430\u0433\u0435!":M="\u0412\u0445\u043E\u0434 \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0410\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u043E\u0441\u0442\u0443\u043F",children:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:g?"sign-out-alt":"id-card",selected:g,disabled:N,content:g?"\u0412\u044B\u0439\u0442\u0438 ("+M+")":"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function P(){return v("auth")}return P}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!x&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u042D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!T&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:T}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"\u0412\u044B\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B",disabled:!A,onClick:function(){function P(){return v("callshuttle")}return P}()})}),!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B",disabled:!A||E,onClick:function(){function P(){return v("cancelshuttle")}return P}()})}),!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0432\u044B\u0437\u043E\u0432/\u043E\u0442\u0437\u044B\u0432 \u0438\u0437",children:w})]})})})],4)},b=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin;return g?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,c)},C=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin,N=s.gamma_armory_location,x=s.admin_levels,B=s.authenticated,L=s.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.createComponentVNode)(2,l,{levels:x,required_access:g,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",disabled:!g,onClick:function(){function T(){return v("send_to_cc_announcement_page")}return T}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",disabled:!g,onClick:function(){function T(){return v("make_other_announcement")}return T}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0411\u0420",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420",disabled:!g,onClick:function(){function T(){return v("dispatch_ert")}return T}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043D":"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0437\u0430\u043F\u0440\u0435\u0449\u0451\u043D",tooltip:L?"\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u041E\u0411\u0420":"\u041E\u0411\u0420 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D",disabled:!g,onClick:function(){function T(){return v("toggle_ert_allowed")}return T}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438",disabled:!g,onClick:function(){function T(){return v("send_nuke_codes")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:'\u041E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"',children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"':'\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"',disabled:!g,onClick:function(){function T(){return v("move_gamma_armory")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0440\u0443\u0433\u043E\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"\u0424\u0430\u043A\u0441-\u043C\u0435\u043D\u0435\u0434\u0436\u0435\u0440",disabled:!g,onClick:function(){function T(){return v("view_fax")}return T}()})})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0434\u0435\u0439\u0441\u0442\u0438\u0439, \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0434\u043B\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,c)})]})},c=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.msg_cooldown,N=s.emagged,x=s.cc_cooldown,B=s.security_level_color,L=s.str_security_level,T=s.levels,A=s.authcapt,E=s.authhead,w=s.messages,O="\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442\u043D\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435";g>0&&(O+=" ("+g+"s)");var M=N?"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 [\u041D\u0415\u0418\u0417\u0412\u0415\u0421\u0422\u041D\u041E]":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",P="\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438";return x>0&&(M+=" ("+x+"s)",P+=" ("+x+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u0430\u043F\u0438\u0442\u0430\u043D"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",color:B,children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.createComponentVNode)(2,l,{levels:T,required_access:A})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:O,disabled:!A||g>0,onClick:function(){function F(){return v("announce")}return F}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!A||x>0,onClick:function(){function F(){return v("MessageSyndicate")}return F}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0440\u0435\u043B\u0435",disabled:!A,onClick:function(){function F(){return v("RestoreBackup")}return F}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!A||x>0,onClick:function(){function F(){return v("MessageCentcomm")}return F}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:P,disabled:!A||x>0,onClick:function(){function F(){return v("nukerequest")}return F}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0438\u0441\u043F\u043B\u0435\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0414\u0438\u0441\u043F\u043B\u0435\u0435\u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0430",disabled:!E,onClick:function(){function F(){return v("status")}return F}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0445\u043E\u0434\u044F\u0449\u0438\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C ("+w.length+")",disabled:!E,onClick:function(){function F(){return v("messagelist")}return F}()})})]})})})],4)},u=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.stat_display,N=s.authhead,x=s.current_message_title,B=g.presets.map(function(T){return(0,e.createComponentVNode)(2,t.Button,{content:T.label,selected:T.name===g.type,disabled:!N,onClick:function(){function A(){return v("setstat",{statdisp:T.id})}return A}()},T.name)}),L=g.alerts.map(function(T){return(0,e.createComponentVNode)(2,t.Button,{content:T.label,selected:T.alert===g.icon,disabled:!N,onClick:function(){function A(){return v("setstat",{statdisp:3,alert:T.alert})}return A}()},T.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u044D\u043A\u0440\u0430\u043D\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function T(){return v("main")}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u0435\u0441\u0435\u0442\u044B",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:g.line_1,disabled:!N,onClick:function(){function T(){return v("setmsg1")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:g.line_2,disabled:!N,onClick:function(){function T(){return v("setmsg2")}return T}()})})]})})})},f=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.authhead,N=s.current_message_title,x=s.current_message,B=s.messages,L=s.security_level,T;if(N)T=(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:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439",disabled:!g,onClick:function(){function E(){return v("messagelist")}return E}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:x})})});else{var A=B.map(function(E){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:E.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C",disabled:!g||N===E.title,onClick:function(){function w(){return v("messagelist",{msgid:E.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",disabled:!g,onClick:function(){function w(){return v("delmessage",{msgid:E.id})}return w}()})]},E.id)});T=(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function E(){return v("main")}return E}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:A})})}return(0,e.createComponentVNode)(2,t.Box,{children:T})},l=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=i.levels,N=i.required_access,x=i.use_confirm,B=s.security_level;return x?g.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function T(){return v("newalertlevel",{level:L.id})}return T}()},L.name)}):g.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function T(){return v("newalertlevel",{level:L.id})}return T}()},L.name)})},d=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin;if(!g)return v("main");var N=(0,a.useLocalState)(h,"subtitle",""),x=N[0],B=N[1],L=(0,a.useLocalState)(h,"text",""),T=L[0],A=L[1],E=(0,a.useLocalState)(h,"classified",0),w=E[0],O=E[1],M=(0,a.useLocalState)(h,"beepsound","Beep"),P=M[0],F=M[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function R(){return v("main")}return R}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0442\u0443\u0442.",fluid:!0,value:x,onChange:function(){function R(U,j){return B(j)}return R}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043A\u0441\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F,\n\u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0441\u044F.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function R(U,j){return A(j)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:w,content:"\u0417\u0430\u0441\u0435\u043A\u0440\u0435\u0447\u0435\u043D\u043E",fluid:!0,m:"5px",tooltip:w?"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043D\u0430 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0441\u0432\u044F\u0437\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438":"\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u043E \u043E\u0431\u044A\u044F\u0432\u0438\u0442\u044C",onClick:function(){function R(){return O(!w)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function R(){return v("make_cc_announcement",{subtitle:x,text:T,classified:w,beepsound:P})}return R}()})]})})}},21813:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(73379),k=n(98595);function y(V,v){V.prototype=Object.create(v.prototype),V.prototype.constructor=V,S(V,v)}function S(V,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,g){return s.__proto__=g,s},S(V,v)}var b={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},C=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],c=r.Contractor=function(){function V(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B;x.unauthorized?B=(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 E(){}return E}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:x.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,m,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:C,finishedTimeout:3e3,onFinished:function(){function E(){return N("complete_load_animation")}return E}()})});var L=(0,t.useLocalState)(s,"viewingPhoto",""),T=L[0],A=L[1];return(0,e.createComponentVNode)(2,k.Window,{width:500,height:600,theme:"syndicate",children:[T&&(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,k.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return V}(),u=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.tc_available,L=x.tc_paid_out,T=x.completed_contracts,A=x.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function E(){return N("claim")}return E}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return N("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function L(){return N("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.contracts,L=x.contract_active,T=x.can_extract,A=!!L&&B.filter(function(P){return P.status===1})[0],E=A&&A.time_left>0,w=(0,t.useLocalState)(s,"viewingPhoto",""),O=w[0],M=w[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||E,icon:"parachute-box",content:["Call Extraction",E&&(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:A.time_left,format:function(){function P(F,R){return" ("+R.substr(3)+")"}return P}()})],onClick:function(){function P(){return N("extract")}return P}()})},v,{children:B.slice().sort(function(P,F){return P.status===1?-1:F.status===1?1:P.status-F.status}).map(function(P){var F;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:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function R(){return M("target_photo_"+P.uid+".png")}return R}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!b[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:b[P.status][1],display:"inline-block",mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:b[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function R(){return N("abort")}return R}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.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 ",P.completed_time]}),!!P.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."]}),!!P.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: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(P)]}),(F=P.difficulties)==null?void 0:F.map(function(R,U){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:R.name+" ("+R.reward+" TC)",onClick:function(){function j(){return N("activate",{uid:P.uid,difficulty:U+1})}return j}()},U)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var s=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,N=v.objective.locs.target_area_id,x=v.objective.locs.target_coords,B=s===N;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(x[1]-g[1],x[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},m=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:L.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,buttons:T.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+T.cost+" Rep)",onClick:function(){function A(){return N("refund",{uid:T.uid})}return A}()}),children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},i=function(V){function v(g){var N;return N=V.call(this,g)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}y(v,V);var s=v.prototype;return s.tick=function(){function g(){var N=this.props,x=this.state;if(x.currentIndex<=N.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=x.currentDisplay;B.push(N.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout)}return g}(),s.componentDidMount=function(){function g(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return g}(),s.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),s.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}return g}(),v}(e.Component),h=function(v,s){var g=(0,t.useLocalState)(s,"viewingPhoto",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:N}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return x("")}return B}()})]})}},54151:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ConveyorSwitch=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.slowFactor,f=c.minSpeed,l=c.maxSpeed,d=c.oneWay,m=c.position;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:"Lever position",children:m>0?"forward":m<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!d,onClick:function(){function i(){return C("toggleOneWay")}return i}()})}),(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 i(){return C("slowFactor",{value:u-.5})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function i(){return C("slowFactor",{value:u-.1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:u,fillValue:u,minValue:f,maxValue:l,step:.1,format:function(){function i(h){return h+"s."}return i}(),onChange:function(){function i(h,V){return C("slowFactor",{value:V})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function i(){return C("slowFactor",{value:u+.1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function i(){return C("slowFactor",{value:u+.5})}return i}()})," "]})]})})]})})})})}return k}()},73169:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),p=n(36036),k=n(36352),y=n(76910),S=n(98595),b=function(h,V){return h.dead?"\u041C\u0451\u0440\u0442\u0432":parseInt(h.health,10)<=V?"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435":parseInt(h.stat,10)===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":"\u0416\u0438\u0432"},C=function(h,V){return h.dead?"red":parseInt(h.health,10)<=V?"orange":parseInt(h.stat,10)===1?"blue":"green"},c=r.CrewMonitor=function(){function i(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=(0,o.useLocalState)(V,"tabIndex",g.IndexToggler),x=N[0],B=N[1],L=function(){function T(A){switch(A){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,m);default:return"\u0427\u0422\u041E-\u0422\u041E \u0422\u041E\u0427\u041D\u041E \u041D\u0415 \u0422\u0410\u041A!"}}return T}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,p.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,p.Tabs,{children:[g.isBS?(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===0,onClick:function(){function T(){return B(0)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0438"]},"ComDataView"):null,g.isBP?(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===1,onClick:function(){function T(){return B(1)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u0421\u043B\u0443\u0436\u0431\u0435 \u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438"]},"SecDataView"):null,(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===2,onClick:function(){function T(){return B(2)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0431 \u042D\u043A\u0438\u043F\u0430\u0436\u0435"]},"DataView"),(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===3,onClick:function(){function T(){return B(3)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"map-marked-alt"})," \u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u041A\u0430\u0440\u0442\u044B"]},"MapView")]}),L(x)]})})})}return i}(),u=function(h){var V=h.crewData,v=h.context,s=(0,o.useBackend)(v),g=s.act,N=s.data,x=(0,a.sortBy)(function(E){return E.name})(V||[]),B=(0,o.useLocalState)(v,"search",""),L=B[0],T=B[1],A=(0,t.createSearch)(L,function(E){return E.name+"|"+E.assignment+"|"+E.area});return(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, \u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u0438\u043B\u0438 \u041B\u043E\u043A\u0430\u0446\u0438\u044E...",width:"100%",onInput:function(){function E(w,O){return T(O)}return E}()}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"})]}),x.filter(A).map(function(E){return(0,e.createComponentVNode)(2,p.Table.Row,{bold:!!E.is_command,children:[(0,e.createComponentVNode)(2,k.TableCell,{children:[E.name," (",E.assignment,")"]}),(0,e.createComponentVNode)(2,k.TableCell,{children:[(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:C(E,N.critThreshold),children:b(E,N.critThreshold)}),E.sensor_type>=2?(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:E.oxy}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:E.tox}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.burn,children:E.fire}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.brute,children:E.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,k.TableCell,{children:E.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"location-arrow",content:E.area+" ("+E.x+", "+E.y+")",onClick:function(){function w(){return g("track",{track:E.ref})}return w}()}):E.area+" ("+E.x+", "+E.y+")":"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E"})]},E.ref)})]})]})},f=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},l=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},d=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},m=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.stationLevelNum,x=g.stationLevelName,B=(0,o.useLocalState)(V,"zoom",1),L=B[0],T=B[1],A=(0,o.useLocalState)(V,"z_current",N[0]),E=A[0],w=A[1],O=function(R){return R.is_command&&g.isBS||R.is_security&&g.isBP?"square":"circle"},M=function(R){return R.is_command&&g.isBS||R.is_security&&g.isBP?10:6},P=function(R,U){return R.is_command&&g.isBS||R.is_security&&g.isBP?R.dead?"red":parseInt(R.health,10)<=U?"orange":parseInt(R.stat,10)===1?"blue":"violet":C(R,U)};return(0,e.createComponentVNode)(2,p.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,p.NanoMap,{onZoom:function(){function F(R){return T(R)}return F}(),zLevels:N,zNames:x,z_current:E,setZCurrent:w,children:g.crewmembers.filter(function(F){return F.sensor_type===3}).map(function(F){return(0,e.createComponentVNode)(2,p.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:E,zoom:L,icon:O(F),size:M(F),tooltip:F.name+" ("+F.assignment+")",color:P(F,g.critThreshold),onClick:function(){function R(){g.isAI&&s("track",{track:F.ref})}return R}()},F.ref)})})})}},63987:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(41260),t=n(72253),o=n(36036),p=n(98595),k=[{label:"\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435",type:"oxyLoss"},{label:"\u0422\u043E\u043A\u0441\u0438\u043D\u044B",type:"toxLoss"},{label:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",type:"bruteLoss"},{label:"\u041E\u0436\u043E\u0433\u0438",type:"fireLoss"}],y=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0421\u043C\u0435\u0440\u0442\u044C"]],S=r.Cryo=function(){function c(u,f){return(0,e.createComponentVNode)(2,p.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return c}(),b=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.isOperating,h=m.hasOccupant,V=m.occupant,v=V===void 0?[]:V,s=m.cellTemperature,g=m.cellTemperatureStatus,N=m.isBeakerLoaded,x=m.auto_eject_healthy,B=m.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:2,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!h,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:h?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:v.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:v.health,max:v.maxHealth,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:y[v.stat][0],children:y[v.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),k.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:v[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C."}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",onClick:function(){function L(){return d(i?"switchOff":"switchOn")}return L}(),selected:i,children:i?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:g,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:s})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){function L(){return d(x?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},C=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.isBeakerLoaded,h=m.beakerLabel,V=m.beakerVolume;return i?(0,e.createFragment)([h?"\xAB"+h+"\xBB":(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.createComponentVNode)(2,o.Box,{color:!V&&"bad",children:V?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:V,format:function(){function v(s){var g=Math.round(s),N=(0,a.declensionRu)(g,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),x=(0,a.declensionRu)(g,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+g+" "+x}return v}()}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})],0):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},86099:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),k=r.CryopodConsole=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.account_name,d=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!d&&(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},m)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.frozen_items,m=function(h){var V=h.toString();return V.startsWith("the ")&&(V=V.slice(4,V.length)),(0,p.toTitleCase)(V)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m(i.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function h(){return f("one_item",{item:i.uid})}return h}()})},i)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function i(){return f("all_items")}return i}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},94848:function(I,r,n){"use strict";r.__esModule=!0,r.Customat=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=function(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=b.product,d=f.user,m=f.userMoney,i=f.vend_ready,h=l.price===0,V="ERROR!",v="";h?(V="FREE",v="arrow-circle-down"):(V=l.price,v="shopping-cart");var s=!i||l.stock===0||!h&&l.price>m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.icon,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:l.stock<=0&&"bad"||"good",children:[l.stock," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:s,icon:v,content:V,textAlign:"left",onClick:function(){function g(){return u("vend",{Key:l.Key})}return g}()})})]})},y=r.Customat=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.guestNotice,d=f.userMoney,m=f.user,i=f.products,h=f.vend_ready,V=f.panel_open,v=f.speaker;return(0,e.createComponentVNode)(2,p.Window,{width:470,height:600,title:"Customat",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"User",children:m&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:l})}),!!V&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:v?"check":"volume-mute",selected:v,content:"Speaker",textAlign:"left",onClick:function(){function s(){return u("toggle_voice",{})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:i.map(function(s){return(0,e.createComponentVNode)(2,k,{product:s,productStock:s.stock},s.name)})})})})]})})})}return S}()},12692:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),k=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["ui","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u0418","dna"],["se","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0424","dna"],["buffer","\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445","syringe"],["rejuvenators","\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B","flask"]],S=[5,10,20,30,50],b=r.DNAModifier=function(){function s(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.irradiating,A=L.dnaBlockSize,E=L.occupant;N.dnaBlockSize=A,N.isDNAInvalid=!E.isViableSubject||!E.uniqueIdentity||!E.structuralEnzymes;var w;return T&&(w=(0,e.createComponentVNode)(2,V,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,p.ComplexModal),w,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c)})]})})]})}return s}(),C=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.locked,A=L.hasOccupant,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u044B\u0439 \u0437\u0430\u043C\u043E\u043A:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",onClick:function(){function w(){return B("toggleLock")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",onClick:function(){function w(){return B("ejectOccupant")}return w}()})],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:"\u0418\u043C\u044F",children:E.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:E.minHealth,max:E.maxHealth,value:E.health/E.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[E.stat][0],children:k[E.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),N.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 \u041D\u0435\u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0439 \u0441\u0443\u0431\u044A\u0435\u043A\u0442. \u041F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0439 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:E.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 \u041D/\u0414"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."})})},c=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedMenuKey,A=L.hasOccupant,E=L.occupant;if(A){if(N.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"),"\u041C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0438 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B."]})})})}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"),"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."]})})});var w;return T==="ui"?w=(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,l)],4):T==="se"?w=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?w=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(w=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(O,M){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:T===O[0],onClick:function(){function P(){return B("selectMenuKey",{key:O[0]})}return P}(),children:O[1]},M)})}),w]})},u=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedUIBlock,A=L.selectedUISubBlock,E=L.selectedUITarget,w=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u0432",children:[(0,e.createComponentVNode)(2,v,{dnaString:w.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:E,format:function(){function O(M){return M.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(M,P){return B("changeUITarget",{value:P})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",mt:"0.5rem",onClick:function(){function O(){return B("pulseUIRadiation")}return O}()})]})},f=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedSEBlock,A=L.selectedSESubBlock,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0445 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u043E\u0432",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",onClick:function(){function w(){return B("pulseSERadiation")}return w}()})]})},l=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0437\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041C\u043E\u0449\u043D\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function E(w,O){return B("radiationIntensity",{value:O})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function E(w,O){return B("radiationDuration",{value:O})}return E}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0435\u0439",tooltip:"\u041C\u0443\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0431\u043B\u043E\u043A, \u0423\u0418 \u0438\u043B\u0438 \u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function E(){return B("pulseRadiation")}return E}()})]})},d=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.buffers,A=T.map(function(E,w){return(0,e.createComponentVNode)(2,m,{id:w+1,name:"\u042F\u0447\u0435\u0439\u043A\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u2116"+(w+1),buffer:E},w)});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:"\u0411\u0443\u0444\u0435\u0440",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,i)})]})},m=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.id,A=g.name,E=g.buffer,w=L.isInjectorReady,O=A+(E.data?" - "+E.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:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!E.data,icon:"trash",content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",onClick:function(){function M(){return B("bufferOption",{option:"clear",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E.data,icon:"pen",content:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",onClick:function(){function M(){return B("bufferOption",{option:"changeLabel",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E.data||!L.hasDisk,icon:"save",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",tooltip:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u044F\u0447\u0435\u0439\u043A\u0443 \u0431\u0443\u0444\u0435\u0440\u0430 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443.",tooltipPosition:"bottom-start",onClick:function(){function M(){return B("bufferOption",{option:"saveDisk",id:T})}return M}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0423\u0418 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUI",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0423\u0418 \u0438 \u0423\u0424 \u0441\u0443\u0431\u044A\u0435\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUIAndUE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveSE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"\u0421 \u0434\u0438\u0441\u043A\u0435\u0442\u044B",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"loadDisk",id:T})}return M}()})]}),!!E.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:E.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[E.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!E.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043D\u043D\u044B\u0445",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:w?"syringe":"spinner",iconSpin:!w,content:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:w?"syringe":"spinner",iconSpin:!w,content:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440 \u0431\u043B\u043E\u043A\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T,block:1})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"transfer",id:T})}return M}()})]})],4)]}),!E.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u0443\u0441\u0442."})]})})},i=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",onClick:function(){function E(){return B("wipeDisk")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function E(){return B("ejectDisk")}return E}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430",children:A.label?A.label:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[A.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!A.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):(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"),"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430."]})})},h=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.isBeakerLoaded,A=L.beakerVolume,E=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B \u0438 \u0451\u043C\u043A\u043E\u0441\u0442\u0438",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C",onClick:function(){function w(){return B("ejectBeaker")}return w}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0432\u0435\u0441\u0442\u0438 \u0445\u0438\u043C\u0438\u043A\u0430\u0442\u044B",children:[S.map(function(w,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:w>A,icon:"syringe",content:w,onClick:function(){function M(){return B("injectRejuvenators",{amount:w})}return M}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"\u0412\u0441\u0435",onClick:function(){function w(){return B("injectRejuvenators",{amount:A})}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:E||"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:["\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C: ",A,"u"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0443\u0441\u0442\u043E"})]})]}):(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,"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430.",16)]})})})},V=function(g,N){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)("\xA0\u041E\u0431\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430\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)("\u0412 \u0442\u0435\u0447\u0435\u043D\u0438\u0438 "),g.duration,(0,e.createTextVNode)(" \u0441\u0435\u043A\u0443\u043D\u0434"),g.duration%10===1&&g.duration%100!==11?"\u044B":""],0)})]})},v=function(g,N){for(var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.dnaString,A=g.selectedBlock,E=g.selectedSubblock,w=g.blockSize,O=g.action,M=T.split(""),P=0,F=[],R=function(){for(var W=U/w+1,K=[],$=function(){var le=ne+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:A===W&&E===le,content:M[U+ne],mb:"0",onClick:function(){function de(){return B(O,{block:W,subblock:le})}return de}()}))},ne=0;neh.spawnpoints?"red":"green",children:[h.total," \u0432\u044B\u0431\u0440\u0430\u043D\u043E, \u043F\u0440\u043E\u0442\u0438\u0432 ",h.spawnpoints," \u0442\u043E\u0447\u0435\u043A \u0441\u043F\u0430\u0432\u043D\u0430"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420",onClick:function(){function N(){return i("dispatch_ert",{silent:s})}return N}()})})]})})},c=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.ert_request_messages;return(0,e.createComponentVNode)(2,t.Section,{children:V&&V.length?V.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:v.sender_real_name,onClick:function(){function s(){return i("view_player_panel",{uid:v.sender_uid})}return s}(),tooltip:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C Player panel"}),children:v.message},(0,p.decodeHtmlEntities)(v.time))}):(0,e.createComponentVNode)(2,t.Box,{fluid:!0,italic:!0,textAlign:"center",children:"\u041D\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432 \u041E\u0411\u0420"})})},u=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=(0,a.useLocalState)(d,"text",""),v=V[0],s=V[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u043F\u0440\u0438\u0447\u0438\u043D\u0443 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F \u041E\u0411\u0420.\n\u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D.",rows:10,fluid:!0,multiline:1,value:v,onChange:function(){function g(N,x){return s(x)}return g}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"\u041E\u0442\u043A\u043B\u043E\u043D\u0438\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u041E\u0411\u0420",fluid:!0,icon:"times",center:!0,mt:"5px",textAlign:"center",onClick:function(){function g(){return i("deny_ert",{reason:v})}return g}()})]})}},82565:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=r.Electropack=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.power,l=u.code,d=u.frequency,m=u.minFrequency,i=u.maxFrequency;return(0,e.createComponentVNode)(2,p.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function h(){return c("power")}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return c("reset",{reset:"freq"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:i/10,value:d/10,format:function(){function h(V){return(0,a.toFixed)(V,1)}return h}(),width:"80px",onChange:function(){function h(V,v){return c("freq",{freq:v})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return c("reset",{reset:"code"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function h(V,v){return c("code",{code:v})}return h}()})})]})})})})}return y}()},36730:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.EvolutionMenu=function(){function S(b,C){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:574,theme:"changeling",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,y)]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.evo_points,d=f.can_respec;return(0,e.createComponentVNode)(2,t.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{ml:2.5,disabled:!d,content:"Readapt",icon:"sync",onClick:function(){function m(){return u("readapt")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.evo_points,d=f.ability_list,m=f.purchased_abilities,i=f.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:i?"square-o":"check-square-o",selected:!i,content:"Compact",onClick:function(){function h(){return u("set_view_mode",{mode:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:i?"check-square-o":"square-o",selected:i,content:"Expanded",onClick:function(){function h(){return u("set_view_mode",{mode:1})}return h}()})],4),children:d.map(function(h,V){return(0,e.createComponentVNode)(2,t.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{ml:.5,color:"#dedede",children:h.name}),m.includes(h.power_path)&&(0,e.createComponentVNode)(2,t.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,t.Box,{as:"span",bold:!0,color:"#1b945c",children:h.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:h.cost>l||m.includes(h.power_path),content:"Evolve",onClick:function(){function v(){return u("purchase",{power_path:h.power_path})}return v}()})})]}),!!i&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:h.description+" "+h.helptext})]},V)})})}},17370:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),p=n(36036),k=n(73379),y=n(98595),S=["id","amount","lineDisplay","onClick"];function b(V,v){if(V==null)return{};var s={};for(var g in V)if({}.hasOwnProperty.call(V,g)){if(v.includes(g))continue;s[g]=V[g]}return s}var C=2e3,c={bananium:"clown",tranquillite:"mime"},u=r.ExosuitFabricator=function(){function V(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),B&&(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)})]})})]})})})}return V}(),f=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.materials,L=x.capacity,T=Object.values(B).reduce(function(A,E){return A+E},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,p.Box,{color:"label",mt:"0.25rem",children:[(T/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,i,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function E(){return N("withdraw",{id:A})}return E}()},A)})})},l=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.curCategory,L=x.categories,T=x.designs,A=x.syncing,E=(0,o.useLocalState)(s,"searchText",""),w=E[0],O=E[1],M=(0,t.createSearch)(w,function(F){return F.name}),P=T.filter(M);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,p.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function F(R){return N("category",{cat:R})}return F}()}),buttons:(0,e.createComponentVNode)(2,p.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,p.Button,{icon:"plus",content:"Queue all",onClick:function(){function F(){return N("queueall")}return F}()}),(0,e.createComponentVNode)(2,p.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function F(){return N("sync")}return F}()})]}),children:[(0,e.createComponentVNode)(2,p.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function F(R,U){return O(U)}return F}()}),P.map(function(F){return(0,e.createComponentVNode)(2,h,{design:F},F.id)}),P.length===0&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"No designs found."})]})},d=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.building,L=x.buildStart,T=x.buildEnd,A=x.worldTime;return(0,e.createComponentVNode)(2,p.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,p.ProgressBar.Countdown,{start:L,current:A,end:T,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,k.Countdown,{current:A,timeLeft:T-A,format:function(){function E(w,O){return O.substr(3)}return E}()}),")"]})]})})})},m=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.queue,L=x.processingQueue,T=Object.entries(x.queueDeficit).filter(function(E){return E[1]<0}),A=B.reduce(function(E,w){return E+w.time},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function E(){return N("process")}return E}()}),(0,e.createComponentVNode)(2,p.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function E(){return N("unqueueall")}return E}()})]}),children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(E,w){return(0,e.createComponentVNode)(2,p.Box,{color:E.notEnough&&"bad",children:[w+1,". ",E.name,w>0&&(0,e.createComponentVNode)(2,p.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:w+1,to:w})}return O}()}),w0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,p.Divider),"Processing time:",(0,e.createComponentVNode)(2,p.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,p.Divider),"Lacking materials to complete:",T.map(function(E){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,i,{id:E[0],amount:-E[1],lineDisplay:!0})},E[0])})]})],0)})})},i=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=v.id,L=v.amount,T=v.lineDisplay,A=v.onClick,E=b(v,S),w=x.materials[B]||0,O=L||w;if(!(O<=0&&!(B==="metal"||B==="glass"))){var M=L&&L>w;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},E,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__material--amount",color:M&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,p.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,p.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/C*10)/10," ","sheets)"]})]})],4)})))}},h=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=v.design;return(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,p.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function L(){return N("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,p.Button,{icon:"plus-circle",onClick:function(){function L(){return N("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,i,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,p.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},97086:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=0,k=1013,y=function(C){var c="good",u=80,f=95,l=110,d=120;return Cl?c="average":C>d&&(c="bad"),c},S=r.ExternalAirlockController=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.chamber_pressure,m=l.exterior_status,i=l.interior_status,h=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(d),value:d,minValue:p,maxValue:k,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:h,onClick:function(){function V(){return f("cycle_ext")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:h,onClick:function(){function V(){return f("cycle_int")}return V}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:i==="open"?"red":h?"yellow":null,onClick:function(){function V(){return f("force_ext")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:i==="open"?"red":h?"yellow":null,onClick:function(){function V(){return f("force_int")}return V}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!h,onClick:function(){function V(){return f("abort")}return V}()})})]})]})})}return b}()},96142:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.FaxMachine=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function u(){return C("scan")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authenticated?"sign-out-alt":"id-card",selected:c.authenticated,disabled:!c.scan_name&&!c.authenticated,content:c.authenticated?"Log Out":"Log In",onClick:function(){function u(){return C("auth")}return u}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:c.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.paper?"eject":"paperclip",disabled:!c.authenticated&&!c.paper,content:c.paper?c.paper:"-----",onClick:function(){function u(){return C("paper")}return u}()}),!!c.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function u(){return C("rename")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:c.destination?c.destination:"-----",disabled:!c.authenticated,onClick:function(){function u(){return C("dept")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:c.sendError?c.sendError:"Send",disabled:!c.paper||!c.destination||!c.authenticated||c.sendError,onClick:function(){function u(){return C("send")}return u}()})})]})})]})})}return k}()},83767:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=b.icon_state,d=b.direction,m=b.isSelected,i=b.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:f.icon,icon_state:l,direction:d,onClick:i,style:{"border-style":m&&"solid"||"none","border-width":"2px","border-color":"orange",padding:m&&"0px"||"2px"}})},k={NORTH:1,SOUTH:2,EAST:4,WEST:8},y=r.FloorPainter=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.availableStyles,d=f.selectedStyle,m=f.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function i(){return u("cycle_style",{offset:-1})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function i(h){return u("select_style",{style:h})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function i(){return u("cycle_style",{offset:1})}return i}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:l.map(function(i){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,p,{icon_state:i,isSelected:d===i,onSelect:function(){function h(){return u("select_style",{style:i})}return h}()})},i)})})}),(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:[k.NORTH,null,k.SOUTH].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[i+k.WEST,i,i+k.EAST].map(function(h){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:h===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,p,{icon_state:d,direction:h,isSelected:h===m,onSelect:function(){function V(){return u("select_direction",{direction:h})}return V}()})},h)})},i)})})})})]})})})}return S}()},53424:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=function(l){return l?"("+l.join(", ")+")":"ERROR"},y=function(l,d,m){if(!(!l||!d)){if(l[2]!==d[2]||m!==1)return null;var i=Math.atan2(d[1]-l[1],d[0]-l[0]),h=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(i),distance:h}}},S=r.GPS=function(){function f(l,d){var m=(0,t.useBackend)(d),i=m.data,h=i.emped,V=i.active,v=i.area,s=i.position,g=i.saved;return(0,e.createComponentVNode)(2,p.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:h?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,b,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,C)}),V?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,c,{area:v,position:s})}),g&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,c,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,u,{height:"100%"})})],0):(0,e.createComponentVNode)(2,b)],0)})})})}return f}(),b=function(l,d){var m=l.emp;return(0,e.createComponentVNode)(2,o.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:m?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),m?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},C=function(l,d){var m=(0,t.useBackend)(d),i=m.act,h=m.data,V=h.active,v=h.tag,s=h.same_z,g=(0,t.useLocalState)(d,"newTag",v),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function B(){return i("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function B(){return i("tag",{newtag:N})}return B}(),onInput:function(){function B(L,T){return x(T)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return i("tag",{newtag:N})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!s,icon:s?"compress":"expand",content:s?"Local Sector":"Global",onClick:function(){function B(){return i("same_z")}return B}()})})]})})},c=function(l,d){var m=l.title,i=l.area,h=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:m||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[i&&(0,e.createFragment)([i,(0,e.createVNode)(1,"br")],0),k(h)]})})},u=function(l,d){var m=(0,t.useBackend)(d),i=m.data,h=i.position,V=i.signals,v=i.upgraded;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Signals",overflow:"auto"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(s){return Object.assign({},s,y(h,s.position,v))}).map(function(s,g){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:g%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:s.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:s.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:s.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(s.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:s.distance>0?"arrow-right":"circle",rotation:-s.angle}),"\xA0",Math.floor(s.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:k(s.position)})]},g)})})})))}},68703:function(I,r,n){"use strict";r.__esModule=!0,r.GasAnalyzerHistory=r.GasAnalyzerContent=r.GasAnalyzer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GasAnalyzerContent=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.gasmixes,d=f.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:l[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",onClick:function(){function m(){return u("autoscantoggle")}return m}(),tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:l[0].total_moles?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Moles",children:(l[0].total_moles?l[0].total_moles:"-")+" mol"}),l[0].oxygen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:l[0].oxygen.toFixed(2)+" mol ("+(l[0].oxygen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].nitrogen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:l[0].nitrogen.toFixed(2)+" mol ("+(l[0].nitrogen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].carbon_dioxide?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:l[0].carbon_dioxide.toFixed(2)+" mol ("+(l[0].carbon_dioxide/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].toxins?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:l[0].toxins.toFixed(2)+" mol ("+(l[0].toxins/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].sleeping_agent?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:l[0].sleeping_agent.toFixed(2)+" mol ("+(l[0].sleeping_agent/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].agent_b?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Agent B",children:l[0].agent_b.toFixed(2)+" mol ("+(l[0].agent_b/l[0].total_moles).toFixed(2)*100+" %)"}):"",(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(l[0].total_moles?(l[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(l[0].total_moles?l[0].temperature.toFixed(2):"-")+" K)"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume",children:(l[0].total_moles?l[0].volume:"-")+" L"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(l[0].total_moles?l[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heat Capacity",children:l[0].heat_capacity+" / K"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Thermal Energy",children:l[0].thermal_energy})]}):(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},l[0])}return S}(),k=r.GasAnalyzerHistory=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.historyGasmixes,d=f.historyViewMode,m=f.historyIndex;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Scan History",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){function i(){return u("clearhistory")}return i}(),textAlign:"center",disabled:l.length===0}),children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"50%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"kPa",onClick:function(){function i(){return u("modekpa")}return i}(),textAlign:"center",selected:d==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function i(){return u("modemol")}return i}(),textAlign:"center",selected:d==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(i,h){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:h+1+". "+(d==="mol"?i[0].total_moles.toFixed(2):i[0].pressure.toFixed(2)),onClick:function(){function V(){return u("input",{target:h+1})}return V}(),textAlign:"left",selected:h+1===m,fluid:!0})},i[0])})})]})}return S}(),y=r.GasAnalyzer=function(){function S(b,C){var c={float:"left",width:"67%"},u={float:"right",width:"33%"};return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{grow:!0,children:(0,e.createComponentVNode)(2,p)}),2,{style:c}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,k)}),2,{style:u})]})})}return S}()},27546:function(I,r,n){"use strict";r.__esModule=!0,r.GasFreezer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GasFreezer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.pressure,l=c.temperature,d=c.temperatureCelsius,m=c.min,i=c.max,h=c.target,V=c.targetCelsius,v=(l-m)/(i-m);return(0,e.createComponentVNode)(2,o.Window,{width:560,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:u,onClick:function(){function s(){return C("power")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[f," \u043A\u041F\u0430"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[v<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[l," \xB0K (",d," \xB0C)"]}),v>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[l," \xB0K (",d," \xB0C)"]})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",justify:"end",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:(h-m)/(i-m),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[h," \xB0K (",V," \xB0C)"]})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",title:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function s(){return C("temp",{temp:m})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(h),unit:"\xB0K",minValue:Math.round(m),maxValue:Math.round(i),step:5,stepPixelSize:3,onDrag:function(){function s(g,N){return C("temp",{temp:N})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",title:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function s(){return C("temp",{temp:i})}return s}()})]})]})})})})}return k}()},89124:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(35840),o=n(36036),p=n(3939),k=n(98595),y=r.GeneModder=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.has_seed;return(0,e.createComponentVNode)(2,k.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,p.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,S)]})})})}return d}(),S=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Insert Gene from Disk",disabled:!s||!s.can_insert||s.is_core,icon:"arrow-circle-down",onClick:function(){function g(){return V("insert")}return g}()}),children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})},b=function(m,i){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,o.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},C=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.has_seed,g=v.seed,N=v.has_disk,x=v.disk,B,L;return s?B=(0,e.createComponentVNode)(2,o.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",(0,t.classes)(["seeds32x32",g.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:g.name,onClick:function(){function T(){return V("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return V("variant_name")}return T}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function T(){return V("eject_seed")}return T}()})}),N?L=x.name:L="None",(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:L,onClick:function(){function T(){return V("eject_disk")}return T}()})})})]})})},c=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.disk,g=v.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(s!=null&&s.can_extract),icon:"save",onClick:function(){function x(){return V("extract",{id:N.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!N.is_type||!s.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return V("replace",{id:N.id})}return x}()})})]},N)})," ",(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace All",disabled:!(s!=null&&s.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return V("bulk_replace_core")}return N}()})})})]},"Core Genes")},u=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.reagent_genes,s=V.has_reagent;return(0,e.createComponentVNode)(2,l,{title:"Reagent Genes",gene_set:v,do_we_show:s})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.trait_genes,s=V.has_trait;return(0,e.createComponentVNode)(2,l,{title:"Trait Genes",gene_set:v,do_we_show:s})},l=function(m,i){var h=m.title,V=m.gene_set,v=m.do_we_show,s=(0,a.useBackend)(i),g=s.act,N=s.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:h,open:!0,children:v?V.map(function(B){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(x!=null&&x.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},h)}},73053:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),p=r.GenericCrewManifest=function(){function k(y,S){return(0,e.createComponentVNode)(2,t.Window,{width:588,height:510,theme:"nologo",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 k}()},42914:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GhostHudPanel=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.security,f=c.medical,l=c.diagnostic,d=c.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,k,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,k,{label:"Security",type:"security",is_active:u}),(0,e.createComponentVNode)(2,k,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,k,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=S.label,f=S.type,l=f===void 0?null:f,d=S.is_active,m=S.act_on,i=m===void 0?"hud_on":m,h=S.act_off,V=h===void 0?"hud_off":h;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:u}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return c(d?V:i,{hud_type:l})}return v}()})})]})}},25825:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GlandDispenser=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.glands,f=u===void 0?[]:u;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:f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return C("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return k}()},67834:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=[1,5,10,20,30,50],k=null,y=r.HandheldChemDispenser=function(){function C(c,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,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),(0,e.createComponentVNode)(2,b)]})})})}return C}(),S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.amount,i=d.energy,h=d.maxEnergy,V=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[i," / ",h," \u0415\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:p.map(function(v,s){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:m===v,content:v,onClick:function(){function g(){return l("amount",{amount:v})}return g}()})},s)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="dispense",content:"\u0421\u0438\u043D\u0442\u0435\u0437",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="remove",content:"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="isolate",content:"\u0418\u0437\u043E\u043B\u044F\u0446\u0438\u044F",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},b=function(c,u){for(var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.chemicals,i=m===void 0?[]:m,h=d.current_reagent,V=[],v=0;v<(i.length+1)%3;v++)V.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"\u0412\u044B\u0431\u043E\u0440 \u043D\u0430\u043F\u0438\u0442\u043A\u0430":"\u0412\u044B\u0431\u043E\u0440 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",children:[i.map(function(s,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:h===s.id,content:s.title,style:{"margin-left":"2px"},onClick:function(){function N(){return l("dispense",{reagent:s.id})}return N}()},g)}),V.map(function(s,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},75926:function(I,r,n){"use strict";r.__esModule=!0,r.ImplantPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ImplantPad=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.implant,f=c.contains_case,l=c.tag,d=(0,a.useLocalState)(S,"newTag",l),m=d[0],i=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function h(){return C("eject_case")}return h}()})}),children:u&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:u.icon,icon_state:u.icon_state,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),u.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:u.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:u.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:u.function}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:l,onEnter:function(){function h(){return C("tag",{newtag:m})}return h}(),onInput:function(){function h(V,v){return i(v)}return h}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===m,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function h(){return C("tag",{newtag:m})}return h}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):f?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return k}()},25471:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=r.Instrument=function(){function c(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data;return(0,e.createComponentVNode)(2,p.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,C)]})})]})}return c}(),y=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.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 h(){return d("help")}return h}()})]})})})},S=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.lines,h=m.playing,V=m.repeat,v=m.maxRepeats,s=m.tempo,g=m.minTempo,N=m.maxTempo,x=m.tickLag,B=m.volume,L=m.minVolume,T=m.maxVolume,A=m.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 E(){return d("help")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function E(){return d("newsong")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function E(){return d("import")}return E}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:h,disabled:i.length===0||V<0,icon:"play",content:"Play",onClick:function(){function E(){return d("play")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!h,icon:"stop",content:"Stop",onClick:function(){function E(){return d("stop")}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:V,stepPixelSize:59,onChange:function(){function E(w,O){return d("repeat",{new:O})}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:s>=N,content:"-",as:"span",mr:"0.5rem",onClick:function(){function E(){return d("tempo",{new:s+x})}return E}()}),(0,a.round)(600/s)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:s<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function E(){return d("tempo",{new:s-x})}return E}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:T,value:B,stepPixelSize:6,onDrag:function(){function E(w,O){return d("setvolume",{new:O})}return E}()})}),(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,b)]})},b=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.allowedInstrumentNames,h=m.instrumentLoaded,V=m.instrument,v=m.canNoteShift,s=m.noteShift,g=m.noteShiftMin,N=m.noteShiftMax,x=m.sustainMode,B=m.sustainLinearDuration,L=m.sustainExponentialDropoff,T=m.legacy,A=m.sustainDropoffVolume,E=m.sustainHeldNote,w,O;return x===1?(w="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function M(P){return(0,a.round)(P*100)/100+" seconds"}return M}(),onChange:function(){function M(P,F){return d("setlinearfalloff",{new:F/10})}return M}()})):x===2&&(w="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function M(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return M}(),onChange:function(){function M(P,F){return d("setexpfalloff",{new:F})}return M}()})),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:h?(0,e.createComponentVNode)(2,o.Dropdown,{options:i,selected:V,width:"50%",onSelected:function(){function M(P){return d("switchinstrument",{name:P})}return M}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:N,value:s,stepPixelSize:2,format:function(){function M(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return M}(),onChange:function(){function M(P,F){return d("setnoteshift",{new:F})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:w,onSelected:function(){function M(P){return d("setsustainmode",{new:P})}return M}()}),O]}),(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 M(P,F){return d("setdropoffvolume",{new:F})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:E,icon:E?"toggle-on":"toggle-off",content:E?"Yes":"No",onClick:function(){function M(){return d("togglesustainhold")}return M}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function M(){return d("reset")}return M}()})]})})})},C=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.playing,h=m.lines,V=m.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:!V||i,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:h.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!V,icon:V?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!V&&(h.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:h.map(function(v,s){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:s+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:s+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:s+1})}return g}()})],4),children:v},s)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},65021:function(I,r,n){"use strict";r.__esModule=!0,r.ItemPixelShift=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ItemPixelShift=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.pixel_x,f=c.pixel_y,l=c.max_shift_x,d=c.max_shift_y,m=c.random_drop_on;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:160,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:"X-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:u===-l,onClick:function(){function i(){return C("shift_left")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:u,minValue:-l,maxValue:l,onChange:function(){function i(h,V){return C("custom_x",{pixel_x:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:u===l,onClick:function(){function i(){return C("shift_right")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Y-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:f===d,onClick:function(){function i(){return C("shift_up")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:f,minValue:-d,maxValue:d,onChange:function(){function i(h,V){return C("custom_y",{pixel_y:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:f===-d,onClick:function(){function i(){return C("shift_down")}return i}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){function i(){return C("move_to_top")}return i}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function i(){return C("toggle")}return i}()})})]})})]})})}return k}()},13618:function(I,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),p=n(98595),k=n(19203),y=n(51057),S=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},b={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},C=3,c=function(l){var d="";if(l.altKey&&(d+="Alt"),l.ctrlKey&&(d+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(d+="Shift"),l.location===C&&(d+="Numpad"),S(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var m=l.keyCode-48;d+="Shift"+m}else{var i=l.key.toUpperCase();d+=b[i]||i}return d},u=r.KeyComboModal=function(){function f(l,d){var m=(0,t.useBackend)(d),i=m.act,h=m.data,V=h.init_value,v=h.large_buttons,s=h.message,g=s===void 0?"":s,N=h.title,x=h.timeout,B=(0,t.useLocalState)(d,"input",V),L=B[0],T=B[1],A=(0,t.useLocalState)(d,"binding",!0),E=A[0],w=A[1],O=function(){function F(R){if(!E){R.key===a.KEY.Enter&&i("submit",{entry:L}),R.key===a.KEY.Escape&&i("cancel");return}if(R.preventDefault(),S(R)){M(c(R)),w(!1);return}else if(R.key===a.KEY.Escape){M(V),w(!1);return}}return F}(),M=function(){function F(R){R!==L&&T(R)}return F}(),P=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&v?5:0);return(0,e.createComponentVNode)(2,p.Window,{title:N,width:240,height:P,children:[x&&(0,e.createComponentVNode)(2,y.Loader,{value:x}),(0,e.createComponentVNode)(2,p.Window.Content,{onKeyDown:function(){function F(R){O(R)}return F}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:E,content:E&&E!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function F(){M(V),w(!0)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,k.InputButtons,{input:L})})]})]})})]})}return f}()},35655:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.KeycardAuth=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!c.swiping&&!c.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!c.redAvailable,onClick:function(){function l(){return C("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!c.hasSwiped&&!c.ertreason&&c.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):c.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):c.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):c.hasSwiped&&(f=(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:[u,c.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:c.ertreason?"":"red",icon:c.ertreason?"check":"pencil-alt",content:c.ertreason?c.ertreason:"-----",disabled:c.busy,onClick:function(){function l(){return C("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:c.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:c.busy||c.hasConfirm,onClick:function(){function l(){return C("reset")}return l}()}),children:f})]})})}return k}()},40951:function(I,r,n){"use strict";r.__esModule=!0,r.LaborClaimConsole=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=r.LaborClaimConsole=function(){function b(C,c){return(0,e.createComponentVNode)(2,p.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,t.useBackend)(c),f=u.act,l=u.data,d=l.can_go_home,m=l.emagged,i=l.id_inserted,h=l.id_name,V=l.id_points,v=l.id_goal,s=l.unclaimed_points,g=m?0:1,N=m?"ERR0R":d?"Completed!":"Insufficient";return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:!!i&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:V/v,ranges:{good:[g,1/0],bad:[-1/0,g]},children:V+" / "+v+" "+N})||!!m&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Move shuttle",disabled:!d,onClick:function(){function x(){return f("move_shuttle")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed points",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Claim points ("+s+")",disabled:!i||!s,onClick:function(){function x(){return f("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:i?h:"-------------",onClick:function(){function x(){return f("handle_id")}return x}()})})]})})},S=function(C,c){var u=(0,t.useBackend)(c),f=u.data,l=f.ores;return(0,e.createComponentVNode)(2,o.Section,{title:"Material values",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:"Material"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(d.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},9525:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.LawManager=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.isAdmin,m=l.isSlaved,i=l.isMalf,h=l.isAIMalf,V=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:[!!(d&&m)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",m,"."]}),!!(i||h)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:V===0,onClick:function(){function v(){return f("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:V===1,onClick:function(){function v(){return f("set_view",{set_view:1})}return v}()})]}),V===0&&(0,e.createComponentVNode)(2,k),V===1&&(0,e.createComponentVNode)(2,y)]})})}return b}(),k=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.has_zeroth_laws,m=l.zeroth_laws,i=l.has_ion_laws,h=l.ion_laws,V=l.ion_law_nr,v=l.has_inherent_laws,s=l.inherent_laws,g=l.has_supplied_laws,N=l.supplied_laws,x=l.channels,B=l.channel,L=l.isMalf,T=l.isAdmin,A=l.zeroth_law,E=l.ion_law,w=l.inherent_law,O=l.supplied_law,M=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:m,ctx:c}),!!i&&(0,e.createComponentVNode)(2,S,{title:V,laws:h,ctx:c}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:s,ctx:c}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:N,ctx:c}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:x.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===B,onClick:function(){function F(){return f("law_channel",{law_channel:P.channel})}return F}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return f("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return f("notify_laws")}return P}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_zeroth_law")}return P}()})]})]}),(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: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 P(){return f("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_ion_law")}return P}()})]})]}),(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:w}),(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 P(){return f("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_inherent_law")}return P}()})]})]}),(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:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:M,onClick:function(){function P(){return f("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name+" - "+m.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function i(){return f("transfer_laws",{transfer_laws:m.ref})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.laws.has_ion_laws>0&&m.laws.ion_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_zeroth_laws>0&&m.laws.zeroth_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_inherent_laws>0&&m.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_supplied_laws>0&&m.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)})]})},m.name)})})},S=function(C,c){var u=(0,a.useBackend)(C.ctx),f=u.act,l=u.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:C.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),C.laws.map(function(m){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:m.state?"Yes":"No",selected:m.state,onClick:function(){function i(){return f("state_law",{ref:m.ref,state_law:m.state?0:1})}return i}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function i(){return f("edit_law",{edit_law:m.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function i(){return f("delete_law",{delete_law:m.ref})}return i}()})],4)]})]},m.law)})]})})}},90447:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),k=n(92986),y=n(98595),S=r.ListInputModal=function(){function c(u,f){var l=(0,p.useBackend)(f),d=l.act,m=l.data,i=m.items,h=i===void 0?[]:i,V=m.message,v=V===void 0?"":V,s=m.init_value,g=m.timeout,N=m.title,x=(0,p.useLocalState)(f,"selected",h.indexOf(s)),B=x[0],L=x[1],T=(0,p.useLocalState)(f,"searchBarVisible",h.length>10),A=T[0],E=T[1],w=(0,p.useLocalState)(f,"searchQuery",""),O=w[0],M=w[1],P=function(){function ne(Y){var le=K.length-1;if(Y===k.KEY_DOWN)if(B===null||B===le){var de;L(0),(de=document.getElementById("0"))==null||de.scrollIntoView()}else{var oe;L(B+1),(oe=document.getElementById((B+1).toString()))==null||oe.scrollIntoView()}else if(Y===k.KEY_UP)if(B===null||B===0){var re;L(le),(re=document.getElementById(le.toString()))==null||re.scrollIntoView()}else{var Z;L(B-1),(Z=document.getElementById((B-1).toString()))==null||Z.scrollIntoView()}}return ne}(),F=function(){function ne(Y){Y!==B&&L(Y)}return ne}(),R=function(){function ne(){E(!1),E(!0)}return ne}(),U=function(){function ne(Y){var le=String.fromCharCode(Y),de=h.find(function(Z){return Z==null?void 0:Z.toLowerCase().startsWith(le==null?void 0:le.toLowerCase())});if(de){var oe,re=h.indexOf(de);L(re),(oe=document.getElementById(re.toString()))==null||oe.scrollIntoView()}}return ne}(),j=function(){function ne(Y){var le;Y!==O&&(M(Y),L(0),(le=document.getElementById("0"))==null||le.scrollIntoView())}return ne}(),W=function(){function ne(){E(!A),M("")}return ne}(),K=h.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(O.toLowerCase())}),$=330+Math.ceil(v.length/3);return A||setTimeout(function(){var ne;return(ne=document.getElementById(B.toString()))==null?void 0:ne.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:N,width:325,height:$,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function ne(Y){var le=window.event?Y.which:Y.keyCode;(le===k.KEY_DOWN||le===k.KEY_UP)&&(Y.preventDefault(),P(le)),le===k.KEY_ENTER&&(Y.preventDefault(),d("submit",{entry:K[B]})),!A&&le>=k.KEY_A&&le<=k.KEY_Z&&(Y.preventDefault(),U(le)),le===k.KEY_ESCAPE&&(Y.preventDefault(),d("cancel"))}return ne}(),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 ne(){return W()}return ne}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b,{filteredItems:K,onClick:F,onFocusSearch:R,searchBarVisible:A,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,C,{filteredItems:K,onSearch:j,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[B]})})]})})})]})}return c}(),b=function(u,f){var l=(0,p.useBackend)(f),d=l.act,m=u.filteredItems,i=u.onClick,h=u.onFocusSearch,V=u.searchBarVisible,v=u.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:m.map(function(s,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function N(){return i(g)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),d("submit",{entry:m[v]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;V&&B>=k.KEY_A&&B<=k.KEY_Z&&(x.preventDefault(),h())}return N}(),selected:g===v,style:{animation:"none",transition:"none"},children:s.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},C=function(u,f){var l=(0,p.useBackend)(f),d=l.act,m=u.filteredItems,i=u.onSearch,h=u.searchQuery,V=u.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(s){s.preventDefault(),d("submit",{entry:m[V]})}return v}(),onInput:function(){function v(s,g){return i(g)}return v}(),placeholder:"Search...",value:h})}},26826:function(I,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k={Default:function(){function u(f,l){return f.gear.gear_tier-l.gear.gear_tier}return u}(),Alphabetical:function(){function u(f,l){return f.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return u}(),Cost:function(){function u(f,l){return f.gear.cost-l.gear.cost}return u}()},y=r.Loadout=function(){function u(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=(0,t.useLocalState)(l,"search",!1),V=h[0],v=h[1],s=(0,t.useLocalState)(l,"searchText",""),g=s[0],N=s[1],x=(0,t.useLocalState)(l,"category",Object.keys(i.gears)[0]),B=x[0],L=x[1],T=(0,t.useLocalState)(l,"tweakedGear",""),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,p.Window,{width:975,height:650,children:[A&&(0,e.createComponentVNode)(2,c,{tweakedGear:A,setTweakedGear:E}),(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,S,{category:B,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,C,{setTweakedGear:E})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,b,{category:B,search:V,setSearch:v,searchText:g,setSearchText:N})})]})})]})})]})}return u}(),S=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.category,V=f.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(i.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===h,style:{"white-space":"nowrap"},onClick:function(){function s(){return V(v)}return s}(),children:v},v)})})},b=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=i.user_tier,V=i.gear_slots,v=i.max_gear_slots,s=f.category,g=f.search,N=f.setSearch,x=f.searchText,B=f.setSearchText,L=(0,t.useLocalState)(l,"sortType","Default"),T=L[0],A=L[1],E=(0,t.useLocalState)(l,"sortReverse",!1),w=E[0],O=E[1],M=(0,a.createSearch)(x,function(F){return F.name}),P;return x.length>2?P=Object.entries(i.gears).reduce(function(F,R){var U=R[0],j=R[1];return F.concat(Object.entries(j).map(function(W){var K=W[0],$=W[1];return{key:K,gear:$}}))},[]).filter(function(F){var R=F.gear;return M(R)}):P=Object.entries(i.gears[s]).map(function(F){var R=F[0],U=F[1];return{key:R,gear:U}}),P.sort(k[T]),w&&(P=P.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:T,options:Object.keys(k),onSelected:function(){function F(R){return A(R)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:w?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:w?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function F(){return O(!w)}return F}()})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:x,onInput:function(){function F(R){return B(R.target.value)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:g,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function F(){N(!g),B("")}return F}()})})]}),children:P.map(function(F){var R=F.key,U=F.gear,j=12,W=Object.keys(i.selected_gears).includes(R),K=(U.cost===1,U.cost+" Points"),$=(0,e.createComponentVNode)(2,o.Box,{children:[U.name.length>j&&(0,e.createComponentVNode)(2,o.Box,{children:U.name}),U.gear_tier>h&&(0,e.createComponentVNode)(2,o.Box,{mt:U.name.length>j&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),ne=(0,e.createFragment)([U.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:U.allowed_roles.map(function(le){return(0,e.createComponentVNode)(2,o.Box,{children:le},le)})}),tooltipPosition:"left"}),Object.entries(U.tweaks).map(function(le){var de=le[0],oe=le[1];return oe.map(function(re){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:re.icon,tooltip:re.tooltip,tooltipPosition:"top"},de)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:U.desc,tooltipPosition:"top"})],0),Y=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:U.gear_tier>0&&"Tier "+U.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:K})]});return(0,e.createComponentVNode)(2,o.ImageButtonTS,{m:.5,imageSize:84,dmIcon:U.icon,dmIconState:U.icon_state,tooltip:(U.name.length>j||U.gear_tier>0)&&$,tooltipPosition:"bottom",selected:W,disabled:U.gear_tier>h||V+U.cost>v&&!W,buttons:ne,buttonsAlt:Y,onClick:function(){function le(){return m("toggle_gear",{gear:U.index_name})}return le}(),children:U.name},R)})})},C=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.setTweakedGear,V=Object.entries(i.gears).reduce(function(v,s){var g=s[0],N=s[1],x=Object.entries(N).filter(function(B){var L=B[0];return Object.keys(i.selected_gears).includes(L)}).map(function(B){var L=B[0],T=B[1];return Object.assign({key:L},T)});return v.concat(x)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return m("clear_loadout")}return v}()}),children:V.map(function(v){var s=i.selected_gears[v.key];return(0,e.createComponentVNode)(2,o.ImageButtonTS,{fluid:!0,imageSize:48,base64:s.icon,dmIcon:s.icon_file?s.icon_file:v.icon,dmIconState:s.icon_state?s.icon_state:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function g(){return h(v)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"times",iconColor:"red",width:"32px",onClick:function(){function g(){return m("toggle_gear",{gear:v.index_name})}return g}()})],0),children:s.name?s.name:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:i.gear_slots,maxValue:i.max_gear_slots,ranges:{bad:[i.max_gear_slots,1/0],average:[i.max_gear_slots*.66,i.max_gear_slots],good:[0,i.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",i.gear_slots,"/",i.max_gear_slots]})})})})]})},c=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.tweakedGear,V=f.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:h.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return V("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(h.tweaks).map(function(v){var s=v[0],g=v[1];return g.map(function(N){var x=i.selected_gears[h.key][s];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N.name,color:x?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function B(){return m("set_tweak",{gear:h.index_name,tweak:s})}return B}()}),children:[x||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+x}})]},s)})})})})})})}},88832:function(I,r,n){"use strict";r.__esModule=!0,r.MatrixMathTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),p=n(98595),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:b.value,step:.005,format:function(){function f(l){return(0,o.toFixed)(l,3)}return f}(),width:"100%",onChange:function(){function f(l,d){return u("change_var",{var_name:b.varName,var_value:d})}return f}()})},y=r.MatrixMathTester=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.matrix_a,d=f.matrix_b,m=f.matrix_c,i=f.matrix_d,h=f.matrix_e,V=f.matrix_f,v=f.pixelated,s=(0,a.useLocalState)(C,"scale_x",1),g=s[0],N=s[1],x=(0,a.useLocalState)(C,"scale_y",1),B=x[0],L=x[1],T=(0,a.useLocalState)(C,"translate_x",0),A=T[0],E=T[1],w=(0,a.useLocalState)(C,"translate_y",0),O=w[0],M=w[1],P=(0,a.useLocalState)(C,"shear_x",0),F=P[0],R=P[1],U=(0,a.useLocalState)(C,"shear_y",0),j=U[0],W=U[1],K=(0,a.useLocalState)(C,"angle",0),$=K[0],ne=K[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Transform Editor",width:290,height:270,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,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:"30%"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"25%",children:"X"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"25%",children:"Y"})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Position(c, f)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:m,varName:"c"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:V,varName:"f"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Incline(b, d)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:d,varName:"b"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:i,varName:"d"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Scale(a,e)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:l,varName:"a"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:h,varName:"e"})})]})]}),(0,e.createComponentVNode)(2,t.Table,{mt:3,children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Action"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"X"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Y"})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"up-right-and-down-left-from-center",content:"Scale",width:"100%",onClick:function(){function Y(){return u("scale",{x:g,y:B})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:g,step:.05,format:function(){function Y(le){return(0,o.toFixed)(le,2)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return N(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:B,step:.05,format:function(){function Y(le){return(0,o.toFixed)(le,2)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return L(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:"Translate",width:"100%",onClick:function(){function Y(){return u("translate",{x:A,y:O})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:A,step:1,format:function(){function Y(le){return(0,o.toFixed)(le,0)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return E(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:O,step:1,format:function(){function Y(le){return(0,o.toFixed)(le,0)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return M(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"maximize",content:"Shear",width:"100%",onClick:function(){function Y(){return u("shear",{x:F,y:j})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:F,step:.005,format:function(){function Y(le){return(0,o.toFixed)(le,3)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return R(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:j,step:.005,format:function(){function Y(le){return(0,o.toFixed)(le,3)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return W(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"rotate-right",content:"Rotate",width:"100%",onClick:function(){function Y(){return u("turn",{angle:$})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:$,step:.5,maxValue:360,minValue:-360,format:function(){function Y(le){return(0,o.toFixed)(le,1)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return ne(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"dog",color:"bad",selected:v,content:"PET",tooltip:"Pixel Enhanced Transforming",tooltipPosition:"bottom",width:"100%",onClick:function(){function Y(){return u("toggle_pixel")}return Y}()})})]})]})]})})})}return S}()},72106:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.MechBayConsole=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.recharge_port,f=u&&u.mech,l=f&&f.cell,d=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function m(){return C("reconnect")}return m}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(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 k}()},7466:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=n(25328),y=r.MechaControlConsole=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.beacons,d=f.stored_data;return d.length?(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function m(){return u("clear_log")}return m}()}),children:d.map(function(m){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",m.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,k.decodeHtmlEntities)(m.message)})]},m.time)})})})}):(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:l.length&&l.map(function(m){return(0,e.createComponentVNode)(2,o.Section,{title:m.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function i(){return u("send_message",{mt:m.uid})}return i}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function i(){return u("get_log",{mt:m.uid})}return i}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function i(){return u("shock",{mt:m.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:[m.maxHealth*.75,1/0],average:[m.maxHealth*.5,m.maxHealth*.75],bad:[-1/0,m.maxHealth*.5]},value:m.health,maxValue:m.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:m.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.cellMaxCharge*.75,1/0],average:[m.cellMaxCharge*.5,m.cellMaxCharge*.75],bad:[-1/0,m.cellMaxCharge*.5]},value:m.cellCharge,maxValue:m.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[m.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:m.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,k.toTitleCase)(m.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:m.active||"None"}),m.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[m.cargoMax*.75,1/0],average:[m.cargoMax*.5,m.cargoMax*.75],good:[-1/0,m.cargoMax*.5]},value:m.cargoUsed,maxValue:m.cargoMax})})||null]})},m.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},79625:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(3939),k=n(98595),y=n(321),S=n(5485),b=n(22091),C={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},c={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},u=function(T,A){(0,p.modalOpen)(T,"edit",{field:A.edit,value:A.value})},f=function(T,A){var E=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"\u0412\u0438\u0440\u0443\u0441",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:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435",children:E.spread_text}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u043C\u0435\u0442\u043E\u0434\u044B \u043B\u0435\u0447\u0435\u043D\u0438\u044F",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0430\u043C\u0435\u0442\u043A\u0438",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C",color:C[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function L(T,A){var E=(0,t.useBackend)(A),w=E.data,O=w.loginState,M=w.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,k.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var P;return M===2?P=(0,e.createComponentVNode)(2,d):M===3?P=(0,e.createComponentVNode)(2,m):M===4?P=(0,e.createComponentVNode)(2,i):M===5?P=(0,e.createComponentVNode)(2,s):M===6&&(P=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,k.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,B),P]})})]})}return L}(),d=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.records,P=(0,t.useLocalState)(A,"searchText",""),F=P[0],R=P[1],U=(0,t.useLocalState)(A,"sortId","name"),j=U[0],W=U[1],K=(0,t.useLocalState)(A,"sortOrder",!0),$=K[0],ne=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u0437\u0430\u043F\u0438\u0441\u0438",icon:"wrench",ml:"0.25rem",onClick:function(){function Y(){return w("screen",{screen:3})}return Y}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, ID, \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0438\u043B\u0438 \u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",onInput:function(){function Y(le,de){return R(de)}return Y}()})})]})}),(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,N,{id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"\u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"})]}),M.filter((0,a.createSearch)(F,function(Y){return Y.name+"|"+Y.id+"|"+Y.rank+"|"+Y.p_stat+"|"+Y.m_stat})).sort(function(Y,le){var de=$?1:-1;return Y[j].localeCompare(le[j])*de}).map(function(Y){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+c[Y.p_stat],onClick:function(){function le(){return w("view_record",{view_record:Y.ref})}return le}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",Y.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.m_stat})]},Y.id)})]})})})],4)},m=function(T,A){var E=(0,t.useBackend)(A),w=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:"\u0420\u0435\u0437\u0435\u0440\u0432\u043D\u043E\u0435 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443",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:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441 \u0434\u0438\u0441\u043A\u0435\u0442\u044B",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:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445 \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439",onClick:function(){function O(){return w("del_all")}return O}()})})]})})},i=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical,P=O.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:"\u041E\u0441\u043D\u043E\u0432\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:P?"spinner":"print",disabled:P,iconSpin:!!P,content:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u044C",ml:"0.5rem",onClick:function(){function F(){return w("print_record")}return F}()}),children:(0,e.createComponentVNode)(2,h)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C",onClick:function(){function F(){return w("new")}return F}()}),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"),"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C",onClick:function(){function F(){return w("del_r")}return F}()}),children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,v)],4)],0)},h=function(T,A){var E=(0,t.useBackend)(A),w=E.data,O=w.general;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:"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:O.fields.map(function(M,P){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return u(A,M)}return F}()})]},P)})})}),!!O.has_photos&&O.photos.map(function(M,P){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"\u0424\u043E\u0442\u043E \u2116",P+1]},P)})]})},V=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(P,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(P.value),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:P.line_break?"1rem":"initial",onClick:function(){function R(){return u(A,P)}return R}()})]},F)})})})})},v=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439",onClick:function(){function P(){return(0,p.modalOpen)(A,"add_comment")}return P}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):M.comments.map(function(P,F){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:P.header}),(0,e.createVNode)(1,"br"),P.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function R(){return w("del_c",{del_c:F+1})}return R}()})]},F)})})})},s=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.virus,P=(0,t.useLocalState)(A,"searchText",""),F=P[0],R=P[1],U=(0,t.useLocalState)(A,"sortId2","name"),j=U[0],W=U[1],K=(0,t.useLocalState)(A,"sortOrder2",!0),$=K[0],ne=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435, \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0421\u0442\u0430\u0434\u0438\u0439 \u0438\u043B\u0438 \u0422\u044F\u0436\u0435\u0441\u0442\u044C",onInput:function(){function Y(le,de){return R(de)}return Y}()})}),(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,x,{id:"name",children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,x,{id:"max_stages",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439"}),(0,e.createComponentVNode)(2,x,{id:"severity",children:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C"})]}),M.filter((0,a.createSearch)(F,function(Y){return Y.name+"|"+Y.max_stages+"|"+Y.severity})).sort(function(Y,le){var de=$?1:-1;return Y[j].localeCompare(le[j])*de}).map(function(Y){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+Y.severity,onClick:function(){function le(){return w("vir",{vir:Y.D})}return le}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",Y.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:C[Y.severity],children:Y.severity})]},Y.id)})]})})})})],4)},g=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"\u041C\u0435\u0434\u0431\u043E\u0442\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})})}):(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:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B"})]}),M.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+P.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",P.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[P.area||"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"," (",P.x,", ",P.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"\u0412\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.use_beaker?"\u0401\u043C\u043A\u043E\u0441\u0442\u044C: "+P.total_volume+"/"+P.maximum_volume:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 \u0441\u0438\u043D\u0442\u0435\u0437\u0430\u0442\u043E\u0440"})]},P.id)})]})})})},N=function(T,A){var E=(0,t.useLocalState)(A,"sortId","name"),w=E[0],O=E[1],M=(0,t.useLocalState)(A,"sortOrder",!0),P=M[0],F=M[1],R=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:w!==R&&"transparent",onClick:function(){function j(){w===R?F(!P):(O(R),F(!0))}return j}(),children:[U,w===R&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(T,A){var E=(0,t.useLocalState)(A,"sortId2","name"),w=E[0],O=E[1],M=(0,t.useLocalState)(A,"sortOrder2",!0),P=M[0],F=M[1],R=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:w!==R&&"transparent",onClick:function(){function j(){w===R?F(!P):(O(R),F(!0))}return j}(),children:[U,w===R&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.screen,P=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function F(){w("screen",{screen:2})}return F}(),children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function F(){w("screen",{screen:5})}return F}(),children:"\u0411\u0430\u0437\u0430 \u0434\u0430\u043D\u043D\u044B\u0445 \u0432\u0438\u0440\u0443\u0441\u043E\u0432"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===6,onClick:function(){function F(){return w("screen",{screen:6})}return F}(),children:"\u041E\u0442\u0441\u043B\u0435\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u043C\u0435\u0434\u0431\u043E\u0442\u043E\u0432"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u0437\u044B \u0434\u0430\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),M===4&&P&&!P.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["\u0417\u0430\u043F\u0438\u0441\u044C: ",P.fields[0].value]})]})})};(0,p.modalRegisterBodyOverride)("virus",f)},52306:function(I,r,n){"use strict";r.__esModule=!0,r.Mimicking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Mimicking=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.slots||[];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:[u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:f.selected,onClick:function(){function l(){return C("Choose",{id:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function l(){return C("Delete",{id:f.id})}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",f.voice]})},f.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function f(){return C("Add")}return f}()})]})})})})}return k}()},66238:function(I,r,n){"use strict";r.__esModule=!0,r.Minesweeper=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Minesweeper=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.matrix,f=c.showMessage,l=c.tokens,d=c.uiWidth,m={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(g){return g.preventDefault()});var i=function(){function g(N,x,B){N.button!==0&&N.button!==2||C("Square",{X:x,Y:B,mode:N.button===2?s[V]:V})}return g}(),h=(0,a.useLocalState)(S,"mode","bomb"),V=h[0],v=h[1],s={flag:"bomb",bomb:"flag"};return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",width:d+80,height:750,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,{title:"\u0418\u0433\u0440\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435",textAlign:"center",fill:!0,fitted:!0,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",iconColor:"black",selected:V==="bomb",onClick:function(){function g(){return v("bomb")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"flag",iconColor:"red",selected:V==="flag",onClick:function(){function g(){return v("flag")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",onClick:function(){function g(){return C("Mode",{mode:"16x30"})}return g}()})],4),children:[(0,e.createVNode)(1,"p"),Object.keys(u).map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(u[g]).map(function(N){return(0,e.createComponentVNode)(2,t.Button,{m:"1px",height:"30px",width:"30px",className:u[g][N].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:u[g][N].open?u[g][N].bomb?"bomb":"":u[g][N].flag?"flag":"",textColor:u[g][N].open?u[g][N].bomb?"black":m[u[g][N].around]:u[g][N].flag?"red":"gray",onMouseDown:function(){function x(B){return i(B,g,N)}return x}(),children:u[g][N].open&&!u[g][N].bomb&&u[g][N].around?u[g][N].around:" "},N)})},g)}),(0,e.createVNode)(1,"p"),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",className:"Minesweeper__message",children:["\u0414\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B \u043D\u0443\u0436\u043D\u043E \u043F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438 \u0432\u0441\u0435 \u0431\u043E\u043C\u0431\u044B, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435 \u043F\u0443\u0441\u0442\u044B\u0435 \u043A\u043B\u0435\u0442\u043A\u0438.",(0,e.createVNode)(1,"br"),"\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043A\u0435\u043D\u043E\u0432: ",l,(0,e.createVNode)(1,"br"),f]})]})})})})}return k}()},21385:function(I,r,n){"use strict";r.__esModule=!0,r.MiniGamesMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.MiniGamesMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.spawners||[],f=c.thunderdome_eligible,l=c.notifications_enabled;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.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:f?"good":"bad",onClick:function(){function d(){return C("toggle_minigames")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:l?"good":"bad",onClick:function(){function d(){return C("toggle_notifications")}return d}()}),(0,e.createComponentVNode)(2,t.Section,{children:u.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:d.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function m(){return C("jump",{ID:d.uids})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function m(){return C("spawn",{ID:d.uids})}return m}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:d.desc}),!!d.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:d.fluff}),!!d.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:d.important_info})]},d.name)})})]})})}return k}()},87684:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=["title","items"];function y(l,d){if(l==null)return{};var m={};for(var i in l)if({}.hasOwnProperty.call(l,i)){if(d.includes(i))continue;m[i]=l[i]}return m}var S={Alphabetical:function(){function l(d,m){return d-m}return l}(),Availability:function(){function l(d,m){return-(d.affordable-m.affordable)}return l}(),Price:function(){function l(d,m){return d.price-m.price}return l}()},b=r.MiningVendor=function(){function l(d,m){return(0,e.createComponentVNode)(2,p.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,p.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,c)]})})})}return l}(),C=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.has_id,s=V.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,e.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return h("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},c=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.has_id,s=V.id,g=V.items,N=(0,t.useLocalState)(m,"search",""),x=N[0],B=N[1],L=(0,t.useLocalState)(m,"sort","Alphabetical"),T=L[0],A=L[1],E=(0,t.useLocalState)(m,"descending",!1),w=E[0],O=E[1],M=(0,a.createSearch)(x,function(R){return R[0]}),P=!1,F=Object.entries(g).map(function(R,U){var j=Object.entries(R[1]).filter(M).map(function(W){return W[1].affordable=v&&s.points>=W[1].price,W[1]}).sort(S[T]);if(j.length!==0)return w&&(j=j.reverse()),P=!0,(0,e.createComponentVNode)(2,f,{title:R[0],items:j},R[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?F:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(d,m){var i=(0,t.useLocalState)(m,"search",""),h=i[0],V=i[1],v=(0,t.useLocalState)(m,"sort",""),s=v[0],g=v[1],N=(0,t.useLocalState)(m,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return V(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function L(T){return g(T)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"21px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return B(!x)}return L}()})})]})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=d.title,s=d.items,g=y(d,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:s.map(function(N){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:N.imageId,imageAsset:"mining_vendor64x64",content:N.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:N.price,icon:"shopping-cart",iconSize:1,iconColor:!V.has_id||V.id.points"})}),!!O&&(0,e.createComponentVNode)(2,d,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:F?(0,e.createComponentVNode)(2,f,{text:P,defaultText:"",color:"silver"}):(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})}return x}(),c=function(B,L){var T=B.iconName,A=B.machineName,E=B.noMachine,w=B.noMachineText,O=B.noMachineElem,M="Unknown machine",P=E?w:A||"Unknown machine",F=P===w,R=P===w||P===M;return E&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!E&&(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{mr:1,size:1.1,name:T})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.createComponentVNode)(2,o.Box,{as:"span",wordWrap:"break-word",color:F?"label":"silver",fontSize:"1.1rem",bold:!0,italic:R,children:P})})]})},u=function(B,L){var T=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:T})},f=function(B,L){var T=B.text,A=B.defaultText,E=b(B,k);return T?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},E,{children:T}))):(0,e.createComponentVNode)(2,u,{text:A})},l=function(B,L){var T=B.noConfirm,A=T===void 0?!1:T,E=b(B,y);return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},E))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},E)))},d=function(B,L){var T=B.label,A=B.wrapContent,E=B.noWrapContent,w=B.compactLabel,O=w===void 0?!1:w,M=b(B,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},M,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:O?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:O?"auto":0,maxWidth:O?"none":20,color:"label",nowrap:!0,children:T}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:A}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:E})]})))},m=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},i=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},h=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,f,{text:w,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return A("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!w,onClick:function(){function O(){return A("clear_tag")}return O}()})],4)})},V=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.frequency,O=E.minFrequency,M=E.maxFrequency,P=E.canReset;return(0,e.createComponentVNode)(2,d,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:M/10,value:w/10,format:function(){function F(R){return(0,a.toFixed)(R,1)}return F}(),onChange:function(){function F(R,U){return A("set_frequency",{frequency:U*10})}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!P,tooltip:"Reset",onClick:function(){function F(){return A("reset_frequency")}return F}()})],4)})},v=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.attachedTags;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add tag",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_tag")}return O}()}),children:w.map(function(O,M){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O})}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{icon:"minus",color:"red",onClick:function(){function P(){return A("remove_tag",{tag_index:M})}return P}()})})})},M)})})},s=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.bolts,O=E.pressureCheck,M=E.temperatureCheck,P=E.oxygenCheck,F=E.toxinsCheck,R=E.nitrogenCheck,U=E.carbonDioxideCheck,j=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:M,label:"Monitor temperature"},{bitflag:4,checked:P,label:"Monitor oxygen concentration"},{bitflag:8,checked:F,label:"Monitor plasma concentration"},{bitflag:16,checked:R,label:"Monitor nitrogen concentration"},{bitflag:32,checked:U,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:w?"check":"times",selected:w,content:w?"YES":"NO",onClick:function(){function W(){return A("toggle_bolts")}return W}()})}),j.map(function(W){return(0,e.createComponentVNode)(2,d,{label:W.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:W.checked,onClick:function(){function K(){return A("toggle_flag",{bitflag:W.bitflag})}return K}()})},W.bitflag)})],0)},g=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.sensors;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,d,{mr:0,compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:11.3})]})}),Object.keys(w).map(function(O){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O}),w[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:w[O]}):(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"edit",onClick:function(){function M(){return A("change_label",{sensor_tag:O})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!w[O],onClick:function(){function M(){return A("clear_label",{sensor_tag:O})}return M}()})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:.5}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){function M(){return A("del_sensor",{sensor_tag:O})}return M}()})})]})},O)})]})},N=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.inputTag,O=E.outputTag,M=E.bufferTag,P=E.bufferFitsInput,F=E.bufferFitsOutput,R=E.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:w,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:R||!w,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:w&&M===w,disabled:!P,onClick:function(){function U(){return A("link_input")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!w,onClick:function(){function U(){return A("unlink_input")}return U}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:R||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&M===O,disabled:!F,onClick:function(){function U(){return A("link_output")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!O,onClick:function(){function U(){return A("unlink_output")}return U}()})],4)})],4)}},64713:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(76910),k=n(98595),y=n(3939),S=n(22091),b=["icon","iconSpin","selected","security","onClick","title","children"],C=["name"];function c(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}var u=128,f=["security","engineering","medical","science","service","supply"],l={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function B(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.is_security,M=w.is_admin,P=w.is_silent,F=w.is_printing,R=w.screen,U=w.channels,j=w.channel_idx,W=j===void 0?-1:j,K=(0,t.useLocalState)(T,"menuOpen",!1),$=K[0],ne=K[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),le=Y[0],de=Y[1],oe=(0,t.useLocalState)(T,"censorMode",!1),re=oe[0],Z=oe[1],ae;R===0||R===2?ae=(0,e.createComponentVNode)(2,i):R===1&&(ae=(0,e.createComponentVNode)(2,h));var J=U.reduce(function(X,Q){return X+Q.unread},0);return(0,e.createComponentVNode)(2,k.Window,{theme:O&&"security",width:800,height:600,children:[le?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,k.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,m,{icon:"bars",title:"Toggle Menu",onClick:function(){function X(){return ne(!$)}return X}()}),(0,e.createComponentVNode)(2,m,{icon:"newspaper",title:"Headlines",selected:R===0,onClick:function(){function X(){return E("headlines")}return X}(),children:J>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:J>=10?"9+":J})}),(0,e.createComponentVNode)(2,m,{icon:"briefcase",title:"Job Openings",selected:R===1,onClick:function(){function X(){return E("jobs")}return X}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:U.map(function(X){return(0,e.createComponentVNode)(2,m,{icon:X.icon,title:X.name,selected:R===2&&U[W-1]===X,onClick:function(){function Q(){return E("channel",{uid:X.uid})}return Q}(),children:X.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:X.unread>=10?"9+":X.unread})},X)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!M)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function X(){return(0,y.modalOpen)(T,"wanted_notice")}return X}()}),(0,e.createComponentVNode)(2,m,{security:!0,icon:re?"minus-square":"minus-square-o",title:"Censor Mode: "+(re?"On":"Off"),mb:"0.5rem",onClick:function(){function X(){return Z(!re)}return X}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,m,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function X(){return(0,y.modalOpen)(T,"create_story")}return X}()}),(0,e.createComponentVNode)(2,m,{icon:"plus-circle",title:"New Channel",onClick:function(){function X(){return(0,y.modalOpen)(T,"create_channel")}return X}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,m,{icon:F?"spinner":"print",iconSpin:F,title:F?"Printing...":"Print Newspaper",onClick:function(){function X(){return E("print_newspaper")}return X}()}),(0,e.createComponentVNode)(2,m,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function X(){return E("toggle_mute")}return X}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ae]})]})})]})}return B}(),m=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=L.icon,O=w===void 0?"":w,M=L.iconSpin,P=L.selected,F=P===void 0?!1:P,R=L.security,U=R===void 0?!1:R,j=L.onClick,W=L.title,K=L.children,$=c(L,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",F&&"Newscaster__menuButton--selected",U&&"Newscaster__menuButton--security"]),onClick:j},$,{children:[F&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:M,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),K]})))},i=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.screen,M=w.is_admin,P=w.channel_idx,F=w.channel_can_manage,R=w.channels,U=w.stories,j=w.wanted,W=(0,t.useLocalState)(T,"fullStories",[]),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"censorMode",!1),Y=ne[0],le=ne[1],de=O===2&&P>-1?R[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,V,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:de?de.icon:"newspaper",mr:"0.5rem"}),de?de.name:"Headlines"],0),children:U.length>0?U.slice().reverse().map(function(oe){return!K.includes(oe.uid)&&oe.body.length+3>u?Object.assign({},oe,{body_short:oe.body.substr(0,u-4)+"..."}):oe}).map(function(oe,re){return(0,e.createComponentVNode)(2,V,{story:oe},re)}):(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."]})}),!!de&&(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)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!de.admin&&!M,selected:de.censored,icon:de.censored?"comment-slash":"comment",content:de.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function oe(){return E("censor_channel",{uid:de.uid})}return oe}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!F,icon:"cog",content:"Manage",onClick:function(){function oe(){return(0,y.modalOpen)(T,"manage_channel",{uid:de.uid})}return oe}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:de.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:de.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:de.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"}),U.reduce(function(oe,re){return oe+re.view_count},0).toLocaleString()]})]})})]})},h=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.jobs,M=w.wanted,P=Object.entries(O).reduce(function(F,R){var U=R[0],j=R[1];return F+j.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!M&&(0,e.createComponentVNode)(2,V,{story:M,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:P>0?f.map(function(F){return Object.assign({},l[F],{id:F,jobs:O[F]})}).filter(function(F){return!!F&&F.jobs.length>0}).map(function(F){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+F.id]),title:F.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:F.fluff_text}),children:F.jobs.map(function(R){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!R.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",R.title]},R.title)})},F.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."})]})]})},V=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=L.story,M=L.wanted,P=M===void 0?!1:M,F=(0,t.useLocalState)(T,"fullStories",[]),R=F[0],U=F[1],j=(0,t.useLocalState)(T,"censorMode",!1),W=j[0],K=j[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&W&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return E("censor_story",{uid:O.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,p.timeAgo)(O.publish_time,w.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function($,ne){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},ne)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return U([].concat(R,[O.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(L,T){var A=L.name,E=c(L,C),w=(0,t.useLocalState)(T,"viewingPhoto",""),O=w[0],M=w[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function P(){return M(A)}return P}()},E)))},s=function(L,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),E=A[0],w=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:E}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return w("")}return O}()})]})},g=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=!!L.args.uid&&w.channels.filter(function(te){return te.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,y.modalClose)(T);return}var M=L.id==="manage_channel",P=!!L.args.is_admin,F=L.args.scanned_user,R=(0,t.useLocalState)(T,"author",(O==null?void 0:O.author)||F||"Unknown"),U=R[0],j=R[1],W=(0,t.useLocalState)(T,"name",(O==null?void 0:O.name)||""),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"description",(O==null?void 0:O.description)||""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"icon",(O==null?void 0:O.icon)||"newspaper"),oe=de[0],re=de[1],Z=(0,t.useLocalState)(T,"isPublic",M?!!(O!=null&&O.public):!1),ae=Z[0],J=Z[1],X=(0,t.useLocalState)(T,"adminLocked",(O==null?void 0:O.admin)===1||!1),Q=X[0],q=X[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:M?"Manage "+O.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:!P,width:"100%",value:U,onInput:function(){function te(fe,ye){return j(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:K,onInput:function(){function te(fe,ye){return $(ye)}return te}()})}),(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:Y,onInput:function(){function te(fe,ye){return le(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:oe,width:"35%",mr:"0.5rem",onInput:function(){function te(fe,ye){return re(ye)}return te}()}),(0,e.createComponentVNode)(2,o.Icon,{name:oe,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:ae,icon:ae?"toggle-on":"toggle-off",content:ae?"Yes":"No",onClick:function(){function te(){return J(!ae)}return te}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return q(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||K.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,L.id,"",{author:U,name:K.substr(0,49),description:Y.substr(0,128),icon:oe,public:ae?1:0,admin_locked:Q?1:0})}return te}()})]})},N=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.photo,M=w.channels,P=w.channel_idx,F=P===void 0?-1:P,R=!!L.args.is_admin,U=L.args.scanned_user,j=M.slice().sort(function(te,fe){if(F<0)return 0;var ye=M[F-1];if(ye.uid===te.uid)return-1;if(ye.uid===fe.uid)return 1}).filter(function(te){return R||!te.frozen&&(te.author===U||!!te.public)}),W=(0,t.useLocalState)(T,"author",U||"Unknown"),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"channel",j.length>0?j[0].name:""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"title",""),oe=de[0],re=de[1],Z=(0,t.useLocalState)(T,"body",""),ae=Z[0],J=Z[1],X=(0,t.useLocalState)(T,"adminLocked",!1),Q=X[0],q=X[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:K,onInput:function(){function te(fe,ye){return $(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:j.map(function(te){return te.name}),mb:"0",width:"100%",onSelected:function(){function te(fe){return le(fe)}return te}()})}),(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:oe,onInput:function(){function te(fe,ye){return re(ye)}return te}()})}),(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:ae,onInput:function(){function te(fe,ye){return J(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function te(){return E(O?"eject_photo":"attach_photo")}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:oe,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"}),ae.split("\n").map(function(te,fe){return(0,e.createComponentVNode)(2,o.Box,{children:te||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return q(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||Y.trim().length===0||oe.trim().length===0||ae.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,"create_story","",{author:K,channel:Y,title:oe.substr(0,127),body:ae.substr(0,1023),admin_locked:Q?1:0})}return te}()})]})},x=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.photo,M=w.wanted,P=!!L.args.is_admin,F=L.args.scanned_user,R=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||F||"Unknown"),U=R[0],j=R[1],W=(0,t.useLocalState)(T,"name",(M==null?void 0:M.title.substr(8))||""),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"description",(M==null?void 0:M.body)||""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin_locked)===1||!1),oe=de[0],re=de[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:!P,width:"100%",value:U,onInput:function(){function Z(ae,J){return j(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:K,maxLength:"128",onInput:function(){function Z(ae,J){return $(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Y,maxLength:"512",rows:"4",onInput:function(){function Z(ae,J){return le(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function Z(){return E(O?"eject_photo":"attach_photo")}return Z}()}),!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function Z(){return re(!oe)}return Z}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!M,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Z(){E("clear_wanted_notice"),(0,y.modalClose)(T)}return Z}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||K.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Z(){(0,y.modalAnswer)(T,L.id,"",{author:U,name:K.substr(0,127),description:Y.substr(0,511),admin_locked:oe?1:0})}return Z}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",N),(0,y.modalRegisterBodyOverride)("wanted_notice",x)},97351:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaBloodScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(39473),p=n(98595),k=r.NinjaBloodScan=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data;return(0,e.createComponentVNode)(2,p.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,p.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.vialIcons,m=l.noVialIcon,i=l.bloodOwnerNames,h=l.bloodOwnerSpecies,V=l.bloodOwnerTypes,v=l.blockButtons,s=l.scanStates,g={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},N=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start"}),children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(B,L){return(0,e.createComponentVNode)(2,o.FlexItem,{direction:"column",width:"33.3%",ml:L?2:0,children:[(0,e.createComponentVNode)(2,t.Section,{title:i[L]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:N[s[L]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v?g.disabled:g.blue,height:"100%",width:"100%",disabled:v,onClick:function(){function T(){return f("vial_out",{button_num:L+1})}return T}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[L]||m),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:i[L]||" - ",content:"\u0420\u0430\u0441\u0430: "+(h[L]||" - ")+"\n"+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(V[L]||" - ")),position:"bottom"})]})})]},L)})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:v,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){function B(){return f("scan_blood")}return B}()})})]})})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.progressBar;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"green",value:l,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",mt:1,children:l?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(l+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"}),2)})})}},32989:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaMindScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NinjaMindScan=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.occupantIcon,l=u.occupant_name,d=u.occupant_health,m=u.scanned_occupants,i=l==="none"?1:0;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{shrink:1,alignContent:"left",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+f,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,alignContent:"right",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:d})]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:i,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("scan_occupant")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",width:"250px",textAlign:"center",disabled:i,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("go_out")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",width:"250px",textAlign:"center",disabled:i,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("teleport_out")}return h}()})]})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.createComponentVNode)(2,t.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:m.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:h.scanned_occupant})})},h.scanned_occupant)})})})})]})}},41166:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NuclearBomb=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;return c.extended?(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authdisk?"eject":"id-card",selected:c.authdisk,content:c.diskname?c.diskname:"-----",tooltip:c.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function u(){return C("auth")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!c.authdisk,selected:c.authcode,content:c.codemsg,onClick:function(){function u(){return C("code")}return u}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.anchored?"check":"times",selected:c.anchored,disabled:!c.authfull,content:c.anchored?"YES":"NO",onClick:function(){function u(){return C("toggle_anchor")}return u}()})}),c.authfull&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:c.time,disabled:!c.authfull,tooltip:"Set Timer",onClick:function(){function u(){return C("set_time")}return u}()})})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",color:c.timer?"red":"",children:c.time+"s"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.safety?"check":"times",selected:c.safety,disabled:!c.authfull,content:c.safety?"ON":"OFF",tooltip:c.safety?"Disable Safety":"Enable Safety",onClick:function(){function u(){return C("toggle_safety")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(c.timer,"bomb"),disabled:c.safety||!c.authfull,color:"red",content:c.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function u(){return C("toggle_armed")}return u}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function u(){return C("deploy")}return u}()})})})})}return k}()},52416:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),p=n(72253),k=n(36036),y=n(98595),S=r.NumberInputModal=function(){function C(c,u){var f=(0,p.useBackend)(u),l=f.act,d=f.data,m=d.init_value,i=d.large_buttons,h=d.message,V=h===void 0?"":h,v=d.timeout,s=d.title,g=(0,p.useLocalState)(u,"input",m),N=g[0],x=g[1],B=function(){function A(E){E!==N&&x(E)}return A}(),L=function(){function A(E){E!==N&&x(E)}return A}(),T=140+Math.max(Math.ceil(V.length/3),V.length>0&&i?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:s,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(E){var w=window.event?E.which:E.keyCode;w===o.KEY_ENTER&&l("submit",{entry:N}),w===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k.Box,{color:"label",children:V})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,b,{input:N,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return C}(),b=function(c,u){var f=(0,p.useBackend)(u),l=f.act,d=f.data,m=d.min_value,i=d.max_value,h=d.init_value,V=d.round_value,v=c.input,s=c.onClick,g=c.onChange,N=Math.round(v!==m?Math.max(v/2,m):i/2),x=v===m&&m>0||v===1;return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===m,icon:"angle-double-left",onClick:function(){function B(){return s(m)}return B}(),tooltip:v===m?"Min":"Min ("+m+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!V,minValue:m,maxValue:i,onChange:function(){function B(L,T){return g(T)}return B}(),onEnter:function(){function B(L,T){return l("submit",{entry:T})}return B}(),value:v})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===i,icon:"angle-double-right",onClick:function(){function B(){return s(i)}return B}(),tooltip:v===i?"Max":"Max ("+i+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return s(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===h,icon:"redo",onClick:function(){function B(){return s(h)}return B}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},1218:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),p=n(36036),k=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435","oxyLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],C=r.OperatingComputer=function(){function l(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.hasOccupant,s=V.choice,g;return s?g=(0,e.createComponentVNode)(2,f):g=v?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Tabs,{children:[(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!s,icon:"user",onClick:function(){function N(){return h("choiceOff")}return N}(),children:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442"}),(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!!s,icon:"cog",onClick:function(){function N(){return h("choiceOn")}return N}(),children:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return l}(),c=function(d,m){var i=(0,t.useBackend)(m),h=i.data,V=h.occupant;return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u044F",children:V.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[V.stat][0],children:k[V.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,s){return(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:v[0],children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:"100",value:V[v[1]]/100,ranges:S,children:(0,a.round)(V[v[1]])},s)},s)}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:b[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius),"\xB0C, ",(0,a.round)(V.btFaren),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u0443\u043B\u044C\u0441",children:[V.pulse," \u0443\u0434/\u043C\u0438\u043D"]})],4)]})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438",level:"2",children:V.inSurgery?V.surgeries.map(function(v){var s=v.bodypartName,g=v.surgeryName,N=v.stepName;return(0,e.createComponentVNode)(2,p.Section,{title:s,level:"4",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F",children:g}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u044D\u0442\u0430\u043F",children:N})]})},s)}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u043D\u0435 \u043F\u0440\u043E\u0432\u043E\u0434\u044F\u0442\u0441\u044F."})})})]})},u=function(){return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.verbose,s=V.health,g=V.healthAlarm,N=V.oxy,x=V.oxyAlarm,B=V.crit;return(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0414\u0438\u043D\u0430\u043C\u0438\u043A",children:(0,e.createComponentVNode)(2,p.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",onClick:function(){function L(){return h(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:s?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(s?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return h("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return h("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u043A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u043C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(B?"critOff":"critOn")}return L}()})})]})}},46892:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595);function k(m,i){var h=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(h)return(h=h.call(m)).next.bind(h);if(Array.isArray(m)||(h=y(m))||i&&m&&typeof m.length=="number"){h&&(m=h);var V=0;return function(){return V>=m.length?{done:!0}:{done:!1,value:m[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 y(m,i){if(m){if(typeof m=="string")return S(m,i);var h={}.toString.call(m).slice(8,-1);return h==="Object"&&m.constructor&&(h=m.constructor.name),h==="Map"||h==="Set"?Array.from(m):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?S(m,i):void 0}}function S(m,i){(i==null||i>m.length)&&(i=m.length);for(var h=0,V=Array(i);hh},u=function(i,h){var V=i.name,v=h.name;if(!V||!v)return 0;var s=V.match(b),g=v.match(b);if(s&&g&&V.replace(b,"")===v.replace(b,"")){var N=parseInt(s[1],10),x=parseInt(g[1],10);return N-x}return c(V,v)},f=function(i,h){var V=(0,t.useBackend)(h),v=V.act,s=i.searchText,g=i.source,N=i.title,x=g.filter(C(s));return x.sort(u),g.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+g.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return v("orbit",{ref:B.ref})}return L}()},B.name)})})},l=function(i,h){var V=(0,t.useBackend)(h),v=V.act,s=i.color,g=i.thing;return(0,e.createComponentVNode)(2,o.Button,{color:s,onClick:function(){function N(){return v("orbit",{ref:g.ref})}return N}(),children:g.name})},d=r.Orbit=function(){function m(i,h){for(var V=(0,t.useBackend)(h),v=V.act,s=V.data,g=s.alive,N=s.antagonists,x=s.highlights,B=s.auto_observe,L=s.dead,T=s.ghosts,A=s.misc,E=s.npcs,w=(0,t.useLocalState)(h,"searchText",""),O=w[0],M=w[1],P={},F=k(N),R;!(R=F()).done;){var U=R.value;P[U.antag]===void 0&&(P[U.antag]=[]),P[U.antag].push(U)}var j=Object.entries(P);j.sort(function(K,$){return c(K[0],$[0])});var W=function(){function K($){for(var ne=0,Y=[j.map(function(oe){var re=oe[0],Z=oe[1];return Z}),x,g,T,L,E,A];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:j.map(function(K){var $=K[0],ne=K[1];return(0,e.createComponentVNode)(2,o.Section,{title:$,level:2,children:ne.filter(C(O)).sort(u).map(function(Y){return(0,e.createComponentVNode)(2,l,{color:"bad",thing:Y},Y.name)})},$)})}),x.length>0&&(0,e.createComponentVNode)(2,f,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+g.length+")",children:g.filter(C(O)).sort(u).map(function(K){return(0,e.createComponentVNode)(2,l,{color:"good",thing:K},K.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+T.length+")",children:T.filter(C(O)).sort(u).map(function(K){return(0,e.createComponentVNode)(2,l,{color:"grey",thing:K},K.name)})}),(0,e.createComponentVNode)(2,f,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"NPCs",source:E,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"Misc",source:A,searchText:O})]})})}return m}()},15421:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=n(9394);function y(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var S=(0,k.createLogger)("OreRedemption"),b=function(h){return h.toLocaleString("en-US")+" pts"},C=r.OreRedemption=function(){function i(h,V){return(0,e.createComponentVNode)(2,p.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{height:"100%"})}),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})})})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.id,x=g.points,B=g.disk,L=Object.assign({},(y(h),h));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:N?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:N.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return s("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return s("insert_id")}return T}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:b(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:b(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:b(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return s("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return s("eject_disk")}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return s("download")}return T}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},u=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.sheets,x=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},f=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.alloys,x=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,m,{ore:B},B.id)})]})))})},l=function(h,V){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:h.title}),(v=h.columns)==null?void 0:v.map(function(s){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:s[1],textAlign:"center",color:"label",bold:!0,children:s[0]},s)})]})})},d=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=h.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return s(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})},m=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=h.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return s(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})}},30373:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),k=n(70752),y=function(C){var c;try{c=k("./"+C+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",C);throw f}var u=c[C];return u||(0,p.routingError)("missingExport",C)},S=r.PAI=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.app_template,m=l.app_icon,i=l.app_title,h=y(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:m,mr:1}),i,d!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function V(){return f("MASTER_back")}return V}()})]}),p:1,children:(0,e.createComponentVNode)(2,h)})})})}return b}()},85175:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),k=n(59395),y=function(u){var f;try{f=k("./"+u+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",u);throw d}var l=f[u];return l||(0,p.routingError)("missingExport",u)},S=r.PDA=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.app,h=m.owner;if(!h)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var V=y(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,b)}),(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,V)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,C)})]})})})}return c}(),b=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.idInserted,h=m.idLink,V=m.stationTime,v=m.cartridge_name,s=m.request_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 g(){return d("Authenticate")}return g}(),content:i?h:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject")}return g}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject_Request")}return g}(),content:s?["Eject "+s]:"No Request Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:V})]})},C=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.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 h(){return d("Back")}return h}()})}),(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 h(){d("Home")}return h}()})})]})})}},38280:function(I,r,n){"use strict";r.__esModule=!0,r.PDAPainter=r.PDAColorRow=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=r.PDAPainter=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.statusLabel,l=u.pdaTypes,d=u.hasPDA,m=u.pdaIcon,i=u.pdaIconState,h=u.pdaOwnerName,V=u.pdaJobName;return(0,e.createComponentVNode)(2,t.Window,{width:545,height:350,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:24,shrink:0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:d?"eject":"exclamation-triangle",selected:d,content:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function v(){return c(d?"eject_pda":"insert_pda")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:h||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:V||"\u041D/\u0414"})]})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",flex:"1",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.DmIcon,{height:"160px",icon:m,icon_state:i,style:{"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"},align:"middle"})}),(0,e.createComponentVNode)(2,o.LabeledList,{m:"5px",children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:f})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!d,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA",confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){function v(){return c("erase_pda")}return v}()})]})})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:27,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",flex:"1",children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",scrollable:!0,fill:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:Object.keys(l).map(function(v){return(0,e.createComponentVNode)(2,k,{selectedPda:v,selectedPdaIcon:l[v][0]},v)})})})})})]})})})}return y}(),k=r.PDAColorRow=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.hasPDA,l=u.pdaIcon,d=S.selectedPda;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{icon:l,icon_state:d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,disabled:!f,icon:d,content:d,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function m(){return c("choose_pda",{selectedPda:d})}return m}()})})]})}return y}()},68654:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49968),k=r.Pacman=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.broken,l=u.anchored,d=u.active,m=u.fuel_type,i=u.fuel_usage,h=u.fuel_stored,V=u.fuel_cap,v=u.is_ai,s=u.tmp_current,g=u.tmp_max,N=u.tmp_overheat,x=u.output_max,B=u.power_gen,L=u.output_set,T=u.has_fuel,A=h/V,E=s/g,w=L*B,O=Math.round(h/i),M=Math.round(O/60),P=O>120?M+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(f||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!f&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!f&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!f&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!T,selected:d,onClick:function(){function F(){return c("toggle_power")}return F}()}),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:L,minValue:1,maxValue:x,step:1,className:"mt-1",onDrag:function(){function F(R,U){return c("change_power",{change_power:U})}return F}()}),"(",(0,p.formatPower)(w),")"]})})}),(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:[s," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[N>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),N>20&&N<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),N>1&&N<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),N===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:d||v||!T,onClick:function(){function F(){return c("eject_fuel")}return F}()}),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:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(h/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:[i/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!T&&(i?P:"N/A"),!T&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},33388:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PersonalCrafting=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.busy,d=f.category,m=f.display_craftable_only,i=f.display_compact,h=f.prev_cat,V=f.next_cat,v=f.subcategory,s=f.prev_subcat,g=f.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){function N(){return u("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:i?"check-square-o":"square-o",selected:i,onClick:function(){function N(){return u("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return u("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function N(){return u("forwardCat")}return N}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s,icon:"arrow-left",onClick:function(){function N(){return u("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function N(){return u("forwardSubCat")}return N}()})]}),i?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.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 h(){return u("make",{make:i.ref})}return h}()}),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&&m.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)})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.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 h(){return u("make",{make:i.ref})}return h}()}),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&&m.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)})]})}},56150:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(88510),k=n(64795),y=n(25328);function S(f,l){var d=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(d)return(d=d.call(f)).next.bind(d);if(Array.isArray(f)||(d=b(f))||l&&f&&typeof f.length=="number"){d&&(f=d);var m=0;return function(){return m>=f.length?{done:!0}:{done:!1,value:f[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(f,l){if(f){if(typeof f=="string")return C(f,l);var d={}.toString.call(f).slice(8,-1);return d==="Object"&&f.constructor&&(d=f.constructor.name),d==="Map"||d==="Set"?Array.from(f):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?C(f,l):void 0}}function C(f,l){(l==null||l>f.length)&&(l=f.length);for(var d=0,m=Array(l);df?this.substring(0,f)+"...":this};var c=function(l,d){d===void 0&&(d="");var m=(0,y.createSearch)(d,function(i){return i.altername});return(0,k.flow)([(0,p.filter)(function(i){return i==null?void 0:i.altername}),d&&(0,p.filter)(m),(0,p.sortBy)(function(i){return i.id})])(l)},u=r.Photocopier=function(){function f(l,d){for(var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.copies,v=h.maxcopies,s=(0,a.useLocalState)(d,"searchText",""),g=s[0],N=s[1],x=c((0,p.sortBy)(function(P){return P.category})(h.forms||[]),g),B=[],L=S(x),T;!(T=L()).done;){var A=T.value;B.includes(A.category)||B.push(A.category)}var E=(0,a.useLocalState)(d,"number",0),w=E[0],O=E[1],M;return h.category===""?M=x:M=x.filter(function(P){return P.category===h.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:h.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:h.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:h.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":h.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.copyitem&&!h.mob,icon:h.copyitem||h.mob?"eject":"times",content:h.copyitem?h.copyitem:h.mob?"\u0416\u043E\u043F\u0430 "+h.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return i("removedocument")}return P}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.folder,icon:h.folder?"eject":"times",content:h.folder?h.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return i("removefolder")}return P}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:h.toner===0||h.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return i("print_form")}return P}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:h.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function P(){return i("ai_pic")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:h.toner===0||!h.copyitem&&!h.mob,onClick:function(){function P(){return i("copy")}return P}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:h.toner===0,onClick:function(){function P(){return i("ai_text")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:V,stepPixelSize:10,onChange:function(){function P(F,R){return i("copies",{new:R})}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!h.category,onClick:function(){function P(){return i("choose_category",{category:""})}return P}()})}),B.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:P,selected:h.category===P,onClick:function(){function F(){return i("choose_category",{category:P})}return F}()},P)},P)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function P(F,R){return N(R)}return P}()}),children:M.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:P.altername.trimLongStr(37),tooltip:P.altername,selected:h.form_id===P.id,onClick:function(){function F(){return i("choose_form",{path:P.path,id:P.id})}return F}()})},P.path)})})})]})})})}return f}()},49177:function(I,r,n){"use strict";r.__esModule=!0,r.PlayerPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=["checked"];function k(u,f){if(u==null)return{};var l={};for(var d in u)if({}.hasOwnProperty.call(u,d)){if(f.includes(d))continue;l[d]=u[d]}return l}var y=function(f,l){var d,m={ghost:["ghost","dead","observer"],human:["human","carbon"],monkey:["monkey"],cyborg:["cyborg","robot","borg"],ai:["ai","artificial intelligence"],animal:["simple","animal"]};return((d=m[l])==null?void 0:d.some(function(i){return f.toLowerCase().includes(i)}))||!1},S=r.PlayerPanel=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=function(){function V(v,s){s===void 0&&(s={}),m(v,Object.assign({selectedPlayerCkey:i.ckey},s))}return V}();return i.ckey?(0,e.createComponentVNode)(2,o.Window,{title:"Options Panel - "+i.ckey,width:800,height:950,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return h("refresh")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Old Panel",onClick:function(){function V(){return h("old_pp")}return V}()})]}),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)]})})}):(0,e.createComponentVNode)(2,o.Window,{title:"Options Panel - Error",width:800,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"No valid player data found. Please refresh or select a valid player."}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return m("refresh")}return V}()})]})})})}return u}(),b=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=(0,a.useLocalState)(l,"show_ip",!1),V=h[0],v=h[1],s=(0,a.useLocalState)(l,"show_cid",!1),g=s[0],N=s[1],x=function(L,T){T===void 0&&(T={}),m(L,Object.assign({selectedPlayerCkey:i.ckey},T))};return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Player Information",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Character:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.characterName}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Ckey:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.ckey})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.rank}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Discord:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.discord})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Account Registered:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.accountRegistered}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Playtime as Crew:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:i.playtime,onClick:function(){function B(){return x("playtime")}return B}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"CID:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:g?i.CID:"Hidden",onClick:function(){function B(){return N(!g)}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"IP Address:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V?i.ipAddress:"Hidden",onClick:function(){function B(){return v(!V)}return B}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Mob Type:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.mobType}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Byond Version:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.byondVersion})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Related By CID:"}),(0,e.createComponentVNode)(2,t.Button,{content:"Related by CID",color:"blue",onClick:function(){function B(){return x("relatedbycid")}return B}()}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Related By IP:"}),(0,e.createComponentVNode)(2,t.Button,{content:"Related by IP",color:"blue",onClick:function(){function B(){return x("relatedbyip")}return B}()})]})]})})})},C=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=function(g,N){N===void 0&&(N={}),m(g,Object.assign({selectedPlayerCkey:i.ckey},N))},V=function(g){return i.adminRights.toLowerCase().includes(g)||!1},v=function(g){i.ckey&&h("toggleMute",{type:g})};return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Punish",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"times",content:"KICK",color:"red",onClick:function(){function s(){return h("kick")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"JOBBAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("jobban")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bullseye",content:"ADD TO WATCHLIST",color:"red",onClick:function(){function s(){return h("watchlist")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"BAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("ban")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"APPEARANCE BAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("appban")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bolt",content:"SMITE",color:"red",hidden:!V("event"),onClick:function(){function s(){return h("smite")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"hand-holding-heart",content:"BLESS",onClick:function(){function s(){return h("bless")}return s}()}):null]})]})})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Message",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment",content:"PM",onClick:function(){function s(){return h("pm")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment-alt",content:"NARRATE",onClick:function(){function s(){return h("narrate")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"SEND ALERT",onClick:function(){function s(){return h("sendalert")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"SM",disabled:!V("event"),onClick:function(){function s(){return h("sm")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"crown",content:"MAN UP",onClick:function(){function s(){return h("manup")}return s}()}):null,V("sound")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"music",content:"PLAY SOUND TO",onClick:function(){function s(){return h("playsoundto")}return s}()}):null]})]})})})]}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Movement",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"FLW",onClick:function(){function s(){return h("flw")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"download",content:"GET",onClick:function(){function s(){return h("get")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"paper-plane",content:"SEND",onClick:function(){function s(){return h("send")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"running",content:"JUMPTO",onClick:function(){function s(){return h("jumpto")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"sign-out-alt",content:"LOBBY",onClick:function(){function s(){return h("lobby")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"columns",content:"SEND TO CRYO",onClick:function(){function s(){return h("cryo")}return s}()}):null]})]})})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"book",content:"LOGS",onClick:function(){function s(){return h("logs")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"clipboard",content:"NOTES",onClick:function(){function s(){return h("notes")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"PLAYTIME",onClick:function(){function s(){return h("playtime")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"globe",content:"GEOIP",onClick:function(){function s(){return h("geoip")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"TRAITOR PANEL",onClick:function(){function s(){return h("tp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"code",content:"VV",onClick:function(){function s(){return h("vv")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"database",content:"CHECK GLOBAL CCDB",onClick:function(){function s(){return h("ccdb")}return s}()}):null]})]})})})]}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:[V("spawn")?(0,e.createComponentVNode)(2,t.Section,{title:"Transformation",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ghost",content:"MAKE GHOST",color:y(i.mobType,"ghost")?"good":"",onClick:function(){function s(){return h("makeghost")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user",content:"MAKE HUMAN",color:y(i.mobType,"human")?"good":"",onClick:function(){function s(){return h("makehuman")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"paw",content:"MAKE MONKEY",color:y(i.mobType,"monkey")?"good":"",onClick:function(){function s(){return h("makemonkey")}return s}()})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"robot",content:"MAKE CYBORG",color:y(i.mobType,"cyborg")?"good":"",onClick:function(){function s(){return h("makeborg")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microchip",content:"MAKE AI",color:y(i.mobType,"ai")?"good":"",onClick:function(){function s(){return h("makeai")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microchip",content:"ANIMALIZE",color:y(i.mobType,"animal")?"good":"",onClick:function(){function s(){return h("makeanimal")}return s}()})]})]})}):null,y(i.mobType,"ghost")?(0,e.createComponentVNode)(2,t.Section,{title:"Observer",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"TOGGLE RESPAWNABILITY",onClick:function(){function s(){return h("respawnability")}return s}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"staff-snake",content:"RE-INCARNATE",disabled:!V("spawn"),onClick:function(){function s(){return h("reviveghost")}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"heart",content:"HEALTHSCAN",onClick:function(){function s(){return h("healthscan")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GIVE DISEASE",onClick:function(){function s(){return h("giveDisease")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CURE DISEASE",onClick:function(){function s(){return h("cureDisease")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CURE ALL BAD DISEASES",onClick:function(){function s(){return h("cureAllDiseases")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CHEMSCAN",onClick:function(){function s(){return h("chemscan")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"plus",content:"REJUVINATE",disabled:!V("rejuvinate"),onClick:function(){function s(){return h("aheal")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"dna",content:"SHOW DNA",onClick:function(){function s(){return h("mutate")}return s}()}):null]})]})})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:[V("admin")?(0,e.createComponentVNode)(2,t.Section,{title:"Mob Manipulation",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"pencil",content:"MOB RANDOM NAME",onClick:function(){function s(){return h("randomizename")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"shirt",content:"SELECT EQUIPMENT",disabled:!V("event"),onClick:function(){function s(){return h("selectequip")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microphone",content:"CHANGE VOICE",onClick:function(){function s(){return h("changevoice")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"circle-user",content:"MIRROR UI TO ADMIN",onClick:function(){function s(){return h("mirroradmin")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"pen",content:"CHARACTER RANDOM NAME",onClick:function(){function s(){return h("userandomname")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eraser",content:"ERASE FLAVOR",onClick:function(){function s(){return h("eraseflavortext")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"shirt",content:"CHECK CONTENTS",onClick:function(){function s(){return h("checkcontents")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"circle-user",content:"MIRROR UI TO PLAYER",onClick:function(){function s(){return h("mirrorplayer")}return s}()}):null]})]})}):null,(0,e.createComponentVNode)(2,t.Section,{title:"Misc",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME 1",onClick:function(){function s(){return h("thunderdome1")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME 2",onClick:function(){function s(){return h("thunderdome2")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment",content:"FORCESAY",onClick:function(){function s(){return h("forcesay")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"handcuffs",content:"PRISON",onClick:function(){function s(){return h("prison")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL RELEASE",onClick:function(){function s(){return h("contractor_release")}return s}()}):null,V("event")||V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cookie",content:"SPAWN COOKIE",onClick:function(){function s(){return h("spawncookie")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME ADMIN",onClick:function(){function s(){return h("thunderdomeadmin")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"THUNDERDOME OBSERVER",onClick:function(){function s(){return h("thunderdomeobserver")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"wheelchair-move",content:"AROOM WRAP",onClick:function(){function s(){return h("adminroom")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL START",onClick:function(){function s(){return h("contractor_start")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL STOP",onClick:function(){function s(){return h("contractor_stop")}return s}()}):null,(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Some Admin Button",onClick:function(){function s(){return h("someadminbutton")}return s}()})]})]})})]})]}),(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Mute Controls",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:7,children:[(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.ic,onClick:function(){function s(){return v("ic")}return s}(),content:"IC"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.ooc,onClick:function(){function s(){return v("ooc")}return s}(),content:"OOC"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.pray,onClick:function(){function s(){return v("pray")}return s}(),content:"PRAY"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.emote,onClick:function(){function s(){return v("emote")}return s}(),content:"EMOTE"})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.adminhelp,onClick:function(){function s(){return v("adminhelp")}return s}(),content:"ADMINHELP"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.deadchat,onClick:function(){function s(){return v("deadchat")}return s}(),content:"DEADCHAT"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.all,onClick:function(){function s(){return v("all")}return s}(),content:"ALL"})]})]})})})})]})},c=function(f){var l=f.checked,d=k(f,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:l?"red":"green",icon:l?"check-square-o":"square-o"},d)))}},94158:function(I,r,n){"use strict";r.__esModule=!0,r.PodTracking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PodTracking=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Position",children:[f.podx,", ",f.pody,", ",f.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:f.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:f.passengers})]})},f.name)})})})}return k}()},70857:function(I,r,n){"use strict";r.__esModule=!0,r.PollListPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PollListPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.polls||{};return(0,e.createComponentVNode)(2,o.Window,{title:"Poll List Panel",width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Poll List Panel",children:["Currently running polls Note when editing polls or their options changes are not saved until you press Sumbit Poll.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"New Poll",onClick:function(){function f(){return C("newpoll")}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.question,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function l(){return C("editpoll",{poll_to_edit:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function l(){return C("deletepoll",{poll_to_delete:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Results",onClick:function(){function l(){return C("resultspoll",{poll_to_result:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Box,{children:f.description}),(0,e.createComponentVNode)(2,t.Divider)]},"poll")})})]})})})}return k}()},45736:function(I,r,n){"use strict";r.__esModule=!0,r.PollManagement=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),p=n(98595),k=r.PollManagement=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.poll,d=f.has_poll,m=f.poll_types,i=f.interval_types,h=(0,a.useLocalState)(C,"question",l.question),V=h[0],v=h[1],s=(0,a.useLocalState)(C,"poll_type",l.poll_type),g=s[0],N=s[1],x=(0,a.useLocalState)(C,"options_allowed",l.options_allowed),B=x[0],L=x[1],T=(0,a.useLocalState)(C,"admin_only",l.admin_only),A=T[0],E=T[1],w=(0,a.useLocalState)(C,"dont_show",l.dont_show),O=w[0],M=w[1],P=(0,a.useLocalState)(C,"allow_revoting",l.allow_revoting),F=P[0],R=P[1],U=(0,a.useLocalState)(C,"interval",l.interval),j=U[0],W=U[1],K=(0,a.useLocalState)(C,"duration",l.duration),$=K[0],ne=K[1],Y=(0,a.useLocalState)(C,"start_datetime",l.start_datetime),le=Y[0],de=Y[1],oe=(0,a.useLocalState)(C,"end_datetime",l.end_datetime),re=oe[0],Z=oe[1],ae=(0,a.useLocalState)(C,"subtitle",l.subtitle),J=ae[0],X=ae[1],Q=(0,a.useLocalState)(C,"minimum_playtime",l.minimum_playtime),q=Q[0],te=Q[1],fe=(0,a.useLocalState)(C,"run_duration",l.run_duration),ye=fe[0],pe=fe[1],Le=(0,a.useLocalState)(C,"run_start",l.run_start),D=Le[0],ie=Le[1],se=(0,a.useLocalState)(C,"clear_votes",l.clear_votes),Ce=se[0],he=se[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Poll Management",width:600,height:640,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Poll Creation",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Question:",(0,e.createComponentVNode)(2,t.Input,{width:40,placeholder:"Question goes here",value:V,onChange:function(){function ve(Be,we){return v(we)}return ve}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{inline:!0,pl:1,children:"Choice:"}),(0,e.createComponentVNode)(2,t.Dropdown,{width:10,disabled:d,options:m,selected:g,onSelected:function(){function ve(Be){return N(Be)}return ve}()}),d&g!=="Multiple Choice"?null:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Mult-choice options allowed:",(0,e.createComponentVNode)(2,t.NumberInput,{width:3,minValue:0,maxValue:100,value:B,onChange:function(){function ve(Be,we){return L(!B)}return ve}()})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Admin only",checked:A,onClick:function(){function ve(){return E(!A)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Don't show",checked:O,onClick:function(){function ve(){return M(!O)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Allow revoting",checked:F,onClick:function(){function ve(){return R(!F)}return ve}()}),"Min. playtime to vote (in hours):",(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{width:3,placeholder:"Number of hours",value:q,onChange:function(){function ve(Be,we){return te(we)}return ve}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:[(0,e.createComponentVNode)(2,t.Box,{children:"Duration"}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",py:1,content:ye?"Run for":"Run until",onClick:function(){function ve(){return pe(!ye)}return ve}()}),ye?(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,t.NumberInput,{placeholder:"Amount number",width:3,minValue:0,maxValue:100,value:$,onChange:function(){function ve(Be,we){return ne(we)}return ve}()}),(0,e.createComponentVNode)(2,t.Dropdown,{options:i,selected:j,onSelected:function(){function ve(Be){return W(Be)}return ve}()})]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Until:",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:re||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return Z(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Start"}),(0,e.createComponentVNode)(2,t.Button,{content:D?"Now":"At datetime",onClick:function(){function ve(){return ie(!D)}return ve}()}),D?null:(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:le||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return de(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Subtitle (Optional)",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:10,width:20,rows:"12",value:J,onChange:function(){function ve(Be,we){return X(we)}return ve}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d?(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Clear poll votes",onClick:function(){function ve(){return u("clear_poll_votes")}return ve}()}),l.poll_votes," players have voted"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Clear votes on edit",checked:Ce,onClick:function(){function ve(){return he(!Ce)}return ve}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:2,content:"Submit Poll",onClick:function(){function ve(){return u("submit_poll",{question:V,poll_type:g,options_allowed:B,admin_only:A,dont_show:O,allow_revoting:F,interval:j,duration:$,start_datetime:le,end_datetime:re,subtitle:J,poll_votes:q,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})]}):(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:1,m:2,content:"Initliaze Question",onClick:function(){function ve(){return u("initialize_poll",{question:V,poll_type:g,options_allowed:B,admin_only:A,dont_show:O,allow_revoting:F,interval:j,duration:$,start_datetime:le,end_datetime:re,subtitle:J,poll_votes:q,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Questions Manage",children:d?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{children:"First enter the poll question details and press Initialize Question. Then add poll options and press Submit Poll to save and create the question and options. No options are required for Text Reply polls."})})]})})}return S}(),y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.poll,d=l.options,m=(0,a.useLocalState)(C,"poll_type",null),i=m[0],h=m[1];return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add Option",onClick:function(){function V(){return u("add_poll_option")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Option "+V.num,children:[V.text,i==="Rating"?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value: ",V.min_val," | Maximum value:"," ",V.max_val,"Minimum description: ",V.desc_min,"Middle description: ",V.desc_mid,"Maximum description: ",V.desc_max]}):null,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function v(){return u("edit_poll_option",{option_to_edit:V.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function v(){return u("delete_poll_option",{option_to_delete:V.id})}return v}()}),(0,e.createComponentVNode)(2,t.Divider)]},"option")})})})]})}},80378:function(I,r,n){"use strict";r.__esModule=!0,r.PollOptionPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),p=n(98595),k=r.PollOptionPanel=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.poll_question,l=u.is_rating,d=u.option,m=(0,a.useLocalState)(b,"text",d.text),i=m[0],h=m[1],V=(0,a.useLocalState)(b,"default_percentage_calc",d.default_percentage_calc),v=V[0],s=V[1],g=(0,a.useLocalState)(b,"min_val",d.min_val),N=g[0],x=g[1],B=(0,a.useLocalState)(b,"max_val",d.max_val),L=B[0],T=B[1],A=(0,a.useLocalState)(b,"desc_min_check",d.desc_min_check),E=A[0],w=A[1],O=(0,a.useLocalState)(b,"desc_mid_check",d.desc_mid_check),M=O[0],P=O[1],F=(0,a.useLocalState)(b,"desc_max_check",d.desc_max_check),R=F[0],U=F[1],j=(0,a.useLocalState)(b,"desc_min_text",d.desc_min_text),W=j[0],K=j[1],$=(0,a.useLocalState)(b,"desc_mid_text",d.desc_min_text),ne=$[0],Y=$[1],le=(0,a.useLocalState)(b,"desc_max_text",d.desc_min_text),de=le[0],oe=le[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Poll Option Panel",width:400,height:l?320:180,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:f,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{width:"100%",content:i,onChange:function(){function re(Z,ae){return h(ae)}return re}()})}),(0,e.createVNode)(1,"br"),l?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value",(0,e.createComponentVNode)(2,t.Input,{value:N}),"Maximum Value",(0,e.createComponentVNode)(2,t.Input,{value:L}),(0,e.createComponentVNode)(2,Table,{children:[(0,e.createComponentVNode)(2,Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Minimum description",checked:E,onClick:function(){function re(){return w(!E)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Middle description",checked:M,onClick:function(){function re(){return P(!M)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Maximum description",checked:R,onClick:function(){function re(){return U(!R)}return re}()})})]}),(0,e.createComponentVNode)(2,Table.Row,{children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:W,onEnter:function(){function re(Z,ae){return K(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:ne,onEnter:function(){function re(Z,ae){return Y(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:de,onEnter:function(){function re(Z,ae){return oe(ae)}return re}()})})]})]}),(0,e.createVNode)(1,"br")]}):null,(0,e.createComponentVNode)(2,o.ButtonCheckbox,{checked:v,content:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u043F\u0446\u0438\u044E \u0432 \u0440\u0430\u0441\u0447\u0435\u0442 \u043F\u0440\u043E\u0446\u0435\u043D\u0442\u0430 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u043E\u043F\u0440\u043E\u0441\u0430",onClick:function(){function re(){return s(!v)}return re}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Sumbit",onClick:function(){function re(){return c("submit_option",{text:i,default_percentage_calc:v,min_val:N,max_val:L,desc_min_check:E,desc_mid_check:M,desc_max_check:R,desc_min_text:W,desc_mid_text:ne,desc_max_text:de})}return re}()})]})})})}return y}()},84676:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=["tempKey"];function k(C,c){if(C==null)return{};var u={};for(var f in C)if({}.hasOwnProperty.call(C,f)){if(c.includes(f))continue;u[f]=C[f]}return u}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(c,u){var f=c.tempKey,l=k(c,p),d=y[f];if(!d)return null;var m=(0,a.useBackend)(u),i=m.data,h=m.act,V=i.currentTemp,v=d.label,s=d.icon,g=f===V,N=function(){h("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:g,onClick:N},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s}),v]})))},b=r.PoolController=function(){function C(c,u){for(var f=(0,a.useBackend)(u),l=f.data,d=l.emagged,m=l.currentTemp,i=y[m]||y.normal,h=i.label,V=i.color,v=[],s=0,g=Object.entries(y);s50?"battery-half":"battery-quarter")||V==="C"&&"bolt"||V==="F"&&"battery-full"||V==="M"&&"slash",color:V==="N"&&(v>50?"yellow":"red")||V==="C"&&"yellow"||V==="F"&&"green"||V==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=p.pureComponentHooks;var m=function(h){var V,v,s=h.status;switch(s){case"AOn":V=!0,v=!0;break;case"AOff":V=!0,v=!1;break;case"On":V=!1,v=!0;break;case"Off":V=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(V?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:V?void 0:"M",title:g})};m.defaultHooks=p.pureComponentHooks},50992:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(3939),k=n(321),y=n(5485),S=n(98595),b=r.PrisonerImplantManager=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.loginState,i=d.prisonerInfo,h=d.chemicalInfo,V=d.trackingInfo,v;if(!m.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var s=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.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 g(){return l("id_card")}return g}()})}),(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 g(){return l("reset_points")}return g}()})]}),(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 g(){return(0,p.modalOpen)(u,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden: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:V.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function N(){return(0,p.modalOpen)(u,"warn",{uid:g.uid})}return N}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:h.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),s.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume1100?"purple":m>500?"orange":m>250?"yellow":"green"},S=function(m,i){for(var h=[],V=0;V0?"envelope-open-text":"envelope",onClick:function(){function x(){return h("setScreen",{setScreen:6})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){function x(){return h("setScreen",{setScreen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function x(){return h("setScreen",{setScreen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function x(){return h("setScreen",{setScreen:3})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){function x(){return h("setScreen",{setScreen:9})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function x(){return h("setScreen",{setScreen:10})}return x}()})})]}),!!s&&(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function x(){return h("setScreen",{setScreen:8})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Speaker Off":"Speaker On",selected:!g,icon:g?"volume-mute":"volume-up",onClick:function(){function x(){return h("toggleSilent")}return x}()})})]})},S=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.department,s,g;switch(d.purpose){case"ASSISTANCE":s=V.assist_dept,g="Request assistance from another department";break;case"SUPPLIES":s=V.supply_dept,g="Request supplies from another department";break;case"INFO":s=V.info_dept,g="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return h("setScreen",{setScreen:0})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:s.filter(function(N){return N!==v}).map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function x(){return h("writeInput",{write:N,priority:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function x(){return h("writeInput",{write:N,priority:2})}return x}()})]},N)})})})},b=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v;switch(d.type){case"SUCCESS":v="Message sent successfully";break;case"FAIL":v="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function s(){return h("setScreen",{setScreen:0})}return s}()})})},C=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v,s;switch(d.type){case"MESSAGES":v=V.message_log,s="Message Log";break;case"SHIPPING":v=V.shipping_log,s="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:s,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return h("setScreen",{setScreen:0})}return g}()}),children:v.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:g},g)})})},c=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.recipient,s=V.message,g=V.msgVerified,N=V.msgStamped;return(0,e.createComponentVNode)(2,t.Section,{title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function x(){return h("setScreen",{setScreen:0})}return x}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:N})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function x(){return h("department",{department:v})}return x}()})]})},u=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.message,s=V.announceAuth;return(0,e.createComponentVNode)(2,t.Section,{title:"Station-Wide Announcement",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return h("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:v||"Edit Message",icon:"edit",onClick:function(){function g(){return h("writeAnnouncement")}return g}()}),s?(0,e.createComponentVNode)(2,t.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(s&&v),onClick:function(){function g(){return h("sendAnnouncement")}return g}()})]})},f=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.shipDest,s=V.msgVerified,g=V.ship_dept;return(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 N(){return h("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:s})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(v&&s),onClick:function(){function N(){return h("printLabel")}return N}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:(0,e.createComponentVNode)(2,t.Button,{content:v===N?"Selected":"Select",selected:v===N,onClick:function(){function x(){return h("shipSelect",{shipSelect:N})}return x}()})},N)})})})]})}},3786:function(I,r,n){"use strict";r.__esModule=!0,r.RequestManager=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595);/** * @file * @copyright 2021 bobbahbrown (https://github.com/bobbahbrown) * @coauthor 2022 BeebBeebBoob (https://github.com/BeebBeebBoob) * @license MIT - */var k=r.RequestManager=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.requests,i=(0,t.useLocalState)(u,"filteredTypes",Object.fromEntries(Object.entries(y).map(function(B){var L=B[0],T=B[1];return[L,!0]}))),h=i[0],V=i[1],v=(0,t.useLocalState)(u,"searchText"),s=v[0],g=v[1],N=m.filter(function(B){return h[B.req_type]});if(s){var x=s.toLowerCase();N=N.filter(function(B){return(0,a.decodeHtmlEntities)(B.message).toLowerCase().includes(x)||B.owner_name.toLowerCase().includes(x)})}return(0,e.createComponentVNode)(2,p.Window,{title:"Request Manager",width:575,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Requests",buttons:(0,e.createComponentVNode)(2,o.Input,{value:s,onInput:function(){function B(L,T){return g(T)}return B}(),placeholder:"Search...",mr:1}),children:N.map(function(B){return(0,e.createVNode)(1,"div","RequestManager__row",[(0,e.createVNode)(1,"div","RequestManager__rowContents",[(0,e.createVNode)(1,"h2","RequestManager__header",[(0,e.createVNode)(1,"span","RequestManager__headerText",[B.owner_name,B.owner===null&&" [DC]"],0),(0,e.createVNode)(1,"span","RequestManager__timestamp",B.timestamp_str,0)],4),(0,e.createVNode)(1,"div","RequestManager__message",[(0,e.createComponentVNode)(2,S,{requestType:B.req_type}),(0,a.decodeHtmlEntities)(B.message)],0)],4),B.owner!==null&&(0,e.createComponentVNode)(2,b,{request:B})],0,null,B.id)})})})})}return C}(),y={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},S=function(c){var u=c.requestType;return(0,e.createVNode)(1,"b","RequestManager__"+u,[y[u],(0,e.createTextVNode)(":")],0)},b=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f._,m=c.request;return(0,e.createVNode)(1,"div","RequestManager__controlsContainer",[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("pp",{id:m.id})}return i}(),children:"PP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("vv",{id:m.id})}return i}(),children:"VV"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("sm",{id:m.id})}return i}(),children:"SM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("tp",{id:m.id})}return i}(),children:"TP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("logs",{id:m.id})}return i}(),children:"LOGS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("bless",{id:m.id})}return i}(),children:"BLESS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("smite",{id:m.id})}return i}(),children:"SMITE"}),m.req_type!=="request_prayer"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("rply",{id:m.id})}return i}(),children:"RPLY"}),m.req_type==="request_ert"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("ertreply",{id:m.id})}return i}(),children:"ERTREPLY"}),m.req_type==="request_nuke"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("getcode",{id:m.id})}return i}(),children:"GETCODE"})],0)}},16475:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=n(13472),k=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=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 b(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,theme:f.ui_theme,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,p.RndNavbar),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,p.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,p.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,p.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,p.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:function(){function d(m){return m===k.LATHE||m===k.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,p.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,p.SettingsMenu)}return d}()}),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 b}()},93098:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.CurrentLevels=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=b.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),C.map(function(c,u){var f=c.name,l=c.level,d=c.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[u>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:f}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},f)})]})}return p}()},19192:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k="design",y="tech",S=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_data;return s?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:s.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.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 g(){return v("updt_tech")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function g(){return v("clear_tech")}return g}()}),(0,e.createComponentVNode)(2,c)]})]}):null},b=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_data;if(!s)return null;var g=s.name,N=s.lathe_types,x=s.materials,B=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g}),B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:B}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),x.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,L.name,0,{style:{"text-transform":"capitalize"}})," x ",L.amount]},L.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 L(){return v("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return v("clear_design")}return L}()}),(0,e.createComponentVNode)(2,c)]})]})},C=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.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:p.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,c)]})]})},c=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_type;return s?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function g(){var N=s===y?"eject_tech":"eject_design";v(N)}return g}()}):null},u=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.disk_data,s=V.disk_type,g=function(){if(!v)return(0,e.createComponentVNode)(2,C);switch(s){case k:return(0,e.createComponentVNode)(2,b);case y:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:g()})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_type,g=V.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:g.sort(function(N,x){return N.name.localeCompare(x.name)}).map(function(N){var x=N.name,B=N.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:x,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function L(){s===y?v("copy_tech",{id:B}):v("copy_design",{id:B})}return L}()})},B)})})})})},l=r.DataDiskMenu=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,u)}return s}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.DISK_COPY,render:function(){function s(){return(0,e.createComponentVNode)(2,f)}return s}()})],4):null}return d}()},20887:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.DeconstructionMenu=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_item,u=b.linked_destroy;return u?c?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",c.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:c.origin_tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+f.name,children:[f.object_level," ",f.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),f.current_level,(0,e.createTextVNode)(")")],0):null]},f.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 f(){C("deconstruct")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function f(){C("eject_item")}return f}()})]}):(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 p}()},10666:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=r.LatheCategory=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.data,c=b.act,u=C.category,f=C.matching_designs,l=C.menu,d=l===4,m=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:f.map(function(i){var h=i.id,V=i.name,v=i.can_build,s=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:V,disabled:v<1,onClick:function(){function g(){return c(m,{id:h,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return c(m,{id:h,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return c(m,{id:h,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},h)})})]})}return k}()},52285:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_chemicals,u=b.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 f(){var l=u?"disposeallP":"disposeallI";C(l)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(f){var l=f.volume,d=f.name,m=f.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function i(){var h=u?"disposeP":"disposeI";C(h,{id:m})}return i}()})},m)})})]})}return p}()},71964:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=r.LatheMainMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.data,c=b.act,u=C.menu,f=C.categories,l=u===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:f.map(function(d){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:d,onClick:function(){function m(){c("setCategory",{category:d})}return m}()})},d)})})]})}return k}()},17906:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(u){var f=u.id,l=u.amount,d=u.name,m=function(){function v(s){var g=b.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";C(g,{id:f,amount:s})}return v}(),i=Math.floor(l/2e3),h=l<1,V=i===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",i," sheet",V,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return m(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return m("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return m(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return m(50)}return v}()})],0):null})]},f)})})})}return p}()},83706:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=b.total_materials,c=b.max_materials,u=b.max_chemicals,f=b.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),u?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+u}):null]})]})})}return p}()},76749:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(12059),o=n(13472),p=n(36036),k=n(16475),y=r.LatheMenu=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.data,f=u.menu,l=u.linked_lathe,d=u.linked_imprinter;return f===4&&!l?(0,e.createComponentVNode)(2,p.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!d?(0,e.createComponentVNode)(2,p.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.MAIN,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_CATEGORY,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_MAT_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return m}()})]})}return S}()},74698:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function C(c,u){return b("search",{to_search:u})}return C}()})})}return p}()},17180:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k=r.MainMenu=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.disk_type,f=c.linked_destroy,l=c.linked_lathe,d=c.linked_imprinter,m=c.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:!u,menu:p.MENU.DISK,submenu:p.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:p.MENU.DESTROY,submenu:p.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:p.MENU.LATHE,submenu:p.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:p.MENU.IMPRINTER,submenu:p.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:p.MENU.SETTINGS,submenu:p.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:m.map(function(i){var h=i.name,V=i.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h,children:V},h)})})]})}return y}()},63459:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.RndNavButton=function(){function p(k,y){var S=k.icon,b=k.children,C=k.disabled,c=k.content,u=(0,a.useBackend)(y),f=u.data,l=u.act,d=f.menu,m=f.submenu,i=d,h=m;return k.menu!==null&&k.menu!==void 0&&(i=k.menu),k.submenu!==null&&k.submenu!==void 0&&(h=k.submenu),(0,e.createComponentVNode)(2,t.Button,{content:c,icon:S,disabled:C,onClick:function(){function V(){l("nav",{menu:i,submenu:h})}return V}(),children:b})}return p}()},94942:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(89005),a=n(13472),t=n(36036),o=n(16475),p=r.RndNavbar=function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(S){return S!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){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 y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){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 y}()})]})}return k}()},12059:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(72253),a=r.RndRoute=function(){function t(o,p){var k=o.render,y=(0,e.useBackend)(p),S=y.data,b=S.menu,C=S.submenu,c=function(){function f(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return f}(),u=c(o.menu,b)&&c(o.submenu,C);return u?k():null}return t}()},52580:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k=r.SettingsMenu=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=C.act,f=c.sync,l=c.admin,d=c.linked_destroy,m=c.linked_lathe,i=c.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.MAIN,render:function(){function h(){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:!f,onClick:function(){function V(){u("sync")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function V(){u("togglesync")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function V(){u("togglesync")}return V}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:p.MENU.SETTINGS,submenu:p.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function V(){return u("maxresearch")}return V}()}):null]})})}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.SETTINGS_DEVICES,render:function(){function h(){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 V(){return u("find_device")}return V}()}),(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:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){return u("disconnect",{item:"destroy"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),m?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){u("disconnect",{item:"lathe"})}return V}()})}):(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 V(){return u("disconnect",{item:"imprinter"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return h}()})]})}return y}()},13472:function(I,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(93098);r.CurrentLevels=e.CurrentLevels;var a=n(19192);r.DataDiskMenu=a.DataDiskMenu;var t=n(20887);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(10666);r.LatheCategory=o.LatheCategory;var p=n(52285);r.LatheChemicalStorage=p.LatheChemicalStorage;var k=n(71964);r.LatheMainMenu=k.LatheMainMenu;var y=n(83706);r.LatheMaterials=y.LatheMaterials;var S=n(17906);r.LatheMaterialStorage=S.LatheMaterialStorage;var b=n(76749);r.LatheMenu=b.LatheMenu;var C=n(74698);r.LatheSearch=C.LatheSearch;var c=n(17180);r.MainMenu=c.MainMenu;var u=n(94942);r.RndNavbar=u.RndNavbar;var f=n(63459);r.RndNavButton=f.RndNavButton;var l=n(12059);r.RndRoute=l.RndRoute;var d=n(52580);r.SettingsMenu=d.SettingsMenu},40026:function(I,r,n){"use strict";r.__esModule=!0,r.RoboQuest=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.RoboQuest=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.hasID,l=u.name,d=u.questInfo,m=u.hasTask,i=u.canCheck,h=u.canSend,V=u.checkMessage,v=u.style,s=u.cooldown,g=u.instant_teleport,N=u.shopItems,x=u.points,B=u.cats,L=(0,t.useLocalState)(b,"shopState",!1),T=L[0],A=L[1],E={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.createComponentVNode)(2,p.Window,{theme:v,width:1e3,height:540,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:40,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043C\u0435\u0445\u0430",icon:"search",tooltipPosition:"bottom",tooltip:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430 \u043C\u043E\u0434\u0443\u043B\u0435\u0439.",disabled:!f||!m||!i||s,onClick:function(){function w(){return c("Check")}return w}()}),children:[(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:60,textAlign:"center",align:"center",children:!!m&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest_large128x128",d.icon]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:42,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&d.modules.map(function(w){return w.id<4&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",w.icon]),null,1,null,w.id)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&d.modules.map(function(w){return w.id>3&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",w.icon]),null,1,null,w.id)})})]})})]}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Divider),(0,e.createVNode)(1,"b",null,V,0)],4),!!s&&(0,e.createFragment)([(0,e.createVNode)(1,"b",null,"\u0417\u0430 \u043E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0437\u0430\u043A\u0430\u0437\u0430, \u0432\u044B \u0431\u044B\u043B\u0438 \u043E\u0442\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u044B \u043E\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,s,0)],4)]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:(0,e.createComponentVNode)(2,o.Box,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439",(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",(0,e.createVNode)(1,"b",null,x.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,x.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,x.security,0,{style:{color:"red"}})]})]}),children:Object.keys(N).map(function(w){return(0,e.createFragment)(!(N[w]===void 0||N[w].length===0||w==="robo")&&N[w].map(function(O){return(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:E[w],image:O.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[O.name," ",(0,e.createVNode)(1,"b",null,O.cost.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.security,0,{style:{color:"red"}})]}),content:O.desc,onClick:function(){function M(){return c("buyItem",{item:O.path})}return M}()},O.path)}),0,w)})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:20,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0414\u0440\u0443\u0433\u043E\u0435",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D",width:"7rem",icon:"shopping-cart",onClick:function(){function w(){return A(!T)}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",tooltipPosition:"bottom",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0441\u0442\u0438\u043B\u044F \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",onClick:function(){function w(){return c("ChangeStyle")}return w}()})],4),children:[!!l&&(0,e.createFragment)([(0,e.createTextVNode)("\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435,"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,l,0),(0,e.createVNode)(1,"br")],4),(0,e.createFragment)([(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0430 \u044D\u043A\u0437\u043A\u043E\u0441\u0442\u044E\u043C, \u0432\u044B\u0431\u043E\u0440 \u043F\u043E\u0434\u0442\u0438\u043F\u0430 \u043C\u0435\u0445\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043E\u0447\u043A\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u044B \u0437\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0430\u0437\u0430."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"brown",children:[" ","\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"teal",children:[" ","\u0433\u043E\u043B\u0443\u0431\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u0411\u043E\u0435\u0432\u044B\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"red",children:[" ","\u043A\u0440\u0430\u0441\u043D\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0445, \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u0442\u0438\u043F\u0430, \u043F\u0440\u0438\u043D\u043E\u0441\u0438\u0442 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0434\u043B\u044F \u043C\u0430\u0433\u0430\u0437\u0438\u043D\u0430 \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434.")],0)]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:38,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"id-card",content:"\u0412\u044B\u043D\u0443\u0442\u044C ID",disabled:!f,onClick:function(){function w(){return c("RemoveID")}return w}()}),!m&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",content:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043C\u0435\u0445",disabled:!f||s,onClick:function(){function w(){return c("GetTask")}return w}()}),!!m&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0435\u0447\u0430\u0442\u044C",icon:"print",onClick:function(){function w(){return c("printOrder")}return w}(),disabled:!m}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F",disabled:!f||s,onClick:function(){function w(){return c("RemoveTask")}return w}()})],4)],0),children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"1rem",children:[(0,e.createVNode)(1,"b",null,"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: ",16),d.name,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: ",16),d.desc]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u041C\u043E\u0434\u0443\u043B\u0438:",level:2,children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"0.5rem",children:!!m&&d.modules.map(function(w){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Module "),w.id],0),(0,e.createTextVNode)(": "),w.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br")],0,w.id)})})}),(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0432\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u043F\u0430\u0434.",disabled:!f||!m||!h||s,onClick:function(){function w(){return c("SendMech",{type:"send"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u0423\u043F\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u0423\u043F\u0430\u043A\u043E\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438 \u0432 \u043A\u0430\u0440\u0433\u043E.",disabled:!f||!m||!h||s,onClick:function(){function w(){return c("SendMech",{type:"only_packing"})}return w}()})]}),(0,e.createVNode)(1,"box",null,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"30rem",bold:!0,content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"bottom",tooltip:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043C\u0435\u0445\u0430 \u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A\u0443.",disabled:!f||!m||!h||s||!g,onClick:function(){function w(){return c("SendMech",{type:"instant"})}return w}()}),2,{mb:"1.5rem",textAlign:"center"})]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createTextVNode)("\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434"),(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",x.robo]})],4),children:N.robo.map(function(w){return(!w.emagOnly||v==="syndicate")&&(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:"purple",image:w.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[w.name," ",(0,e.createVNode)(1,"b",null,w.cost.robo,0,{style:{color:"purple"}})]}),content:w.desc,onClick:function(){function O(){return c("buyItem",{item:w.path})}return O}()},w.name)})})]})]})})})}return y}()},26109:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),k=function(b,C){var c=b/C;return c<=.2?"good":c<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.data,f=u.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f.map(function(l,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,p.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:k(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:k(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},d)})})})}return S}()},97997:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.RoboticsControlConsole=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.can_hack,l=u.safety,d=u.show_detonate_all,m=u.cyborgs,i=m===void 0?[]:m;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function h(){return c("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:l,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function h(){return c("nuke",{})}return h}()})]}),(0,e.createComponentVNode)(2,k,{cyborgs:i,can_hack:f})]})})}return y}(),k=function(S,b){var C=S.cyborgs,c=S.can_hack,u=(0,a.useBackend)(b),f=u.act,l=u.data;return C.length?C.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createFragment)([!!d.hackable&&!d.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function m(){return f("hackbot",{uid:d.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:d.locked_down?"unlock":"lock",color:d.locked_down?"good":"default",content:d.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function m(){return f("stopbot",{uid:d.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){function m(){return f("killbot",{uid:d.uid})}return m}()})],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:d.status?"bad":d.locked_down?"average":"good",children:d.status?"Not Responding":d.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:d.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.health>50?"good":"bad",value:d.health/100})}),typeof d.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.charge>30?"good":"bad",value:d.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:d.cell_capacity<3e4?"average":"good",children:d.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"})}),!!d.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:d.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:d.synchronization?"default":"average",children:d.synchronization||"None"})})]})},d.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(79140),t=n(72253),o=n(36036),p=n(98595),k=r.Safe=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.dial,i=d.open,h=d.locked,V=d.contents;return(0,e.createComponentVNode)(2,p.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,o.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),i?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe--dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*m+"deg)","z-index":0}})]}),!i&&(0,e.createComponentVNode)(2,b)]})})}return C}(),y=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.dial,i=d.open,h=d.locked,V=function(s,g){return(0,e.createComponentVNode)(2,o.Button,{disabled:i||g&&!h,icon:"arrow-"+(g?"right":"left"),content:(g?"Right":"Left")+" "+s,iconRight:g,onClick:function(){function N(){return l(g?"turnleft":"turnright",{num:s})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h,icon:i?"lock":"lock-open",content:i?"Close":"Open",mb:"0.5rem",onClick:function(){function v(){return l("open")}return v}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[V(50),V(10),V(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[V(1,!0),V(10,!0),V(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--number",children:m})]})},S=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--contents",overflow:"auto",children:m.map(function(i,h){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function V(){return l("retrieve",{index:h+1})}return V}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:i.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),i.name]}),(0,e.createVNode)(1,"br")],4,i)})})},b=function(c,u){return(0,e.createComponentVNode)(2,o.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,o.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,o.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SatelliteControl=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.satellites,f=c.notice,l=c.meteor_shield,d=c.meteor_shield_coverage,m=c.meteor_shield_coverage_max,i=c.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i>=100?"good":"average",value:d,maxValue:m,children:[i," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:c.notice}),u.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+h.id,children:[h.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:h.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function V(){return C("toggle",{id:h.id})}return V}()})]},h.id)})]})})]})})}return k}()},44162:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SecureStorage=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.emagged,f=c.locked,l=c.l_set,d=c.l_setshort,m=c.current_code,i=function(){function h(V){var v=V.buttonValue,s=V.color;return s||(s="default"),(0,e.createComponentVNode)(2,t.Button,{disabled:u||d,type:"button",color:s,onClick:function(){function g(){return C("setnumber",{buttonValue:v})}return g}(),children:v})}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:520,height:200,children:(0,e.createComponentVNode)(2,t.Flex,{spacing:"1",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Code Panel",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"1"}),(0,e.createComponentVNode)(2,i,{buttonValue:"2"}),(0,e.createComponentVNode)(2,i,{buttonValue:"3"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"4"}),(0,e.createComponentVNode)(2,i,{buttonValue:"5"}),(0,e.createComponentVNode)(2,i,{buttonValue:"6"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"7"}),(0,e.createComponentVNode)(2,i,{buttonValue:"8"}),(0,e.createComponentVNode)(2,i,{buttonValue:"9"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"R",color:"red"}),(0,e.createComponentVNode)(2,i,{buttonValue:"0"}),(0,e.createComponentVNode)(2,i,{buttonValue:"E",color:"green"})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Current Status",children:u||d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secure Code",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"red":"green",children:l?"*****":"NOT SET. ENTER NEW."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:f?"red":"green",children:f?"Locked":"Unlocked"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{children:m||"Waiting for input"})}),(0,e.createComponentVNode)(2,t.Button,{top:".35em",left:".5em",disabled:f,color:"red",content:"Lock",icon:"lock",onClick:function(){function h(){return C("close")}return h}()})]})})]})})}return k}()},6272:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=n(3939),y=n(321),S=n(5485),b=n(22091),C={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},c=function(g,N){(0,k.modalOpen)(g,"edit",{field:N.edit,value:N.value})},u=r.SecurityRecords=function(){function s(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.loginState,A=L.currentPage,E;if(T.logged_in)A===1?E=(0,e.createComponentVNode)(2,l):A===2?E=(0,e.createComponentVNode)(2,i):A===3&&(E=(0,e.createComponentVNode)(2,h));else return(0,e.createComponentVNode)(2,p.Window,{width:800,height:900,theme:"security",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,p.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,k.ComplexModal),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,f),E]})})]})}return s}(),f=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.currentPage,A=L.general;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===1,onClick:function(){function E(){return B("page",{page:1})}return E}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===2,onClick:function(){function E(){return B("page",{page:2})}return E}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wrench"}),"Record Maintenance"]}),T===3&&A&&!A.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===3,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"file"}),"Record: ",A.fields[0].value]})]})},l=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.records,A=(0,t.useLocalState)(N,"searchText",""),E=A[0],w=A[1],O=(0,t.useLocalState)(N,"sortId","name"),M=O[0],P=O[1],F=(0,t.useLocalState)(N,"sortOrder",!0),R=F[0],U=F[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),T.filter((0,a.createSearch)(E,function(j){return j.name+"|"+j.id+"|"+j.rank+"|"+j.fingerprint+"|"+j.status})).sort(function(j,W){var K=R?1:-1;return j[M].localeCompare(W[M])*K}).map(function(j){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+C[j.status],onClick:function(){function W(){return B("view",{uid_gen:j.uid_gen,uid_sec:j.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",j.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.status})]},j.id)})]})})})],4)},d=function(g,N){var x=(0,t.useLocalState)(N,"sortId","name"),B=x[0],L=x[1],T=(0,t.useLocalState)(N,"sortOrder",!0),A=T[0],E=T[1],w=g.id,O=g.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!==w&&"transparent",fluid:!0,onClick:function(){function M(){B===w?E(!A):(L(w),E(!0))}return M}(),children:[O,B===w&&(0,e.createComponentVNode)(2,o.Icon,{name:A?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},m=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,A=(0,t.useLocalState)(N,"searchText",""),E=A[0],w=A[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 O(){return B("new_general")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Cell Log",onClick:function(){function O(){return(0,k.modalOpen)(N,"print_cell_log")}return O}()})}),(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 O(M,P){return w(P)}return O}()})})]})},i=function(g,N){var x=(0,t.useBackend)(N),B=x.act;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function L(){return B("delete_security_all")}return L}(),mb:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){function L(){return B("delete_cell_logs")}return L}()})]})},h=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,A=L.general,E=L.security;return!A||!A.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,level:2,mt:"-6px",title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Record",onClick:function(){function w(){return B("print_record")}return w}()}),(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 w(){return B("delete_general")}return w}()})],4),children:(0,e.createComponentVNode)(2,V)})}),!E||!E.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 w(){return B("new_security")}return w}()}),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:E.empty,content:"Delete Record",onClick:function(){function w(){return B("delete_security")}return w}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:E.fields.map(function(w,O){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 M(){return c(N,w)}return M}()})]},O)})})})})}),(0,e.createComponentVNode)(2,v)],4)],0)},V=function(g,N){var x=(0,t.useBackend)(N),B=x.data,L=B.general;return!L||!L.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:L.fields.map(function(T,A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+T.value),!!T.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function E(){return c(N,T)}return E}()})]},A)})})}),!!L.has_photos&&L.photos.map(function(T,A){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:T,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",A+1]},A)})]})},v=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.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 A(){return(0,k.modalOpen)(N,"comment_add")}return A}()}),children:T.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):T.comments.map(function(A,E){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:A.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),A.text||A,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function w(){return B("comment_delete",{id:E+1})}return w}()})]},E)})})})}},5099:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(35840),o=n(72253),p=n(36036),k=n(98595),y=n(3939);function S(m,i){var h=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(h)return(h=h.call(m)).next.bind(h);if(Array.isArray(m)||(h=b(m))||i&&m&&typeof m.length=="number"){h&&(m=h);var V=0;return function(){return V>=m.length?{done:!0}:{done:!1,value:m[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 b(m,i){if(m){if(typeof m=="string")return C(m,i);var h={}.toString.call(m).slice(8,-1);return h==="Object"&&m.constructor&&(h=m.constructor.name),h==="Map"||h==="Set"?Array.from(m):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?C(m,i):void 0}}function C(m,i){(i==null||i>m.length)&&(i=m.length);for(var h=0,V=Array(i);h=E},v=function(A,E){return A<=E},s=i.split(" "),g=[],N=function(){var A=L.value,E=A.split(":");if(E.length===0)return 0;if(E.length===1)return g.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(E[0].toLocaleLowerCase())}),0;if(E.length>2)return{v:function(){function M(P){return!1}return M}()};var w,O=h;if(E[1][E[1].length-1]==="-"?(O=v,w=Number(E[1].substring(0,E[1].length-1))):E[1][E[1].length-1]==="+"?(O=V,w=Number(E[1].substring(0,E[1].length-1))):w=Number(E[1]),isNaN(w))return{v:function(){function M(P){return!1}return M}()};switch(E[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":g.push(function(M){return O(M.lifespan,w)});break;case"e":case"end":case"endurance":g.push(function(M){return O(M.endurance,w)});break;case"m":case"mat":case"maturation":g.push(function(M){return O(M.maturation,w)});break;case"pr":case"prod":case"production":g.push(function(M){return O(M.production,w)});break;case"y":case"yield":g.push(function(M){return O(M.yield,w)});break;case"po":case"pot":case"potency":g.push(function(M){return O(M.potency,w)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":g.push(function(M){return O(M.amount,w)});break;default:return{v:function(){function M(P){return!1}return M}()}}},x,B=S(s),L;!(L=B()).done;)if(x=N(),x!==0&&x)return x.v;return function(T){for(var A=0,E=g;A=1?Number(O):1)}return E}()})]})]})}},2916:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsoleContent=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleConsole=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=c.type,i=m===void 0?"shuttle":m,h=c.blind_drop,V=d.authorization_required;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:240,children:[!!V&&(0,e.createComponentVNode)(2,t.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,children:(0,e.createComponentVNode)(2,t.Icon,{name:"minus-circle"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,ml:2,color:"bad",children:i==="shuttle"?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"18px",mt:4,children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){function v(){return l("request")}return v}()})})]}),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b,{type:i,blind_drop:h})})]})}return C}(),k=function(c,u){var f;return c==null||(f=c.find(function(l){return l.id===u}))==null?void 0:f.name},y=function(c,u){var f;return c==null||(f=c.find(function(l){return l.name===u}))==null?void 0:f.id},S={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},b=r.ShuttleConsoleContent=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=c.type,i=c.blind_drop,h=d.status,V=d.locked,v=d.authorization_required,s=d.destination,g=d.docked_location,N=d.timer_str,x=d.locations,B=x===void 0?[]:x;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:S[h]||"bad",ml:1,children:h||"Not Available"})]}),(0,e.createComponentVNode)(2,t.Section,{title:m==="shuttle"?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",buttons:m!=="shuttle"&&B.length===0&&!!i&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",disabled:v||!i,content:"Blind Drop",onClick:function(){function L(){return l("random")}return L}()}),children:B.length===0&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"bad",children:"Not Available"})||B.length===1&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"average",children:k(B,s)})||(0,e.createComponentVNode)(2,t.Dropdown,{mb:1.7,over:!0,width:"240px",options:B.map(function(L){return L.name}),disabled:V||v,selected:k(B,s)||"Select a Destination",onSelected:function(){function L(T){return l("set_destination",{destination:y(B,T)})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Depart",disabled:!k(B,s)||V||v||h!=="Idle",icon:"arrow-up",textAlign:"center",onClick:function(){function L(){return l("move",{shuttle_id:s})}return L}()})]})]})}return C}()},39401:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleManipulator=function(){function b(C,c){var u=(0,a.useLocalState)(c,"tabIndex",0),f=u[0],l=u[1],d=function(){function m(i){switch(i){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return m}();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:f===0,onClick:function(){function m(){return l(0)}return m}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function m(){return l(1)}return m}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function m(){return l(2)}return m}(),icon:"tools",children:"Modification"},"Modification")]}),d(f)]})})})}return b}(),k=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:m.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:m.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:m.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:m.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 f("jump_to",{type:"mobile",id:m.id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function i(){return f("fast_travel",{id:m.id})}return i}()})]})]})},m.name)})})},y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.templates_tabs,m=l.existing_shuttle,i=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===m.id,icon:"file",onClick:function(){function V(){return f("select_template_category",{cat:h})}return V}(),children:h},h)})}),!!m&&i[m.id].templates.map(function(h){return(0,e.createComponentVNode)(2,t.Section,{title:h.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function V(){return f("select_template",{shuttle_id:h.shuttle_id})}return V}()})})]})},h.name)})]})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.existing_shuttle,m=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return f("jump_to",{type:"mobile",id:d.id})}return i}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),m?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:m.description}),m.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:m.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 f("preview",{shuttle_id:m.shuttle_id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function i(){return f("load",{shuttle_id:m.shuttle_id})}return i}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["\u0423\u0434\u0443\u0448\u044C\u0435.","oxyLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0424\u0438\u0437.","bruteLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],C=r.Sleeper=function(){function i(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.hasOccupant,x=N?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m);return(0,e.createComponentVNode)(2,p.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:x}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,d)],4)},u=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant,x=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0442\u0440\u0443\u043F\u043E\u0432:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,content:x?"\u0414\u0430":"\u041D\u0435\u0442",onClick:function(){function B(){return s("auto_eject_dead_"+(x?"off":"on"))}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",onClick:function(){function B(){return s("ejectify")}return B}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:N.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u0432\u043E\u044C\u044F",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(N.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[N.stat][0],children:k[N.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:b[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius,0),"\xB0C,",(0,a.round)(N.btFaren,0),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0443\u043B\u044C\u0441",verticalAlign:"middle",children:[N.pulse," BPM"]})],4)]})})},f=function(h,V){var v=(0,t.useBackend)(V),s=v.data,g=s.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(N,x){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[N[1]]/100,ranges:S,children:(0,a.round)(g[N[1]],0)},x)},x)})})})},l=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.hasOccupant,x=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,T=g.dialysis,A=T&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0438\u0430\u043B\u0438\u0437",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!x||L<=0||!N,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function E(){return s("togglefilter")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!x,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function E(){return s("removebeaker")}return E}()})],4),children:x?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u044B\u0439 \u043E\u0431\u044A\u0451\u043C",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:L/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430."})})},d=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant,x=g.chemicals,B=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u043E\u0432\u043E\u0442\u043E\u043A \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:x.map(function(T,A){var E="",w;return T.overdosing?(E="bad",w=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 \u041F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0430!"]})):T.od_warning&&(E="average",w=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 \u0420\u0438\u0441\u043A \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0438"]})),(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:w,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:T.occ_amount/B,color:E,title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u043E\u0431\u044A\u0451\u043C \u0432\u0435\u0449\u0435\u0441\u0442\u0432 \u0432 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 / \u041E\u0431\u0449\u0438\u0439 \u043E\u0431\u044A\u0451\u043C, \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0439 \u0434\u043B\u044F \u0432\u0432\u043E\u0434\u0430 \u0430\u043F\u043F\u0430\u0440\u0430\u0442\u043E\u043C",mr:"0.5rem",children:[T.pretty_amount,"/",B,"u"]}),L.map(function(O,M){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+O>B||N.stat===2,icon:"syringe",content:"\u0412\u0432\u0435\u0441\u0442\u0438 "+O+"u",title:"\u0412\u0432\u0435\u0441\u0442\u0438 "+O+"u \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 "+T.title+" \u0432 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",mb:"0",height:"19px",onClick:function(){function P(){return s("chemical",{chemid:T.id,amount:O})}return P}()},M)})]})})},A)})})},m=function(h,V){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"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},21597:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SlotMachine=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.money===null)return(0,e.createComponentVNode)(2,o.Window,{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.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 u;return c.plays===1?u=c.plays+" player has tried their luck today!":u=c.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{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.Box,{lineHeight:2,children:u}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"50 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:c.working,content:c.working?"Spinning...":"Spin",onClick:function(){function f(){return C("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:c.resultlvl,children:c.result})]})})})}return k}()},46348:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Smartfridge=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.secure,f=c.can_dry,l=c.drying,d=c.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u0435\u0434\u044A\u044F\u0432\u0438\u0442\u0435 \u0441\u0432\u043E\u044E ID-\u043A\u0430\u0440\u0442\u0443."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f?"\u0421\u0443\u0448\u0438\u043B\u044C\u043D\u0430\u044F \u0441\u0442\u043E\u0439\u043A\u0430":"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435",buttons:!!f&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u0443\u0448\u043A\u0443":"\u0417\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u044C \u0441\u0443\u0448\u043A\u0443",selected:l,onClick:function(){function m(){return C("drying")}return m}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u043F\u0443\u0441\u0442\u043E."]})}),!!d&&d.slice().sort(function(m,i){return m.display_name.localeCompare(i.display_name)}).map(function(m){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:m.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",m.quantity," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"\u0412\u0437\u044F\u0442\u044C \u043E\u0434\u043D\u0443 \u0448\u0442\u0443\u043A\u0443.",content:"1",onClick:function(){function i(){return C("vend",{index:m.vend,amount:1})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:m.quantity,step:1,stepPixelSize:3,onChange:function(){function i(h,V){return C("vend",{index:m.vend,amount:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"\u0412\u0441\u0451",tooltip:"\u0412\u0437\u044F\u0442\u044C \u0432\u0441\u0451.",tooltipPosition:"bottom-start",onClick:function(){function i(){return C("vend",{index:m.vend,amount:m.quantity})}return i}()})]})]},m)})]})]})})})}return k}()},86162:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),p=n(98595),k=1e3,y=r.Smes=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.capacityPercent,d=f.capacity,m=f.charge,i=f.inputAttempt,h=f.inputting,V=f.inputLevel,v=f.inputLevelMax,s=f.inputAvailable,g=f.outputPowernet,N=f.outputAttempt,x=f.outputting,B=f.outputLevel,L=f.outputLevelMax,T=f.outputUsed,A=l>=100&&"good"||h&&"average"||"bad",E=x&&"good"||m>0&&"average"||"bad";return(0,e.createComponentVNode)(2,p.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"sync-alt":"times",selected:i,onClick:function(){function w(){return u("tryinput")}return w}(),children:i?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||h&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:V===0,onClick:function(){function w(){return u("input",{target:"min"})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:V===0,onClick:function(){function w(){return u("input",{adjust:-1e4})}return w}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:V/k,fillValue:s/k,minValue:0,maxValue:v/k,step:5,stepPixelSize:4,format:function(){function w(O){return(0,o.formatPower)(O*k,1)}return w}(),onChange:function(){function w(O,M){return u("input",{target:M*k})}return w}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:V===v,onClick:function(){function w(){return u("input",{adjust:1e4})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:V===v,onClick:function(){function w(){return u("input",{target:"max"})}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(s)})]})}),(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:N?"power-off":"times",selected:N,onClick:function(){function w(){return u("tryoutput")}return w}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:E,children:g?x?"Sending":m>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:B===0,onClick:function(){function w(){return u("output",{target:"min"})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function w(){return u("output",{adjust:-1e4})}return w}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/k,minValue:0,maxValue:L/k,step:5,stepPixelSize:4,format:function(){function w(O){return(0,o.formatPower)(O*k,1)}return w}(),onChange:function(){function w(O,M){return u("output",{target:M*k})}return w}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function w(){return u("output",{adjust:1e4})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function w(){return u("output",{target:"max"})}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},63584:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SolarControl=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=0,f=1,l=2,d=c.generated,m=c.generated_ratio,i=c.tracking_state,h=c.tracking_rate,V=c.connected_panels,v=c.connected_tracker,s=c.cdir,g=c.direction,N=c.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:300,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 x(){return C("refresh")}return x}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(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:m,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[s,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),i===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",h,"\xB0/h (",N,")"," "]}),i===u&&(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:s,onDrag:function(){function x(B,L){return C("cdir",{cdir:L})}return x}()}),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===u,onClick:function(){function x(){return C("track",{track:u})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:i===f,onClick:function(){function x(){return C("track",{track:f})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:i===l,disabled:!v,onClick:function(){function x(){return C("track",{track:l})}return x}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:h,format:function(){function x(B){var L=Math.sign(B)>0?"+":"-";return L+Math.abs(B)}return x}(),onDrag:function(){function x(B,L){return C("tdir",{tdir:L})}return x}()}),i===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),i===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return k}()},38096:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SpawnersMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name+" ("+f.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return C("jump",{ID:f.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return C("spawn",{ID:f.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:f.desc}),!!f.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:f.fluff}),!!f.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:f.important_info})]},f.name)})})})})}return k}()},7957:function(I,r,n){"use strict";r.__esModule=!0,r.SpiderOS=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(98595);function k(m,i){m.prototype=Object.create(i.prototype),m.prototype.constructor=m,y(m,i)}function y(m,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,V){return h.__proto__=V,h},y(m,i)}var S=r.SpiderOS=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g;return s.suit_tgui_state===0?g=(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"column",width:"60%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,f)})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)]})]}):s.suit_tgui_state===1&&(g=(0,e.createComponentVNode)(2,t.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d,{allMessages:s.current_load_text,finishedTimeout:3e3,current_initialisation_phase:s.current_initialisation_phase,end_terminal:s.end_terminal,onFinished:function(){function N(){return v("set_UI_state",{suit_tgui_state:0})}return N}()})]})})),(0,e.createComponentVNode)(2,p.Window,{width:800,height:630,theme:"spider_clan",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:g})})})}return m}(),b=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.stylesIcon,g=v.style_preview_icon_state;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},m:"0px",width:"100%",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u041D\u0430\u0448\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0442 \u0432\u0430\u043C \u043F\u043E\u0434\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u043E\u0434 \u0441\u0435\u0431\u044F, \u043F\u0440\u0438 \u044D\u0442\u043E\u043C \u043D\u0435 \u0442\u0435\u0440\u044F\u044F \u043E\u0431\u043E\u0440\u043E\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0430\u0447\u0435\u0441\u0442\u0432. \u041F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u043E \u043F\u0440\u0438 \u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u0436\u0438\u0437\u043D\u0435\u043D\u043D\u043E \u0432\u0430\u0436\u043D\u043E \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0433\u043E \u0443\u0431\u0438\u0439\u0446\u044B.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"128px",width:"128px",icon:s,icon_state:g,style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})})})},C=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.designs,N=s.design_choice,x=s.scarf_design_choice,B=s.colors,L=s.color_choice,T=s.genders,A=s.preferred_clothes_gender,E=s.suit_state,w=s.preferred_scarf_over_hood,O=s.show_charge_UI,M=s.has_martial_art,P=s.show_concentration_UI,F;E===0?F="\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C":F="\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C";var R;w===0?R="\u041A\u0430\u043F\u044E\u0448\u043E\u043D":R="\u0428\u0430\u0440\u0444";var U;w===1?U=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C \u0448\u0430\u0440\u0444\u0430",content:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:x,onSelected:function(){function W(K){return v("set_scarf_design",{scarf_design_choice:K})}return W}()})}):U=null;var j;return M?j=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u044F",content:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:P,width:"78px",textAlign:"left",content:P?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_concentration")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0441\u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u043B\u0438 \u0432\u044B \u0434\u043B\u044F \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0431\u043E\u0435\u0432\u043E\u0433\u043E \u0438\u0441\u0441\u043A\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-start"})]})}):j=null,(0,e.createComponentVNode)(2,t.Flex,{direction:"row",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,width:"100%",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:N,onSelected:function(){function W(K){return v("set_design",{design_choice:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:L,onSelected:function(){function W(K){return v("set_color",{color_choice:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439/\u041C\u0443\u0436\u0441\u043A\u043E\u0439",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:T,selected:A,onSelected:function(){function W(K){return v("set_gender",{preferred_clothes_gender:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041A\u0430\u043F\u044E\u0448\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Button,{className:E===0?"":"Button_disabled",width:"90px",selected:w,disabled:E,textAlign:"left",content:R,onClick:function(){function W(){return v("toggle_scarf")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u043E\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043A\u0430\u043F\u044E\u0448\u043E\u043D \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u043E\u043B\u043E\u0441\u044B. \u041D\u043E \u044D\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u0447\u0438\u0442, \u0447\u0442\u043E \u0432\u0430\u0448\u0430 \u0433\u043E\u043B\u043E\u0432\u0430 \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u0430! \u0410\u0434\u0430\u043F\u0442\u0438\u0432\u043D\u044B\u0435 \u043D\u0430\u043D\u043E-\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044E\u0442 \u043D\u0430 \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0433\u0440\u043E\u0437\u044B \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u044F \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443! \u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435: \u043D\u0430\u043D\u043E\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u0442\u0430\u043A \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443 \u0438 \u043E\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u043B\u043E\u0432\u043D\u044B\u0445 \u0443\u0431\u043E\u0440\u043E\u0432 \u0441 \u0446\u0435\u043B\u044C\u044E \u0443\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u044F \u043F\u043E\u043C\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043E\u0442\u0435.',tooltipPosition:"top-start"})]}),U,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0440\u044F\u0434 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{selected:O,width:"90px",textAlign:"left",content:O?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_charge")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0437\u0430\u0440\u044F\u0434 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430.",tooltipPosition:"top-start"})]}),j]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,mt:-1.3,mb:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{width:"80%",icon:"power-off",textAlign:"center",content:F,backgroundColor:L,tooltip:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044E \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0432 \u043D\u0451\u043C \u0437\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438, \u043A\u043E\u0433\u0434\u0430 \u043A\u043E\u0441\u0442\u044E\u043C \u0431\u0443\u0434\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u044F\u0435\u0442 \u0437\u0430\u0440\u044F\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0438 \u043C\u043E\u0434\u0443\u043B\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u043D\u044F\u0442\u044C \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C, \u043F\u043E\u043A\u0430 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u043E\u0432\u043D\u043E \u043A\u0430\u043A \u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u043C\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438. \u041F\u043E\u0434\u0443\u043C\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044B \u043F\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043C \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0435\u0433\u043E \u043D\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-start",onClick:function(){function W(){return v("initialise_suit")}return W}()})})]})})},c=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.actionsIcon;return(0,e.createComponentVNode)(2,t.Section,{m:"0",title:"\u0421\u043E\u0432\u0435\u0442\u044B \u0438 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041C\u043E\u043B\u043E\u0434\u044B\u043C \u0443\u0431\u0438\u0439\u0446\u0430\u043C \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u043B\u0435\u0433\u043A\u043E \u043E\u0441\u0432\u043E\u0438\u0442\u0441\u044F \u0432 \u043F\u043E\u043B\u0435\u0432\u044B\u0445 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445, \u0434\u0430\u0436\u0435 \u043F\u043E\u0441\u043B\u0435 \u0438\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u044B\u0445 \u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u043E\u043A. \n\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0434\u0435\u043B \u043F\u0440\u0438\u0437\u0432\u0430\u043D \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0441\u043E\u0432\u0435\u0442\u0430\u043C\u0438 \u043F\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0447\u0430\u0441\u0442\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u044E\u0449\u0438\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u043A\u0430\u0441\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0445 \u043C\u0438\u0441\u0441\u0438\u0439 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u0432\u044B\u0434\u0430\u0434\u0443\u0442 \u0438\u043B\u0438 \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u0430\u0442\u044C \u043E \u043C\u0430\u043B\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_teleport",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u0438 \u0448\u0430\u0442\u0442\u043B",content:"\u0412 \u0432\u0430\u0448\u0435\u043C \u0414\u043E\u0434\u0437\u0451 \u0435\u0441\u0442\u044C \u043B\u0438\u0447\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0422\u043E\u0447\u043A\u0430 \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0430\u044F, \u043D\u043E \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043D\u0430 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0442\u043E\u043D\u043D\u0435\u043B\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u043C\u0430\u043B\u043E\u043F\u043E\u0441\u0435\u0449\u0430\u0435\u043C\u044B\u0435 \u043C\u0435\u0441\u0442\u0430. \n\u042D\u0442\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0439 \u0441\u043F\u043E\u0441\u043E\u0431 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0440\u0438\u0441\u0442\u0443\u043F\u0438\u0442\u044C \u043A \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \n\u041F\u043E\u043B\u044C\u0437\u0443\u044F\u0441\u044C \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u043C \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440\u043E\u043C \u0448\u0430\u0442\u0442\u043B\u0430, \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E \u043A \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u0435\u0441\u043B\u0438 \u0432\u044B \u0440\u0435\u0448\u0438\u0442\u0435 \u043F\u043E\u043B\u0435\u0442\u0435\u0442\u044C \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435, \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C \u0432\u0430\u043C, \u0447\u0442\u043E \u0432\u043E \u0438\u0437\u0431\u0435\u0436\u0430\u043D\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043A\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043B\u0430 \u0438 \u043F\u043E\u043F\u0430\u0434\u0430\u043D\u0438\u044F \u043D\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043F\u043E\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0438\u0445 \u043B\u0438\u0446, \u043E\u0442\u043B\u0438\u0447\u043D\u043E\u0439 \u043F\u0440\u0430\u043A\u0442\u0438\u043A\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"headset_green",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A",content:"\u0412 \u043E\u0442\u043B\u0438\u0447\u0438\u0438 \u043E\u0442 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0445 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u043E\u0432 \u0431\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u0430 \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0439, \u043D\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0438. \u0412 \u043D\u0435\u0433\u043E \u0432\u0441\u0442\u0440\u043E\u0435\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0434\u043B\u044F \u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0431\u043E\u0440\u0433\u043E\u043C \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0447\u043B\u0435\u043D\u0430\u043C\u0438 \u043A\u043B\u0430\u043D\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043E\u043D \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u044E\u0431\u044B\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u0438 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043B\u0443\u0448\u043A\u0438 \u0438/\u0438\u043B\u0438 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430 \u043A\u0430\u043D\u0430\u043B\u044B \u0438\u0445 \u043A\u043B\u044E\u0447\u0435\u0439. \u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u044D\u0442\u043E\u043C\u0443 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u043D\u0430\u043A\u0430\u043F\u043B\u0438\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0432\u0430\u043C \u043C\u0435\u0441\u0442\u043D\u044B\u0435 \u043A\u0430\u043D\u0430\u043B\u044B \u0441\u0432\u044F\u0437\u0438 \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438- \u0447\u0435\u0441\u043A\u0438 \u0443\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u0438 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u0442 \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0435 \u0441\u0438\u0433\u043D\u0430\u043B\u044B \u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u0435\u043C\u044B\u0435 \u0441\u0438\u043D\u0442\u0435\u0442\u0438\u043A\u0430\u043C\u0438 \u043F\u0440\u0438 \u043E\u0431\u0449\u0435\u043D\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043E\u043C. \u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044F \u0432\u0430\u043C \u0441\u0430\u043C\u0438\u043C \u043E\u0431\u0449\u0430\u0442\u044C\u0441\u044F \u0441 \u043D\u0438\u043C\u0438.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_sleeper",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0445\u0438\u0449\u0435\u043D\u0438\u0435 \u044D\u043A\u0438\u043F\u0430\u0436\u0430",content:"\u041F\u043E\u0440\u043E\u0439 \u043A\u043B\u0430\u043D\u0443 \u043D\u0443\u0436\u043D\u044B \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043A\u043E\u0442\u043E\u0440\u044B\u043C\u0438 \u043C\u043E\u0433\u0443\u0442 \u043E\u0431\u043B\u0430\u0434\u0430\u0442\u044C \u043B\u044E\u0434\u0438 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043A\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043C \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0441\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043E\u0441\u043E\u0431\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u0443\u0436\u043E\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043B\u0438 \u0432\u0430\u043C \u043D\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044F \u043D\u0430\u0439\u0442\u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E\u0449\u0435\u0433\u043E \u0432\u0441\u0435\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430, \u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0431\u0440\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043F\u043E \u043A\u0440\u0443\u043F\u0438\u0446\u0430\u043C \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u044F \u043F\u043E\u0445\u0438\u0449\u0430\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \n\u0414\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u0445\u0438- \u0442\u0438\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435 \u0435\u0441\u0442\u044C \u0441\u043A\u0430\u0444\u0430\u043D\u0434\u0440\u044B, \u0430 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043F\u0430\u0441 \u043D\u0430- \u0440\u0443\u0447\u043D\u0438\u043A\u043E\u0432, \u043A\u0438\u0441\u043B\u043E\u0440\u043E\u0434\u0430 \u0438 \u0431\u0430\u043B\u043B\u043E- \u043D\u043E\u0432. \n\u0422\u0430\u043A \u0436\u0435 \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0432 \u043B\u044E\u0434\u0435\u0439 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0438\u043C\u043F\u0443\u043B\u044C\u0441, \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u0441\u0442\u0430\u043D\u044F \u0438\u0445 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F. ",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ai_face",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043D\u043E\u0433\u0434\u0430 \u0443 \u043D\u0430\u0441 \u0437\u0430\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u0441\u0430\u0431\u043E- \u0442\u0430\u0436 \u0418\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438. \u042D\u0442\u043E \u043F\u0440\u043E- \u0446\u0435\u0441\u0441 \u0441\u043B\u043E\u0436\u043D\u044B\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0449\u0438\u0439 \u043E\u0442 \u043D\u0430\u0441 \u043E\u0441\u043D\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0438. \n\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0430\u043D\u043E\u043C \u043C\u0435\u0442\u043E\u0434 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u044F\u0437\u0432\u0438\u043C\u043E\u0441\u0442\u0438 \u043F\u0440\u044F\u043C\u043E \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439 \u0434\u043B\u044F \u0437\u0430\u043A\u043E\u043D\u043E\u0432 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0435\u0439 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043E\u044F. \u0412 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043C\u044B \u043C\u043E\u0436\u0435\u043C \u043B\u0435\u0433\u043A\u043E \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043D\u044B\u043C\u0438 \u0437\u0430\u043A\u043E\u043D\u0430\u043C\u0438, \u043D\u043E \u044D\u0442\u043E \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043D\u0430\u0441 \u0432 \u0442\u043E\u043C \u043F\u043B\u0430\u043D\u0435, \u0447\u0442\u043E \u0434\u043B\u044F \u0432\u0437\u043B\u043E\u043C\u0430 \u0432 \u0438\u0442\u043E\u0433\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0432 \u0441\u0430\u043C\u043E\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439. \u0422\u0430\u043A \u0436\u0435 \u0432\u0437\u043B\u043E\u043C \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435\u043B\u0451\u0433\u043A\u0430\u044F - \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u0435\u0441\u0442\u044C \u0432\u0435\u0437\u0434\u0435. \u0410 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F. \u041D\u0435 \u0443\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435\u0441\u044C \u0435\u0441\u043B\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432\u043E\u0434\u0435\u0439\u0441\u0442- \u0432\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0438\u043C \u043F\u043E\u043F\u044B\u0442\u043A\u0430\u043C \u0435\u0433\u043E \u0441\u043B\u043E\u043C\u0430\u0442\u044C.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_borg",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0440\u043E\u0431\u043E\u0442\u043E\u0432",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u044F \u0432\u0430\u0448\u0438 \u0448\u0430\u043D\u0441\u044B \u043D\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043C\u0438\u0441\u0441\u0438\u0438 \u0434\u043B\u044F \u0438\u0445 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445, \u0447\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442 \u0440\u043E\u0431\u043E\u0442\u043E\u0432 \u0434\u043B\u044F \u0441\u0432\u043E\u0438\u0445 \u0446\u0435\u043B\u0435\u0439, \u043C\u044B \u0434\u0430\u0451\u043C \u0432\u0430\u043C \u043E\u0441\u043E\u0431\u044B\u0439 "\u0423\u043B\u0443\u0447\u0448\u0430\u044E\u0449\u0438\u0439" \u0438\u0445 \u043F\u0440\u0438\u0431\u043E\u0440, \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438. \n\u041F\u0440\u0438 \u0432\u0437\u043B\u043E\u043C\u0435 \u043A\u0438\u0431\u043E\u0440\u0433\u0430 \u0442\u0430\u043A\u0438\u043C \u043F\u0440\u0438\u0431\u043E\u0440\u043E\u043C(\u0412\u0437\u043B\u043E\u043C \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F) \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u043B\u043E\u044F\u043B\u044C\u043D\u043E\u0433\u043E \u043A\u043B\u0430\u043D\u0443 \u0438 \u0432\u0430\u043C \u043B\u0438\u0447\u043D\u043E \u0441\u043B\u0443\u0433\u0443 \u0441\u043F\u043E\u0441\u043E\u0431- \u043D\u043E\u0433\u043E \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u043F\u043E\u043C\u043E\u0449\u0438 \u043A\u0430\u043A \u0432 \u0441\u0430\u0431\u043E\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0442\u0430\u043A \u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u043B\u0435\u0447\u0435\u043D\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0440\u043E\u0431\u043E\u0442 \u0431\u0443\u0434\u0435\u0442 \u043E\u0441\u043D\u0430\u0449\u0451\u043D \u043B\u0438\u0447\u043D\u043E\u0439 \u043A\u0430\u0442\u0430\u043D\u043E\u0439, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043A\u0438, \u043F\u0438\u043D\u043F\u043E\u0438\u043D\u0442\u0435\u0440\u043E\u043C \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u0435\u043C\u0443 \u043D\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u043E\u0432. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u043A\u0430\u0442\u0430\u043D\u0430 \u0440\u043E\u0431\u043E\u0442\u0430 \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0442\u0440\u0430\u043D\u0441\u043B\u043E\u043A\u0430\u0446\u0438\u044E!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"server",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",content:"\u041D\u0430 \u043D\u0430\u0443\u0447\u043D\u044B\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044C \u0441\u0432\u043E\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0443\u0447\u0451\u043D\u044B\u0445 \u0438 \u043C\u043D\u043E- \u0436\u0435\u0441\u0442\u0432\u043E \u0434\u0430\u043D\u043D\u044B\u0445 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u0440\u0438\u0445\u043E- \u0434\u0438\u0442\u0441\u044F \u0433\u0434\u0435 \u0442\u043E \u0445\u0440\u0430\u043D\u0438\u0442\u044C. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u044B\u0441\u0442\u0443- \u043F\u0430\u044E\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043A\u0430\u043A \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043D\u043E \u0433\u0440\u044B\u0437\u0443\u0442\u0441\u044F \u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u044F. \u0427\u0442\u043E \u043D\u0430\u043C \u043D\u0430 \u0440\u0443\u043A\u0443. \n\u041C\u044B \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u0430\u043B\u0438 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0432\u0438\u0440\u0443\u0441 \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0430\u043D \u043D\u0430 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u043F\u0435\u0440\u0435\u0434 \u043C\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043A\u043E\u0433\u043E \u0440\u043E\u0434\u0430. \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u043B\u0438\u0448\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0435\u0433\u043E \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u043D\u0430 \u0438\u0445 \u043D\u0430\u0443\u0447\u043D\u044B\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044F\u043D\u044B. \n\u041D\u043E \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u043C\u043D\u043E\u0433\u0438\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u043E\u0432 \u043D\u0435 \u0434\u0440\u0435\u043C\u043B\u044E\u0442. \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u043E \u0432\u0430\u0448\u0435\u0439 \u043F\u043E\u043F\u044B\u0442\u043A\u0435 \u0432\u0437\u043B\u043E\u043C\u0430 \u0431\u0443\u0434\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0451\u043D \u043C\u0435\u0441\u0442\u043D\u044B\u0439 \u0418\u0418. \u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u044D\u0442\u043E\u043C\u0443.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"buckler",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043B\u0438",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u0431\u043E\u0433\u0430\u0442\u044B\u0435 \u0448\u0438\u0448\u043A\u0438 \u043F\u043B\u0430\u0442\u044F\u0442 \u0437\u0430 \u0443\u0441\u043B\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044B \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430. \u0415\u0441\u043B\u0438 \u0432\u0430\u043C \u0434\u043E\u0441\u0442\u0430\u043B\u0430\u0441\u044C \u0442\u0430\u043A\u0430\u044F \u0446\u0435\u043B\u044C \u043F\u043E\u043C\u043D\u0438\u0442\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043E\u0431\u044F\u0437\u0430\u043D \u0434\u043E\u0436\u0438\u0442\u044C \u0434\u043E \u043A\u043E\u043D\u0446\u0430 \u0441\u043C\u0435\u043D\u044B! \n * \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043D\u0435 \u0437\u043D\u0430\u0435\u0442 \u043E \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043B\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u0438 \u0434\u0430\u043B\u044C\u0448\u0435 \u043D\u0435 \u0437\u043D\u0430\u043B! \n * \u041D\u0435 \u0432\u0430\u0436\u043D\u043E \u043A\u0442\u043E \u0438\u043B\u0438 \u0447\u0442\u043E \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u043D\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043E\u0434\u0437\u0430\u0449\u0438\u0442\u043D\u043E\u0433\u043E, \u043D\u043E \u0434\u043B\u044F \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0433\u0434\u0435 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442 \u043C\u0438\u0441\u0441\u0438\u044F \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u043D\u0435\u0436\u0435\u043B\u0430\u043D\u043D\u043E\u0435 \u043B\u0438\u0446\u043E. \u041D\u0435 \u0440\u0430\u0441\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044F \u0431\u0435\u0437 \u043D\u0443\u0436\u0434\u044B, \u0447\u0442\u043E\u0431\u044B \u0443\u043F\u0440\u043E\u0441\u0442\u0438\u0442\u044C \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043E\u0442\u0443 \u0438 \u043D\u0430 \u0432\u0430\u0441 \u0441\u0430\u043C\u0438\u0445 \u043D\u0435 \u0432\u0435\u043B\u0438 \u043E\u0445\u043E\u0442\u0443! \n\u0422\u0430\u043A \u0436\u0435 \u043C\u044B \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u043A\u043B\u0430\u043D \u043D\u0435 \u043E\u0434\u043E\u0431\u0440\u044F\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043A\u0438\u0435 \u043C\u0435\u0442\u043E\u0434\u044B "\u0417\u0430\u0449\u0438\u0442\u044B" \u0446\u0435\u043B\u0438. \u041D\u0435\u0442 \u0432\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0430\u0434\u0438\u0442\u044C \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0432 \u043A\u043B\u0435\u0442\u043A\u0443 \u0438 \u0441\u043B\u0435\u0434\u0438\u0442\u044C \u0437\u0430 \u043D\u0438\u043C \u0442\u0430\u043C! \u041D\u0435 \u043F\u043E\u0440\u0442\u0438\u0442\u0435 \u043D\u0430\u0448\u0443 \u0440\u0435\u043F\u0443\u0442\u0430\u0446\u0438\u044E \u0432 \u0433\u043B\u0430\u0437\u0430\u0445 \u043D\u0430\u0448\u0438\u0445 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"cash",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041A\u0440\u0430\u0436\u0430 \u0434\u0435\u043D\u0435\u0433",content:"\u041A\u0430\u043A \u0431\u044B \u044D\u0442\u043E \u043D\u0435 \u0431\u044B\u043B\u043E \u0442\u0440\u0438\u0432\u0438\u0430\u043B\u044C\u043D\u043E. \u0418\u043D\u043E\u0433\u0434\u0430 \u043A\u043B\u0430\u043D \u043D\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u0432 \u0434\u0435\u043D\u044C- \u0433\u0430\u0445. \u0418\u043B\u0438 \u0434\u0430\u0436\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0432\u044B \u0437\u0430\u0434\u043E\u043B\u0436\u0430\u043B\u0438 \u043D\u0430\u043C. \u0412 \u0442\u0430\u043A\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043C\u044B \u0441\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0434\u0430\u0434\u0438\u043C \u0432\u0430\u043C \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0434\u043B\u044F \u043D\u0430\u0441 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043B\u044F \u0432\u0430\u0441 \u044D\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435 \u0442\u0440\u0443\u0434\u043D\u0430\u044F, \u043D\u043E \u0432\u0440\u0435\u043C\u044F\u0437\u0430\u0442\u0440\u0430\u0442\u043D\u0430\u044F. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0430\u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0432 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B\u0445 \u043A\u0430\u0440\u043C\u0430\u043D\u043D\u044B\u0445 \u043A\u0440\u0430\u0436. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u044D\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u043B\u044F \u043A\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043A\u0430\u0440\u0442 \u0438 \u043E\u0431\u043D\u0430\u043B\u0438\u0447\u0438- \u0432\u0430\u043D\u0438\u044F \u0438\u0445 \u0441\u0447\u0435\u0442\u043E\u0432. \u041B\u0438\u0431\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u043C\u0435\u0442\u0438\u0442\u044C \u0432\u044B\u0448\u0435 \u0438 \u043E\u0433\u0440\u0430\u0431\u0438\u0442\u044C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430 \u0438\u043B\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043C\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435. \u0414\u043E\u0441\u0442\u0430\u043D\u044C\u0442\u0435 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438!",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"handcuff",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430",content:"\u0412 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044F\u0445 \u0447\u0443\u0436\u043E\u0439 \u043F\u043E\u0437\u043E\u0440 \u0434\u043B\u044F \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u043D\u0435\u0435 \u0447\u0435\u043C \u0441\u043C\u0435\u0440\u0442\u044C. \u0412 \u0442\u0430\u043A\u0438\u0445 \u0441\u043B\u0443\u0447\u0430\u044F\u0445 \u0432\u0430\u043C \u043F\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u044F\u0432\u0438\u0442\u044C \u043A\u0440\u0435\u0430\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0438 \u0434\u043E\u0431\u0438\u0442\u044C\u0441\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043F\u043E \u0437\u0430\u043A\u043E\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0443\u043F\u0435\u043A\u043B\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043A\u0443 \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435 \u0447\u0442\u043E\u0431\u044B \u0432 \u043A\u0440\u0438\u043C\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0439 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0446\u0435\u043B\u0438 \u043E\u0441\u0442\u0430\u043B\u0441\u044F \u0441\u043B\u0435\u0434. \u041D\u043E \u0432 \u0442\u043E \u0436\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u043F\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043F\u0438\u0441\u0430\u0442\u044C \u0446\u0435\u043B\u0438 \u0441\u0440\u043E\u043A \u0432 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 - \u043D\u0435 \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u043C\u0435\u0442\u043E\u0434. \u0426\u0435\u043B\u044C \u043B\u0435\u0433\u043A\u043E \u043E\u043F\u0440\u0430\u0432\u0434\u0430\u044E\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043E \u043D\u0435 \u0443\u0441\u0442\u0440\u043E\u0438\u0442 \u043A\u043B\u0438\u0435\u043D\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u0434 \u043B\u0438\u0447\u0438\u043D\u043E\u0439 \u0446\u0435\u043B\u0438. \u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043F\u043E\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044C \u043E\u0431\u043E\u0439\u0442\u0438\u0441\u044C \u0431\u0435\u0437 \u0441\u043B\u0438\u0448- \u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041B\u0438\u0448\u043D\u044F\u044F \u0434\u044B\u0440\u0430 \u0432 \u043E\u0431\u0448\u0438\u0432\u043A\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u0442\u0440\u0443\u043F\u044B - \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u044E\u0442 \u0448\u0430\u043D\u0441\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043B\u0430\u043D\u0430.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"spider_charge",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0440\u044B\u0432 \u043E\u0442\u0434\u0435\u043B\u0430",content:"\u0421\u0442\u0430\u0440\u044B\u0435 \u0434\u043E\u0431\u0440\u044B\u0435 \u0431\u043E\u043C\u0431\u044B. \u042D\u0444\u0444\u0435\u043A- \u0442\u0438\u0432\u043D\u044B\u0435 \u043E\u0440\u0443\u0434\u0438\u044F \u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0435\u043D\u0438\u044F \u0432\u0441\u0435\u0433\u043E \u0436\u0438\u0432\u043E\u0433\u043E \u0438 \u043D\u0435\u0436\u0438\u0432\u043E\u0433\u043E \u0432 \u0431\u043E\u043B\u044C\u0448\u043E\u043C \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041A\u043E\u0433\u0434\u0430 \u043A\u043B\u0438\u0435\u043D\u0442\u044B \u043F\u0440\u043E\u0441\u044F\u0442 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u043E\u0431\u044C\u0435\u043A\u0442, \u043E\u043D\u0438 \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u044E\u0442 \u043D\u0430\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0434\u043E\u0440\u043E\u0433\u043E \u0441\u0442\u043E\u0438\u0442 \u0442\u0430\u043A\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F. \u041D\u043E \u0440\u0435\u0434\u043A\u043E \u0433\u043E\u0442\u043E\u0432\u044B \u0441\u0434\u0430\u0442\u044C\u0441\u044F. \u041A\u0430\u043A \u0440\u0430\u0437 \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043C\u043D\u043E\u0433\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B \u043D\u0430 \u043F\u043E\u0434\u0440\u044B\u0432 \u043E\u0434\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0438\u043B\u0438 \u043E\u0442\u0434\u0435\u043B\u0430. \n\u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043F\u043E\u0441\u043B\u0435 \u0432\u0437\u0440\u044B\u0432\u0430 \u043D\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044C \u043E\u0445\u043E\u0442\u0430. \n \u041D\u0430\u0448\u0438 \u0431\u043E\u043C\u0431\u044B \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0438\u0437\u0433\u043E\u0442\u043E\u0432\u043B\u0435\u043D\u044B \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0442\u0435\u043B\u044F\u043C\u0438. \u041D\u0438\u043A\u0442\u043E \u043A\u0440\u043E\u043C\u0435 \u0432\u0430\u0441 \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442 \u0438\u0445 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445 \u043B\u0438\u0448\u044C \u0432 \u0437\u043E\u043D\u0435 \u0437\u0430\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C. \u0421\u043E\u0432\u0435\u0442\u0443\u0435\u043C \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044C \u043F\u043E\u0434\u0430\u043B\u044C\u0448\u0435 \u043F\u043E\u0441\u043B\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438. \u0425\u043E\u0442\u044F \u044D\u0442\u043E \u0438 \u0442\u0430\u043A \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0434\u043B\u044F \u0432\u0430\u0441 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"BSM",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0410\u043D\u0430\u043B\u0438\u0437 \u043A\u0440\u043E\u0432\u0438",content:'"\u0417\u043D\u0430\u0439 \u0441\u0432\u043E\u0435\u0433\u043E \u0432\u0440\u0430\u0433\u0430" - \u043F\u0440\u043E\u0441\u0442\u0430\u044F \u0438\u0441\u0442\u0438\u043D\u0430. \n\u0417\u0430 \u0433\u043E\u0434\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u044F \u043A\u043B\u0430\u043D\u0430 \u043C\u044B \u0438\u0437\u0443\u0447\u0438\u043B\u0438 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0437\u043D\u044B\u0445 \u043E\u043F\u0430\u0441\u043D\u044B\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043E \u0441\u0438\u0445 \u043F\u043E\u0440 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0435\u043C \u0438\u0437\u0443\u0447\u0435\u043D\u0438\u0435 \u043D\u0435\u043A\u043E- \u0442\u043E\u0440\u044B\u0445. \u0410 \u0447\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E, \u0447\u0442\u043E \u0438\u0437\u0443\u0447\u0430\u0442\u044C, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u044B\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B. \u041A\u0440\u043E\u0432\u044C \u043E\u0434\u0438\u043D \u0438\u0437 \u0441\u0430\u043C\u044B\u0445 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u044B\u0445 \u043F\u0440\u0438\u043C\u0435\u0440\u043E\u0432 \u0442\u043E\u0433\u043E, \u0447\u0442\u043E \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u043B\u0435\u0437\u043D\u043E \u043D\u0430\u0448\u0438\u043C \u0443\u0447\u0451\u043D\u044B\u043C. \n\u0418\u043C\u0435\u044E\u0449\u0430\u044F\u0441\u044F \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043D\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043B\u044F \u043A\u0440\u043E\u0432\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043F\u0440\u043E\u0430\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B \u043D\u0435 \u043F\u043E\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043D\u0430\u043C. \n\u0414\u043B\u044F \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u043A\u0440\u043E\u0432\u0438 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C 3 \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u043E\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043F\u043E\u043C\u0435- \u0441\u0442\u0438\u0442\u044C \u0438\u0445 \u0432 \u043F\u0440\u043E\u0431\u0438\u0440\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0442\u043E\u043C \u043D\u0430\u0434\u043E \u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E. \n\u041F\u0440\u0438\u043C\u0435\u0441\u0438 \u043F\u0440\u0438\u043D\u044F\u0442\u044B \u043D\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"changeling",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0413\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u044B",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043E\u0437\u043E\u043C\u043D\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044F \u0432\u044B\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043E\u0432 \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0443\u043C\u0435\u044E\u0442 \u043A\u0440\u0430\u0441\u0442\u044C \u0433\u0435\u043D\u044B \u0438 \u0438\u043C\u0438\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445. \n\u0421\u0432\u043E\u0438\u043C \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u043E\u043D\u0438 \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u043F\u0440\u043E\u0431- \u043B\u0435\u043C, \u0447\u0435\u043C \u043F\u043E\u043B\u044C\u0437\u044B. \n\u042D\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043E\u043B\u044C \u0436\u0435 \u0445\u0438\u0442\u0440\u044B \u0441\u043A\u043E\u043B\u044C \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u044B. \u041D\u0435 \u0434\u043E\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441 \u043D\u0438\u043C\u0438 \u043D\u0438 \u043E \u0447\u0451\u043C! \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0436\u0435 \u043D\u0430\u043C \u0441\u043B\u043E\u0436\u043D\u043E \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u0442\u044C \u0433\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u0430 \u043D\u0435 \u0437\u0430\u043F\u0438\u0445- \u043D\u0443\u0432 \u0435\u0433\u043E \u0432 \u043B\u0430\u0431\u043E\u0440\u0430\u0442\u043E\u0440\u0438\u044E \u0438 \u043D\u0435 \u043F\u0440\u043E\u0432\u0435\u0434\u044F \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0442\u0435\u0441\u0442\u043E\u0432. \u041D\u043E \u043E\u043D\u0438 \u0438\u043D\u043E\u0433\u0434\u0430 \u0432\u044B\u0434\u0430\u044E\u0442 \u0441\u0435\u0431\u044F \u0441\u0432\u043E\u0438\u043C\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F\u043C\u0438. \u0418 \u0442\u0430\u043A \u0436\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043B\u043E\u0436\u0430\u0442\u0441\u044F \u043D\u0430 \u0434\u043D\u043E \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438. \u0427\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E \u043B\u0435\u0433\u0447\u0435 \u0438\u0445 \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0434\u0430\u0439\u0442\u0435 \u0438\u043C \u043F\u043E\u043F\u043B\u044F\u0441\u0430\u0442\u044C, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0432\u044B\u0445\u043E\u0434\u0438\u0442\u044C \u043D\u0430 \u0441\u0446\u0435\u043D\u0443. \u0418 \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043B\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435. \u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043C\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0445\u0440\u0430\u043D\u0430 \u0443\u0436\u0435 \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u0437\u0430 \u043E\u0434\u043D\u0438\u043C \u0438\u0437 \u043D\u0438\u0445. \n\u041D\u0438\u043A\u0442\u043E \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432 \u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u043E \u043F\u043E\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u043C \u0441 \u044D\u0442\u0438\u043C...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"vampire",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u043C\u043F\u0438\u0440\u044B",content:"\u0414\u0435\u0448\u0451\u0432\u044B\u0435 \u0440\u043E\u043C\u0430\u043D\u044B, \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0438 \u0441\u043A\u0430\u0437\u043A\u0438 \u043F\u0440\u043E\u0448\u043B\u043E\u0433\u043E \u043E\u043F\u0438\u0441\u044B\u0432\u0430\u043B\u0438 \u0432\u0430\u043C\u043F\u0438\u0440\u043E\u0432 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A\u043E\u0432 \u043F\u044C\u044E\u0449\u0438\u0445 \u043A\u0440\u043E\u0432\u044C \u043B\u044E\u0434\u0435\u0439 \u0432 \u043D\u043E\u0447\u0438 \u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E- \u0449\u0438\u0445 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E- \u0441\u0442\u044F\u043C\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u043D\u0435\u0435 \u0440\u043E\u043C\u0430\u043D\u0442\u0438\u0447\u043D\u044B... \n\u041C\u044B \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u0448\u0438 \u043F\u043E\u0434\u043E\u0437\u0440\u0435- \u043D\u0438\u044F \u043F\u0430\u0434\u0430\u044E\u0442 \u043D\u0430 \u0432\u043B\u0438\u044F\u043D\u0438\u0435 \u043D\u0435\u043A\u043E\u0439 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438. \u0422\u0430\u043A \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435, \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440 \u043F\u043E\u043A\u0430 \u0432\u0430\u043C\u043F\u0438\u0440 \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0443\u0433\u0440\u043E\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043D\u0438. \u0412\u044B \u0432\u043E\u043B\u044C\u043D\u044B \u0435\u0433\u043E \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \n\u0412\u0430\u043C\u043F\u0438\u0440\u044B \u043E\u0447\u0435\u043D\u044C \u043E\u043F\u0430\u0441\u043D\u044B \u0432 \u043F\u0440\u044F\u043C\u043E\u043C \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u043E\u043D\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u0432\u0437\u0433\u043B\u044F\u0434\u043E\u043C \u0438 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0430\u0442\u044C \u0440\u0430\u0437\u0443\u043C \u0441\u0432\u043E\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041D\u0435 \u0434\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0438\u043C, \u043D\u043E \u0442\u0430\u043A \u0436\u0435 \u043F\u043E\u043C\u043D\u0438\u0442\u0435 - \u043E\u043D\u0438 \u043B\u0438\u0448\u044C \u0436\u0435\u0440\u0442\u0432\u044B \u0441\u0442\u0435\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u0441\u0442\u0432. \u0418 \u044D\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"syndicate",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442",content:"\u041D\u0430\u0448\u0438 \u0445\u043E\u0440\u043E\u0448\u0438\u0435 \u0437\u043D\u0430\u043A\u043E\u043C\u044B\u0435. \u0421\u0431\u043E\u0440\u0438\u0449\u0435 \u043C\u043E\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043F\u043E\u0434\u043F\u043E\u043B\u044C\u043D\u043E\u043C \u043C\u0438\u0440\u0435 \u0441 \u0437\u0430\u043A\u0440\u044B\u0442\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u043E\u0439 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0430 \u043E \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043C\u0430\u043B\u043E... \n\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442 \u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0437\u0430\u043A\u0430\u0437\u043E\u0432. \u041D\u043E \u0441\u0430\u043C\u043E\u0439 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E\u0439, \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u043A\u0442\u043E \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043E\u0439 \u044D\u0442\u043E\u0439 \u0433\u0440\u0443\u043F\u043F\u044B - \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0433\u0440\u043E\u043C\u043D\u0430\u044F \u043D\u0435\u043D\u0430\u0432\u0438\u0441\u0442\u044C \u043A \u041D\u0422. \n\u0412 \u0441\u043B\u0443\u0447\u0430\u0435 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u044F \u0441 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438 \u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u0430 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0430 \u043D\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043F\u0440\u043E\u0441\u0442\u0430. \n\u0415\u0441\u043B\u0438 \u043E\u043D\u0438 \u043D\u0435 \u043C\u0435\u0448\u0430\u044E\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \u041C\u044B \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u043C \u0438\u043C.",position:"bottom-start"})]})]})})})},u=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.actionsIcon,N=s.blocked_TGUI_rows,x=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u0414\u0435\u043B\u044F\u0442\u0441\u044F \u043D\u0430 3 \u0440\u0430\u0437\u043D\u044B\u0445 \u043F\u043E\u0434\u0445\u043E\u0434\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439 \u043F\u043E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044E \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F, \u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0434\u0443\u043B\u0435\u0439 \u043E\u0434\u043D\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0438\u0437 \u0441\u043E\u0441\u0435\u0434\u043D\u0438\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",tooltipPosition:"bottom"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{width:"100%",title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",ml:"0px",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0421\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043E\u0432, \u043D\u0430\u043F\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043D\u0438 \u0438 \u0431\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0440\u0438\u043C\u043E\u0439 \u0443\u0433\u0440\u043E\u0437\u043E\u0439, \u0432\u0441\u0451 \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0437\u043D\u0430\u043B! \u0411\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B \u043A\u0430\u043A \u043F\u0440\u0438\u0437\u0440\u0430\u043A!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"smoke",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"smoke",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0414\u042B\u041C\u041E\u0412\u0410\u042F \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044B \u0441\u043E\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0443\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432. \n\u042D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u0441\u043E\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0432\u0438\u0437\u043E\u0440\u043E\u043C \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u0442\u0435\u0440\u043C\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u043A\u0430\u043D\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043A \u0436\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043C\u043E\u0434\u0443\u043B\u044F\u043C\u0438 \u0435\u0441\u043B\u0438 \u0432\u044B \u0442\u043E\u0433\u043E \u043F\u043E\u0436\u0435\u043B\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"ninja_cloak",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_cloak",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041D\u0415\u0412\u0418\u0414\u0418\u041C\u041E\u0421\u0422\u042C",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 \u0441\u043A\u0440\u044B\u0432\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043F\u0440\u0438\u0433\u043B\u0443\u0448\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \u0425\u043E\u0442\u044C \u043F\u043E\u043B\u0435 \u0438 \u0441\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E, \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0445\u043B\u0430\u0434\u043D\u043E\u043A\u0440\u043E\u0432\u0435\u043D. \n\u041D\u0435 \u0441\u0442\u043E\u0438\u0442 \u043D\u0435\u0434\u043E\u043E\u0446\u0435\u043D\u0438\u0432\u0430\u0442\u044C \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0445 \u043B\u044E\u0434\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 15 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"ninja_clones",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_clones",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u041A\u041B\u041E\u041D\u042B",content:"\u0421\u043E\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0433\u043E\u0442\u043E\u0432\u044B\u0445 \u043F\u043E\u043C\u043E\u0447\u044C \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043E\u0440\u0438\u0435\u043D\u0442\u0438- \u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u0430 \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u0441\u043C\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u043C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043F\u0430\u0440\u044B \u043C\u0435\u0442\u0440\u043E\u0432. \n\u041F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435\u0441\u044C \u043E\u0441\u0442\u043E\u0440\u043E\u0436\u043D\u043E. \u0421\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0435 \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0435\u0440\u0435\u0442\u044C \u0432\u0430\u0441 \u0437\u0430 4-\u043C\u044F \u0441\u0442\u0435\u043D\u0430\u043C\u0438. \u0411\u0443\u0434\u044C\u0442\u0435 \u043A \u044D\u0442\u043E\u043C\u0443 \u0433\u043E\u0442\u043E\u0432\u044B. \n\u041A\u043B\u043E\u043D\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 20 \u0441\u0435\u043A\u0443\u043D\u0434. \u041A\u043B\u043E\u043D\u044B \u0438\u043C\u0435\u044E\u0442 \u0448\u0430\u043D\u0441 \u0440\u0430\u0437\u043C\u043D\u043E\u0436\u0438\u0442\u0441\u044F \u0430\u0442\u0430\u043A\u0443\u044F \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 8 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"chameleon",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chameleon",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0425\u0410\u041C\u0415\u041B\u0415\u041E\u041D",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u0433\u043E\u043B\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u043E\u043B\u0435 \u0438\u0441\u043A\u0430\u0436\u0430\u044E\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E\u0435 \u0438 \u0441\u043B\u0443\u0445\u043E\u0432\u043E\u0435 \u0432\u043E\u0441\u043F\u0440\u0438\u044F\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044C \u0438 \u0441\u043B\u044B\u0448\u0430\u0442\u044C \u043A\u0430\u043A \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0432\u044B \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C. \n\u042D\u0442\u043E \u0434\u0430\u0451\u0442 \u0432\u0430\u043C \u043E\u0433\u0440\u043E\u043C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u0442\u043E\u0440 \u043F\u043E \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u044E \u0438 \u0438\u043C\u0438\u0442\u0430\u0446\u0438\u0438 \u043B\u044E\u0431\u043E\u0433\u043E \u0447\u043B\u0435\u043D\u0430 \u044D\u043A\u0438\u043F\u0430\u0436\u0430. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0445\u0430\u043C\u0435\u043B\u0435\u043E\u043D \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"ninja_spirit_form",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_spirit_form",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0424\u041E\u0420\u041C\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044B \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043D\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0442\u0435\u043B\u0430 \u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043E\u043C \u044D\u0442\u043E\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0439 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438. \n\u0414\u0435\u043B\u0430\u044F \u0432\u0430\u0448\u0435 \u0442\u0435\u043B\u043E \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u044B\u043C \u044D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442\u044C \u0441\u043A\u0432\u043E\u0437\u044C \u0441\u0442\u0435\u043D\u044B. \n\u042D\u0442\u0430 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u043D\u0435 \u0441\u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0443\u044F\u0437\u0432\u0438\u043C\u044B\u043C \u0434\u043B\u044F \u043F\u0443\u043B\u044C \u0438 \u043B\u0435\u0437\u0432\u0438\u0439! \n\u041D\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u0441\u043D\u044F\u0442\u044C \u0441 \u0441\u0435\u0431\u044F \u043D\u0430\u0440\u0443\u0447\u043D\u0438\u043A\u0438, \u0431\u043E\u043B\u044B \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B\u043B\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043E\u0431\u0430 \u0438\u043B\u0438 \u044F\u0449\u0438\u043A\u0430, \u043E\u043A\u0430\u0436\u0438\u0441\u044C \u0432\u044B \u0442\u0430\u043C \u0437\u0430\u043F\u0435\u0440\u0442\u044B... \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u0444\u043E\u0440\u043C\u0430 \u0434\u0443\u0445\u0430 \u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438! \u041F\u043E\u0442\u0440\u0435\u0431\u043B\u0435\u043D\u0438\u0435 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u043E \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043E\u0431\u044A\u0451\u043C\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 25 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0417\u043C\u0435\u0439",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435! \u0422\u0440\u044E\u043A\u0438, \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0449\u0438\u0442\u044B. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C, \u0447\u0442\u043E \u0442\u0430\u043A\u043E\u0435 \u0431\u043E\u0439 \u0441 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u043C \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0438 \u0438\u0437\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0445\u043E\u0434\u044F \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u043B\u044E\u0431\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043E \u043B\u0438\u0448\u044C \u0433\u0440\u044B\u0437\u0443\u043D\u044B, \u0447\u044C\u0451 \u043B\u043E\u0433\u043E\u0432\u043E \u043D\u0430\u0432\u0435\u0441\u0442\u0438\u043B \u0437\u043C\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"kunai",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"kunai",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041E\u0415\u041D\u041D\u041E\u0415 \u0414\u0416\u041E\u0425\u042C\u0401",content:"\u0422\u0430\u043A \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u0430\u043A \u0428\u044D\u043D\u0431\u044F\u043E \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u043E \u041A\u0438\u043D\u0436\u0430\u043B \u043D\u0430 \u0446\u0435\u043F\u0438. \n\u0418\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0437\u0430\u043F\u0443\u0441\u043A\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0438 \u043F\u0440\u0438\u0442\u044F\u043D\u0443\u0442\u044C \u043A \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043E\u043B\u0438 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u041E\u0440\u0443\u0436\u0438\u0435 \u043D\u0435 \u043E\u0447\u0435\u043D\u044C \u0433\u043E\u0434\u0438\u0442\u0441\u044F \u0434\u043B\u044F \u0434\u043E\u043B\u0433\u0438\u0445 \u0431\u043E\u0451\u0432, \u043D\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u044B\u0442\u044F\u0433\u0438\u0432\u0430\u043D\u0438\u044F \u043E\u0434\u043D\u043E\u0439 \u0436\u0435\u0440\u0442\u0432\u044B - \u043D\u0430 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043D\u0435 \u043F\u0440\u043E\u043C\u0430\u0445\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0441\u0442\u0440\u0435\u043B\u044C\u0431\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 5 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"chem_injector",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chem_injector",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041B\u042F\u042E\u0429\u0418\u0419 \u041A\u041E\u041A\u0422\u0415\u0419\u041B\u042C",content:"\u0412\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u043B\u0435\u0447\u0435\u0431\u043D\u0443\u044E \u0441\u043C\u0435\u0441\u044C. \u0421\u043F\u043E\u0441\u043E\u0431\u043D\u0443\u044E \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u0434\u0430\u0436\u0435 \u0441\u043B\u043E\u043C\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u0441\u0442\u0438 \u0438 \u043E\u0442\u043E\u0440\u0432\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u041F\u0440\u0435\u043F\u0430\u0440\u0430\u0442 \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442- \n\u0432\u0435\u043D\u043D\u043E-\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u0434\u043E\u043A\u0441\u044B \u0438 \u043E\u0447\u0435\u043D\u044C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0438\u0437 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0430! \n\u041F\u0440\u0438 \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0435 \u043E\u043D\u0438 \u0441\u0442\u0430\u043D\u043E\u0432\u044F\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043E\u043F\u0430\u0441\u043D\u044B \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041D\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 30 \u0435\u0434. \u043F\u0440\u0435\u043F\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C! \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u0438\u043C\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044F\u0434\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emergency_blink",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emergency_blink",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041A\u0421\u0422\u0420\u0415\u041D\u041D\u0410\u042F \u0422\u0415\u041B\u0415\u041F\u041E\u0420\u0422\u0410\u0426\u0418\u042F",content:"\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0443\u044E \u0437\u043E\u043D\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043E\u043A\u043E\u043B\u043E \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044F\u0442\u043A\u043E\u0432 \u043C\u0435\u0442\u0440\u043E\u0432. \n\u0414\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u043C\u043E\u0437\u0433\u043E\u0432\u044B\u0435 \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u044B \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041F\u043E\u044D\u0442\u043E\u043C\u0443 \u043E\u043F\u044B\u0442\u043D\u044B\u0435 \u0432\u043E\u0438\u043D\u044B \u043A\u043B\u0430\u043D\u0430, \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043E \u0441\u043D\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"caltrop",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"caltrop",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E-\u0427\u0415\u0421\u041D\u041E\u041A",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043D\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u043F\u0440\u043E\u0441\u0442\u043E \u043A\u0430\u043B\u0442\u0440\u043E\u043F\u044B, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043F\u0443\u0442\u044B\u0432\u0430\u044E\u0449\u0438\u0445 \u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043E\u043B\u0435\u0435 \u0441\u044A\u0435\u0441\u0442\u043D\u044B\u043C \u0447\u0435\u0441\u043D\u043E\u043A\u043E\u043C. \n\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u043F\u043E\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u0441\u043F\u0440\u0435\u0441\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043B\u043E\u0432\u0443\u0448\u043A\u0438. \n\u041B\u043E\u0432\u0443\u0448\u043A\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 10 \u0441\u0435\u043A\u0443\u043D\u0434. \u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043F\u0430\u0434\u0430\u044E\u0442 - \u0435\u0441\u043B\u0438 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0442\u044C. \n\u0411\u043E\u043B\u044C \u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0433\u043E \u0448\u0430\u0433\u0430 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0438\u0433\u043D\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043E\u0431\u043E\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D- \u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u0412\u044B \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u044B \u043E\u0442 \u043D\u0438\u0445. \u041D\u0435 \u043D\u0430\u0441\u0442\u0443\u043F\u0430\u0439\u0442\u0435 \u043D\u0430 \u0441\u0432\u043E\u0438 \u0436\u0435 \u043B\u043E\u0432\u0443\u0448\u043A\u0438! \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 1 \u0441\u0435\u043A\u0443\u043D\u0434\u0430.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"cloning",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"cloning",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0422\u041E\u0420\u041E\u0419 \u0428\u0410\u041D\u0421",content:"\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043C\u043D\u043E\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0438\u0432\u0430\u044F \u0441\u0432\u043E\u0438 \u043C\u0438\u0441\u0441\u0438\u0438 \u0441\u043E\u0432\u0435\u0440\u0448\u0430\u043B\u0438 \u0441\u0430\u043C\u043E\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043B\u0438 \u043E\u043A\u0430\u0437\u044B\u0432\u0430\u043B\u0438\u0441\u044C \u0432 \u043B\u0430\u043F\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044C \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0434\u043E\u0440\u043E\u0433\u0430\u044F \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u0430. \u041C\u043E\u0449\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0435 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0432\u0430\u0441 \u043F\u0440\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u0442\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430. \n\u042D\u0442\u0430 \u043C\u0430\u0448\u0438\u043D\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0439 \u0448\u0430\u043D\u0441, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0432 \u0432\u0430\u0441 \u043A \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043B\u0435\u0447\u0438\u0432 \u043B\u044E\u0431\u044B\u0435 \u0442\u0440\u0430\u0432\u043C\u044B. \n\u041C\u044B \u0441\u043B\u044B\u0448\u0430\u043B\u0438 \u043F\u0440\u043E \u0441\u043E\u043C\u043D\u0435\u043D\u0438\u044F \u0437\u0430\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u043D\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043E \u044D\u0442\u043E \u043F\u0440\u043E\u0441\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u043B\u0435\u043D\u043E\u0432 \u043A\u043B\u0430\u043D\u0430. \u041D\u043E \u0443\u0432\u0435\u0440\u044F\u0435\u043C \u0432\u0430\u0441, \u044D\u0442\u043E \u043D\u0435 \u0442\u0430\u043A. \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0438\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043D\u0430 \u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0438 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044E. \u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0421\u0442\u0430\u043B\u044C",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u042F\u0440\u043E\u0441\u0442\u044C \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C. \u0421\u0438\u043B\u0430, \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u043E\u0440\u0443\u0434\u0438\u044F \u0432\u044B\u0448\u0435 \u0438\u0445 \u043F\u043E\u043D\u0438\u043C\u0430\u043D\u0438\u044F. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A \u0447\u0442\u043E \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043E\u044E \u0434\u043E\u0431\u044B\u0447\u0443. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0432\u043A\u0443\u0441 \u0441\u0442\u0430\u043B\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"shuriken",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"shuriken",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u0421\u042E\u0420\u0418\u041A\u0415\u041D\u042B",content:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043A\u0440\u044B\u0442\u043E\u0435 \u0432 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0430\u0445 \u043A\u043E\u0441\u0442\u044E\u043C\u0430. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442 \u043F\u043E \u0442\u0440\u0438 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u0430, \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438, \u043E\u0447\u0435\u0440\u0435\u0434\u044C\u044E. \n\u0421\u044E\u0440\u0438\u043A\u0435\u043D\u044B \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u0438\u0437\u043D\u0443\u0440\u044F\u044E\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0438 \u043D\u0430\u043D\u043E\u0441\u044F\u0442 \u0441\u043B\u0430\u0431\u044B\u0439 \u043E\u0436\u043E\u0433\u043E\u0432\u044B\u0439 \u0443\u0440\u043E\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043B\u0435\u0442\u0430\u044E\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043A\u043B\u043E, \u043A\u0430\u043A \u0438 \u043E\u0431\u044B\u0447\u043D\u044B\u0435 \u043B\u0430\u0437\u0435\u0440\u043D\u044B\u0435 \u0441\u043D\u0430\u0440\u044F\u0434\u044B. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 300 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"adrenal",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"adrenal",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u041F\u041B\u0415\u0421\u041A \u0410\u0414\u0420\u0415\u041D\u0410\u041B\u0418\u041D\u0410",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0432\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043C\u043E\u0449\u043D\u0443\u044E \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0443\u0441\u043A\u043E\u0440\u044F\u044E\u0449\u0443\u044E \u0432\u0430\u0441 \u0432 \u0431\u043E\u044E \u0438 \u043F\u043E\u043C\u043E\u0433\u0430\u044E\u0449\u0443\u044E \u0431\u044B\u0441\u0442\u0440\u0435\u0435 \u043E\u043A\u043B\u0435\u043C\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432. \n\u041A\u043E\u0441\u0442\u044E\u043C \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442 \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0443\u0440\u0430\u043D\u0430. \u0427\u0442\u043E \u043A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0451\u0442 \u043D\u0435\u043F\u0440\u0438\u044F\u0442\u043D\u044B\u0439 \u043D\u0435\u0433\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u044D\u0444\u0444\u0435\u043A\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u044F \u0440\u0430\u0434\u0438\u044F \u0432 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0436\u0435\u043D\u043E \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0443\u0440\u0430\u043D\u0430 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emp",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emp",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E\u041C\u0410\u0413\u041D\u0418\u0422\u041D\u042B\u0419 \u0412\u0417\u0420\u042B\u0412",content:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043C\u0430\u0433\u043D\u0438\u0442\u043D\u044B\u0435 \u0432\u043E\u043B\u043D\u044B \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u044E\u0442, \u043F\u043E\u0434\u0440\u044B\u0432\u0430\u044E\u0442 \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0430\u044E\u0442 - \u043A\u0438\u0431\u043E\u0440\u0433\u043E\u0432, \u0434\u0440\u043E\u043D\u043E\u0432, \u041A\u041F\u0411, \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435, \u043F\u043E\u0440\u0442\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u0421\u0432\u0435\u0442\u043E\u0448\u0443\u043C\u043E\u0432\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044F\u0437\u0438 \u0438 \u0442.\u0434. \n\u042D\u0442\u043E\u0442 \u0432\u0437\u0440\u044B\u0432 \u043C\u043E\u0436\u0435\u0442 \u043A\u0430\u043A \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0432 \u0431\u043E\u044E, \u0442\u0430\u043A \u0438 \u043D\u0435\u0432\u0435\u0440\u043E\u044F\u0442\u043D\u043E \u043D\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044C. \u0412\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043E\u0441\u043C\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043C\u0435\u0441\u0442\u043D\u043E\u0441\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u0435\u043C. \n\u041D\u0435 \u0437\u0430\u0431\u044B\u0432\u0430\u0439\u0442\u0435 \u043E \u0437\u0430\u0449\u0438\u0449\u0430\u044E\u0449\u0435\u043C \u043E\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043C\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u0432\u0438\u0437\u043E\u0440\u0430. \u041E\u043D \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u043C\u043E\u0447\u044C \u043D\u0435 \u043E\u0441\u043B\u0435\u043F\u043D\u0443\u0442\u044C, \u043F\u0440\u0438 \u043F\u043E\u0434\u0440\u044B\u0432\u0435 \u043F\u043E\u0434\u043E\u0431\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044B\u0432 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 4 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"energynet",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"energynet",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0410\u042F \u0421\u0415\u0422\u042C",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043B\u043E\u0432\u0438\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u0432\u0430\u043C\u0438 \u0446\u0435\u043B\u044C \u0432 \u043E\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044E\u0449\u0443\u044E \u043B\u043E\u0432\u0443\u0448\u043A\u0443. \n\u0418\u0437 \u043B\u043E\u0432\u0443\u0448\u043A\u0438 \u043B\u0435\u0433\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u0441\u043B\u043E\u043C\u0430\u0432 \u0435\u0451 \u043B\u044E\u0431\u044B\u043C \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u043C. \n\u041E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043D\u0435\u0439\u0442\u0440\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0432\u0440\u0430\u0433\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u0432 \u043D\u0435\u0451 \u043C\u043E\u0436\u043D\u043E \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445 \u0438\u043B\u0438 \u043D\u0430\u0434\u043E\u0435\u0434\u043B\u0438\u0432\u044B\u0445 \u043E\u0445\u0440\u0430\u043D\u043D\u044B\u0445 \u0431\u043E\u0442\u043E\u0432. \n\u0423\u0447\u0438\u0442\u044B\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E \u0441\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043E\u0442\u0441\u0442\u0440\u0435\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043A \u0436\u0435 \u0441\u0435\u0442\u044C \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u043A\u0438\u043D\u0443\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u043C \u043F\u0443\u0442\u0451\u043C, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u0435\u0442\u0438 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"spider_red",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_red",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0411\u041E\u0415\u0412\u041E\u0415 \u0418\u0421\u041A\u0423\u0421\u0421\u0422\u0412\u041E \n\u041F\u041E\u041B\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041E\u0412\u042B",content:"\u0411\u043E\u0435\u0432\u043E\u0435 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u043E \u043D\u0438\u043D\u0434\u0437\u044F \u0441\u043E\u0441\u0440\u0435\u0434\u043E\u0442\u043E\u0447\u0435\u043D\u043D\u043E\u0435 \u043D\u0430 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u0438 \u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0438\u0451\u043C\u043E\u0432. \n\u0412 \u0443\u0447\u0435\u043D\u0438\u0435 \u0432\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043F\u0440\u0438\u0451\u043C\u044B: \n\u0412\u044B\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u0440\u0443\u043A\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044B\u0440\u043E\u043D\u0438\u0442\u044C \u0441\u0432\u043E\u0451 \u043E\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043B\u0430\u0434\u043E\u043D\u044C\u044E - \u043E\u0442\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043D\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0435\u0442\u0440\u043E\u0432 \u043E\u0442 \u0432\u0430\u0441, \u043B\u0438\u0448\u0430\u044F \u0440\u0430\u0432\u043D\u043E\u0432\u0435\u0441\u0438\u044F. \n\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043D\u0438\u0435 \u0448\u0435\u0438 - \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043E\u0431\u0435\u0437\u0433\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u043B\u0435\u0436\u0430\u0447\u0443\u044E \u0436\u0435\u0440\u0442\u0432\u0443 \u043A\u0430\u0442\u0430\u043D\u043E\u0439 \u0432\u043E \u0432\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0440\u0443\u043A\u0435. \n\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0442\u043E\u0440\u043D\u0430\u0434\u043E - \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0432\u043E\u043A\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043E\u0437\u0434\u0430\u0451\u0442 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0434\u044B\u043C\u043E\u0432\u043E\u0433\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u044B \u043E\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044C \u0441 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0448\u0430\u043D\u0441\u043E\u043C \u043E\u0442\u0440\u0430\u0436\u0430\u0442\u044C \u0441\u043D\u044F\u0440\u044F\u0434\u044B \u0432\u0440\u0430\u0433\u043E\u0432 \u043E\u0431\u0440\u0430\u0442\u043D\u043E.",position:"right"})]})]})]})]})})},f=r.ShuttleConsole=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0448\u0430\u0442\u0442\u043B\u043E\u043C",mr:"5px",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041F\u0430\u043D\u0435\u043B\u044C \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0430\u0448\u0438\u043C \u043B\u0438\u0447\u043D\u044B\u043C \u0448\u0430\u0442\u0442\u043B\u043E\u043C. \u0422\u0430\u043A \u0436\u0435 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0438 \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0441\u0430\u043C\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"right"}),children:(0,e.createComponentVNode)(2,t.Flex,{ml:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F",children:s.status?s.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F",children:s.player_pos}),!!s.shuttle&&(!!s.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0442\u0442\u043B",children:s.docking_ports.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:g.name,onClick:function(){function N(){return v("move",{move:g.id})}return N}()},g.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!s.admin_controlled&&(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E",disabled:!s.status,onClick:function(){function g(){return v("request")}return g}()})})],0))]})})})}return m}(),l=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.randomPercent,g=v.actionsIcon,N=v.color_choice;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:N,value:s,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+N,mt:1,children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_"+N,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Loading ",s+"%"]}),2)})})},d=function(m){function i(V){var v;return v=m.call(this,V)||this,v.timer=null,v.state={lastText:"text do be there",currentDisplay:[]},v}k(i,m);var h=i.prototype;return h.tick=function(){function V(){var v=this.props,s=this.state;if(v.allMessages!==s.lastText&&!v.end_terminal){var g=s.currentDisplay;g.push(v.allMessages),s.lastText=v.allMessages}else v.end_terminal&&(clearTimeout(this.timer),setTimeout(v.onFinished,v.finishedTimeout))}return V}(),h.componentDidMount=function(){function V(){var v=this,s=this.props.linesPerSecond,g=s===void 0?2.5:s;this.timer=setInterval(function(){return v.tick()},1e3/g)}return V}(),h.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),h.render=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:this.state.currentDisplay.map(function(v){return(0,e.createFragment)([v,(0,e.createVNode)(1,"br")],0,v)})})}return V}(),i}(e.Component)},38307:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return y}(),k=r.StationAlertConsoleContent=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.alarms||[];return Object.keys(u).map(function(f){var l,d;return(0,e.createComponentVNode)(2,t.Section,{title:f+" Alarms",children:(0,e.createVNode)(1,"ul",null,((l=u[f])==null?void 0:l.length)===0?(0,e.createVNode)(1,"li","color-good","Systems Nominal",16):(d=u[f])==null?void 0:d.map(function(m){return(0,e.createVNode)(1,"li","color-average",m,0,null,m)}),0)},f)})}return y}()},39409:function(I,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),p=n(36036),k=n(98595),y=5,S=9,b=function(V){return V===0?5:9},C="64px",c=function(V){return V[0]+"/"+V[1]},u=function(V){var v=V.align,s=V.children;return(0,e.createComponentVNode)(2,p.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:s})},f={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={neck:{displayName:"neck",gridSpot:c([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,4]),image:"inventory-pda.png"}},d={neck:{displayName:"neck",gridSpot:c([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,8]),image:"inventory-pda.png"}},m=function(h){return h[h.Completely=1]="Completely",h[h.Hidden=2]="Hidden",h}(m||{}),i=r.StripMenu=function(){function h(V,v){var s=(0,o.useBackend)(v),g=s.act,N=s.data,x=new Map;if(N.show_mode===0)for(var B=0,L=Object.keys(N.items);B300?"bad":f>150?"average":"good"},S=function(f){return f>5e3?"bad":f>4e3?"average":"good"},b=function(f){return f>1e4?"bad":f>5e3?"average":"good"},C=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Detected Supermatter Shards",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function h(){return m("refresh")}return h}()}),children:(0,e.createComponentVNode)(2,t.Box,{m:1,children:i.supermatters.length===0?(0,e.createVNode)(1,"h3",null,"No shards detected",16):(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.TableCell,{children:"Area"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Integrity"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Details"})]}),i.supermatters.map(function(h){return(0,e.createComponentVNode)(2,p.TableRow,{children:[(0,e.createComponentVNode)(2,p.TableCell,{children:h.area_name}),(0,e.createComponentVNode)(2,p.TableCell,{children:[h.integrity,"%"]}),(0,e.createComponentVNode)(2,p.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"View",onClick:function(){function V(){return m("view",{view:h.uid})}return V}()})})]},h)})]})})})})})},c=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Crystal Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"caret-square-left",content:"Back",onClick:function(){function h(){return m("back")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[95,1/0],average:[80,94],bad:[-1/0,79]},minValue:"0",maxValue:"100",value:i.SM_integrity,children:[i.SM_integrity,"%"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:y(i.SM_power),children:[i.SM_power," MeV/cm3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:S(i.SM_ambienttemp),children:[i.SM_ambienttemp," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b(i.SM_ambientpressure),children:[i.SM_ambientpressure," kPa"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:[i.SM_gas_O2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:[i.SM_gas_CO2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:[i.SM_gas_N2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:[i.SM_gas_PL,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[i.SM_gas_OTHER,"%"]})]})})]})})}},46029:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(98595),k=r.SyndicateComputerSimple=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data;return(0,e.createComponentVNode)(2,p.Window,{width:400,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:u.rows.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f.buttontitle,disabled:f.buttondisabled,tooltip:f.buttontooltip,tooltipPosition:"left",onClick:function(){function l(){return c(f.buttonact)}return l}()}),children:[f.status,!!f.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:f.bullets.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:l},l)})})]},f.title)})})})}return y}()},99279:function(I,r,n){"use strict";r.__esModule=!0,r.SyndieCargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(29319),S=n(25328),b=r.SyndieCargoConsole=function(){function l(d,m){return(0,e.createComponentVNode)(2,k.Window,{width:900,height:800,theme:"syndicate",children:(0,e.createComponentVNode)(2,k.Window.Content,{children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})})}return l}(),C=function(d,m){var i=(0,o.useLocalState)(m,"contentsModal",null),h=i[0],V=i[1],v=(0,o.useLocalState)(m,"contentsModalTitle",null),s=v[0],g=v[1];if(h!==null&&s!==null)return(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,p.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[s,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,p.Box,{children:h.map(function(N){return(0,e.createComponentVNode)(2,p.Box,{children:["- ",N]},N)})}),(0,e.createComponentVNode)(2,p.Box,{m:2,children:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function N(){V(null),g(null)}return N}()})})]})},c=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.is_public,s=v===void 0?0:v,g=V.cash,N=V.wait_time,x=V.is_cooldown,B=V.telepads_status,L=V.adminAddCash,T=B,A="",E=0,w="";return B==="Pads not linked!"?(E=0,A="Attempts to link telepads to the console.",w="Link pads"):x?x&&(w="Cooldown...",A="Pads are cooling off...",E=1,N!==1?T=""+B+" (ETA: "+N+" seconds)":T=""+B+" (ETA: "+N+" second)"):(E=0,A="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",w="Teleport"),(0,e.createComponentVNode)(2,p.Section,{title:"Status",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[s===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Money Available",children:[g,(0,e.createComponentVNode)(2,p.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){function O(){return h("withdraw",{cash:g})}return O}()}),(0,e.createComponentVNode)(2,p.Button,{content:L,tooltip:"Bless the players with da money!",onClick:function(){function O(){return h("add_money",{cash:g})}return O}()})]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Telepads Status",children:T}),s===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,p.Button,{content:w,tooltip:A,disabled:E,onClick:function(){function O(){return h("teleport")}return O}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Syndicate Black Market Log",onClick:function(){function O(){return h("showMessages")}return O}()})]})]})})},u=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.categories,s=V.supply_packs,g=(0,o.useSharedState)(m,"category","Emergency"),N=g[0],x=g[1],B=(0,o.useSharedState)(m,"search_text",""),L=B[0],T=B[1],A=(0,o.useLocalState)(m,"contentsModal",null),E=A[0],w=A[1],O=(0,o.useLocalState)(m,"contentsModalTitle",null),M=O[0],P=O[1],F=(0,S.createSearch)(L,function(j){return j.name}),R=(0,a.flow)([(0,t.filter)(function(j){return j.cat===v.filter(function(W){return W.name===N})[0].category||L}),L&&(0,t.filter)(F),(0,t.sortBy)(function(j){return j.name.toLowerCase()})])(s),U="Crate Catalogue";return L?U="Results for '"+L+"':":N&&(U="Browsing "+N),(0,e.createComponentVNode)(2,p.Section,{title:U,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:v.map(function(j){return j.name}),selected:N,onSelected:function(){function j(W){return x(W)}return j}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function j(W,K){return T(K)}return j}(),mb:1}),(0,e.createComponentVNode)(2,p.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:R.map(function(j){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{bold:!0,children:[j.name," (",j.cost," Credits)"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function W(){return h("order",{crate:j.ref,multiple:0})}return W}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function W(){return h("order",{crate:j.ref,multiple:1})}return W}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Contents",icon:"search",onClick:function(){function W(){w(j.contents),P(j.name)}return W}()})]})]},j.name)})})})]})},f=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.requests,s=V.canapprove,g=V.orders;return(0,e.createComponentVNode)(2,p.Section,{title:"Details",children:(0,e.createComponentVNode)(2,p.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:v.map(function(N){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",N.comment]})]}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){function x(){return h("approve",{ordernum:N.ordernum})}return x}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Deny",color:"red",onClick:function(){function x(){return h("deny",{ordernum:N.ordernum})}return x}()})]})]},N.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:g.map(function(N){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",N.comment]})]})},N.ordernum)})})]})})}},44852:function(I,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},k={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},y=function(c,u,f,l){return l===void 0&&(l=null),c.map(function(d){var m,i=(m=d[l])!=null?m:d;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u.includes(d),content:i,onClick:function(){function h(){u.includes(d)?f(u.filter(function(V){var v;return((v=V[l])!=null?v:V)!==d})):f([d].concat(u))}return h}()},i)})},S=r.TTSSeedsExplorer=function(){function C(c,u){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return C}(),b=r.TTSSeedsExplorerContent=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.providers,i=d.seeds,h=d.selected_seed,V=d.phrases,v=d.donator_level,s=i.map(function(X){return X.category}).filter(function(X,Q,q){return q.indexOf(X)===Q}),g=i.map(function(X){return X.gender}).filter(function(X,Q,q){return q.indexOf(X)===Q}),N=i.map(function(X){return X.donator_level}).filter(function(X,Q,q){return q.indexOf(X)===Q}).map(function(X){return p[X]}),x=(0,a.useLocalState)(u,"selectedProviders",m),B=x[0],L=x[1],T=(0,a.useLocalState)(u,"selectedGenders",g),A=T[0],E=T[1],w=(0,a.useLocalState)(u,"selectedCategories",s),O=w[0],M=w[1],P=(0,a.useLocalState)(u,"selectedDonatorLevels",N),F=P[0],R=P[1],U=(0,a.useLocalState)(u,"selectedPhrase",V[0]),j=U[0],W=U[1],K=(0,a.useLocalState)(u,"searchtext",""),$=K[0],ne=K[1],Y=y(m,B,L,"name"),le=y(g,A,E),de=y(s,O,M),oe=y(N,F,R),re=(0,e.createComponentVNode)(2,t.Dropdown,{options:V,selected:j.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(){function X(Q){return W(Q)}return X}()}),Z=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,onInput:function(){function X(Q,q){return ne(q)}return X}()}),ae=i.sort(function(X,Q){var q=X.name.toLowerCase(),te=Q.name.toLowerCase();return q>te?1:q0&&h!==X.name?"orange":"white",children:X.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:h===X.name?.5:.25,textAlign:"left",children:X.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:h===X.name?"white":k[X.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:k[X.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:X.donator_level>0&&(0,e.createFragment)([p[X.donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},X.name)});return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",fill:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:Y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:le}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:de}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:oe}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:re}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Z})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,fill:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+ae.length+"/"+i.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:J})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}return C}()},56441:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TachyonArray=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.records,l=f===void 0?[]:f,d=u.explosion_target,m=u.toxins_tech,i=u.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:m}),(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 h(){return c("print_logs")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function h(){return c("delete_logs")}return h}()})]})]})}),l.length?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),k=r.TachyonArrayContent=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.records,l=f===void 0?[]:f;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function m(){return c("delete_record",{index:d.index})}return m}()})})]},d.index)})]})})})})}return y}()},1754:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Tank=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u;return c.has_mask?u=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.connected?"check":"times",content:c.connected?"Internals On":"Internals Off",selected:c.connected,onClick:function(){function f(){return C("internals")}return f}()})}):u=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:300,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:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:c.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:c.ReleasePressure===c.minReleasePressure,tooltip:"Min",onClick:function(){function f(){return C("pressure",{pressure:"min"})}return f}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(c.releasePressure),width:"65px",unit:"kPa",minValue:c.minReleasePressure,maxValue:c.maxReleasePressure,onChange:function(){function f(l,d){return C("pressure",{pressure:d})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:c.ReleasePressure===c.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return C("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:c.ReleasePressure===c.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return C("pressure",{pressure:"reset"})}return f}()})]}),u]})})})})}return k}()},7579:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TankDispenser=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.o_tanks,f=c.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:100,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Oxygen Tank ("+u+")",disabled:u===0,icon:"arrow-circle-down",onClick:function(){function l(){return C("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Plasma Tank ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function l(){return C("plasma")}return l}()})})]})})}return k}()},16136:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsCore=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.ion,i=(0,a.useLocalState)(u,"tabIndex",0),h=i[0],V=i[1],v=function(){function s(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m===1&&(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===0,onClick:function(){function s(){return V(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function s(){return V(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===2,onClick:function(){function s(){return V(2)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),v(h)]})})}return C}(),k=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.active,i=d.sectors_available,h=d.nttc_toggle_jobs,V=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,s=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,N=d.nttc_setting_language,x=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:m?"On":"Off",selected:m,icon:"power-off",onClick:function(){function B(){return l("toggle_active")}return B}()})}),(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:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_jobs")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"On":"Off",selected:V,icon:"clipboard-list",onClick:function(){function B(){return l("nttc_toggle_job_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_name_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"volume-up",onClick:function(){function B(){return l("nttc_toggle_command_bold")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function B(){return l("nttc_job_indicator_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"globe",onClick:function(){function B(){return l("nttc_setting_language")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:x||"Unset",selected:x,icon:"server",onClick:function(){function B(){return l("network_id")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function B(){return l("import")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function B(){return l("export")}return B}()})]})],4)},S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.link_password,i=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:m||"Unset",selected:m,icon:"lock",onClick:function(){function h(){return l("change_password")}return h}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),i.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function V(){return l("unlink",{addr:h.addr})}return V}()})})]},h.addr)})]})]})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function 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"})]}),m.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 h(){return l("remove_filter",{user:i})}return h}()})})]},i)})]})})}},88046:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsRelay=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.linked,d=f.active,m=f.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function i(){return u("toggle_active")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:m||"Unset",selected:m,icon:"server",onClick:function(){function i(){return u("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,k):(0,e.createComponentVNode)(2,y)]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.linked_core_id,d=f.linked_core_addr,m=f.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:m?"Yes":"No",icon:m?"eye-slash":"eye",selected:m,onClick:function(){function i(){return u("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 u("unlink")}return i}()})})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function m(){return u("link",{addr:d.addr})}return m}()})})]},d.addr)})]})})}},20802:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(79646),k=r.Teleporter=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.targetsTeleport?u.targetsTeleport:{},l=0,d=1,m=2,i=u.calibrated,h=u.calibrating,V=u.powerstation,v=u.regime,s=u.teleporterhub,g=u.target,N=u.locked,x=u.accuracy;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(!V||!s)&&(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[s,!V&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),V&&!s&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),V&&s&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Regime",children:[(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to another teleport hub. ",color:v===d?"good":null,onClick:function(){function B(){return c("setregime",{regime:d})}return B}(),children:"Gate"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"One-way teleport. ",color:v===l?"good":null,onClick:function(){function B(){return c("setregime",{regime:l})}return B}(),children:"Teleporter"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:v===m?"good":null,disabled:!N,onClick:function(){function B(){return c("setregime",{regime:m})}return B}(),children:"GPS"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleport target",children:[v===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(f),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return c("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),v===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(f),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return c("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),v===m&&(0,e.createComponentVNode)(2,t.Box,{children:g})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibration",children:[g!=="None"&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,p.GridColumn,{size:"2",children:h&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||(i||x>=3)&&(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,p.GridColumn,{size:"3",children:(0,e.createComponentVNode)(2,t.Box,{class:"ml-1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!!(i||h),onClick:function(){function B(){return c("calibrate")}return B}()})})})]}),g==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(N&&V&&s&&v===m)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-around",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 c("load")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function B(){return c("eject")}return B}()})]})})]})})}return y}()},24410:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),p=n(92986),k=n(36036),y=n(98595),S=r.sanitizeMultiline=function(){function u(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return u}(),b=r.removeAllSkiplines=function(){function u(f){return f.replace(/[\r\n]+/,"")}return u}(),C=r.TextInputModal=function(){function u(f,l){var d=(0,o.useBackend)(l),m=d.act,i=d.data,h=i.max_length,V=i.message,v=V===void 0?"":V,s=i.multiline,g=i.placeholder,N=i.timeout,x=i.title,B=(0,o.useLocalState)(l,"input",g||""),L=B[0],T=B[1],A=function(){function O(M){if(M!==L){var P=s?S(M):b(M);T(P)}}return O}(),E=s||L.length>=40,w=130+(v.length>40?Math.ceil(v.length/3):0)+(E?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:x,width:325,height:w,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function O(M){var P=window.event?M.which:M.keyCode;P===p.KEY_ENTER&&(!E||!M.shiftKey)&&m("submit",{entry:L}),P===p.KEY_ESCAPE&&m("cancel")}return O}(),children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{input:L,onType:A})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+h})})]})})})]})}return u}(),c=function(f,l){var d=(0,o.useBackend)(l),m=d.act,i=d.data,h=i.max_length,V=i.multiline,v=f.input,s=f.onType,g=V||v.length>=40;return(0,e.createComponentVNode)(2,k.TextArea,{autoFocus:!0,autoSelect:!0,height:V||v.length>=40?"100%":"1.8rem",maxLength:h,onEscape:function(){function N(){return m("cancel")}return N}(),onEnter:function(){function N(x){g&&x.shiftKey||(x.preventDefault(),m("submit",{entry:v}))}return N}(),onInput:function(){function N(x,B){return s(B)}return N}(),placeholder:"\u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0447\u0442\u043E-\u043D\u0438\u0431\u0443\u0434\u044C...",value:v})}},69566:function(I,r,n){"use strict";r.__esModule=!0,r.ThiefKit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ThiefKit=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.uses,f=c.possible_uses,l=c.multi_uses,d=c.kits,m=c.choosen_kits;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:900,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0431\u043E\u0440 \u0413\u0438\u043B\u044C\u0434\u0438\u0438 \u0412\u043E\u0440\u043E\u0432:",children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:[(0,e.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044F \u043A\u043E\u0440\u043E\u0431\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043B\u0435\u0436\u0438\u0442 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0433\u0438\u043B\u044C\u0434\u0438\u0438 \u0432\u043E\u0440\u043E\u0432.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,"\u041D\u0430\u0431\u043E\u0440 \u0432\u043E\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043D\u0433\u0435\u0440\u0430. \u041D\u0435\u043B\u044C\u0437\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0447\u0442\u043E \u0432 \u043D\u0451\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u0430\u0433\u043B\u044F\u043D\u0435\u0448\u044C \u0432\u043D\u0443\u0442\u0440\u044C.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"p",null,(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043A\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u043D\u0451\u043C \u043B\u0435\u0436\u0438\u0442?:",16),2),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E \u043D\u0430\u0431\u043E\u0440\u043E\u0432:"),(0,e.createComponentVNode)(2,t.Box,{as:"span",color:u<=0?"good":u=f,onClick:function(){function i(){return C("randomKit")}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d&&d.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,buttons:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",disabled:i.was_taken||u>=f,onClick:function(){function h(){return C("takeKit",{item:i.type})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",disabled:!i.was_taken,onClick:function(){function h(){return C("undoKit",{item:i.type})}return h}()})]}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:i.desc})},i.type)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043D\u0430\u0431\u043E\u0440\u044B:",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m&&m.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",onClick:function(){function h(){return C("undoKit",{item:i.type})}return h}()}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:" "})},i.type)})})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",color:u0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),x.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers over]",16):"",x.contractor.accepted?(0,e.createVNode)(1,"i",null,"\xA0(Accepted)",16):!x.contractor.is_admin_forced&&x.contractor.available_offers<=0?"":(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:x.contractor.time_left,format:function(){function M(P,F){return" ("+F+")"}return M}(),bold:!0})]},"BecomeContractor"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:C(T)})]})})]})}return V}(),u=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.crystals,L=x.cats,T=(0,k.useLocalState)(s,"uplinkItems",L[0].items),A=T[0],E=T[1],w=(0,k.useLocalState)(s,"searchText",""),O=w[0],M=w[1],P=function(K,$){$===void 0&&($="");var ne=(0,o.createSearch)($,function(Y){var le=Y.hijack_only===1?"|hijack":"";return Y.name+"|"+Y.desc+"|"+Y.cost+"tc"+le});return(0,t.flow)([(0,a.filter)(function(Y){return Y==null?void 0:Y.name}),$&&(0,a.filter)(ne),(0,a.sortBy)(function(Y){return Y==null?void 0:Y.name})])(K)},F=function(K){if(M(K),K==="")return E(L[0].items);E(P(L.map(function($){return $.items}).flat(),K))},R=(0,k.useLocalState)(s,"showDesc",1),U=R[0],j=R[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:U,onClick:function(){function W(){return j(!U)}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,$){F($)}return W}(),value:O})})})}),(0,e.createComponentVNode)(2,y.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:O!==""?!1:W.items===A,onClick:function(){function K(){E(W.items),M("")}return K}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:A.map(function(W){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:W,showDecription:U},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},f=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.cart,L=x.crystals,T=x.cart_price,A=(0,k.useLocalState)(s,"showDesc",0),E=A[0],w=A[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:E,onClick:function(){function O(){return w(!E)}return O}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function O(){return N("empty_cart")}return O}(),disabled:!B}),(0,e.createComponentVNode)(2,y.Button,{content:"Purchase Cart ("+T+"TC)",icon:"shopping-cart",onClick:function(){function O(){return N("purchase_cart")}return O}(),disabled:!B||T>L})],4),children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:B?B.map(function(O){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:O,showDecription:E,buttons:(0,e.createComponentVNode)(2,i,{i:O})})},(0,o.decodeHtmlEntities)(O.name))}):(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,l)]})},l=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.cats,L=x.lucky_numbers;return(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,y.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function T(){return N("shuffle_lucky_numbers")}return T}()}),children:(0,e.createComponentVNode)(2,y.Stack,{wrap:!0,children:L.map(function(T){return B[T.cat].items[T.item]}).filter(function(T){return T!=null}).map(function(T,A){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:T})},A)})})})})},d=function(v,s){var g=v.i,N=v.showDecription,x=N===void 0?1:N,B=v.buttons,L=B===void 0?(0,e.createComponentVNode)(2,m,{i:g}):B;return(0,e.createComponentVNode)(2,y.Section,{title:(0,o.decodeHtmlEntities)(g.name),showBottom:x,buttons:L,children:x?(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(g.desc)}):null})},m=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=v.i,L=x.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function T(){return N("add_to_cart",{item:B.obj_path})}return T}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,y.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 T(){return N("buyItem",{item:B.obj_path})}return T}(),disabled:B.cost>L})],4)},i=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=v.i,L=x.exploitable;return(0,e.createComponentVNode)(2,y.Stack,{children:[(0,e.createComponentVNode)(2,y.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function T(){return N("remove_from_cart",{item:B.obj_path})}return T}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return T}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,y.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function T(A,E){return N("set_cart_item_quantity",{item:B.obj_path,quantity:E})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,y.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},h=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.exploitable,L=(0,k.useLocalState)(s,"selectedRecord",B[0]),T=L[0],A=L[1],E=(0,k.useLocalState)(s,"searchText",""),w=E[0],O=E[1],M=function(R,U){U===void 0&&(U="");var j=(0,o.createSearch)(U,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),U&&(0,a.filter)(j),(0,a.sortBy)(function(W){return W.name})])(R)},P=M(B,w);return(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:"Exploitable Records",children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",fill:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,y.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function F(R,U){return O(U)}return F}()}),(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:P.map(function(F){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:F===T,onClick:function(){function R(){return A(F)}return R}(),children:F.name},F)})})]})}),(0,e.createComponentVNode)(2,y.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:T.name,scrollable:!0,children:(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Age",children:T.age}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Fingerprint",children:T.fingerprint}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Rank",children:T.rank}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Sex",children:T.sex}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Species",children:T.species}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Records",children:T.exploit_record})]})})})]})})};(0,b.modalRegisterBodyOverride)("become_contractor",function(V,v){var s,g,N,x,B=(0,k.useBackend)(v),L=B.data,T=L.contractor||{},A=T.time_left,E=!!(L!=null&&(s=L.contractor)!=null&&s.available),w=!!(L!=null&&(g=L.contractor)!=null&&g.affordable),O=!!(L!=null&&(N=L.contractor)!=null&&N.accepted),M=L.contractor||{},P=M.available_offers,F=!!(L!=null&&(x=L.contractor)!=null&&x.is_admin_forced);return(0,e.createComponentVNode)(2,y.Section,{height:"65%",level:"2",m:"-1rem",pb:"1rem",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Icon,{name:"suitcase"}),(0,e.createTextVNode)("\xA0 Contracting Opportunity")],4),children:[(0,e.createComponentVNode)(2,y.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,e.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,e.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer.",F?"":(0,e.createComponentVNode)(2,y.Box,{children:["Hurry up. You are not the only one who received this offer. Their number is limited. If other traitors accept all offers before you, you will not be able to accept one of them.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Available offers: "),P],0)]})]}),(0,e.createComponentVNode)(2,y.Button.Confirm,{disabled:!E||O,italic:!E,bold:E,icon:E&&!O&&"check",color:"good",content:O?"Accepted":E?["Accept Offer",(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:A,format:function(){function R(U,j){return" ("+j+")"}return R}()},"countdown")]:w?L.contractor.is_admin_forced?"Offer expired":L.contractor.available_offers>0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),L.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers are over]",16):"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function R(){return(0,b.modalAnswer)(v,V.id,1)}return R}()})]})})},80949:function(I,r,n){"use strict";r.__esModule=!0,r.UploadPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.UploadPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.selected_target,f=c.new_law,l=c.id,d=c.transmitting,m=c.hacked;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Silicon Law Upload",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Target",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!u,content:u||"No target selected",onClick:function(){function i(){return C("choose_silicon")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Law",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!f,content:f||"No module installed",onClick:function(){function i(){return C("insert_module")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{selected:!!l,content:l||(m?"$@!ERR0R!@#":"No ID card inserted"),onClick:function(){function i(){return C("authorization")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upload Laws",children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u||!f||(m?!1:!l),selected:!!d,content:d?"STOP UPLOAD":"START UPLOAD",onClick:function(){function i(){return C("change_laws")}return i}()})})]})})})})}return k}()},8946:function(I,r,n){"use strict";r.__esModule=!0,r.VampireSpecMenu=r.UmbrMenu=r.HemoMenu=r.GarMenu=r.DantMenu=r.BestMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VampireSpecMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=(0,a.useLocalState)(f,"activeTab","hemomancer"),i=m[0],h=m[1],V=function(){function v(){switch(i){case"hemomancer":return(0,e.createComponentVNode)(2,k,{act:d});case"umbrae":return(0,e.createComponentVNode)(2,y,{act:d});case"gargantua":return(0,e.createComponentVNode)(2,S,{act:d});case"dantalion":return(0,e.createComponentVNode)(2,b,{act:d});case"bestia":return(0,e.createComponentVNode)(2,C,{act:d});default:return null}}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:890,resizable:!0,theme:"ntos_spooky",children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function v(){return h("hemomancer")}return v}(),selected:i==="hemomancer"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function v(){return h("umbrae")}return v}(),selected:i==="umbrae"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function v(){return h("gargantua")}return v}(),selected:i==="gargantua"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function v(){return h("dantalion")}return v}(),selected:i==="dantalion"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function v(){return h("bestia")}return v}(),selected:i==="bestia"})]}),(0,e.createComponentVNode)(2,t.Divider),V()]})})}return c}(),k=r.HemoMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.hemomancer;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043C\u0430\u0433\u0438\u0438 \u043A\u0440\u043E\u0432\u0438 \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0435\u044E.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u043E\u0433\u0442\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u0443 \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u0445 \u043A\u043E\u0433\u0442\u0435\u0439, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0438\u0445 \u0431\u044B\u0441\u0442\u0440\u043E \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u044F \u0435\u0435 \u043A\u0440\u043E\u0432\u044C \u0438 \u0440\u0435\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044F \u0441\u0432\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0431\u0430\u0440\u044C\u0435\u0440",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u0441\u0442\u0435\u043D\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0449\u0443\u043F\u0430\u043B\u044C\u0446\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u044C \u0432\u0441\u0435\u0445 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 3x3.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u0432 \u043A\u0440\u043E\u0432\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043D\u0435\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0441 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u044E, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044F \u0432\u0441\u0435 \u043F\u0440\u0435\u043F\u044F\u0442\u0441\u0442\u0432\u0438\u044F, \u043A\u0440\u043E\u043C\u0435 \u0441\u0442\u0435\u043D \u0438 \u043A\u043E\u0441\u043C\u043E\u0441\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044F \u0437\u0430 \u0441\u043E\u0431\u043E\u0439 \u043A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0441\u043B\u0435\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0427\u0443\u0442\u044C\u0451 \u0445\u0438\u0449\u043D\u0438\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0447\u0443\u0432\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0433\u043E-\u0443\u0433\u043E\u0434\u043D\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0435\u043A\u0442\u043E\u0440\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0418\u0437\u0432\u0435\u0440\u0436\u0435\u043D\u0438\u0435 \u043A\u0440\u043E\u0432\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u043B\u0443\u0436\u0430\u043C\u0438 \u043A\u0440\u043E\u0432\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0447\u0435\u0442\u044B\u0440\u0435\u0445 \u043C\u0435\u0442\u0440\u043E\u0432, \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0438\u0445 \u0432 \u0448\u0438\u043F\u044B, \u043F\u0440\u043E\u0442\u044B\u043A\u0430\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u043D\u0430 \u043D\u0438\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u043E\u0431\u0440\u044F\u0434",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432, \u0431\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u0447\u0435\u043C\u0443 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u043B\u0435\u0447\u0438\u0442\u044C\u0441\u044F \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function h(){return d("hemomancer")}return h}()})]})}return c}(),y=r.UmbrMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.umbrae;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043C\u0431\u0440\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0437\u0430\u0441\u0430\u0434\u0430\u0445 \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0438.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043A\u0440\u043E\u0432 \u0442\u044C\u043C\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0431\u044B\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0432 \u0442\u0435\u043C\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043A\u0430\u0445 \u0441\u0442\u0430\u043D\u0446\u0438\u0438. \u0422\u0430\u043A\u0436\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043B\u044E\u0431\u043E\u0439 \u0443\u0440\u043E\u043D \u043E\u0442 \u043E\u0436\u043E\u0433\u043E\u0432 \u043F\u043E \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u043E\u0439 \u044F\u043A\u043E\u0440\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043D\u0430 \u043C\u0435\u0441\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043C\u0430\u044F\u043A \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0430\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043A \u043C\u0430\u044F\u043A\u0443. \u0415\u0441\u043B\u0438 \u0441\u043F\u0443\u0441\u0442\u044F \u0434\u0432\u0435 \u043C\u0438\u043D\u0443\u0442\u044B \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043D\u0435 \u0431\u044B\u043B\u0430 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043D\u043E\u0432\u0430, \u0442\u043E \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B \u043A \u043C\u0430\u044F\u043A\u0443. \u041C\u0430\u044F\u043A \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0441 \u043C\u0435\u0436\u0434\u0443 \u0441\u0435\u043A\u0442\u043E\u0440\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u0430\u044F \u043B\u043E\u0432\u0443\u0448\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0442\u0440\u0430\u0432\u043C\u0438\u0440\u0443\u044E\u0449\u0438\u0435 \u0438 \u043E\u0441\u043B\u0435\u043F\u043B\u044F\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u0432 \u043D\u0438\u0445. \u041B\u043E\u0432\u0443\u0448\u043A\u0443 \u0442\u044F\u0436\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u0442\u0438\u0442\u044C, \u043D\u043E \u043E\u043D\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u043F\u043E\u0434 \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u044F\u0440\u043A\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0428\u0430\u0433 \u0432 \u0442\u0435\u043D\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043B\u044E\u0431\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0430\u0441\u0438\u0442\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0438\u0437 \u0441\u0442\u0440\u043E\u044F \u043B\u044E\u0431\u044B\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0441\u0432\u0435\u0442\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0433\u043B\u043E\u0443\u0448\u0440\u0443\u043C\u044B.")],0),(0,e.createVNode)(1,"b",null,"\u0411\u043E\u0439 \u0441 \u0442\u0435\u043D\u044C\u044E",16),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),", \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0442\u0435\u043D\u0435\u0432\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u043A\u0430 \u0432\u044B \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0435\u0441\u044C \u0440\u044F\u0434\u043E\u043C.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0412\u0435\u0447\u043D\u0430\u044F \u0442\u044C\u043C\u0430",16),(0,e.createTextVNode)(": \u043F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u044B \u0440\u0430\u0441\u0441\u0442\u0432\u043E\u0440\u044F\u0435\u0442\u0435\u0441\u044C \u0432 \u043D\u0435\u0447\u0435\u0441\u0442\u0438\u0432\u043E\u0439 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043D \u043B\u0438\u0448\u044C \u0441\u0438\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430. \u0425\u043E\u043B\u043E\u0434, \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0435\u0439 \u0432\u0430\u0441 \u0442\u044C\u043C\u044B \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043C\u043E\u0440\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u0441\u0435\u0445 \u0436\u0438\u0432\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438.")],4),(0,e.createVNode)(1,"p",null,"\u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 X-ray \u0437\u0440\u0435\u043D\u0438\u0435",16),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function h(){return d("umbrae")}return h}()})]})}return c}(),S=r.GarMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.gargantua;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u043E\u0439\u043A\u043E\u0441\u0442\u0438 \u0438 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u0435.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0435\u0442 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0442\u0435\u043C \u0441\u0438\u043B\u044C\u043D\u0435\u0435, \u0447\u0435\u043C \u0431\u043E\u043B\u044C\u0448\u0435 \u0443\u0440\u043E\u043D\u0430 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 150"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0435 \u0441\u043E\u043F\u0440\u043E\u0442\u0438\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u044E, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u0438 \u0441\u0442\u0430\u043C\u0438\u043D\u0430 \u0443\u0440\u043E\u043D\u0443. \u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u044F\u0442\u044C \u043F\u043E\u043A\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u0434\u0430\u0440\u043D\u0430\u044F \u0432\u043E\u043B\u043D\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0442\u0440\u044F\u0441\u0430\u0442\u044C \u0437\u0435\u043C\u043B\u044E \u043F\u043E\u0434 \u043D\u043E\u0433\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0433\u043B\u0443\u0448\u0438\u0442\u044C \u0438 \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0434\u0440\u0430\u0439\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0434\u0430\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0431\u0430\u0432\u043A\u0443 \u043A \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B II",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 400"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0443\u0440\u043E\u043D \u0432 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u044E \u043D\u0430 10.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041D\u0435\u0443\u0434\u0435\u0440\u0436\u0438\u043C\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 600"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0434\u0432\u0435\u0440\u0438 \u043F\u0440\u0438 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u0434\u0430\u0436\u0435 \u043D\u0435 \u0438\u043C\u0435\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. \u0412\u0430\u0441 \u0442\u0430\u043A\u0436\u0435 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0442\u0430\u0449\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0414\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0445\u0432\u0430\u0442\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 800"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A \u0446\u0435\u043B\u0438 \u0434\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0440\u0443\u043A\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u0438\u043D\u0442\u0435\u043D\u0442\u0430, disarm/grab, \u0432\u044B \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0435\u0442\u0435/\u043F\u0440\u0438\u0442\u044F\u043D\u0435\u0442\u0435 \u0446\u0435\u043B\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0435\u043B\u0430\u0442\u044C \u0440\u044B\u0432\u043E\u043A \u0432 \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u044F \u0438 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u044F \u0432\u0441\u0435, \u0432\u043E \u0447\u0442\u043E \u0432\u0440\u0435\u0436\u0435\u0442\u0435\u0441\u044C.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function h(){return d("gargantua")}return h}()})]})}return c}(),b=r.DantMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.dantalion;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u0438 \u0438 \u0438\u043B\u043B\u044E\u0437\u0438\u044F\u0445.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u0447\u0438\u043D\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0434\u0447\u0438\u043D\u044F\u0435\u0442 \u0446\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u0432\u043E\u043B\u0435, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0442 \u0432\u0430\u0441 \u043D\u0435 \u0448\u0435\u0432\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u044F. \u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u043D\u043E\u0441\u0438\u0442\u0435\u043B\u0435\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442\u0430 \u0437\u0430\u0449\u0438\u0442\u044B \u0440\u0430\u0437\u0443\u043C\u0430 \u0438 \u043D\u0430 \u0443\u0436\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u043D\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u0430 \u0437\u0430 \u0440\u0430\u0437. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(","),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 4 \u0440\u0430\u0431\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043B\u0435\u043F\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0441\u0432\u044F\u0437\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0440\u0430\u0437\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044C \u0441 \u0432\u0430\u0448\u0438\u043C\u0438 \u0440\u0430\u0431\u0430\u043C\u0438, \u0432\u0430\u0448\u0438 \u0440\u0430\u0431\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043E\u0431\u043C\u0435\u043D",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u043C\u0435\u0441\u0442\u0430\u043C\u0438 \u0441 \u0446\u0435\u043B\u044C\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u043C\u0438\u0440\u043E\u0442\u0432\u043E\u0440\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0443\u0441\u043F\u043E\u043A\u043E\u0438\u0442\u044C \u0446\u0435\u043B\u044C, \u043E\u0442\u043E\u0431\u0440\u0430\u0432 \u0443 \u043D\u0435\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u0434 \u043A\u043E\u043C\u0443-\u043B\u0438\u0431\u043E \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 40 \u0441\u0435\u043A\u0443\u043D\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u043C\u0430\u043D\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043D\u0435\u043D\u0430\u0434\u043E\u043B\u0433\u043E \u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043A\u043E\u043F\u0438\u044E \u043E\u0431\u043C\u0430\u043D\u043A\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0421\u043F\u043B\u043E\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u043D\u0438\u043C\u0430\u0435\u0442 \u0441 \u0431\u043B\u0438\u0437\u0441\u0442\u043E\u044F\u0449\u0438\u0445 \u0440\u0430\u0431\u043E\u0432 \u043B\u044E\u0431\u044B\u0435 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0443\u0437\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0441\u043E \u0432\u0441\u0435\u043C\u0438 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u0440\u0430\u0431\u0430\u043C\u0438, \u0435\u0441\u043B\u0438 \u043A\u0442\u043E-\u043B\u0438\u0431\u043E \u0432 \u0441\u0432\u044F\u0437\u043A\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043E\u043D, \u0442\u043E \u043E\u043D \u0434\u0435\u043B\u0438\u0442\u0441\u044F \u043C\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043C\u0438 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u043C\u0438. \u0415\u0441\u043B\u0438 \u0440\u0430\u0431 \u0443\u0445\u043E\u0434\u0438\u0442 \u0434\u0430\u043B\u0435\u043A\u043E \u043E\u0442 \u0432\u0430\u0441, \u0442\u043E \u0432\u044B \u0442\u0435\u0440\u044F\u0435\u0442\u0435 \u0441\u0432\u044F\u0437\u044C \u0441 \u043D\u0438\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0430\u0441\u0441\u043E\u0432\u0430\u044F \u0438\u0441\u0442\u0435\u0440\u0438\u044F",16),(0,e.createTextVNode)(": \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043C\u0430\u0441\u0441\u043E\u0432\u0443\u044E \u0433\u0430\u043B\u043B\u044E\u0446\u0438\u043D\u0430\u0446\u0438\u044E, \u043E\u0441\u043B\u0435\u043F\u0438\u0432 \u0432\u0441\u0435\u0445 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043C \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function h(){return d("dantalion")}return h}()})]})}return c}(),C=r.BestMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.bestia;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0411\u0435\u0441\u0442\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0438 \u0434\u043E\u0431\u044B\u0447\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0440\u043E\u0444\u0435\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0442\u0440\u043E\u0444\u0435\u0435\u0432, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u0441\u0435 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B, \u0447\u0442\u043E \u043E\u043D\u0438 \u0434\u0430\u044E\u0442.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0432\u0434\u043E\u0431\u0430\u0432\u043E\u043A \u043A \u043A\u0440\u043E\u0432\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043E\u0440\u0433\u0430\u043D\u044B \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0438\u0445 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0435\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u043F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0439",16),(0,e.createTextVNode)(": \u0437\u0430 \u0440\u0430\u0437 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0433\u043B\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u043E\u0440\u0433\u0430\u043D. \u041F\u0440\u0435\u0434\u0435\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 \u0442\u0440\u0438 \u043E\u0440\u0433\u0430\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0417\u0430\u0440\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u0444\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432 \u0441 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0434\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u0438, \u0437\u0430\u0440\u0430\u0436\u0430\u044F \u0438\u0445 \u043C\u043E\u0433\u0438\u043B\u044C\u043D\u043E\u0439 \u043B\u0438\u0445\u043E\u0440\u0430\u0434\u043A\u043E\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0432\u0430\u043C\u0438 \u0438 \u0446\u0435\u043B\u044C\u044E \u0438\u043B\u0438 \u0441\u0431\u0435\u0436\u0430\u0442\u044C \u0438\u0437 \u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0434\u043E\u0431\u044B\u0447\u0443",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u0436\u0435\u0440\u0442\u0432\u0443, \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0432 \u0435\u0435 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0435 \u043F\u0443\u0442\u0430\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0433\u0430\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u041B\u0435\u0442\u0443\u0447\u0438\u0435 \u043C\u044B\u0448\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u043C\u0438 \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u043B\u0435\u0442\u0443\u0447\u0438\u043C\u0438 \u043C\u044B\u0448\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0410\u043D\u0430\u0431\u0438\u043E\u0437",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0434\u0440\u0435\u0432\u043D\u044F\u044F \u0442\u0435\u0445\u043D\u0438\u043A\u0430, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0430\u044F \u0432\u0430\u043C \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u043D\u0430 \u0432 \u0433\u0440\u043E\u0431\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u0437\u044B\u0432 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439 \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0431\u043E\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u0413\u043E\u043D\u0447\u0430\u044F",16),(0,e.createTextVNode)(": \u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u0443\u044E \u0444\u043E\u0440\u043C\u0443 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0432\u043B\u0430\u0434\u0435\u0432\u0448\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u0434\u0443\u0448\u043E\u0439.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function h(){return d("bestia")}return h}()})]})}return c}()},45770:function(I,r,n){"use strict";r.__esModule=!0,r.VampireTrophiesStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(V){return(Math.round(V*10)/10).toFixed(1)},k=r.VampireTrophiesStatus=function(){function h(V,v){return(0,e.createComponentVNode)(2,o.Window,{theme:"ntos_spooky",width:700,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,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)]})})})}return h}(),y=function(V,v){var s=(0,a.useBackend)(v),g=s.act,N=s.data,x=N.hearts,B=N.lungs,L=N.livers,T=N.kidneys,A=N.eyes,E=N.ears,w=N.trophies_max_gen,O=N.trophies_max_crit,M=N.organs_icon,P=N.icon_hearts,F=N.icon_lungs,R=N.icon_livers,U=N.icon_kidneys,j=N.icon_eyes,W=N.icon_ears;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0422\u0440\u043E\u0444\u0435\u0438",color:"red",textAlign:"center",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,width:"16.6%",children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:M,icon_state:P,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,textColor:xv;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{verticalAlign:"middle",icon:m,icon_state:i,fallback:(0,e.createComponentVNode)(2,o.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:d<=0&&"bad"||d<=l.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:T,icon:L,content:B,textAlign:"left",onClick:function(){function A(){return u("vend",{inum:l.inum})}return A}()})})]})},y=r.Vending=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.user,d=f.guestNotice,m=f.userMoney,i=f.chargesMoney,h=f.product_records,V=h===void 0?[]:h,v=f.coin_records,s=v===void 0?[]:v,g=f.hidden_records,N=g===void 0?[]:g,x=f.stock,B=f.vend_ready,L=f.coin_name,T=f.inserted_item_name,A=f.panel_open,E=f.speaker,w=f.imagelist,O;return O=[].concat(V,s),f.extended_inventory&&(O=[].concat(O,N)),O=O.filter(function(M){return!!M}),(0,e.createComponentVNode)(2,p.Window,{width:470,height:100+Math.min(V.length*38,500),title:"Vending Machine",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[!!i&&(0,e.createComponentVNode)(2,o.Section,{title:"User",children:l&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,l.name,0),","," ",(0,e.createVNode)(1,"b",null,l.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[m,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:d})}),!!L&&(0,e.createComponentVNode)(2,o.Section,{title:"Coin",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){function M(){return u("remove_coin",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:L})}),!!T&&(0,e.createComponentVNode)(2,o.Section,{title:"Item",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){function M(){return u("eject_item",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:T})}),!!A&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"check":"volume-mute",selected:E,content:"Speaker",textAlign:"left",onClick:function(){function M(){return u("toggle_voice",{})}return M}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:O.map(function(M){return(0,e.createComponentVNode)(2,k,{product:M,productStock:x[M.name],productIcon:M.icon,productIconState:M.icon_state},M.name)})})})})]})})})}return S}()},87710:function(I,r,n){"use strict";r.__esModule=!0,r.VethPlayerPanel=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=n(98595),k=n(25328),y=r.VethPlayerPanel=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=(0,a.sortBy)(function(N){return N.name})(f.Data||[]),d=(0,t.useLocalState)(C,"searchText",""),m=d[0],i=d[1],h=(0,t.useLocalState)(C,"selectedPlayerCkey",""),V=h[0],v=h[1],s=(0,k.createSearch)(m,function(N){var x,B,L;return((x=N.name)==null?void 0:x.toLowerCase())+"|"+((B=N.job)==null?void 0:B.toLowerCase())+"|"+((L=N.ckey)==null?void 0:L.toLowerCase())}),g=function(){function N(x,B){B!=null&&B.ckey&&v(B.ckey),u(x,Object.assign({},B,{selectedPlayerCkey:(B==null?void 0:B.ckey)||V}))}return N}();return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,p.Window,{title:"Player Panel Veth",width:1100,height:640,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"refresh",content:"Refresh",onClick:function(){function N(){return g("refresh")}return N}()})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Game Panel",onClick:function(){function N(){return g("gamePanel")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Fax Panel",onClick:function(){function N(){return g("faxPanel")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Check Antags",onClick:function(){function N(){return g("checkAntags")}return N}()})]}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Create Command Report",onClick:function(){function N(){return g("createCommandReport")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Toggle Adv Admin Interact",onClick:function(){function N(){return g("adminaiinteract")}return N}()})]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Search Players",children:(0,e.createComponentVNode)(2,o.TextArea,{autoFocus:!0,placeholder:"Search by name, job, or ckey",value:m,onInput:function(){function N(x,B){return i(B)}return N}(),rows:1,height:"2rem"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Players",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:"Ckey"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Char Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Job"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Antagonist"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Last IP"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Actions"})]}),l.filter(s).map(function(N){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.ckey}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:N.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.job}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.is_antagonist?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Yes"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"No"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.last_ip}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("sendPrivateMessage",{ckey:N.ckey})}return x}(),content:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("follow",{ckey:N.ckey})}return x}(),content:"Follow"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("smite",{ckey:N.ckey})}return x}(),content:"Smite"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("openAdditionalPanel",{ckey:N.ckey})}return x}(),content:"PP",icon:"external-link"}),(0,e.createComponentVNode)(2,o.Button,{icon:"book",content:"Logs",onClick:function(){function x(){return u("logs",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"clipboard",content:"Notes",onClick:function(){function x(){return u("notes",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{content:"VV",onClick:function(){function x(){return u("vv",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{content:"TP",onClick:function(){function x(){return u("tp",{selectedPlayerCkey:N.ckey})}return x}()})]})]},N.ckey)})]})})]})})})}return S}()},68971:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VolumeMixer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+u.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:u.map(function(f,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:f.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:"\u0432\u044B\u043A\u043B. \u0437\u0432\u0443\u043A",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:f.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:f.volume,onChange:function(){function d(m,i){return C("volume",{channel:f.num,volume:i})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"\u0432\u043A\u043B. \u0437\u0432\u0443\u043A",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:f.num,volume:100})}return d}()})})})]})})],4,f.num)})})})})}return k}()},2510:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VotePanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.remaining,f=c.question,l=c.choices,d=c.user_vote,m=c.counts,i=c.show_counts,h=c.show_cancel;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:f,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:["Time remaining: ",Math.round(u/10),"s"]}),l.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:V+(i?" ("+(m[V]||0)+")":""),onClick:function(){function v(){return C("vote",{target:V})}return v}(),selected:V===d})},V)}),!!h&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Cancel",onClick:function(){function V(){return C("cancel")}return V}()})},"Cancel")]})})})}return k}()},30138:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Wires=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.wires||[],f=c.status||[],l=56+u.length*23+(status?0:15+f.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:u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function m(){return C("cut",{wire:d.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function m(){return C("pulse",{wire:d.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function m(){return C("attach",{wire:d.color})}return m}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return k}()},30995:function(I,r,n){"use strict";r.__esModule=!0,r.Workshop=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(73379),k=n(98595),y=["title","items"];function S(l,d){if(l==null)return{};var m={};for(var i in l)if({}.hasOwnProperty.call(l,i)){if(d.includes(i))continue;m[i]=l[i]}return m}var b=function(d,m,i){return d.requirements===null?!0:!(d.requirements.brass>m||d.requirements.power>i)},C=r.Workshop=function(){function l(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.brass_amount,s=V.power_amount,g=V.building,N=V.buildStart,x=V.buildEnd,B=V.worldTime,L=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),T=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),A={float:"left",width:"60%"},E={float:"right",width:"39%"};return(0,e.createComponentVNode)(2,k.Window,{width:400,height:500,theme:"clockwork",children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Section,{title:"Materials",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Brass",children:[L,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function w(){return h("dispense")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:T})]}),g&&(0,e.createComponentVNode)(2,o.ProgressBar.Countdown,{mt:2,start:N,current:B,end:x,bold:!0,children:["Building ",g,"\xA0(",(0,e.createComponentVNode)(2,p.Countdown,{current:B,timeLeft:x-B,format:function(){function w(O,M){return M.substr(3)}return w}()}),")"]})]})]}),(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,u)})})]})})})}return l}(),c=function(d,m){var i=(0,t.useLocalState)(m,"search",""),h=i[0],V=i[1],v=(0,t.useLocalState)(m,"sort",""),s=v[0],g=v[1],N=(0,t.useLocalState)(m,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return V(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"19px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function L(){return B(!x)}return L}()})})]})})},u=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.items,s=(0,t.useLocalState)(m,"search",""),g=s[0],N=s[1],x=(0,t.useLocalState)(m,"sort","Alphabetical"),B=x[0],L=x[1],T=(0,t.useLocalState)(m,"descending",!1),A=T[0],E=T[1],w=(0,a.createSearch)(g,function(P){return P[0]}),O=!1,M=Object.entries(v).map(function(P,F){var R=Object.entries(P[1]).filter(w).map(function(U){return U[1].affordable=b(U[1],V.brass_amount,V.power_amount),U[1]});if(R.length!==0)return A&&(R=R.reverse()),O=!0,(0,e.createComponentVNode)(2,f,{title:P[0],items:R},P[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",children:(0,e.createComponentVNode)(2,o.Section,{children:O?M:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=d.title,s=d.items,g=S(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:s.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.DmIcon,{icon:N.icon,icon_state:N.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,o.Button,{icon:"hammer",disabled:!b(N,V.brass_amount,V.power_amount),onClick:function(){function x(){return h("make",{cat:v,name:N.name})}return x}(),children:(0,a.toTitleCase)((0,a.toTitleCase)(N.name))}),(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:N.requirements&&Object.keys(N.requirements).map(function(x){return(0,a.toTitleCase)(x)+": "+N.requirements[x]}).join(", ")||(0,e.createComponentVNode)(2,o.Box,{children:"No resources required."})}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},N.name)})})))}},49148:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function p(C,c){var u=typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(u)return(u=u.call(C)).next.bind(u);if(Array.isArray(C)||(u=k(C))||c&&C&&typeof C.length=="number"){u&&(C=u);var f=0;return function(){return f>=C.length?{done:!0}:{done:!1,value:C[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(C,c){if(C){if(typeof C=="string")return y(C,c);var u={}.toString.call(C).slice(8,-1);return u==="Object"&&C.constructor&&(u=C.constructor.name),u==="Map"||u==="Set"?Array.from(C):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?y(C,c):void 0}}function y(C,c){(c==null||c>C.length)&&(c=C.length);for(var u=0,f=Array(c);u0&&!N.includes(R.ref)&&!s.includes(R.ref),checked:s.includes(R.ref),onClick:function(){function U(){return x(R.ref)}return U}()},R.desc)})]})]})})}return C}()},26991:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=function(S,b,C,c,u){return Sc?"average":S>u?"bad":"good"},k=r.AtmosScan=function(){function y(S,b){var C=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(c){return c.val!=="0"||c.entry==="Pressure"||c.entry==="Temperature"})(C).map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.entry,color:p(c.val,c.bad_low,c.poor_low,c.poor_high,c.bad_high),children:[c.val,c.units]},c.entry)})})})}return y}()},85870:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" \u0435\u0434\u0438\u043D\u0438\u0446"+(y%10===1&&y%100!==11?"\u0430":"")+(y%10>1&&y%10<5&&!(y%100>11)&&!(y%100<15)?"\u044B":"")},p=r.BeakerContents=function(){function k(y){var S=y.beakerLoaded,b=y.beakerContents,C=b===void 0?[]:b,c=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})||C.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430."}),C.map(function(u,f){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(u.volume)," ",u.name]},u.name),!!c&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:c(u,f)})]},u.name)})]})}return k}();p.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},3939:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},p=r.modalOpen=function(){function C(c,u,f){var l=(0,a.useBackend)(c),d=l.act,m=l.data,i=Object.assign(m.modal?m.modal.args:{},f||{});d("modal_open",{id:u,arguments:JSON.stringify(i)})}return C}(),k=r.modalRegisterBodyOverride=function(){function C(c,u){o[c]=u}return C}(),y=r.modalAnswer=function(){function C(c,u,f,l){var d=(0,a.useBackend)(c),m=d.act,i=d.data;if(i.modal){var h=Object.assign(i.modal.args||{},l||{});m("modal_answer",{id:u,answer:f,arguments:JSON.stringify(h)})}}return C}(),S=r.modalClose=function(){function C(c,u){var f=(0,a.useBackend)(c),l=f.act;l("modal_close",{id:u})}return C}(),b=r.ComplexModal=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.data;if(l.modal){var d=l.modal,m=d.id,i=d.text,h=d.type,V,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",onClick:function(){function L(){return S(u)}return L}()}),s,g,N="auto";if(o[m])s=o[m](l.modal,u);else if(h==="input"){var x=l.modal.value;V=function(){function L(T){return y(u,m,x)}return L}(),s=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER \u0434\u043B\u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(T,A){x=A}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",color:"grey",onClick:function(){function L(){return S(u)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(u,m,x)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(h==="choice"){var B=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;s=(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(T){return y(u,m,T)}return L}()}),N="initial"}else h==="bento"?s=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(L,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return y(u,m,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},T)})}):h==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(u,m,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(u,m,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:c.maxWidth||window.innerWidth/2+"px",maxHeight:c.maxHeight||window.innerHeight/2+"px",onEnter:V,mx:"auto",overflowY:N,"padding-bottom":"5px",children:[i&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i}),o[m]&&v,s,g]})}}return C}()},41874:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),p=n(76910),k=p.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(f){return y.indexOf(f)!==-1?"green":"orange"},b=function(f){if(y.indexOf(f)!==-1)return!0},C=function(f){return f.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"})]}),f.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(l.real_rank),bold:b(l.real_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)})]})},c=r.CrewManifest=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i;if(f.data)i=f.data;else{var h=(0,a.useBackend)(l),V=h.data;i=V}var v=i,s=v.manifest,g=s.heads,N=s.pro,x=s.sec,B=s.eng,L=s.med,T=s.sci,A=s.ser,E=s.sup,w=s.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:C(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.procedure,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:C(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:C(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:C(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:C(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:C(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:C(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:C(E)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:C(w)})]})}return u}()},19203:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function p(k,y){var S=(0,t.useBackend)(y),b=S.act,C=S.data,c=C.large_buttons,u=C.swapped_buttons,f=k.input,l=k.message,d=k.disabled,m=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"\u041F\u0440\u0438\u043D\u044F\u0442\u044C",bold:!!c,fluid:!!c,onClick:function(){function h(){return b("submit",{entry:f})}return h}(),textAlign:"center",tooltip:c&&l,disabled:d,width:!c&&6}),i=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",bold:!!c,fluid:!!c,onClick:function(){function h(){return b("cancel")}return h}(),textAlign:"center",width:!c&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:u?"row-reverse":"row",justify:"space-around",children:[c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:u?.5:0,mr:u?0:.5,children:i}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),!c&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:u?.5:0,ml:u?0:.5,children:m}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:m})]})}return p}()},195:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=k.siliconUser,u=c===void 0?C.siliconUser:c,f=k.locked,l=f===void 0?C.locked:f,d=k.normallyLocked,m=d===void 0?C.normallyLocked:d,i=k.onLockStatusChange,h=i===void 0?function(){return b("lock")}:i,V=k.accessText,v=V===void 0?"ID-\u043A\u0430\u0440\u0442\u043E\u0439":V;return u?(0,e.createComponentVNode)(2,t.NoticeBox,{color:u&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430:"}),(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:m?"red":"green",icon:m?"lock":"unlock",content:m?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E",onClick:function(){function s(){h&&h(!l)}return s}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 ",v,", \u0447\u0442\u043E\u0431\u044B"," ",l?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]})}return p}()},51057:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function p(k){var y=k.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return p}()},321:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.loginState;if(C)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D \u0432\u0445\u043E\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0443 \u043A\u0430\u043A: ",c.name," (",c.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043C\u044B",color:"good",onClick:function(){function u(){return b("login_logout")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!c.id,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C ID",color:"good",onClick:function(){function u(){return b("login_eject")}return u}()})]})]})})}return p}()},5485:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.loginState,u=C.isAI,f=C.isRobot,l=C.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u043E\u0431\u0440\u043E \u043F\u043E\u0436\u0430\u043B\u043E\u0432\u0430\u0442\u044C",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"}),"\u0413\u043E\u0441\u0442\u044C"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.id?c.id:"----------",ml:"0.5rem",onClick:function(){function d(){return b("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!c.id,content:"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function d(){return b("login_login",{login_type:1})}return d}()}),!!u&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0418\u0418",onClick:function(){function d(){return b("login_login",{login_type:2})}return d}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u043A\u0438\u0431\u043E\u0440\u0433",onClick:function(){function d(){return b("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0426\u0435\u043D\u0442\u041A\u043E\u043C",onClick:function(){function d(){return b("login_login",{login_type:4})}return d}()})]})})})}return p}()},62411:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function p(k){var y=k.operating,S=k.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return p}();o.propTypes={operating:t.bool,name:t.string}},13545:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.Signaler=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=y.data,u=c.code,f=c.frequency,l=c.minFrequency,d=c.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:f/10,format:function(){function m(i){return(0,a.toFixed)(i,1)}return m}(),width:"80px",onDrag:function(){function m(i,h){return C("freq",{freq:h})}return m}()})}),(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:u,width:"80px",onDrag:function(){function m(i,h){return C("code",{code:h})}return m}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function m(){return C("signal")}return m}()})]})}return k}()},41984:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),p=n(88510),k=n(36036),y=r.SimpleRecords=function(){function C(c,u){var f=c.data.records;return(0,e.createComponentVNode)(2,k.Box,{children:f?(0,e.createComponentVNode)(2,b,{data:c.data,recordType:c.recordType}):(0,e.createComponentVNode)(2,S,{data:c.data})})}return C}(),S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=c.data.recordsList,m=(0,a.useLocalState)(u,"searchText",""),i=m[0],h=m[1],V=function(g,N){N===void 0&&(N="");var x=(0,t.createSearch)(N,function(B){return B.Name});return(0,o.flow)([(0,p.filter)(function(B){return B==null?void 0:B.Name}),N&&(0,p.filter)(x),(0,p.sortBy)(function(B){return B.Name})])(d)},v=V(d,i);return(0,e.createComponentVNode)(2,k.Box,{children:[(0,e.createComponentVNode)(2,k.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function s(g,N){return h(N)}return s}()}),v.map(function(s){return(0,e.createComponentVNode)(2,k.Box,{children:(0,e.createComponentVNode)(2,k.Button,{mb:.5,content:s.Name,icon:"user",onClick:function(){function g(){return l("Records",{target:s.uid})}return g}()})},s)})]})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=c.data.records,m=d.general,i=d.medical,h=d.security,V;switch(c.recordType){case"MED":V=(0,e.createComponentVNode)(2,k.Section,{level:2,title:"Medical Data",children:i?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Blood Type",children:i.blood_type}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Current Diseases",children:i.cdi}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:i.notes})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":V=(0,e.createComponentVNode)(2,k.Section,{level:2,title:"Security Data",children:h?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Criminal Status",children:h.criminal}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Minor Crimes",children:h.mi_crim}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:h.mi_crim_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Major Crimes",children:h.ma_crim}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:h.ma_crim_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:h.notes})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,k.Box,{children:[(0,e.createComponentVNode)(2,k.Section,{title:"General Data",children:m?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Name",children:m.name}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Sex",children:m.sex}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Species",children:m.species}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Age",children:m.age}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Rank",children:m.rank}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Fingerprint",children:m.fingerprint}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Physical Status",children:m.p_stat}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Mental Status",children:m.m_stat})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"General record lost!"})}),V]})}},22091:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function p(k,y){var S,b=(0,a.useBackend)(y),C=b.act,c=b.data,u=c.temp;if(u){var f=(S={},S[u.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:u.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function l(){return C("cleartemp")}return l}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})))}}return p}()},25443:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20342),p=n(98595),k=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],y=["good","average","bad","black","white"],S=[{title:"Button",component:function(){function s(){return C}return s}()},{title:"Box",component:function(){function s(){return c}return s}()},{title:"ProgressBar",component:function(){function s(){return u}return s}()},{title:"Tabs",component:function(){function s(){return f}return s}()},{title:"Tooltip",component:function(){function s(){return l}return s}()},{title:"Input / Control",component:function(){function s(){return d}return s}()},{title:"Collapsible",component:function(){function s(){return m}return s}()},{title:"BlockQuote",component:function(){function s(){return h}return s}()},{title:"ByondUi",component:function(){function s(){return V}return s}()},{title:"Themes",component:function(){function s(){return v}return s}()}],b=r.KitchenSink=function(){function s(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=(0,a.useLocalState)(N,"pageIndex",0),T=L[0],A=L[1],E=S[T].component();return(0,e.createComponentVNode)(2,p.Window,{theme:B,resizable:!0,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:S.map(function(w,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:O===T,onClick:function(){function M(){return A(O)}return M}(),children:w.title},O)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,E)})]})})})})}return s}(),C=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[y.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),k.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),k.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:N,children:N},N)})]})]})},c=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,t.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"right",children:"right"})]})},u=function(g,N){var x=(0,a.useLocalState)(N,"progress",.5),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:B,children:["Value: ",Number(B).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function T(){return L(B-.1)}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function T(){return L(B+.1)}return T}()})]})]})},f=function(g,N){var x=(0,a.useLocalState)(N,"tabIndex",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"tabVert"),A=T[0],E=T[1],w=(0,a.useLocalState)(N,"tabAlt"),O=w[0],M=w[1],P=[1,2,3,4,5];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:A,onClick:function(){function F(){return E(!A)}return F}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"altSelection",checked:O,onClick:function(){function F(){return M(!O)}return F}()})]}),(0,e.createComponentVNode)(2,t.Tabs,{vertical:A,children:P.map(function(F,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{altSelection:O,selected:R===B,onClick:function(){function U(){return L(R)}return U}(),children:["Tab #",F]},R)})})]})},l=function(g){var N=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:["Box (hover me).",(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text."})]}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:N.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:x,content:x},x)})})],4)},d=function(g,N){var x=(0,a.useLocalState)(N,"number",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"text","Sample text"),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onChange:function(){function w(O,M){return E(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onInput:function(){function w(O,M){return E(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onChange:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,o.DraggableControl,{value:B,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function w(O,M){return L(M)}return w}(),children:function(){function w(O){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:O.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:O.displayValue*4}),O.inputElement]})}return w}()})})})]})})},m=function(g){return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,i)})})},i=function(g){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))},h=function(g){return(0,e.createComponentVNode)(2,t.BlockQuote,{children:(0,e.createComponentVNode)(2,i)})},V=function(g,N){var x=(0,a.useBackend)(N),B=x.config;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Button",level:2,children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",parent:B.window,text:"Button"}})})})},v=function(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:B,onInput:function(){function T(A,E){return L(E)}return T}()})})})})}},96572:function(I,r,n){"use strict";r.__esModule=!0,r.pai_advsecrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_advsecrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options:",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Records",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},80818:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:C.app_data})}return p}()},23903:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.holder,f=c.dead,l=c.health,d=c.brute,m=c.oxy,i=c.tox,h=c.burn,V=c.reagents,v=c.addictions,s=c.fractures,g=c.internal_bleeding;return u?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(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:m})}),(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:h})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagents",children:V?V.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,children:(0,e.createComponentVNode)(2,t.Box,{color:N.overdosed?"bad":"good",children:[" ",N.volume," ",N.overdosed?"OVERDOSED":""," "]})},N.id)}):"Reagents not found."}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Addictions",children:v?v.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.addiction_name,children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[" Stage: ",N.stage," "]})},N.id)}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Addictions not found."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fractures",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"bad":"good",children:["Fractures ",s?"":"not"," detected."]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Bleedings",children:(0,e.createComponentVNode)(2,t.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return p}()},79592:function(I,r,n){"use strict";r.__esModule=!0,r.pai_camera_bug=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_camera_bug=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Monitor",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},64988:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.master,f=c.dna,l=c.prime,d=c.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:u?u+" ("+f+")":"None"}),u&&(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 m(){return b("getdna")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return p}()},13813:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.cable,f=c.machine,l=c.inprogress,d=c.progress,m=c.aborted,i;f?i=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):i=(0,e.createComponentVNode)(2,t.Button,{content:u?"Extended":"Retracted",color:u?"orange":null,onClick:function(){function V(){return b("cable")}return V}()});var h;return f&&(h=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.Box,{color:l?"green":"red",children:[" ","In progress: ",l?"Yes":"No"," "]}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function V(){return b("cancel")}return V}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function V(){return b("jack")}return V}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:i}),h]})}return p}()},43816:function(I,r,n){"use strict";r.__esModule=!0,r.pai_encoder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_encoder=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.radio_name,f=c.radio_rank;return(0,e.createComponentVNode)(2,t.Section,{title:"Your name and rank in radio channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Your current name and rank",children:[u,", ",f]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new name",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,m){return b("set_newname",{newname:m})}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new rank",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,m){return b("set_newrank",{newrank:m})}return l}()})})]})})}return p}()},88895:function(I,r,n){"use strict";r.__esModule=!0,r.pai_gps_module=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_gps_module=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"GPS menu",children:(0,e.createComponentVNode)(2,t.Button,{content:"Open GPS",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},66025:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.available_software,f=c.installed_software,l=c.installed_toggles,d=c.available_ram,m=c.emotions,i=c.current_emotion,h=[];return f.map(function(V){return h[V.key]=V.name}),l.map(function(V){return h[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[u.filter(function(V){return!h[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{color:V.syndi?"red":"default",content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>d,onClick:function(){function v(){return b("purchaseSoftware",{key:V.key})}return v}()},V.key)}),u.filter(function(V){return!h[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[f.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function v(){return b("startSoftware",{software_key:V.key})}return v}()},V.key)}),f.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function v(){return b("setToggle",{toggle_key:V.key})}return v}()},V.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:m.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{color:V.syndi?"red":"default",content:V.name,selected:V.id===i,onClick:function(){function v(){return b("setEmotion",{emotion:V.id})}return v}()},V.id)})})]})})}return p}()},2983:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:C.app_data})}return p}()},40758:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"MED"})}return p}()},98599:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data.active_convo;return c?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:C.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:C.app_data})}return p}()},50775:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),p=r.pai_radio=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.app_data,f=u.minFrequency,l=u.maxFrequency,d=u.frequency,m=u.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:f/10,maxValue:l/10,value:d/10,format:function(){function i(h){return(0,t.toFixed)(h,1)}return i}(),onChange:function(){function i(h,V){return C("freq",{freq:V})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function i(){return C("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 C("toggleBroadcast")}return i}(),selected:m,content:m?"Enabled":"Disabled"})})]})}return k}()},19873:function(I,r,n){"use strict";r.__esModule=!0,r.pai_sec_chem=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_sec_chem=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.holder,f=c.dead,l=c.health,d=c.current_chemicals,m=c.available_chemicals;return u?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(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:"Current Chemicals",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Chemicals",children:[m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{content:i.name+" ("+i.cost+")",tooltip:i.desc,disabled:i.cost>d,onClick:function(){function h(){return b("secreteChemicals",{key:i.key})}return h}()},i.key)}),m.length===0&&"No chemicals available!"]})]})}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return p}()},48623:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"SEC"})}return p}()},47297:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C.app_data})}return p}()},78532:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:b})}return p}()},40253:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.janitor,u=c.user_loc,f=c.mops,l=c.buckets,d=c.cleanbots,m=c.carts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[u.x,",",u.y]}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - ",i.status]},i)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - [",i.volume,"/",i.max_volume,"]"]},i)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - ",i.status]},i)})}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - [",i.volume,"/",i.max_volume,"]"]},i)})})]})}return p}()},58293:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.pda_main_menu=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=b.data,u=c.owner,f=c.ownjob,l=c.idInserted,d=c.categories,m=c.pai,i=c.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[u,", ",f]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function h(){return C("UpdateInfo")}return h}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(h){var V=c.apps[h];return!V||!V.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h,children:V.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in i?v.notify_icon:v.icon,iconSpin:v.uid in i,color:v.uid in i?"red":"transparent",content:v.name,onClick:function(){function s(){return C("StartProgram",{program:v.uid})}return s}()},v.uid)})},h)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function h(){return C("pai",{option:1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function h(){return C("pai",{option:2})}return h}()})]})})]})}return k}()},58059:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return p}()},18147:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"MED"})}return p}()},77595:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=r.pda_messenger=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=u.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,k,{data:l}):(0,e.createComponentVNode)(2,y,{data:l})}return b}(),k=r.ActiveConversation=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=l.convo_device,m=l.messages,i=l.active_convo,h=(0,t.useLocalState)(c,"clipboardMode",!1),V=h[0],v=h[1],s=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:V,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!V)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return f("Message",{target:i})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===i})(m).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{textAlign:g.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:g.sent?"#4d9121":"#cd7a0d",position:"absolute",left:g.sent?null:"0px",right:g.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:g.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:g.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:g.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[g.sent?"You:":"Them:"," ",g.message]})]},N)})});return V&&(s=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:V,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!V)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return f("Message",{target:i})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===i})(m).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{color:g.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[g.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:g.message})]},N)})})),(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 g(){return f("Clear",{option:"Convo"})}return g}()})})})}),s]})}return b}(),y=r.MessengerList=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=l.convopdas,m=l.pdas,i=l.charges,h=l.silent,V=l.toff,v=(0,t.useLocalState)(c,"searchTerm",""),s=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function N(){return f("Toggle Ringer")}return N}(),children:["Ringer: ",h?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:V?"bad":"green",icon:"power-off",onClick:function(){function N(){return f("Toggle Messenger")}return N}(),children:["Messenger: ",V?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function N(){return f("Ringtone")}return N}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function N(){return f("Clear",{option:"All"})}return N}(),children:"Delete All Conversations"})]})}),!V&&(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."]})})}),!d.length&&!m.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:s,onInput:function(){function N(x,B){g(B)}return N}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:s}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:m,msgAct:"Message",data:l,searchTerm:s})]})}return b}(),S=function(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=C.pdas,m=C.title,i=C.msgAct,h=C.searchTerm,V=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:m,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:m,children:d.filter(function(s){return s.Name.toLowerCase().includes(h.toLowerCase())}).map(function(s){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:s.Name,onClick:function(){function g(){return f(i,{target:s.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!V&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function N(){return f("Messenger Plugin",{plugin:g.uid,target:s.uid})}return N}()},g.uid)})})]},s.uid)})})}},24635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,p)})}return y}(),p=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function m(){return c("AccessBot",{uid:d.uid})}return m}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return c("Rescan")}return d}()})})]})},k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.botstatus,d=f.active,m=l.mode,i=l.loca,h=l.load,V=l.powr,v=l.dest,s=l.home,g=l.retn,N=l.pick,x;switch(m){case 0:x="Ready";break;case 1:x="Loading/Unloading";break;case 2:case 12:x="Navigating to delivery location";break;case 3:x="Navigating to Home";break;case 4:x="Waiting for clear path";break;case 5:case 6:x="Calculating navigation path";break;case 7:x="Unable to locate destination";break;default:x=m;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[m===-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:x}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[V,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function B(){return c("SetDest")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Unload)":"None",disabled:!h,onClick:function(){function B(){return c("Unload")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function B(){return c("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function B(){return c("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function B(){return c("Stop")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function B(){return c("Start")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function B(){return c("ReturnHome")}return B}()})]})]})]})}},97085:function(I,r,n){"use strict";r.__esModule=!0,r.pda_notes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_notes=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:c}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function u(){return b("Edit")}return u}(),content:"Edit"})]})}return p}()},57513:function(I,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(89005),a=n(72253),t=n(61631),o=r.pda_power=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return p}()},57635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_request_console=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25472),p=r.pda_request_console=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.screen,f=c.selected_console,l=c.consoles_data,d=c.app;return f?(0,e.createComponentVNode)(2,t.Box,{children:[(o.pages[u]||o.pages.default)(),u===0?(0,e.createComponentVNode)(2,t.Button,{content:"Back to console selection",icon:"arrow-left",onClick:function(){function m(){return C("back")}return m}()}):""]}):(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:l.map(function(m){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{color:m.priority===1?"green":m.priority===2?"red":"default",content:m.name,onClick:function(){function i(){return C("select",{name:m.name})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:m.muted?"volume-mute":"volume-up",onClick:function(){function i(){return C("mute",{name:m.name})}return i}()})]})})},m.name)})})})}return k}()},99808:function(I,r,n){"use strict";r.__esModule=!0,r.pda_secbot=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_secbot=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,p)})}return y}(),p=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function m(){return c("AccessBot",{uid:d.uid})}return m}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return c("Rescan")}return d}()})})]})},k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.botstatus,d=f.active,m=l.mode,i=l.loca,h;switch(m){case 0:h="Ready";break;case 1:h="Apprehending target";break;case 2:case 3:h="Arresting target";break;case 4:h="Starting patrol";break;case 5:h="On patrol";break;case 6:h="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[m===-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:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go",icon:"play",onClick:function(){function V(){return c("Go")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function V(){return c("Stop")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Summon",icon:"arrow-down",onClick:function(){function V(){return c("Summon")}return V}()})]})]})]})}},77168:function(I,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_security=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"SEC"})}return p}()},21773:function(I,r,n){"use strict";r.__esModule=!0,r.pda_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pda_signaler=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C})}return p}()},81857:function(I,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_status_display=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function u(){return b("Status",{statdisp:"blank"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function u(){return b("Status",{statdisp:"shuttle"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function u(){return b("Status",{statdisp:"message"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"redalert"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"default"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"lockdown"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"biohazard"})}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:c.message1+" (set)",icon:"pen",onClick:function(){function u(){return b("Status",{statdisp:"setmsg1"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:c.message2+" (set)",icon:"pen",onClick:function(){function u(){return b("Status",{statdisp:"setmsg2"})}return u}()})})]})})}return p}()},70287:function(I,r,n){"use strict";r.__esModule=!0,r.pda_supplyrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_supplyrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.supply,u=c.shuttle_loc,f=c.shuttle_time,l=c.shuttle_moving,d=c.approved,m=c.approved_count,i=c.requests,h=c.requests_count;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:l?(0,e.createComponentVNode)(2,t.Box,{children:["In transit ",f]}):(0,e.createComponentVNode)(2,t.Box,{children:u})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:h>0&&i.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:["#",V.Number,' - "',V.Name,'" for "',V.OrderedBy,'"']},V)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:m>0&&d.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:["#",V.Number,' - "',V.Name,'" for "',V.ApprovedBy,'"']},V)})})]})}return p}()},17617:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),p=["className","theme","children"],k=["className","scrollable","children"];/** + */var k=r.RequestManager=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.requests,i=(0,t.useLocalState)(u,"filteredTypes",Object.fromEntries(Object.entries(y).map(function(B){var L=B[0],T=B[1];return[L,!0]}))),h=i[0],V=i[1],v=(0,t.useLocalState)(u,"searchText"),s=v[0],g=v[1],N=m.filter(function(B){return h[B.req_type]});if(s){var x=s.toLowerCase();N=N.filter(function(B){return(0,a.decodeHtmlEntities)(B.message).toLowerCase().includes(x)||B.owner_name.toLowerCase().includes(x)})}return(0,e.createComponentVNode)(2,p.Window,{title:"Request Manager",width:575,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Requests",buttons:(0,e.createComponentVNode)(2,o.Input,{value:s,onInput:function(){function B(L,T){return g(T)}return B}(),placeholder:"Search...",mr:1}),children:N.map(function(B){return(0,e.createVNode)(1,"div","RequestManager__row",[(0,e.createVNode)(1,"div","RequestManager__rowContents",[(0,e.createVNode)(1,"h2","RequestManager__header",[(0,e.createVNode)(1,"span","RequestManager__headerText",[B.owner_name,B.owner===null&&" [DC]"],0),(0,e.createVNode)(1,"span","RequestManager__timestamp",B.timestamp_str,0)],4),(0,e.createVNode)(1,"div","RequestManager__message",[(0,e.createComponentVNode)(2,S,{requestType:B.req_type}),(0,a.decodeHtmlEntities)(B.message)],0)],4),B.owner!==null&&(0,e.createComponentVNode)(2,b,{request:B})],0,null,B.id)})})})})}return C}(),y={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},S=function(c){var u=c.requestType;return(0,e.createVNode)(1,"b","RequestManager__"+u,[y[u],(0,e.createTextVNode)(":")],0)},b=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f._,m=c.request;return(0,e.createVNode)(1,"div","RequestManager__controlsContainer",[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("pp",{id:m.id})}return i}(),children:"PP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("vv",{id:m.id})}return i}(),children:"VV"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("sm",{id:m.id})}return i}(),children:"SM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("tp",{id:m.id})}return i}(),children:"TP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("logs",{id:m.id})}return i}(),children:"LOGS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("bless",{id:m.id})}return i}(),children:"BLESS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("smite",{id:m.id})}return i}(),children:"SMITE"}),m.req_type!=="request_prayer"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("rply",{id:m.id})}return i}(),children:"RPLY"}),m.req_type==="request_ert"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("ertreply",{id:m.id})}return i}(),children:"ERTREPLY"}),m.req_type==="request_nuke"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("getcode",{id:m.id})}return i}(),children:"GETCODE"})],0)}},16475:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=n(13472),k=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=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 b(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,theme:f.ui_theme,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,p.RndNavbar),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,p.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,p.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,p.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,p.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:function(){function d(m){return m===k.LATHE||m===k.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,p.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,p.SettingsMenu)}return d}()}),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 b}()},93098:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.CurrentLevels=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=b.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),C.map(function(c,u){var f=c.name,l=c.level,d=c.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[u>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:f}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},f)})]})}return p}()},19192:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k="design",y="tech",S=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_data;return s?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:s.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.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 g(){return v("updt_tech")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function g(){return v("clear_tech")}return g}()}),(0,e.createComponentVNode)(2,c)]})]}):null},b=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_data;if(!s)return null;var g=s.name,N=s.lathe_types,x=s.materials,B=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g}),B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:B}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),x.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,L.name,0,{style:{"text-transform":"capitalize"}})," x ",L.amount]},L.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 L(){return v("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return v("clear_design")}return L}()}),(0,e.createComponentVNode)(2,c)]})]})},C=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.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:p.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,c)]})]})},c=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_type;return s?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function g(){var N=s===y?"eject_tech":"eject_design";v(N)}return g}()}):null},u=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.disk_data,s=V.disk_type,g=function(){if(!v)return(0,e.createComponentVNode)(2,C);switch(s){case k:return(0,e.createComponentVNode)(2,b);case y:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:g()})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_type,g=V.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:g.sort(function(N,x){return N.name.localeCompare(x.name)}).map(function(N){var x=N.name,B=N.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:x,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function L(){s===y?v("copy_tech",{id:B}):v("copy_design",{id:B})}return L}()})},B)})})})})},l=r.DataDiskMenu=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,u)}return s}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.DISK_COPY,render:function(){function s(){return(0,e.createComponentVNode)(2,f)}return s}()})],4):null}return d}()},20887:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.DeconstructionMenu=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_item,u=b.linked_destroy;return u?c?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",c.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:c.origin_tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+f.name,children:[f.object_level," ",f.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),f.current_level,(0,e.createTextVNode)(")")],0):null]},f.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 f(){C("deconstruct")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function f(){C("eject_item")}return f}()})]}):(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 p}()},10666:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=r.LatheCategory=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.data,c=b.act,u=C.category,f=C.matching_designs,l=C.menu,d=l===4,m=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:f.map(function(i){var h=i.id,V=i.name,v=i.can_build,s=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:V,disabled:v<1,onClick:function(){function g(){return c(m,{id:h,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return c(m,{id:h,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return c(m,{id:h,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},h)})})]})}return k}()},52285:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_chemicals,u=b.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 f(){var l=u?"disposeallP":"disposeallI";C(l)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(f){var l=f.volume,d=f.name,m=f.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function i(){var h=u?"disposeP":"disposeI";C(h,{id:m})}return i}()})},m)})})]})}return p}()},71964:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=r.LatheMainMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.data,c=b.act,u=C.menu,f=C.categories,l=u===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:f.map(function(d){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:d,onClick:function(){function m(){c("setCategory",{category:d})}return m}()})},d)})})]})}return k}()},17906:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(u){var f=u.id,l=u.amount,d=u.name,m=function(){function v(s){var g=b.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";C(g,{id:f,amount:s})}return v}(),i=Math.floor(l/2e3),h=l<1,V=i===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",i," sheet",V,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return m(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return m("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return m(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return m(50)}return v}()})],0):null})]},f)})})})}return p}()},83706:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=b.total_materials,c=b.max_materials,u=b.max_chemicals,f=b.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),u?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+u}):null]})]})})}return p}()},76749:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(12059),o=n(13472),p=n(36036),k=n(16475),y=r.LatheMenu=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.data,f=u.menu,l=u.linked_lathe,d=u.linked_imprinter;return f===4&&!l?(0,e.createComponentVNode)(2,p.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!d?(0,e.createComponentVNode)(2,p.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.MAIN,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_CATEGORY,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_MAT_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return m}()})]})}return S}()},74698:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function C(c,u){return b("search",{to_search:u})}return C}()})})}return p}()},17180:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k=r.MainMenu=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.disk_type,f=c.linked_destroy,l=c.linked_lathe,d=c.linked_imprinter,m=c.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:!u,menu:p.MENU.DISK,submenu:p.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:p.MENU.DESTROY,submenu:p.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:p.MENU.LATHE,submenu:p.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:p.MENU.IMPRINTER,submenu:p.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:p.MENU.SETTINGS,submenu:p.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:m.map(function(i){var h=i.name,V=i.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h,children:V},h)})})]})}return y}()},63459:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.RndNavButton=function(){function p(k,y){var S=k.icon,b=k.children,C=k.disabled,c=k.content,u=(0,a.useBackend)(y),f=u.data,l=u.act,d=f.menu,m=f.submenu,i=d,h=m;return k.menu!==null&&k.menu!==void 0&&(i=k.menu),k.submenu!==null&&k.submenu!==void 0&&(h=k.submenu),(0,e.createComponentVNode)(2,t.Button,{content:c,icon:S,disabled:C,onClick:function(){function V(){l("nav",{menu:i,submenu:h})}return V}(),children:b})}return p}()},94942:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(89005),a=n(13472),t=n(36036),o=n(16475),p=r.RndNavbar=function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(S){return S!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){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 y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){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 y}()})]})}return k}()},12059:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(72253),a=r.RndRoute=function(){function t(o,p){var k=o.render,y=(0,e.useBackend)(p),S=y.data,b=S.menu,C=S.submenu,c=function(){function f(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return f}(),u=c(o.menu,b)&&c(o.submenu,C);return u?k():null}return t}()},52580:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k=r.SettingsMenu=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=C.act,f=c.sync,l=c.admin,d=c.linked_destroy,m=c.linked_lathe,i=c.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.MAIN,render:function(){function h(){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:!f,onClick:function(){function V(){u("sync")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function V(){u("togglesync")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function V(){u("togglesync")}return V}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:p.MENU.SETTINGS,submenu:p.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function V(){return u("maxresearch")}return V}()}):null]})})}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.SETTINGS_DEVICES,render:function(){function h(){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 V(){return u("find_device")}return V}()}),(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:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){return u("disconnect",{item:"destroy"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),m?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){u("disconnect",{item:"lathe"})}return V}()})}):(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 V(){return u("disconnect",{item:"imprinter"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return h}()})]})}return y}()},13472:function(I,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(93098);r.CurrentLevels=e.CurrentLevels;var a=n(19192);r.DataDiskMenu=a.DataDiskMenu;var t=n(20887);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(10666);r.LatheCategory=o.LatheCategory;var p=n(52285);r.LatheChemicalStorage=p.LatheChemicalStorage;var k=n(71964);r.LatheMainMenu=k.LatheMainMenu;var y=n(83706);r.LatheMaterials=y.LatheMaterials;var S=n(17906);r.LatheMaterialStorage=S.LatheMaterialStorage;var b=n(76749);r.LatheMenu=b.LatheMenu;var C=n(74698);r.LatheSearch=C.LatheSearch;var c=n(17180);r.MainMenu=c.MainMenu;var u=n(94942);r.RndNavbar=u.RndNavbar;var f=n(63459);r.RndNavButton=f.RndNavButton;var l=n(12059);r.RndRoute=l.RndRoute;var d=n(52580);r.SettingsMenu=d.SettingsMenu},40026:function(I,r,n){"use strict";r.__esModule=!0,r.RoboQuest=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.RoboQuest=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.hasID,l=u.name,d=u.questInfo,m=u.hasTask,i=u.canCheck,h=u.canSend,V=u.checkMessage,v=u.style,s=u.cooldown,g=u.instant_teleport,N=u.shopItems,x=u.points,B=u.cats,L=(0,t.useLocalState)(b,"shopState",!1),T=L[0],A=L[1],E={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.createComponentVNode)(2,p.Window,{theme:v,width:1e3,height:540,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:40,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043C\u0435\u0445\u0430",icon:"search",tooltipPosition:"bottom",tooltip:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430 \u043C\u043E\u0434\u0443\u043B\u0435\u0439.",disabled:!f||!m||!i||s,onClick:function(){function w(){return c("Check")}return w}()}),children:[(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:60,textAlign:"center",align:"center",children:!!m&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest_large128x128",d.icon]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:42,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&d.modules.map(function(w){return w.id<4&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",w.icon]),null,1,null,w.id)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&d.modules.map(function(w){return w.id>3&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",w.icon]),null,1,null,w.id)})})]})})]}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Divider),(0,e.createVNode)(1,"b",null,V,0)],4),!!s&&(0,e.createFragment)([(0,e.createVNode)(1,"b",null,"\u0417\u0430 \u043E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0437\u0430\u043A\u0430\u0437\u0430, \u0432\u044B \u0431\u044B\u043B\u0438 \u043E\u0442\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u044B \u043E\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,s,0)],4)]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:(0,e.createComponentVNode)(2,o.Box,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439",(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",(0,e.createVNode)(1,"b",null,x.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,x.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,x.security,0,{style:{color:"red"}})]})]}),children:Object.keys(N).map(function(w){return(0,e.createFragment)(!(N[w]===void 0||N[w].length===0||w==="robo")&&N[w].map(function(O){return(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:E[w],image:O.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[O.name," ",(0,e.createVNode)(1,"b",null,O.cost.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.security,0,{style:{color:"red"}})]}),content:O.desc,onClick:function(){function M(){return c("buyItem",{item:O.path})}return M}()},O.path)}),0,w)})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:20,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0414\u0440\u0443\u0433\u043E\u0435",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D",width:"7rem",icon:"shopping-cart",onClick:function(){function w(){return A(!T)}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",tooltipPosition:"bottom",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0441\u0442\u0438\u043B\u044F \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",onClick:function(){function w(){return c("ChangeStyle")}return w}()})],4),children:[!!l&&(0,e.createFragment)([(0,e.createTextVNode)("\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435,"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,l,0),(0,e.createVNode)(1,"br")],4),(0,e.createFragment)([(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0430 \u044D\u043A\u0437\u043A\u043E\u0441\u0442\u044E\u043C, \u0432\u044B\u0431\u043E\u0440 \u043F\u043E\u0434\u0442\u0438\u043F\u0430 \u043C\u0435\u0445\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043E\u0447\u043A\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u044B \u0437\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0430\u0437\u0430."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"brown",children:[" ","\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"teal",children:[" ","\u0433\u043E\u043B\u0443\u0431\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u0411\u043E\u0435\u0432\u044B\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"red",children:[" ","\u043A\u0440\u0430\u0441\u043D\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0445, \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u0442\u0438\u043F\u0430, \u043F\u0440\u0438\u043D\u043E\u0441\u0438\u0442 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0434\u043B\u044F \u043C\u0430\u0433\u0430\u0437\u0438\u043D\u0430 \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434.")],0)]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:38,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"id-card",content:"\u0412\u044B\u043D\u0443\u0442\u044C ID",disabled:!f,onClick:function(){function w(){return c("RemoveID")}return w}()}),!m&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",content:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043C\u0435\u0445",disabled:!f||s,onClick:function(){function w(){return c("GetTask")}return w}()}),!!m&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0435\u0447\u0430\u0442\u044C",icon:"print",onClick:function(){function w(){return c("printOrder")}return w}(),disabled:!m}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F",disabled:!f||s,onClick:function(){function w(){return c("RemoveTask")}return w}()})],4)],0),children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"1rem",children:[(0,e.createVNode)(1,"b",null,"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: ",16),d.name,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: ",16),d.desc]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u041C\u043E\u0434\u0443\u043B\u0438:",level:2,children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"0.5rem",children:!!m&&d.modules.map(function(w){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Module "),w.id],0),(0,e.createTextVNode)(": "),w.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br")],0,w.id)})})}),(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0432\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u043F\u0430\u0434.",disabled:!f||!m||!h||s,onClick:function(){function w(){return c("SendMech",{type:"send"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u0423\u043F\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u0423\u043F\u0430\u043A\u043E\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438 \u0432 \u043A\u0430\u0440\u0433\u043E.",disabled:!f||!m||!h||s,onClick:function(){function w(){return c("SendMech",{type:"only_packing"})}return w}()})]}),(0,e.createVNode)(1,"box",null,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"30rem",bold:!0,content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"bottom",tooltip:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043C\u0435\u0445\u0430 \u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A\u0443.",disabled:!f||!m||!h||s||!g,onClick:function(){function w(){return c("SendMech",{type:"instant"})}return w}()}),2,{mb:"1.5rem",textAlign:"center"})]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createTextVNode)("\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434"),(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",x.robo]})],4),children:N.robo.map(function(w){return(!w.emagOnly||v==="syndicate")&&(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:"purple",image:w.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[w.name," ",(0,e.createVNode)(1,"b",null,w.cost.robo,0,{style:{color:"purple"}})]}),content:w.desc,onClick:function(){function O(){return c("buyItem",{item:w.path})}return O}()},w.name)})})]})]})})})}return y}()},26109:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),k=function(b,C){var c=b/C;return c<=.2?"good":c<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.data,f=u.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f.map(function(l,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,p.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:k(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:k(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},d)})})})}return S}()},97997:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.RoboticsControlConsole=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.can_hack,l=u.safety,d=u.show_detonate_all,m=u.cyborgs,i=m===void 0?[]:m;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function h(){return c("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:l,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function h(){return c("nuke",{})}return h}()})]}),(0,e.createComponentVNode)(2,k,{cyborgs:i,can_hack:f})]})})}return y}(),k=function(S,b){var C=S.cyborgs,c=S.can_hack,u=(0,a.useBackend)(b),f=u.act,l=u.data;return C.length?C.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createFragment)([!!d.hackable&&!d.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function m(){return f("hackbot",{uid:d.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:d.locked_down?"unlock":"lock",color:d.locked_down?"good":"default",content:d.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function m(){return f("stopbot",{uid:d.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){function m(){return f("killbot",{uid:d.uid})}return m}()})],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:d.status?"bad":d.locked_down?"average":"good",children:d.status?"Not Responding":d.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:d.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.health>50?"good":"bad",value:d.health/100})}),typeof d.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.charge>30?"good":"bad",value:d.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:d.cell_capacity<3e4?"average":"good",children:d.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"})}),!!d.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:d.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:d.synchronization?"default":"average",children:d.synchronization||"None"})})]})},d.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(79140),t=n(72253),o=n(36036),p=n(98595),k=r.Safe=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.dial,i=d.open,h=d.locked,V=d.contents;return(0,e.createComponentVNode)(2,p.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,o.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),i?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe--dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*m+"deg)","z-index":0}})]}),!i&&(0,e.createComponentVNode)(2,b)]})})}return C}(),y=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.dial,i=d.open,h=d.locked,V=function(s,g){return(0,e.createComponentVNode)(2,o.Button,{disabled:i||g&&!h,icon:"arrow-"+(g?"right":"left"),content:(g?"Right":"Left")+" "+s,iconRight:g,onClick:function(){function N(){return l(g?"turnleft":"turnright",{num:s})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h,icon:i?"lock":"lock-open",content:i?"Close":"Open",mb:"0.5rem",onClick:function(){function v(){return l("open")}return v}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[V(50),V(10),V(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[V(1,!0),V(10,!0),V(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--number",children:m})]})},S=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--contents",overflow:"auto",children:m.map(function(i,h){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function V(){return l("retrieve",{index:h+1})}return V}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:i.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),i.name]}),(0,e.createVNode)(1,"br")],4,i)})})},b=function(c,u){return(0,e.createComponentVNode)(2,o.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,o.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,o.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SatelliteControl=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.satellites,f=c.notice,l=c.meteor_shield,d=c.meteor_shield_coverage,m=c.meteor_shield_coverage_max,i=c.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i>=100?"good":"average",value:d,maxValue:m,children:[i," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:c.notice}),u.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+h.id,children:[h.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:h.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function V(){return C("toggle",{id:h.id})}return V}()})]},h.id)})]})})]})})}return k}()},44162:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SecureStorage=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.emagged,f=c.locked,l=c.l_set,d=c.l_setshort,m=c.current_code,i=function(){function h(V){var v=V.buttonValue,s=V.color;return s||(s="default"),(0,e.createComponentVNode)(2,t.Button,{disabled:u||d,type:"button",color:s,onClick:function(){function g(){return C("setnumber",{buttonValue:v})}return g}(),children:v})}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:520,height:200,children:(0,e.createComponentVNode)(2,t.Flex,{spacing:"1",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Code Panel",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"1"}),(0,e.createComponentVNode)(2,i,{buttonValue:"2"}),(0,e.createComponentVNode)(2,i,{buttonValue:"3"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"4"}),(0,e.createComponentVNode)(2,i,{buttonValue:"5"}),(0,e.createComponentVNode)(2,i,{buttonValue:"6"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"7"}),(0,e.createComponentVNode)(2,i,{buttonValue:"8"}),(0,e.createComponentVNode)(2,i,{buttonValue:"9"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"R",color:"red"}),(0,e.createComponentVNode)(2,i,{buttonValue:"0"}),(0,e.createComponentVNode)(2,i,{buttonValue:"E",color:"green"})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Current Status",children:u||d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secure Code",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"red":"green",children:l?"*****":"NOT SET. ENTER NEW."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:f?"red":"green",children:f?"Locked":"Unlocked"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{children:m||"Waiting for input"})}),(0,e.createComponentVNode)(2,t.Button,{top:".35em",left:".5em",disabled:f,color:"red",content:"Lock",icon:"lock",onClick:function(){function h(){return C("close")}return h}()})]})})]})})}return k}()},6272:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=n(3939),y=n(321),S=n(5485),b=n(22091),C={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},c=function(g,N){(0,k.modalOpen)(g,"edit",{field:N.edit,value:N.value})},u=r.SecurityRecords=function(){function s(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.loginState,A=L.currentPage,E;if(T.logged_in)A===1?E=(0,e.createComponentVNode)(2,l):A===2?E=(0,e.createComponentVNode)(2,i):A===3&&(E=(0,e.createComponentVNode)(2,h));else return(0,e.createComponentVNode)(2,p.Window,{width:800,height:900,theme:"security",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,p.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,k.ComplexModal),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,f),E]})})]})}return s}(),f=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.currentPage,A=L.general;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===1,onClick:function(){function E(){return B("page",{page:1})}return E}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===2,onClick:function(){function E(){return B("page",{page:2})}return E}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wrench"}),"Record Maintenance"]}),T===3&&A&&!A.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===3,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"file"}),"Record: ",A.fields[0].value]})]})},l=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.records,A=(0,t.useLocalState)(N,"searchText",""),E=A[0],w=A[1],O=(0,t.useLocalState)(N,"sortId","name"),M=O[0],P=O[1],F=(0,t.useLocalState)(N,"sortOrder",!0),R=F[0],U=F[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),T.filter((0,a.createSearch)(E,function(j){return j.name+"|"+j.id+"|"+j.rank+"|"+j.fingerprint+"|"+j.status})).sort(function(j,W){var K=R?1:-1;return j[M].localeCompare(W[M])*K}).map(function(j){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+C[j.status],onClick:function(){function W(){return B("view",{uid_gen:j.uid_gen,uid_sec:j.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",j.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.status})]},j.id)})]})})})],4)},d=function(g,N){var x=(0,t.useLocalState)(N,"sortId","name"),B=x[0],L=x[1],T=(0,t.useLocalState)(N,"sortOrder",!0),A=T[0],E=T[1],w=g.id,O=g.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!==w&&"transparent",fluid:!0,onClick:function(){function M(){B===w?E(!A):(L(w),E(!0))}return M}(),children:[O,B===w&&(0,e.createComponentVNode)(2,o.Icon,{name:A?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},m=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,A=(0,t.useLocalState)(N,"searchText",""),E=A[0],w=A[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 O(){return B("new_general")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Cell Log",onClick:function(){function O(){return(0,k.modalOpen)(N,"print_cell_log")}return O}()})}),(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 O(M,P){return w(P)}return O}()})})]})},i=function(g,N){var x=(0,t.useBackend)(N),B=x.act;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function L(){return B("delete_security_all")}return L}(),mb:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){function L(){return B("delete_cell_logs")}return L}()})]})},h=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,A=L.general,E=L.security;return!A||!A.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,level:2,mt:"-6px",title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Record",onClick:function(){function w(){return B("print_record")}return w}()}),(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 w(){return B("delete_general")}return w}()})],4),children:(0,e.createComponentVNode)(2,V)})}),!E||!E.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 w(){return B("new_security")}return w}()}),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:E.empty,content:"Delete Record",onClick:function(){function w(){return B("delete_security")}return w}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:E.fields.map(function(w,O){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 M(){return c(N,w)}return M}()})]},O)})})})})}),(0,e.createComponentVNode)(2,v)],4)],0)},V=function(g,N){var x=(0,t.useBackend)(N),B=x.data,L=B.general;return!L||!L.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:L.fields.map(function(T,A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+T.value),!!T.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function E(){return c(N,T)}return E}()})]},A)})})}),!!L.has_photos&&L.photos.map(function(T,A){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:T,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",A+1]},A)})]})},v=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.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 A(){return(0,k.modalOpen)(N,"comment_add")}return A}()}),children:T.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):T.comments.map(function(A,E){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:A.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),A.text||A,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function w(){return B("comment_delete",{id:E+1})}return w}()})]},E)})})})}},5099:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(35840),o=n(72253),p=n(36036),k=n(98595),y=n(3939);function S(m,i){var h=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(h)return(h=h.call(m)).next.bind(h);if(Array.isArray(m)||(h=b(m))||i&&m&&typeof m.length=="number"){h&&(m=h);var V=0;return function(){return V>=m.length?{done:!0}:{done:!1,value:m[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 b(m,i){if(m){if(typeof m=="string")return C(m,i);var h={}.toString.call(m).slice(8,-1);return h==="Object"&&m.constructor&&(h=m.constructor.name),h==="Map"||h==="Set"?Array.from(m):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?C(m,i):void 0}}function C(m,i){(i==null||i>m.length)&&(i=m.length);for(var h=0,V=Array(i);h=E},v=function(A,E){return A<=E},s=i.split(" "),g=[],N=function(){var A=L.value,E=A.split(":");if(E.length===0)return 0;if(E.length===1)return g.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(E[0].toLocaleLowerCase())}),0;if(E.length>2)return{v:function(){function M(P){return!1}return M}()};var w,O=h;if(E[1][E[1].length-1]==="-"?(O=v,w=Number(E[1].substring(0,E[1].length-1))):E[1][E[1].length-1]==="+"?(O=V,w=Number(E[1].substring(0,E[1].length-1))):w=Number(E[1]),isNaN(w))return{v:function(){function M(P){return!1}return M}()};switch(E[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":g.push(function(M){return O(M.lifespan,w)});break;case"e":case"end":case"endurance":g.push(function(M){return O(M.endurance,w)});break;case"m":case"mat":case"maturation":g.push(function(M){return O(M.maturation,w)});break;case"pr":case"prod":case"production":g.push(function(M){return O(M.production,w)});break;case"y":case"yield":g.push(function(M){return O(M.yield,w)});break;case"po":case"pot":case"potency":g.push(function(M){return O(M.potency,w)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":g.push(function(M){return O(M.amount,w)});break;default:return{v:function(){function M(P){return!1}return M}()}}},x,B=S(s),L;!(L=B()).done;)if(x=N(),x!==0&&x)return x.v;return function(T){for(var A=0,E=g;A=1?Number(O):1)}return E}()})]})]})}},2916:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsoleContent=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleConsole=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=c.type,i=m===void 0?"shuttle":m,h=c.blind_drop,V=d.authorization_required;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:240,children:[!!V&&(0,e.createComponentVNode)(2,t.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,children:(0,e.createComponentVNode)(2,t.Icon,{name:"minus-circle"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,ml:2,color:"bad",children:i==="shuttle"?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"18px",mt:4,children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){function v(){return l("request")}return v}()})})]}),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b,{type:i,blind_drop:h})})]})}return C}(),k=function(c,u){var f;return c==null||(f=c.find(function(l){return l.id===u}))==null?void 0:f.name},y=function(c,u){var f;return c==null||(f=c.find(function(l){return l.name===u}))==null?void 0:f.id},S={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},b=r.ShuttleConsoleContent=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=c.type,i=c.blind_drop,h=d.status,V=d.locked,v=d.authorization_required,s=d.destination,g=d.docked_location,N=d.timer_str,x=d.locations,B=x===void 0?[]:x;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:S[h]||"bad",ml:1,children:h||"Not Available"})]}),(0,e.createComponentVNode)(2,t.Section,{title:m==="shuttle"?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",buttons:m!=="shuttle"&&B.length===0&&!!i&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",disabled:v||!i,content:"Blind Drop",onClick:function(){function L(){return l("random")}return L}()}),children:B.length===0&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"bad",children:"Not Available"})||B.length===1&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"average",children:k(B,s)})||(0,e.createComponentVNode)(2,t.Dropdown,{mb:1.7,over:!0,width:"240px",options:B.map(function(L){return L.name}),disabled:V||v,selected:k(B,s)||"Select a Destination",onSelected:function(){function L(T){return l("set_destination",{destination:y(B,T)})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Depart",disabled:!k(B,s)||V||v||h!=="Idle",icon:"arrow-up",textAlign:"center",onClick:function(){function L(){return l("move",{shuttle_id:s})}return L}()})]})]})}return C}()},39401:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleManipulator=function(){function b(C,c){var u=(0,a.useLocalState)(c,"tabIndex",0),f=u[0],l=u[1],d=function(){function m(i){switch(i){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return m}();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:f===0,onClick:function(){function m(){return l(0)}return m}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function m(){return l(1)}return m}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function m(){return l(2)}return m}(),icon:"tools",children:"Modification"},"Modification")]}),d(f)]})})})}return b}(),k=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:m.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:m.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:m.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:m.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 f("jump_to",{type:"mobile",id:m.id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function i(){return f("fast_travel",{id:m.id})}return i}()})]})]})},m.name)})})},y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.templates_tabs,m=l.existing_shuttle,i=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===m.id,icon:"file",onClick:function(){function V(){return f("select_template_category",{cat:h})}return V}(),children:h},h)})}),!!m&&i[m.id].templates.map(function(h){return(0,e.createComponentVNode)(2,t.Section,{title:h.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function V(){return f("select_template",{shuttle_id:h.shuttle_id})}return V}()})})]})},h.name)})]})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.existing_shuttle,m=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return f("jump_to",{type:"mobile",id:d.id})}return i}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),m?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:m.description}),m.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:m.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 f("preview",{shuttle_id:m.shuttle_id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function i(){return f("load",{shuttle_id:m.shuttle_id})}return i}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["\u0423\u0434\u0443\u0448\u044C\u0435.","oxyLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0424\u0438\u0437.","bruteLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],C=r.Sleeper=function(){function i(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.hasOccupant,x=N?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m);return(0,e.createComponentVNode)(2,p.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:x}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,d)],4)},u=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant,x=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0442\u0440\u0443\u043F\u043E\u0432:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,content:x?"\u0414\u0430":"\u041D\u0435\u0442",onClick:function(){function B(){return s("auto_eject_dead_"+(x?"off":"on"))}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",onClick:function(){function B(){return s("ejectify")}return B}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:N.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u0432\u043E\u044C\u044F",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(N.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[N.stat][0],children:k[N.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:b[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius,0),"\xB0C,",(0,a.round)(N.btFaren,0),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0443\u043B\u044C\u0441",verticalAlign:"middle",children:[N.pulse," BPM"]})],4)]})})},f=function(h,V){var v=(0,t.useBackend)(V),s=v.data,g=s.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(N,x){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[N[1]]/100,ranges:S,children:(0,a.round)(g[N[1]],0)},x)},x)})})})},l=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.hasOccupant,x=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,T=g.dialysis,A=T&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0438\u0430\u043B\u0438\u0437",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!x||L<=0||!N,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function E(){return s("togglefilter")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!x,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function E(){return s("removebeaker")}return E}()})],4),children:x?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u044B\u0439 \u043E\u0431\u044A\u0451\u043C",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:L/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430."})})},d=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant,x=g.chemicals,B=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u043E\u0432\u043E\u0442\u043E\u043A \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:x.map(function(T,A){var E="",w;return T.overdosing?(E="bad",w=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 \u041F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0430!"]})):T.od_warning&&(E="average",w=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 \u0420\u0438\u0441\u043A \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0438"]})),(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:w,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:T.occ_amount/B,color:E,title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u043E\u0431\u044A\u0451\u043C \u0432\u0435\u0449\u0435\u0441\u0442\u0432 \u0432 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 / \u041E\u0431\u0449\u0438\u0439 \u043E\u0431\u044A\u0451\u043C, \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0439 \u0434\u043B\u044F \u0432\u0432\u043E\u0434\u0430 \u0430\u043F\u043F\u0430\u0440\u0430\u0442\u043E\u043C",mr:"0.5rem",children:[T.pretty_amount,"/",B,"u"]}),L.map(function(O,M){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+O>B||N.stat===2,icon:"syringe",content:"\u0412\u0432\u0435\u0441\u0442\u0438 "+O+"u",title:"\u0412\u0432\u0435\u0441\u0442\u0438 "+O+"u \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 "+T.title+" \u0432 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",mb:"0",height:"19px",onClick:function(){function P(){return s("chemical",{chemid:T.id,amount:O})}return P}()},M)})]})})},A)})})},m=function(h,V){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"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},21597:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SlotMachine=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.money===null)return(0,e.createComponentVNode)(2,o.Window,{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.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 u;return c.plays===1?u=c.plays+" player has tried their luck today!":u=c.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{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.Box,{lineHeight:2,children:u}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"50 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:c.working,content:c.working?"Spinning...":"Spin",onClick:function(){function f(){return C("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:c.resultlvl,children:c.result})]})})})}return k}()},46348:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Smartfridge=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.secure,f=c.can_dry,l=c.drying,d=c.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u0435\u0434\u044A\u044F\u0432\u0438\u0442\u0435 \u0441\u0432\u043E\u044E ID-\u043A\u0430\u0440\u0442\u0443."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f?"\u0421\u0443\u0448\u0438\u043B\u044C\u043D\u0430\u044F \u0441\u0442\u043E\u0439\u043A\u0430":"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435",buttons:!!f&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u0443\u0448\u043A\u0443":"\u0417\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u044C \u0441\u0443\u0448\u043A\u0443",selected:l,onClick:function(){function m(){return C("drying")}return m}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u043F\u0443\u0441\u0442\u043E."]})}),!!d&&d.slice().sort(function(m,i){return m.display_name.localeCompare(i.display_name)}).map(function(m){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:m.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",m.quantity," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"\u0412\u0437\u044F\u0442\u044C \u043E\u0434\u043D\u0443 \u0448\u0442\u0443\u043A\u0443.",content:"1",onClick:function(){function i(){return C("vend",{index:m.vend,amount:1})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:m.quantity,step:1,stepPixelSize:3,onChange:function(){function i(h,V){return C("vend",{index:m.vend,amount:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"\u0412\u0441\u0451",tooltip:"\u0412\u0437\u044F\u0442\u044C \u0432\u0441\u0451.",tooltipPosition:"bottom-start",onClick:function(){function i(){return C("vend",{index:m.vend,amount:m.quantity})}return i}()})]})]},m)})]})]})})})}return k}()},86162:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),p=n(98595),k=1e3,y=r.Smes=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.capacityPercent,d=f.capacity,m=f.charge,i=f.inputAttempt,h=f.inputting,V=f.inputLevel,v=f.inputLevelMax,s=f.inputAvailable,g=f.outputPowernet,N=f.outputAttempt,x=f.outputting,B=f.outputLevel,L=f.outputLevelMax,T=f.outputUsed,A=l>=100&&"good"||h&&"average"||"bad",E=x&&"good"||m>0&&"average"||"bad";return(0,e.createComponentVNode)(2,p.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"sync-alt":"times",selected:i,onClick:function(){function w(){return u("tryinput")}return w}(),children:i?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||h&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:V===0,onClick:function(){function w(){return u("input",{target:"min"})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:V===0,onClick:function(){function w(){return u("input",{adjust:-1e4})}return w}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:V/k,fillValue:s/k,minValue:0,maxValue:v/k,step:5,stepPixelSize:4,format:function(){function w(O){return(0,o.formatPower)(O*k,1)}return w}(),onChange:function(){function w(O,M){return u("input",{target:M*k})}return w}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:V===v,onClick:function(){function w(){return u("input",{adjust:1e4})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:V===v,onClick:function(){function w(){return u("input",{target:"max"})}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(s)})]})}),(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:N?"power-off":"times",selected:N,onClick:function(){function w(){return u("tryoutput")}return w}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:E,children:g?x?"Sending":m>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:B===0,onClick:function(){function w(){return u("output",{target:"min"})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function w(){return u("output",{adjust:-1e4})}return w}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/k,minValue:0,maxValue:L/k,step:5,stepPixelSize:4,format:function(){function w(O){return(0,o.formatPower)(O*k,1)}return w}(),onChange:function(){function w(O,M){return u("output",{target:M*k})}return w}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function w(){return u("output",{adjust:1e4})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function w(){return u("output",{target:"max"})}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},63584:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SolarControl=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=0,f=1,l=2,d=c.generated,m=c.generated_ratio,i=c.tracking_state,h=c.tracking_rate,V=c.connected_panels,v=c.connected_tracker,s=c.cdir,g=c.direction,N=c.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:300,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 x(){return C("refresh")}return x}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(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:m,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[s,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),i===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",h,"\xB0/h (",N,")"," "]}),i===u&&(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:s,onDrag:function(){function x(B,L){return C("cdir",{cdir:L})}return x}()}),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===u,onClick:function(){function x(){return C("track",{track:u})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:i===f,onClick:function(){function x(){return C("track",{track:f})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:i===l,disabled:!v,onClick:function(){function x(){return C("track",{track:l})}return x}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:h,format:function(){function x(B){var L=Math.sign(B)>0?"+":"-";return L+Math.abs(B)}return x}(),onDrag:function(){function x(B,L){return C("tdir",{tdir:L})}return x}()}),i===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),i===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return k}()},38096:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SpawnersMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name+" ("+f.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return C("jump",{ID:f.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return C("spawn",{ID:f.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:f.desc}),!!f.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:f.fluff}),!!f.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:f.important_info})]},f.name)})})})})}return k}()},7957:function(I,r,n){"use strict";r.__esModule=!0,r.SpiderOS=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(98595);function k(m,i){m.prototype=Object.create(i.prototype),m.prototype.constructor=m,y(m,i)}function y(m,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,V){return h.__proto__=V,h},y(m,i)}var S=r.SpiderOS=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g;return s.suit_tgui_state===0?g=(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"column",width:"60%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,f)})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)]})]}):s.suit_tgui_state===1&&(g=(0,e.createComponentVNode)(2,t.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d,{allMessages:s.current_load_text,finishedTimeout:3e3,current_initialisation_phase:s.current_initialisation_phase,end_terminal:s.end_terminal,onFinished:function(){function N(){return v("set_UI_state",{suit_tgui_state:0})}return N}()})]})})),(0,e.createComponentVNode)(2,p.Window,{width:800,height:630,theme:"spider_clan",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:g})})})}return m}(),b=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.stylesIcon,g=v.style_preview_icon_state;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},m:"0px",width:"100%",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u041D\u0430\u0448\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0442 \u0432\u0430\u043C \u043F\u043E\u0434\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u043E\u0434 \u0441\u0435\u0431\u044F, \u043F\u0440\u0438 \u044D\u0442\u043E\u043C \u043D\u0435 \u0442\u0435\u0440\u044F\u044F \u043E\u0431\u043E\u0440\u043E\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0430\u0447\u0435\u0441\u0442\u0432. \u041F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u043E \u043F\u0440\u0438 \u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u0436\u0438\u0437\u043D\u0435\u043D\u043D\u043E \u0432\u0430\u0436\u043D\u043E \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0433\u043E \u0443\u0431\u0438\u0439\u0446\u044B.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"128px",width:"128px",icon:s,icon_state:g,style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})})})},C=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.designs,N=s.design_choice,x=s.scarf_design_choice,B=s.colors,L=s.color_choice,T=s.genders,A=s.preferred_clothes_gender,E=s.suit_state,w=s.preferred_scarf_over_hood,O=s.show_charge_UI,M=s.has_martial_art,P=s.show_concentration_UI,F;E===0?F="\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C":F="\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C";var R;w===0?R="\u041A\u0430\u043F\u044E\u0448\u043E\u043D":R="\u0428\u0430\u0440\u0444";var U;w===1?U=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C \u0448\u0430\u0440\u0444\u0430",content:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:x,onSelected:function(){function W(K){return v("set_scarf_design",{scarf_design_choice:K})}return W}()})}):U=null;var j;return M?j=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u044F",content:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:P,width:"78px",textAlign:"left",content:P?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_concentration")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0441\u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u043B\u0438 \u0432\u044B \u0434\u043B\u044F \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0431\u043E\u0435\u0432\u043E\u0433\u043E \u0438\u0441\u0441\u043A\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-start"})]})}):j=null,(0,e.createComponentVNode)(2,t.Flex,{direction:"row",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,width:"100%",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:N,onSelected:function(){function W(K){return v("set_design",{design_choice:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:L,onSelected:function(){function W(K){return v("set_color",{color_choice:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439/\u041C\u0443\u0436\u0441\u043A\u043E\u0439",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:T,selected:A,onSelected:function(){function W(K){return v("set_gender",{preferred_clothes_gender:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041A\u0430\u043F\u044E\u0448\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Button,{className:E===0?"":"Button_disabled",width:"90px",selected:w,disabled:E,textAlign:"left",content:R,onClick:function(){function W(){return v("toggle_scarf")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u043E\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043A\u0430\u043F\u044E\u0448\u043E\u043D \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u043E\u043B\u043E\u0441\u044B. \u041D\u043E \u044D\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u0447\u0438\u0442, \u0447\u0442\u043E \u0432\u0430\u0448\u0430 \u0433\u043E\u043B\u043E\u0432\u0430 \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u0430! \u0410\u0434\u0430\u043F\u0442\u0438\u0432\u043D\u044B\u0435 \u043D\u0430\u043D\u043E-\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044E\u0442 \u043D\u0430 \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0433\u0440\u043E\u0437\u044B \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u044F \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443! \u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435: \u043D\u0430\u043D\u043E\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u0442\u0430\u043A \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443 \u0438 \u043E\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u043B\u043E\u0432\u043D\u044B\u0445 \u0443\u0431\u043E\u0440\u043E\u0432 \u0441 \u0446\u0435\u043B\u044C\u044E \u0443\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u044F \u043F\u043E\u043C\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043E\u0442\u0435.',tooltipPosition:"top-start"})]}),U,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0440\u044F\u0434 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{selected:O,width:"90px",textAlign:"left",content:O?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_charge")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0437\u0430\u0440\u044F\u0434 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430.",tooltipPosition:"top-start"})]}),j]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,mt:-1.3,mb:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{width:"80%",icon:"power-off",textAlign:"center",content:F,backgroundColor:L,tooltip:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044E \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0432 \u043D\u0451\u043C \u0437\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438, \u043A\u043E\u0433\u0434\u0430 \u043A\u043E\u0441\u0442\u044E\u043C \u0431\u0443\u0434\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u044F\u0435\u0442 \u0437\u0430\u0440\u044F\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0438 \u043C\u043E\u0434\u0443\u043B\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u043D\u044F\u0442\u044C \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C, \u043F\u043E\u043A\u0430 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u043E\u0432\u043D\u043E \u043A\u0430\u043A \u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u043C\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438. \u041F\u043E\u0434\u0443\u043C\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044B \u043F\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043C \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0435\u0433\u043E \u043D\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-start",onClick:function(){function W(){return v("initialise_suit")}return W}()})})]})})},c=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.actionsIcon;return(0,e.createComponentVNode)(2,t.Section,{m:"0",title:"\u0421\u043E\u0432\u0435\u0442\u044B \u0438 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041C\u043E\u043B\u043E\u0434\u044B\u043C \u0443\u0431\u0438\u0439\u0446\u0430\u043C \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u043B\u0435\u0433\u043A\u043E \u043E\u0441\u0432\u043E\u0438\u0442\u0441\u044F \u0432 \u043F\u043E\u043B\u0435\u0432\u044B\u0445 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445, \u0434\u0430\u0436\u0435 \u043F\u043E\u0441\u043B\u0435 \u0438\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u044B\u0445 \u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u043E\u043A. \n\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0434\u0435\u043B \u043F\u0440\u0438\u0437\u0432\u0430\u043D \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0441\u043E\u0432\u0435\u0442\u0430\u043C\u0438 \u043F\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0447\u0430\u0441\u0442\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u044E\u0449\u0438\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u043A\u0430\u0441\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0445 \u043C\u0438\u0441\u0441\u0438\u0439 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u0432\u044B\u0434\u0430\u0434\u0443\u0442 \u0438\u043B\u0438 \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u0430\u0442\u044C \u043E \u043C\u0430\u043B\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_teleport",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u0438 \u0448\u0430\u0442\u0442\u043B",content:"\u0412 \u0432\u0430\u0448\u0435\u043C \u0414\u043E\u0434\u0437\u0451 \u0435\u0441\u0442\u044C \u043B\u0438\u0447\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0422\u043E\u0447\u043A\u0430 \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0430\u044F, \u043D\u043E \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043D\u0430 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0442\u043E\u043D\u043D\u0435\u043B\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u043C\u0430\u043B\u043E\u043F\u043E\u0441\u0435\u0449\u0430\u0435\u043C\u044B\u0435 \u043C\u0435\u0441\u0442\u0430. \n\u042D\u0442\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0439 \u0441\u043F\u043E\u0441\u043E\u0431 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0440\u0438\u0441\u0442\u0443\u043F\u0438\u0442\u044C \u043A \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \n\u041F\u043E\u043B\u044C\u0437\u0443\u044F\u0441\u044C \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u043C \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440\u043E\u043C \u0448\u0430\u0442\u0442\u043B\u0430, \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E \u043A \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u0435\u0441\u043B\u0438 \u0432\u044B \u0440\u0435\u0448\u0438\u0442\u0435 \u043F\u043E\u043B\u0435\u0442\u0435\u0442\u044C \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435, \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C \u0432\u0430\u043C, \u0447\u0442\u043E \u0432\u043E \u0438\u0437\u0431\u0435\u0436\u0430\u043D\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043A\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043B\u0430 \u0438 \u043F\u043E\u043F\u0430\u0434\u0430\u043D\u0438\u044F \u043D\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043F\u043E\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0438\u0445 \u043B\u0438\u0446, \u043E\u0442\u043B\u0438\u0447\u043D\u043E\u0439 \u043F\u0440\u0430\u043A\u0442\u0438\u043A\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"headset_green",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A",content:"\u0412 \u043E\u0442\u043B\u0438\u0447\u0438\u0438 \u043E\u0442 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0445 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u043E\u0432 \u0431\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u0430 \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0439, \u043D\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0438. \u0412 \u043D\u0435\u0433\u043E \u0432\u0441\u0442\u0440\u043E\u0435\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0434\u043B\u044F \u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0431\u043E\u0440\u0433\u043E\u043C \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0447\u043B\u0435\u043D\u0430\u043C\u0438 \u043A\u043B\u0430\u043D\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043E\u043D \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u044E\u0431\u044B\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u0438 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043B\u0443\u0448\u043A\u0438 \u0438/\u0438\u043B\u0438 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430 \u043A\u0430\u043D\u0430\u043B\u044B \u0438\u0445 \u043A\u043B\u044E\u0447\u0435\u0439. \u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u044D\u0442\u043E\u043C\u0443 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u043D\u0430\u043A\u0430\u043F\u043B\u0438\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0432\u0430\u043C \u043C\u0435\u0441\u0442\u043D\u044B\u0435 \u043A\u0430\u043D\u0430\u043B\u044B \u0441\u0432\u044F\u0437\u0438 \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438- \u0447\u0435\u0441\u043A\u0438 \u0443\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u0438 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u0442 \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0435 \u0441\u0438\u0433\u043D\u0430\u043B\u044B \u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u0435\u043C\u044B\u0435 \u0441\u0438\u043D\u0442\u0435\u0442\u0438\u043A\u0430\u043C\u0438 \u043F\u0440\u0438 \u043E\u0431\u0449\u0435\u043D\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043E\u043C. \u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044F \u0432\u0430\u043C \u0441\u0430\u043C\u0438\u043C \u043E\u0431\u0449\u0430\u0442\u044C\u0441\u044F \u0441 \u043D\u0438\u043C\u0438.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_sleeper",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0445\u0438\u0449\u0435\u043D\u0438\u0435 \u044D\u043A\u0438\u043F\u0430\u0436\u0430",content:"\u041F\u043E\u0440\u043E\u0439 \u043A\u043B\u0430\u043D\u0443 \u043D\u0443\u0436\u043D\u044B \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043A\u043E\u0442\u043E\u0440\u044B\u043C\u0438 \u043C\u043E\u0433\u0443\u0442 \u043E\u0431\u043B\u0430\u0434\u0430\u0442\u044C \u043B\u044E\u0434\u0438 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043A\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043C \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0441\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043E\u0441\u043E\u0431\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u0443\u0436\u043E\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043B\u0438 \u0432\u0430\u043C \u043D\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044F \u043D\u0430\u0439\u0442\u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E\u0449\u0435\u0433\u043E \u0432\u0441\u0435\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430, \u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0431\u0440\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043F\u043E \u043A\u0440\u0443\u043F\u0438\u0446\u0430\u043C \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u044F \u043F\u043E\u0445\u0438\u0449\u0430\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \n\u0414\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u0445\u0438- \u0442\u0438\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435 \u0435\u0441\u0442\u044C \u0441\u043A\u0430\u0444\u0430\u043D\u0434\u0440\u044B, \u0430 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043F\u0430\u0441 \u043D\u0430- \u0440\u0443\u0447\u043D\u0438\u043A\u043E\u0432, \u043A\u0438\u0441\u043B\u043E\u0440\u043E\u0434\u0430 \u0438 \u0431\u0430\u043B\u043B\u043E- \u043D\u043E\u0432. \n\u0422\u0430\u043A \u0436\u0435 \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0432 \u043B\u044E\u0434\u0435\u0439 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0438\u043C\u043F\u0443\u043B\u044C\u0441, \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u0441\u0442\u0430\u043D\u044F \u0438\u0445 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F. ",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ai_face",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043D\u043E\u0433\u0434\u0430 \u0443 \u043D\u0430\u0441 \u0437\u0430\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u0441\u0430\u0431\u043E- \u0442\u0430\u0436 \u0418\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438. \u042D\u0442\u043E \u043F\u0440\u043E- \u0446\u0435\u0441\u0441 \u0441\u043B\u043E\u0436\u043D\u044B\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0449\u0438\u0439 \u043E\u0442 \u043D\u0430\u0441 \u043E\u0441\u043D\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0438. \n\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0430\u043D\u043E\u043C \u043C\u0435\u0442\u043E\u0434 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u044F\u0437\u0432\u0438\u043C\u043E\u0441\u0442\u0438 \u043F\u0440\u044F\u043C\u043E \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439 \u0434\u043B\u044F \u0437\u0430\u043A\u043E\u043D\u043E\u0432 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0435\u0439 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043E\u044F. \u0412 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043C\u044B \u043C\u043E\u0436\u0435\u043C \u043B\u0435\u0433\u043A\u043E \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043D\u044B\u043C\u0438 \u0437\u0430\u043A\u043E\u043D\u0430\u043C\u0438, \u043D\u043E \u044D\u0442\u043E \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043D\u0430\u0441 \u0432 \u0442\u043E\u043C \u043F\u043B\u0430\u043D\u0435, \u0447\u0442\u043E \u0434\u043B\u044F \u0432\u0437\u043B\u043E\u043C\u0430 \u0432 \u0438\u0442\u043E\u0433\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0432 \u0441\u0430\u043C\u043E\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439. \u0422\u0430\u043A \u0436\u0435 \u0432\u0437\u043B\u043E\u043C \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435\u043B\u0451\u0433\u043A\u0430\u044F - \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u0435\u0441\u0442\u044C \u0432\u0435\u0437\u0434\u0435. \u0410 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F. \u041D\u0435 \u0443\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435\u0441\u044C \u0435\u0441\u043B\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432\u043E\u0434\u0435\u0439\u0441\u0442- \u0432\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0438\u043C \u043F\u043E\u043F\u044B\u0442\u043A\u0430\u043C \u0435\u0433\u043E \u0441\u043B\u043E\u043C\u0430\u0442\u044C.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_borg",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0440\u043E\u0431\u043E\u0442\u043E\u0432",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u044F \u0432\u0430\u0448\u0438 \u0448\u0430\u043D\u0441\u044B \u043D\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043C\u0438\u0441\u0441\u0438\u0438 \u0434\u043B\u044F \u0438\u0445 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445, \u0447\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442 \u0440\u043E\u0431\u043E\u0442\u043E\u0432 \u0434\u043B\u044F \u0441\u0432\u043E\u0438\u0445 \u0446\u0435\u043B\u0435\u0439, \u043C\u044B \u0434\u0430\u0451\u043C \u0432\u0430\u043C \u043E\u0441\u043E\u0431\u044B\u0439 "\u0423\u043B\u0443\u0447\u0448\u0430\u044E\u0449\u0438\u0439" \u0438\u0445 \u043F\u0440\u0438\u0431\u043E\u0440, \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438. \n\u041F\u0440\u0438 \u0432\u0437\u043B\u043E\u043C\u0435 \u043A\u0438\u0431\u043E\u0440\u0433\u0430 \u0442\u0430\u043A\u0438\u043C \u043F\u0440\u0438\u0431\u043E\u0440\u043E\u043C(\u0412\u0437\u043B\u043E\u043C \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F) \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u043B\u043E\u044F\u043B\u044C\u043D\u043E\u0433\u043E \u043A\u043B\u0430\u043D\u0443 \u0438 \u0432\u0430\u043C \u043B\u0438\u0447\u043D\u043E \u0441\u043B\u0443\u0433\u0443 \u0441\u043F\u043E\u0441\u043E\u0431- \u043D\u043E\u0433\u043E \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u043F\u043E\u043C\u043E\u0449\u0438 \u043A\u0430\u043A \u0432 \u0441\u0430\u0431\u043E\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0442\u0430\u043A \u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u043B\u0435\u0447\u0435\u043D\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0440\u043E\u0431\u043E\u0442 \u0431\u0443\u0434\u0435\u0442 \u043E\u0441\u043D\u0430\u0449\u0451\u043D \u043B\u0438\u0447\u043D\u043E\u0439 \u043A\u0430\u0442\u0430\u043D\u043E\u0439, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043A\u0438, \u043F\u0438\u043D\u043F\u043E\u0438\u043D\u0442\u0435\u0440\u043E\u043C \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u0435\u043C\u0443 \u043D\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u043E\u0432. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u043A\u0430\u0442\u0430\u043D\u0430 \u0440\u043E\u0431\u043E\u0442\u0430 \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0442\u0440\u0430\u043D\u0441\u043B\u043E\u043A\u0430\u0446\u0438\u044E!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"server",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",content:"\u041D\u0430 \u043D\u0430\u0443\u0447\u043D\u044B\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044C \u0441\u0432\u043E\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0443\u0447\u0451\u043D\u044B\u0445 \u0438 \u043C\u043D\u043E- \u0436\u0435\u0441\u0442\u0432\u043E \u0434\u0430\u043D\u043D\u044B\u0445 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u0440\u0438\u0445\u043E- \u0434\u0438\u0442\u0441\u044F \u0433\u0434\u0435 \u0442\u043E \u0445\u0440\u0430\u043D\u0438\u0442\u044C. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u044B\u0441\u0442\u0443- \u043F\u0430\u044E\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043A\u0430\u043A \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043D\u043E \u0433\u0440\u044B\u0437\u0443\u0442\u0441\u044F \u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u044F. \u0427\u0442\u043E \u043D\u0430\u043C \u043D\u0430 \u0440\u0443\u043A\u0443. \n\u041C\u044B \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u0430\u043B\u0438 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0432\u0438\u0440\u0443\u0441 \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0430\u043D \u043D\u0430 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u043F\u0435\u0440\u0435\u0434 \u043C\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043A\u043E\u0433\u043E \u0440\u043E\u0434\u0430. \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u043B\u0438\u0448\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0435\u0433\u043E \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u043D\u0430 \u0438\u0445 \u043D\u0430\u0443\u0447\u043D\u044B\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044F\u043D\u044B. \n\u041D\u043E \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u043C\u043D\u043E\u0433\u0438\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u043E\u0432 \u043D\u0435 \u0434\u0440\u0435\u043C\u043B\u044E\u0442. \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u043E \u0432\u0430\u0448\u0435\u0439 \u043F\u043E\u043F\u044B\u0442\u043A\u0435 \u0432\u0437\u043B\u043E\u043C\u0430 \u0431\u0443\u0434\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0451\u043D \u043C\u0435\u0441\u0442\u043D\u044B\u0439 \u0418\u0418. \u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u044D\u0442\u043E\u043C\u0443.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"buckler",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043B\u0438",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u0431\u043E\u0433\u0430\u0442\u044B\u0435 \u0448\u0438\u0448\u043A\u0438 \u043F\u043B\u0430\u0442\u044F\u0442 \u0437\u0430 \u0443\u0441\u043B\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044B \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430. \u0415\u0441\u043B\u0438 \u0432\u0430\u043C \u0434\u043E\u0441\u0442\u0430\u043B\u0430\u0441\u044C \u0442\u0430\u043A\u0430\u044F \u0446\u0435\u043B\u044C \u043F\u043E\u043C\u043D\u0438\u0442\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043E\u0431\u044F\u0437\u0430\u043D \u0434\u043E\u0436\u0438\u0442\u044C \u0434\u043E \u043A\u043E\u043D\u0446\u0430 \u0441\u043C\u0435\u043D\u044B! \n * \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043D\u0435 \u0437\u043D\u0430\u0435\u0442 \u043E \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043B\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u0438 \u0434\u0430\u043B\u044C\u0448\u0435 \u043D\u0435 \u0437\u043D\u0430\u043B! \n * \u041D\u0435 \u0432\u0430\u0436\u043D\u043E \u043A\u0442\u043E \u0438\u043B\u0438 \u0447\u0442\u043E \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u043D\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043E\u0434\u0437\u0430\u0449\u0438\u0442\u043D\u043E\u0433\u043E, \u043D\u043E \u0434\u043B\u044F \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0433\u0434\u0435 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442 \u043C\u0438\u0441\u0441\u0438\u044F \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u043D\u0435\u0436\u0435\u043B\u0430\u043D\u043D\u043E\u0435 \u043B\u0438\u0446\u043E. \u041D\u0435 \u0440\u0430\u0441\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044F \u0431\u0435\u0437 \u043D\u0443\u0436\u0434\u044B, \u0447\u0442\u043E\u0431\u044B \u0443\u043F\u0440\u043E\u0441\u0442\u0438\u0442\u044C \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043E\u0442\u0443 \u0438 \u043D\u0430 \u0432\u0430\u0441 \u0441\u0430\u043C\u0438\u0445 \u043D\u0435 \u0432\u0435\u043B\u0438 \u043E\u0445\u043E\u0442\u0443! \n\u0422\u0430\u043A \u0436\u0435 \u043C\u044B \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u043A\u043B\u0430\u043D \u043D\u0435 \u043E\u0434\u043E\u0431\u0440\u044F\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043A\u0438\u0435 \u043C\u0435\u0442\u043E\u0434\u044B "\u0417\u0430\u0449\u0438\u0442\u044B" \u0446\u0435\u043B\u0438. \u041D\u0435\u0442 \u0432\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0430\u0434\u0438\u0442\u044C \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0432 \u043A\u043B\u0435\u0442\u043A\u0443 \u0438 \u0441\u043B\u0435\u0434\u0438\u0442\u044C \u0437\u0430 \u043D\u0438\u043C \u0442\u0430\u043C! \u041D\u0435 \u043F\u043E\u0440\u0442\u0438\u0442\u0435 \u043D\u0430\u0448\u0443 \u0440\u0435\u043F\u0443\u0442\u0430\u0446\u0438\u044E \u0432 \u0433\u043B\u0430\u0437\u0430\u0445 \u043D\u0430\u0448\u0438\u0445 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"cash",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041A\u0440\u0430\u0436\u0430 \u0434\u0435\u043D\u0435\u0433",content:"\u041A\u0430\u043A \u0431\u044B \u044D\u0442\u043E \u043D\u0435 \u0431\u044B\u043B\u043E \u0442\u0440\u0438\u0432\u0438\u0430\u043B\u044C\u043D\u043E. \u0418\u043D\u043E\u0433\u0434\u0430 \u043A\u043B\u0430\u043D \u043D\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u0432 \u0434\u0435\u043D\u044C- \u0433\u0430\u0445. \u0418\u043B\u0438 \u0434\u0430\u0436\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0432\u044B \u0437\u0430\u0434\u043E\u043B\u0436\u0430\u043B\u0438 \u043D\u0430\u043C. \u0412 \u0442\u0430\u043A\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043C\u044B \u0441\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0434\u0430\u0434\u0438\u043C \u0432\u0430\u043C \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0434\u043B\u044F \u043D\u0430\u0441 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043B\u044F \u0432\u0430\u0441 \u044D\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435 \u0442\u0440\u0443\u0434\u043D\u0430\u044F, \u043D\u043E \u0432\u0440\u0435\u043C\u044F\u0437\u0430\u0442\u0440\u0430\u0442\u043D\u0430\u044F. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0430\u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0432 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B\u0445 \u043A\u0430\u0440\u043C\u0430\u043D\u043D\u044B\u0445 \u043A\u0440\u0430\u0436. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u044D\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u043B\u044F \u043A\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043A\u0430\u0440\u0442 \u0438 \u043E\u0431\u043D\u0430\u043B\u0438\u0447\u0438- \u0432\u0430\u043D\u0438\u044F \u0438\u0445 \u0441\u0447\u0435\u0442\u043E\u0432. \u041B\u0438\u0431\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u043C\u0435\u0442\u0438\u0442\u044C \u0432\u044B\u0448\u0435 \u0438 \u043E\u0433\u0440\u0430\u0431\u0438\u0442\u044C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430 \u0438\u043B\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043C\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435. \u0414\u043E\u0441\u0442\u0430\u043D\u044C\u0442\u0435 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438!",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"handcuff",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430",content:"\u0412 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044F\u0445 \u0447\u0443\u0436\u043E\u0439 \u043F\u043E\u0437\u043E\u0440 \u0434\u043B\u044F \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u043D\u0435\u0435 \u0447\u0435\u043C \u0441\u043C\u0435\u0440\u0442\u044C. \u0412 \u0442\u0430\u043A\u0438\u0445 \u0441\u043B\u0443\u0447\u0430\u044F\u0445 \u0432\u0430\u043C \u043F\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u044F\u0432\u0438\u0442\u044C \u043A\u0440\u0435\u0430\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0438 \u0434\u043E\u0431\u0438\u0442\u044C\u0441\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043F\u043E \u0437\u0430\u043A\u043E\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0443\u043F\u0435\u043A\u043B\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043A\u0443 \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435 \u0447\u0442\u043E\u0431\u044B \u0432 \u043A\u0440\u0438\u043C\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0439 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0446\u0435\u043B\u0438 \u043E\u0441\u0442\u0430\u043B\u0441\u044F \u0441\u043B\u0435\u0434. \u041D\u043E \u0432 \u0442\u043E \u0436\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u043F\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043F\u0438\u0441\u0430\u0442\u044C \u0446\u0435\u043B\u0438 \u0441\u0440\u043E\u043A \u0432 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 - \u043D\u0435 \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u043C\u0435\u0442\u043E\u0434. \u0426\u0435\u043B\u044C \u043B\u0435\u0433\u043A\u043E \u043E\u043F\u0440\u0430\u0432\u0434\u0430\u044E\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043E \u043D\u0435 \u0443\u0441\u0442\u0440\u043E\u0438\u0442 \u043A\u043B\u0438\u0435\u043D\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u0434 \u043B\u0438\u0447\u0438\u043D\u043E\u0439 \u0446\u0435\u043B\u0438. \u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043F\u043E\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044C \u043E\u0431\u043E\u0439\u0442\u0438\u0441\u044C \u0431\u0435\u0437 \u0441\u043B\u0438\u0448- \u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041B\u0438\u0448\u043D\u044F\u044F \u0434\u044B\u0440\u0430 \u0432 \u043E\u0431\u0448\u0438\u0432\u043A\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u0442\u0440\u0443\u043F\u044B - \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u044E\u0442 \u0448\u0430\u043D\u0441\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043B\u0430\u043D\u0430.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"spider_charge",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0440\u044B\u0432 \u043E\u0442\u0434\u0435\u043B\u0430",content:"\u0421\u0442\u0430\u0440\u044B\u0435 \u0434\u043E\u0431\u0440\u044B\u0435 \u0431\u043E\u043C\u0431\u044B. \u042D\u0444\u0444\u0435\u043A- \u0442\u0438\u0432\u043D\u044B\u0435 \u043E\u0440\u0443\u0434\u0438\u044F \u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0435\u043D\u0438\u044F \u0432\u0441\u0435\u0433\u043E \u0436\u0438\u0432\u043E\u0433\u043E \u0438 \u043D\u0435\u0436\u0438\u0432\u043E\u0433\u043E \u0432 \u0431\u043E\u043B\u044C\u0448\u043E\u043C \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041A\u043E\u0433\u0434\u0430 \u043A\u043B\u0438\u0435\u043D\u0442\u044B \u043F\u0440\u043E\u0441\u044F\u0442 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u043E\u0431\u044C\u0435\u043A\u0442, \u043E\u043D\u0438 \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u044E\u0442 \u043D\u0430\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0434\u043E\u0440\u043E\u0433\u043E \u0441\u0442\u043E\u0438\u0442 \u0442\u0430\u043A\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F. \u041D\u043E \u0440\u0435\u0434\u043A\u043E \u0433\u043E\u0442\u043E\u0432\u044B \u0441\u0434\u0430\u0442\u044C\u0441\u044F. \u041A\u0430\u043A \u0440\u0430\u0437 \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043C\u043D\u043E\u0433\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B \u043D\u0430 \u043F\u043E\u0434\u0440\u044B\u0432 \u043E\u0434\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0438\u043B\u0438 \u043E\u0442\u0434\u0435\u043B\u0430. \n\u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043F\u043E\u0441\u043B\u0435 \u0432\u0437\u0440\u044B\u0432\u0430 \u043D\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044C \u043E\u0445\u043E\u0442\u0430. \n \u041D\u0430\u0448\u0438 \u0431\u043E\u043C\u0431\u044B \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0438\u0437\u0433\u043E\u0442\u043E\u0432\u043B\u0435\u043D\u044B \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0442\u0435\u043B\u044F\u043C\u0438. \u041D\u0438\u043A\u0442\u043E \u043A\u0440\u043E\u043C\u0435 \u0432\u0430\u0441 \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442 \u0438\u0445 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445 \u043B\u0438\u0448\u044C \u0432 \u0437\u043E\u043D\u0435 \u0437\u0430\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C. \u0421\u043E\u0432\u0435\u0442\u0443\u0435\u043C \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044C \u043F\u043E\u0434\u0430\u043B\u044C\u0448\u0435 \u043F\u043E\u0441\u043B\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438. \u0425\u043E\u0442\u044F \u044D\u0442\u043E \u0438 \u0442\u0430\u043A \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0434\u043B\u044F \u0432\u0430\u0441 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"BSM",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0410\u043D\u0430\u043B\u0438\u0437 \u043A\u0440\u043E\u0432\u0438",content:'"\u0417\u043D\u0430\u0439 \u0441\u0432\u043E\u0435\u0433\u043E \u0432\u0440\u0430\u0433\u0430" - \u043F\u0440\u043E\u0441\u0442\u0430\u044F \u0438\u0441\u0442\u0438\u043D\u0430. \n\u0417\u0430 \u0433\u043E\u0434\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u044F \u043A\u043B\u0430\u043D\u0430 \u043C\u044B \u0438\u0437\u0443\u0447\u0438\u043B\u0438 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0437\u043D\u044B\u0445 \u043E\u043F\u0430\u0441\u043D\u044B\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043E \u0441\u0438\u0445 \u043F\u043E\u0440 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0435\u043C \u0438\u0437\u0443\u0447\u0435\u043D\u0438\u0435 \u043D\u0435\u043A\u043E- \u0442\u043E\u0440\u044B\u0445. \u0410 \u0447\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E, \u0447\u0442\u043E \u0438\u0437\u0443\u0447\u0430\u0442\u044C, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u044B\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B. \u041A\u0440\u043E\u0432\u044C \u043E\u0434\u0438\u043D \u0438\u0437 \u0441\u0430\u043C\u044B\u0445 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u044B\u0445 \u043F\u0440\u0438\u043C\u0435\u0440\u043E\u0432 \u0442\u043E\u0433\u043E, \u0447\u0442\u043E \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u043B\u0435\u0437\u043D\u043E \u043D\u0430\u0448\u0438\u043C \u0443\u0447\u0451\u043D\u044B\u043C. \n\u0418\u043C\u0435\u044E\u0449\u0430\u044F\u0441\u044F \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043D\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043B\u044F \u043A\u0440\u043E\u0432\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043F\u0440\u043E\u0430\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B \u043D\u0435 \u043F\u043E\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043D\u0430\u043C. \n\u0414\u043B\u044F \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u043A\u0440\u043E\u0432\u0438 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C 3 \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u043E\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043F\u043E\u043C\u0435- \u0441\u0442\u0438\u0442\u044C \u0438\u0445 \u0432 \u043F\u0440\u043E\u0431\u0438\u0440\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0442\u043E\u043C \u043D\u0430\u0434\u043E \u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E. \n\u041F\u0440\u0438\u043C\u0435\u0441\u0438 \u043F\u0440\u0438\u043D\u044F\u0442\u044B \u043D\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"changeling",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0413\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u044B",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043E\u0437\u043E\u043C\u043D\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044F \u0432\u044B\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043E\u0432 \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0443\u043C\u0435\u044E\u0442 \u043A\u0440\u0430\u0441\u0442\u044C \u0433\u0435\u043D\u044B \u0438 \u0438\u043C\u0438\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445. \n\u0421\u0432\u043E\u0438\u043C \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u043E\u043D\u0438 \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u043F\u0440\u043E\u0431- \u043B\u0435\u043C, \u0447\u0435\u043C \u043F\u043E\u043B\u044C\u0437\u044B. \n\u042D\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043E\u043B\u044C \u0436\u0435 \u0445\u0438\u0442\u0440\u044B \u0441\u043A\u043E\u043B\u044C \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u044B. \u041D\u0435 \u0434\u043E\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441 \u043D\u0438\u043C\u0438 \u043D\u0438 \u043E \u0447\u0451\u043C! \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0436\u0435 \u043D\u0430\u043C \u0441\u043B\u043E\u0436\u043D\u043E \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u0442\u044C \u0433\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u0430 \u043D\u0435 \u0437\u0430\u043F\u0438\u0445- \u043D\u0443\u0432 \u0435\u0433\u043E \u0432 \u043B\u0430\u0431\u043E\u0440\u0430\u0442\u043E\u0440\u0438\u044E \u0438 \u043D\u0435 \u043F\u0440\u043E\u0432\u0435\u0434\u044F \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0442\u0435\u0441\u0442\u043E\u0432. \u041D\u043E \u043E\u043D\u0438 \u0438\u043D\u043E\u0433\u0434\u0430 \u0432\u044B\u0434\u0430\u044E\u0442 \u0441\u0435\u0431\u044F \u0441\u0432\u043E\u0438\u043C\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F\u043C\u0438. \u0418 \u0442\u0430\u043A \u0436\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043B\u043E\u0436\u0430\u0442\u0441\u044F \u043D\u0430 \u0434\u043D\u043E \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438. \u0427\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E \u043B\u0435\u0433\u0447\u0435 \u0438\u0445 \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0434\u0430\u0439\u0442\u0435 \u0438\u043C \u043F\u043E\u043F\u043B\u044F\u0441\u0430\u0442\u044C, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0432\u044B\u0445\u043E\u0434\u0438\u0442\u044C \u043D\u0430 \u0441\u0446\u0435\u043D\u0443. \u0418 \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043B\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435. \u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043C\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0445\u0440\u0430\u043D\u0430 \u0443\u0436\u0435 \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u0437\u0430 \u043E\u0434\u043D\u0438\u043C \u0438\u0437 \u043D\u0438\u0445. \n\u041D\u0438\u043A\u0442\u043E \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432 \u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u043E \u043F\u043E\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u043C \u0441 \u044D\u0442\u0438\u043C...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"vampire",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u043C\u043F\u0438\u0440\u044B",content:"\u0414\u0435\u0448\u0451\u0432\u044B\u0435 \u0440\u043E\u043C\u0430\u043D\u044B, \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0438 \u0441\u043A\u0430\u0437\u043A\u0438 \u043F\u0440\u043E\u0448\u043B\u043E\u0433\u043E \u043E\u043F\u0438\u0441\u044B\u0432\u0430\u043B\u0438 \u0432\u0430\u043C\u043F\u0438\u0440\u043E\u0432 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A\u043E\u0432 \u043F\u044C\u044E\u0449\u0438\u0445 \u043A\u0440\u043E\u0432\u044C \u043B\u044E\u0434\u0435\u0439 \u0432 \u043D\u043E\u0447\u0438 \u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E- \u0449\u0438\u0445 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E- \u0441\u0442\u044F\u043C\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u043D\u0435\u0435 \u0440\u043E\u043C\u0430\u043D\u0442\u0438\u0447\u043D\u044B... \n\u041C\u044B \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u0448\u0438 \u043F\u043E\u0434\u043E\u0437\u0440\u0435- \u043D\u0438\u044F \u043F\u0430\u0434\u0430\u044E\u0442 \u043D\u0430 \u0432\u043B\u0438\u044F\u043D\u0438\u0435 \u043D\u0435\u043A\u043E\u0439 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438. \u0422\u0430\u043A \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435, \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440 \u043F\u043E\u043A\u0430 \u0432\u0430\u043C\u043F\u0438\u0440 \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0443\u0433\u0440\u043E\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043D\u0438. \u0412\u044B \u0432\u043E\u043B\u044C\u043D\u044B \u0435\u0433\u043E \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \n\u0412\u0430\u043C\u043F\u0438\u0440\u044B \u043E\u0447\u0435\u043D\u044C \u043E\u043F\u0430\u0441\u043D\u044B \u0432 \u043F\u0440\u044F\u043C\u043E\u043C \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u043E\u043D\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u0432\u0437\u0433\u043B\u044F\u0434\u043E\u043C \u0438 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0430\u0442\u044C \u0440\u0430\u0437\u0443\u043C \u0441\u0432\u043E\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041D\u0435 \u0434\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0438\u043C, \u043D\u043E \u0442\u0430\u043A \u0436\u0435 \u043F\u043E\u043C\u043D\u0438\u0442\u0435 - \u043E\u043D\u0438 \u043B\u0438\u0448\u044C \u0436\u0435\u0440\u0442\u0432\u044B \u0441\u0442\u0435\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u0441\u0442\u0432. \u0418 \u044D\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"syndicate",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442",content:"\u041D\u0430\u0448\u0438 \u0445\u043E\u0440\u043E\u0448\u0438\u0435 \u0437\u043D\u0430\u043A\u043E\u043C\u044B\u0435. \u0421\u0431\u043E\u0440\u0438\u0449\u0435 \u043C\u043E\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043F\u043E\u0434\u043F\u043E\u043B\u044C\u043D\u043E\u043C \u043C\u0438\u0440\u0435 \u0441 \u0437\u0430\u043A\u0440\u044B\u0442\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u043E\u0439 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0430 \u043E \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043C\u0430\u043B\u043E... \n\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442 \u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0437\u0430\u043A\u0430\u0437\u043E\u0432. \u041D\u043E \u0441\u0430\u043C\u043E\u0439 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E\u0439, \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u043A\u0442\u043E \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043E\u0439 \u044D\u0442\u043E\u0439 \u0433\u0440\u0443\u043F\u043F\u044B - \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0433\u0440\u043E\u043C\u043D\u0430\u044F \u043D\u0435\u043D\u0430\u0432\u0438\u0441\u0442\u044C \u043A \u041D\u0422. \n\u0412 \u0441\u043B\u0443\u0447\u0430\u0435 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u044F \u0441 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438 \u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u0430 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0430 \u043D\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043F\u0440\u043E\u0441\u0442\u0430. \n\u0415\u0441\u043B\u0438 \u043E\u043D\u0438 \u043D\u0435 \u043C\u0435\u0448\u0430\u044E\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \u041C\u044B \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u043C \u0438\u043C.",position:"bottom-start"})]})]})})})},u=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.actionsIcon,N=s.blocked_TGUI_rows,x=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u0414\u0435\u043B\u044F\u0442\u0441\u044F \u043D\u0430 3 \u0440\u0430\u0437\u043D\u044B\u0445 \u043F\u043E\u0434\u0445\u043E\u0434\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439 \u043F\u043E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044E \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F, \u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0434\u0443\u043B\u0435\u0439 \u043E\u0434\u043D\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0438\u0437 \u0441\u043E\u0441\u0435\u0434\u043D\u0438\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",tooltipPosition:"bottom"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{width:"100%",title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",ml:"0px",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0421\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043E\u0432, \u043D\u0430\u043F\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043D\u0438 \u0438 \u0431\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0440\u0438\u043C\u043E\u0439 \u0443\u0433\u0440\u043E\u0437\u043E\u0439, \u0432\u0441\u0451 \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0437\u043D\u0430\u043B! \u0411\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B \u043A\u0430\u043A \u043F\u0440\u0438\u0437\u0440\u0430\u043A!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"smoke",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"smoke",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0414\u042B\u041C\u041E\u0412\u0410\u042F \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044B \u0441\u043E\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0443\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432. \n\u042D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u0441\u043E\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0432\u0438\u0437\u043E\u0440\u043E\u043C \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u0442\u0435\u0440\u043C\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u043A\u0430\u043D\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043A \u0436\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043C\u043E\u0434\u0443\u043B\u044F\u043C\u0438 \u0435\u0441\u043B\u0438 \u0432\u044B \u0442\u043E\u0433\u043E \u043F\u043E\u0436\u0435\u043B\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"ninja_cloak",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_cloak",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041D\u0415\u0412\u0418\u0414\u0418\u041C\u041E\u0421\u0422\u042C",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 \u0441\u043A\u0440\u044B\u0432\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043F\u0440\u0438\u0433\u043B\u0443\u0448\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \u0425\u043E\u0442\u044C \u043F\u043E\u043B\u0435 \u0438 \u0441\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E, \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0445\u043B\u0430\u0434\u043D\u043E\u043A\u0440\u043E\u0432\u0435\u043D. \n\u041D\u0435 \u0441\u0442\u043E\u0438\u0442 \u043D\u0435\u0434\u043E\u043E\u0446\u0435\u043D\u0438\u0432\u0430\u0442\u044C \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0445 \u043B\u044E\u0434\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 15 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"ninja_clones",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_clones",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u041A\u041B\u041E\u041D\u042B",content:"\u0421\u043E\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0433\u043E\u0442\u043E\u0432\u044B\u0445 \u043F\u043E\u043C\u043E\u0447\u044C \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043E\u0440\u0438\u0435\u043D\u0442\u0438- \u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u0430 \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u0441\u043C\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u043C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043F\u0430\u0440\u044B \u043C\u0435\u0442\u0440\u043E\u0432. \n\u041F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435\u0441\u044C \u043E\u0441\u0442\u043E\u0440\u043E\u0436\u043D\u043E. \u0421\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0435 \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0435\u0440\u0435\u0442\u044C \u0432\u0430\u0441 \u0437\u0430 4-\u043C\u044F \u0441\u0442\u0435\u043D\u0430\u043C\u0438. \u0411\u0443\u0434\u044C\u0442\u0435 \u043A \u044D\u0442\u043E\u043C\u0443 \u0433\u043E\u0442\u043E\u0432\u044B. \n\u041A\u043B\u043E\u043D\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 20 \u0441\u0435\u043A\u0443\u043D\u0434. \u041A\u043B\u043E\u043D\u044B \u0438\u043C\u0435\u044E\u0442 \u0448\u0430\u043D\u0441 \u0440\u0430\u0437\u043C\u043D\u043E\u0436\u0438\u0442\u0441\u044F \u0430\u0442\u0430\u043A\u0443\u044F \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 8 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"chameleon",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chameleon",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0425\u0410\u041C\u0415\u041B\u0415\u041E\u041D",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u0433\u043E\u043B\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u043E\u043B\u0435 \u0438\u0441\u043A\u0430\u0436\u0430\u044E\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E\u0435 \u0438 \u0441\u043B\u0443\u0445\u043E\u0432\u043E\u0435 \u0432\u043E\u0441\u043F\u0440\u0438\u044F\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044C \u0438 \u0441\u043B\u044B\u0448\u0430\u0442\u044C \u043A\u0430\u043A \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0432\u044B \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C. \n\u042D\u0442\u043E \u0434\u0430\u0451\u0442 \u0432\u0430\u043C \u043E\u0433\u0440\u043E\u043C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u0442\u043E\u0440 \u043F\u043E \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u044E \u0438 \u0438\u043C\u0438\u0442\u0430\u0446\u0438\u0438 \u043B\u044E\u0431\u043E\u0433\u043E \u0447\u043B\u0435\u043D\u0430 \u044D\u043A\u0438\u043F\u0430\u0436\u0430. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0445\u0430\u043C\u0435\u043B\u0435\u043E\u043D \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"ninja_spirit_form",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_spirit_form",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0424\u041E\u0420\u041C\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044B \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043D\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0442\u0435\u043B\u0430 \u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043E\u043C \u044D\u0442\u043E\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0439 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438. \n\u0414\u0435\u043B\u0430\u044F \u0432\u0430\u0448\u0435 \u0442\u0435\u043B\u043E \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u044B\u043C \u044D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442\u044C \u0441\u043A\u0432\u043E\u0437\u044C \u0441\u0442\u0435\u043D\u044B. \n\u042D\u0442\u0430 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u043D\u0435 \u0441\u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0443\u044F\u0437\u0432\u0438\u043C\u044B\u043C \u0434\u043B\u044F \u043F\u0443\u043B\u044C \u0438 \u043B\u0435\u0437\u0432\u0438\u0439! \n\u041D\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u0441\u043D\u044F\u0442\u044C \u0441 \u0441\u0435\u0431\u044F \u043D\u0430\u0440\u0443\u0447\u043D\u0438\u043A\u0438, \u0431\u043E\u043B\u044B \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B\u043B\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043E\u0431\u0430 \u0438\u043B\u0438 \u044F\u0449\u0438\u043A\u0430, \u043E\u043A\u0430\u0436\u0438\u0441\u044C \u0432\u044B \u0442\u0430\u043C \u0437\u0430\u043F\u0435\u0440\u0442\u044B... \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u0444\u043E\u0440\u043C\u0430 \u0434\u0443\u0445\u0430 \u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438! \u041F\u043E\u0442\u0440\u0435\u0431\u043B\u0435\u043D\u0438\u0435 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u043E \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043E\u0431\u044A\u0451\u043C\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 25 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0417\u043C\u0435\u0439",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435! \u0422\u0440\u044E\u043A\u0438, \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0449\u0438\u0442\u044B. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C, \u0447\u0442\u043E \u0442\u0430\u043A\u043E\u0435 \u0431\u043E\u0439 \u0441 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u043C \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0438 \u0438\u0437\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0445\u043E\u0434\u044F \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u043B\u044E\u0431\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043E \u043B\u0438\u0448\u044C \u0433\u0440\u044B\u0437\u0443\u043D\u044B, \u0447\u044C\u0451 \u043B\u043E\u0433\u043E\u0432\u043E \u043D\u0430\u0432\u0435\u0441\u0442\u0438\u043B \u0437\u043C\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"kunai",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"kunai",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041E\u0415\u041D\u041D\u041E\u0415 \u0414\u0416\u041E\u0425\u042C\u0401",content:"\u0422\u0430\u043A \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u0430\u043A \u0428\u044D\u043D\u0431\u044F\u043E \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u043E \u041A\u0438\u043D\u0436\u0430\u043B \u043D\u0430 \u0446\u0435\u043F\u0438. \n\u0418\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0437\u0430\u043F\u0443\u0441\u043A\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0438 \u043F\u0440\u0438\u0442\u044F\u043D\u0443\u0442\u044C \u043A \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043E\u043B\u0438 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u041E\u0440\u0443\u0436\u0438\u0435 \u043D\u0435 \u043E\u0447\u0435\u043D\u044C \u0433\u043E\u0434\u0438\u0442\u0441\u044F \u0434\u043B\u044F \u0434\u043E\u043B\u0433\u0438\u0445 \u0431\u043E\u0451\u0432, \u043D\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u044B\u0442\u044F\u0433\u0438\u0432\u0430\u043D\u0438\u044F \u043E\u0434\u043D\u043E\u0439 \u0436\u0435\u0440\u0442\u0432\u044B - \u043D\u0430 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043D\u0435 \u043F\u0440\u043E\u043C\u0430\u0445\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0441\u0442\u0440\u0435\u043B\u044C\u0431\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 5 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"chem_injector",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chem_injector",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041B\u042F\u042E\u0429\u0418\u0419 \u041A\u041E\u041A\u0422\u0415\u0419\u041B\u042C",content:"\u0412\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u043B\u0435\u0447\u0435\u0431\u043D\u0443\u044E \u0441\u043C\u0435\u0441\u044C. \u0421\u043F\u043E\u0441\u043E\u0431\u043D\u0443\u044E \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u0434\u0430\u0436\u0435 \u0441\u043B\u043E\u043C\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u0441\u0442\u0438 \u0438 \u043E\u0442\u043E\u0440\u0432\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u041F\u0440\u0435\u043F\u0430\u0440\u0430\u0442 \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442- \n\u0432\u0435\u043D\u043D\u043E-\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u0434\u043E\u043A\u0441\u044B \u0438 \u043E\u0447\u0435\u043D\u044C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0438\u0437 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0430! \n\u041F\u0440\u0438 \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0435 \u043E\u043D\u0438 \u0441\u0442\u0430\u043D\u043E\u0432\u044F\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043E\u043F\u0430\u0441\u043D\u044B \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041D\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 30 \u0435\u0434. \u043F\u0440\u0435\u043F\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C! \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u0438\u043C\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044F\u0434\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emergency_blink",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emergency_blink",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041A\u0421\u0422\u0420\u0415\u041D\u041D\u0410\u042F \u0422\u0415\u041B\u0415\u041F\u041E\u0420\u0422\u0410\u0426\u0418\u042F",content:"\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0443\u044E \u0437\u043E\u043D\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043E\u043A\u043E\u043B\u043E \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044F\u0442\u043A\u043E\u0432 \u043C\u0435\u0442\u0440\u043E\u0432. \n\u0414\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u043C\u043E\u0437\u0433\u043E\u0432\u044B\u0435 \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u044B \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041F\u043E\u044D\u0442\u043E\u043C\u0443 \u043E\u043F\u044B\u0442\u043D\u044B\u0435 \u0432\u043E\u0438\u043D\u044B \u043A\u043B\u0430\u043D\u0430, \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043E \u0441\u043D\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"caltrop",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"caltrop",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E-\u0427\u0415\u0421\u041D\u041E\u041A",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043D\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u043F\u0440\u043E\u0441\u0442\u043E \u043A\u0430\u043B\u0442\u0440\u043E\u043F\u044B, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043F\u0443\u0442\u044B\u0432\u0430\u044E\u0449\u0438\u0445 \u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043E\u043B\u0435\u0435 \u0441\u044A\u0435\u0441\u0442\u043D\u044B\u043C \u0447\u0435\u0441\u043D\u043E\u043A\u043E\u043C. \n\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u043F\u043E\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u0441\u043F\u0440\u0435\u0441\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043B\u043E\u0432\u0443\u0448\u043A\u0438. \n\u041B\u043E\u0432\u0443\u0448\u043A\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 10 \u0441\u0435\u043A\u0443\u043D\u0434. \u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043F\u0430\u0434\u0430\u044E\u0442 - \u0435\u0441\u043B\u0438 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0442\u044C. \n\u0411\u043E\u043B\u044C \u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0433\u043E \u0448\u0430\u0433\u0430 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0438\u0433\u043D\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043E\u0431\u043E\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D- \u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u0412\u044B \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u044B \u043E\u0442 \u043D\u0438\u0445. \u041D\u0435 \u043D\u0430\u0441\u0442\u0443\u043F\u0430\u0439\u0442\u0435 \u043D\u0430 \u0441\u0432\u043E\u0438 \u0436\u0435 \u043B\u043E\u0432\u0443\u0448\u043A\u0438! \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 1 \u0441\u0435\u043A\u0443\u043D\u0434\u0430.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"cloning",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"cloning",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0422\u041E\u0420\u041E\u0419 \u0428\u0410\u041D\u0421",content:"\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043C\u043D\u043E\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0438\u0432\u0430\u044F \u0441\u0432\u043E\u0438 \u043C\u0438\u0441\u0441\u0438\u0438 \u0441\u043E\u0432\u0435\u0440\u0448\u0430\u043B\u0438 \u0441\u0430\u043C\u043E\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043B\u0438 \u043E\u043A\u0430\u0437\u044B\u0432\u0430\u043B\u0438\u0441\u044C \u0432 \u043B\u0430\u043F\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044C \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0434\u043E\u0440\u043E\u0433\u0430\u044F \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u0430. \u041C\u043E\u0449\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0435 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0432\u0430\u0441 \u043F\u0440\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u0442\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430. \n\u042D\u0442\u0430 \u043C\u0430\u0448\u0438\u043D\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0439 \u0448\u0430\u043D\u0441, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0432 \u0432\u0430\u0441 \u043A \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043B\u0435\u0447\u0438\u0432 \u043B\u044E\u0431\u044B\u0435 \u0442\u0440\u0430\u0432\u043C\u044B. \n\u041C\u044B \u0441\u043B\u044B\u0448\u0430\u043B\u0438 \u043F\u0440\u043E \u0441\u043E\u043C\u043D\u0435\u043D\u0438\u044F \u0437\u0430\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u043D\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043E \u044D\u0442\u043E \u043F\u0440\u043E\u0441\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u043B\u0435\u043D\u043E\u0432 \u043A\u043B\u0430\u043D\u0430. \u041D\u043E \u0443\u0432\u0435\u0440\u044F\u0435\u043C \u0432\u0430\u0441, \u044D\u0442\u043E \u043D\u0435 \u0442\u0430\u043A. \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0438\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043D\u0430 \u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0438 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044E. \u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0421\u0442\u0430\u043B\u044C",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u042F\u0440\u043E\u0441\u0442\u044C \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C. \u0421\u0438\u043B\u0430, \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u043E\u0440\u0443\u0434\u0438\u044F \u0432\u044B\u0448\u0435 \u0438\u0445 \u043F\u043E\u043D\u0438\u043C\u0430\u043D\u0438\u044F. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A \u0447\u0442\u043E \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043E\u044E \u0434\u043E\u0431\u044B\u0447\u0443. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0432\u043A\u0443\u0441 \u0441\u0442\u0430\u043B\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"shuriken",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"shuriken",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u0421\u042E\u0420\u0418\u041A\u0415\u041D\u042B",content:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043A\u0440\u044B\u0442\u043E\u0435 \u0432 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0430\u0445 \u043A\u043E\u0441\u0442\u044E\u043C\u0430. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442 \u043F\u043E \u0442\u0440\u0438 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u0430, \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438, \u043E\u0447\u0435\u0440\u0435\u0434\u044C\u044E. \n\u0421\u044E\u0440\u0438\u043A\u0435\u043D\u044B \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u0438\u0437\u043D\u0443\u0440\u044F\u044E\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0438 \u043D\u0430\u043D\u043E\u0441\u044F\u0442 \u0441\u043B\u0430\u0431\u044B\u0439 \u043E\u0436\u043E\u0433\u043E\u0432\u044B\u0439 \u0443\u0440\u043E\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043B\u0435\u0442\u0430\u044E\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043A\u043B\u043E, \u043A\u0430\u043A \u0438 \u043E\u0431\u044B\u0447\u043D\u044B\u0435 \u043B\u0430\u0437\u0435\u0440\u043D\u044B\u0435 \u0441\u043D\u0430\u0440\u044F\u0434\u044B. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 300 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"adrenal",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"adrenal",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u041F\u041B\u0415\u0421\u041A \u0410\u0414\u0420\u0415\u041D\u0410\u041B\u0418\u041D\u0410",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0432\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043C\u043E\u0449\u043D\u0443\u044E \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0443\u0441\u043A\u043E\u0440\u044F\u044E\u0449\u0443\u044E \u0432\u0430\u0441 \u0432 \u0431\u043E\u044E \u0438 \u043F\u043E\u043C\u043E\u0433\u0430\u044E\u0449\u0443\u044E \u0431\u044B\u0441\u0442\u0440\u0435\u0435 \u043E\u043A\u043B\u0435\u043C\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432. \n\u041A\u043E\u0441\u0442\u044E\u043C \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442 \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0443\u0440\u0430\u043D\u0430. \u0427\u0442\u043E \u043A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0451\u0442 \u043D\u0435\u043F\u0440\u0438\u044F\u0442\u043D\u044B\u0439 \u043D\u0435\u0433\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u044D\u0444\u0444\u0435\u043A\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u044F \u0440\u0430\u0434\u0438\u044F \u0432 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0436\u0435\u043D\u043E \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0443\u0440\u0430\u043D\u0430 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emp",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emp",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E\u041C\u0410\u0413\u041D\u0418\u0422\u041D\u042B\u0419 \u0412\u0417\u0420\u042B\u0412",content:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043C\u0430\u0433\u043D\u0438\u0442\u043D\u044B\u0435 \u0432\u043E\u043B\u043D\u044B \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u044E\u0442, \u043F\u043E\u0434\u0440\u044B\u0432\u0430\u044E\u0442 \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0430\u044E\u0442 - \u043A\u0438\u0431\u043E\u0440\u0433\u043E\u0432, \u0434\u0440\u043E\u043D\u043E\u0432, \u041A\u041F\u0411, \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435, \u043F\u043E\u0440\u0442\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u0421\u0432\u0435\u0442\u043E\u0448\u0443\u043C\u043E\u0432\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044F\u0437\u0438 \u0438 \u0442.\u0434. \n\u042D\u0442\u043E\u0442 \u0432\u0437\u0440\u044B\u0432 \u043C\u043E\u0436\u0435\u0442 \u043A\u0430\u043A \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0432 \u0431\u043E\u044E, \u0442\u0430\u043A \u0438 \u043D\u0435\u0432\u0435\u0440\u043E\u044F\u0442\u043D\u043E \u043D\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044C. \u0412\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043E\u0441\u043C\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043C\u0435\u0441\u0442\u043D\u043E\u0441\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u0435\u043C. \n\u041D\u0435 \u0437\u0430\u0431\u044B\u0432\u0430\u0439\u0442\u0435 \u043E \u0437\u0430\u0449\u0438\u0449\u0430\u044E\u0449\u0435\u043C \u043E\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043C\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u0432\u0438\u0437\u043E\u0440\u0430. \u041E\u043D \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u043C\u043E\u0447\u044C \u043D\u0435 \u043E\u0441\u043B\u0435\u043F\u043D\u0443\u0442\u044C, \u043F\u0440\u0438 \u043F\u043E\u0434\u0440\u044B\u0432\u0435 \u043F\u043E\u0434\u043E\u0431\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044B\u0432 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 4 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"energynet",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"energynet",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0410\u042F \u0421\u0415\u0422\u042C",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043B\u043E\u0432\u0438\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u0432\u0430\u043C\u0438 \u0446\u0435\u043B\u044C \u0432 \u043E\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044E\u0449\u0443\u044E \u043B\u043E\u0432\u0443\u0448\u043A\u0443. \n\u0418\u0437 \u043B\u043E\u0432\u0443\u0448\u043A\u0438 \u043B\u0435\u0433\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u0441\u043B\u043E\u043C\u0430\u0432 \u0435\u0451 \u043B\u044E\u0431\u044B\u043C \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u043C. \n\u041E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043D\u0435\u0439\u0442\u0440\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0432\u0440\u0430\u0433\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u0432 \u043D\u0435\u0451 \u043C\u043E\u0436\u043D\u043E \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445 \u0438\u043B\u0438 \u043D\u0430\u0434\u043E\u0435\u0434\u043B\u0438\u0432\u044B\u0445 \u043E\u0445\u0440\u0430\u043D\u043D\u044B\u0445 \u0431\u043E\u0442\u043E\u0432. \n\u0423\u0447\u0438\u0442\u044B\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E \u0441\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043E\u0442\u0441\u0442\u0440\u0435\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043A \u0436\u0435 \u0441\u0435\u0442\u044C \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u043A\u0438\u043D\u0443\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u043C \u043F\u0443\u0442\u0451\u043C, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u0435\u0442\u0438 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"spider_red",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_red",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0411\u041E\u0415\u0412\u041E\u0415 \u0418\u0421\u041A\u0423\u0421\u0421\u0422\u0412\u041E \n\u041F\u041E\u041B\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041E\u0412\u042B",content:"\u0411\u043E\u0435\u0432\u043E\u0435 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u043E \u043D\u0438\u043D\u0434\u0437\u044F \u0441\u043E\u0441\u0440\u0435\u0434\u043E\u0442\u043E\u0447\u0435\u043D\u043D\u043E\u0435 \u043D\u0430 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u0438 \u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0438\u0451\u043C\u043E\u0432. \n\u0412 \u0443\u0447\u0435\u043D\u0438\u0435 \u0432\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043F\u0440\u0438\u0451\u043C\u044B: \n\u0412\u044B\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u0440\u0443\u043A\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044B\u0440\u043E\u043D\u0438\u0442\u044C \u0441\u0432\u043E\u0451 \u043E\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043B\u0430\u0434\u043E\u043D\u044C\u044E - \u043E\u0442\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043D\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0435\u0442\u0440\u043E\u0432 \u043E\u0442 \u0432\u0430\u0441, \u043B\u0438\u0448\u0430\u044F \u0440\u0430\u0432\u043D\u043E\u0432\u0435\u0441\u0438\u044F. \n\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043D\u0438\u0435 \u0448\u0435\u0438 - \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043E\u0431\u0435\u0437\u0433\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u043B\u0435\u0436\u0430\u0447\u0443\u044E \u0436\u0435\u0440\u0442\u0432\u0443 \u043A\u0430\u0442\u0430\u043D\u043E\u0439 \u0432\u043E \u0432\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0440\u0443\u043A\u0435. \n\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0442\u043E\u0440\u043D\u0430\u0434\u043E - \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0432\u043E\u043A\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043E\u0437\u0434\u0430\u0451\u0442 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0434\u044B\u043C\u043E\u0432\u043E\u0433\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u044B \u043E\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044C \u0441 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0448\u0430\u043D\u0441\u043E\u043C \u043E\u0442\u0440\u0430\u0436\u0430\u0442\u044C \u0441\u043D\u044F\u0440\u044F\u0434\u044B \u0432\u0440\u0430\u0433\u043E\u0432 \u043E\u0431\u0440\u0430\u0442\u043D\u043E.",position:"right"})]})]})]})]})})},f=r.ShuttleConsole=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0448\u0430\u0442\u0442\u043B\u043E\u043C",mr:"5px",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041F\u0430\u043D\u0435\u043B\u044C \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0430\u0448\u0438\u043C \u043B\u0438\u0447\u043D\u044B\u043C \u0448\u0430\u0442\u0442\u043B\u043E\u043C. \u0422\u0430\u043A \u0436\u0435 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0438 \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0441\u0430\u043C\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"right"}),children:(0,e.createComponentVNode)(2,t.Flex,{ml:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F",children:s.status?s.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F",children:s.player_pos}),!!s.shuttle&&(!!s.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0442\u0442\u043B",children:s.docking_ports.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:g.name,onClick:function(){function N(){return v("move",{move:g.id})}return N}()},g.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!s.admin_controlled&&(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E",disabled:!s.status,onClick:function(){function g(){return v("request")}return g}()})})],0))]})})})}return m}(),l=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.randomPercent,g=v.actionsIcon,N=v.color_choice;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:N,value:s,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+N,mt:1,children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_"+N,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Loading ",s+"%"]}),2)})})},d=function(m){function i(V){var v;return v=m.call(this,V)||this,v.timer=null,v.state={lastText:"text do be there",currentDisplay:[]},v}k(i,m);var h=i.prototype;return h.tick=function(){function V(){var v=this.props,s=this.state;if(v.allMessages!==s.lastText&&!v.end_terminal){var g=s.currentDisplay;g.push(v.allMessages),s.lastText=v.allMessages}else v.end_terminal&&(clearTimeout(this.timer),setTimeout(v.onFinished,v.finishedTimeout))}return V}(),h.componentDidMount=function(){function V(){var v=this,s=this.props.linesPerSecond,g=s===void 0?2.5:s;this.timer=setInterval(function(){return v.tick()},1e3/g)}return V}(),h.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),h.render=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:this.state.currentDisplay.map(function(v){return(0,e.createFragment)([v,(0,e.createVNode)(1,"br")],0,v)})})}return V}(),i}(e.Component)},38307:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return y}(),k=r.StationAlertConsoleContent=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.alarms||[];return Object.keys(u).map(function(f){var l,d;return(0,e.createComponentVNode)(2,t.Section,{title:f+" Alarms",children:(0,e.createVNode)(1,"ul",null,((l=u[f])==null?void 0:l.length)===0?(0,e.createVNode)(1,"li","color-good","Systems Nominal",16):(d=u[f])==null?void 0:d.map(function(m){return(0,e.createVNode)(1,"li","color-average",m,0,null,m)}),0)},f)})}return y}()},39409:function(I,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),p=n(36036),k=n(98595),y=5,S=9,b=function(V){return V===0?5:9},C="64px",c=function(V){return V[0]+"/"+V[1]},u=function(V){var v=V.align,s=V.children;return(0,e.createComponentVNode)(2,p.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:s})},f={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={neck:{displayName:"neck",gridSpot:c([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,4]),image:"inventory-pda.png"}},d={neck:{displayName:"neck",gridSpot:c([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,8]),image:"inventory-pda.png"}},m=function(h){return h[h.Completely=1]="Completely",h[h.Hidden=2]="Hidden",h}(m||{}),i=r.StripMenu=function(){function h(V,v){var s=(0,o.useBackend)(v),g=s.act,N=s.data,x=new Map;if(N.show_mode===0)for(var B=0,L=Object.keys(N.items);B300?"bad":f>150?"average":"good"},S=function(f){return f>5e3?"bad":f>4e3?"average":"good"},b=function(f){return f>1e4?"bad":f>5e3?"average":"good"},C=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Detected Supermatter Shards",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function h(){return m("refresh")}return h}()}),children:(0,e.createComponentVNode)(2,t.Box,{m:1,children:i.supermatters.length===0?(0,e.createVNode)(1,"h3",null,"No shards detected",16):(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.TableCell,{children:"Area"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Integrity"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Details"})]}),i.supermatters.map(function(h){return(0,e.createComponentVNode)(2,p.TableRow,{children:[(0,e.createComponentVNode)(2,p.TableCell,{children:h.area_name}),(0,e.createComponentVNode)(2,p.TableCell,{children:[h.integrity,"%"]}),(0,e.createComponentVNode)(2,p.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"View",onClick:function(){function V(){return m("view",{view:h.uid})}return V}()})})]},h)})]})})})})})},c=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Crystal Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"caret-square-left",content:"Back",onClick:function(){function h(){return m("back")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[95,1/0],average:[80,94],bad:[-1/0,79]},minValue:"0",maxValue:"100",value:i.SM_integrity,children:[i.SM_integrity,"%"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:y(i.SM_power),children:[i.SM_power," MeV/cm3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:S(i.SM_ambienttemp),children:[i.SM_ambienttemp," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b(i.SM_ambientpressure),children:[i.SM_ambientpressure," kPa"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:[i.SM_gas_O2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:[i.SM_gas_CO2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:[i.SM_gas_N2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:[i.SM_gas_PL,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[i.SM_gas_OTHER,"%"]})]})})]})})}},46029:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(98595),k=r.SyndicateComputerSimple=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data;return(0,e.createComponentVNode)(2,p.Window,{width:400,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:u.rows.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f.buttontitle,disabled:f.buttondisabled,tooltip:f.buttontooltip,tooltipPosition:"left",onClick:function(){function l(){return c(f.buttonact)}return l}()}),children:[f.status,!!f.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:f.bullets.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:l},l)})})]},f.title)})})})}return y}()},99279:function(I,r,n){"use strict";r.__esModule=!0,r.SyndieCargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(29319),S=n(25328),b=r.SyndieCargoConsole=function(){function l(d,m){return(0,e.createComponentVNode)(2,k.Window,{width:900,height:800,theme:"syndicate",children:(0,e.createComponentVNode)(2,k.Window.Content,{children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})})}return l}(),C=function(d,m){var i=(0,o.useLocalState)(m,"contentsModal",null),h=i[0],V=i[1],v=(0,o.useLocalState)(m,"contentsModalTitle",null),s=v[0],g=v[1];if(h!==null&&s!==null)return(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,p.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[s,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,p.Box,{children:h.map(function(N){return(0,e.createComponentVNode)(2,p.Box,{children:["- ",N]},N)})}),(0,e.createComponentVNode)(2,p.Box,{m:2,children:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function N(){V(null),g(null)}return N}()})})]})},c=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.is_public,s=v===void 0?0:v,g=V.cash,N=V.wait_time,x=V.is_cooldown,B=V.telepads_status,L=V.adminAddCash,T=B,A="",E=0,w="";return B==="Pads not linked!"?(E=0,A="Attempts to link telepads to the console.",w="Link pads"):x?x&&(w="Cooldown...",A="Pads are cooling off...",E=1,N!==1?T=""+B+" (ETA: "+N+" seconds)":T=""+B+" (ETA: "+N+" second)"):(E=0,A="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",w="Teleport"),(0,e.createComponentVNode)(2,p.Section,{title:"Status",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[s===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Money Available",children:[g,(0,e.createComponentVNode)(2,p.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){function O(){return h("withdraw",{cash:g})}return O}()}),(0,e.createComponentVNode)(2,p.Button,{content:L,tooltip:"Bless the players with da money!",onClick:function(){function O(){return h("add_money",{cash:g})}return O}()})]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Telepads Status",children:T}),s===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,p.Button,{content:w,tooltip:A,disabled:E,onClick:function(){function O(){return h("teleport")}return O}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Syndicate Black Market Log",onClick:function(){function O(){return h("showMessages")}return O}()})]})]})})},u=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.categories,s=V.supply_packs,g=(0,o.useSharedState)(m,"category","Emergency"),N=g[0],x=g[1],B=(0,o.useSharedState)(m,"search_text",""),L=B[0],T=B[1],A=(0,o.useLocalState)(m,"contentsModal",null),E=A[0],w=A[1],O=(0,o.useLocalState)(m,"contentsModalTitle",null),M=O[0],P=O[1],F=(0,S.createSearch)(L,function(j){return j.name}),R=(0,a.flow)([(0,t.filter)(function(j){return j.cat===v.filter(function(W){return W.name===N})[0].category||L}),L&&(0,t.filter)(F),(0,t.sortBy)(function(j){return j.name.toLowerCase()})])(s),U="Crate Catalogue";return L?U="Results for '"+L+"':":N&&(U="Browsing "+N),(0,e.createComponentVNode)(2,p.Section,{title:U,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:v.map(function(j){return j.name}),selected:N,onSelected:function(){function j(W){return x(W)}return j}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function j(W,K){return T(K)}return j}(),mb:1}),(0,e.createComponentVNode)(2,p.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:R.map(function(j){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{bold:!0,children:[j.name," (",j.cost," Credits)"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function W(){return h("order",{crate:j.ref,multiple:0})}return W}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function W(){return h("order",{crate:j.ref,multiple:1})}return W}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Contents",icon:"search",onClick:function(){function W(){w(j.contents),P(j.name)}return W}()})]})]},j.name)})})})]})},f=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.requests,s=V.canapprove,g=V.orders;return(0,e.createComponentVNode)(2,p.Section,{title:"Details",children:(0,e.createComponentVNode)(2,p.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:v.map(function(N){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",N.comment]})]}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){function x(){return h("approve",{ordernum:N.ordernum})}return x}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Deny",color:"red",onClick:function(){function x(){return h("deny",{ordernum:N.ordernum})}return x}()})]})]},N.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:g.map(function(N){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",N.comment]})]})},N.ordernum)})})]})})}},44852:function(I,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},k={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},y=function(c,u,f,l){return l===void 0&&(l=null),c.map(function(d){var m,i=(m=d[l])!=null?m:d;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u.includes(d),content:i,onClick:function(){function h(){u.includes(d)?f(u.filter(function(V){var v;return((v=V[l])!=null?v:V)!==d})):f([d].concat(u))}return h}()},i)})},S=r.TTSSeedsExplorer=function(){function C(c,u){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return C}(),b=r.TTSSeedsExplorerContent=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.providers,i=d.seeds,h=d.selected_seed,V=d.phrases,v=d.donator_level,s=i.map(function(X){return X.category}).filter(function(X,Q,q){return q.indexOf(X)===Q}),g=i.map(function(X){return X.gender}).filter(function(X,Q,q){return q.indexOf(X)===Q}),N=i.map(function(X){return X.donator_level}).filter(function(X,Q,q){return q.indexOf(X)===Q}).map(function(X){return p[X]}),x=(0,a.useLocalState)(u,"selectedProviders",m),B=x[0],L=x[1],T=(0,a.useLocalState)(u,"selectedGenders",g),A=T[0],E=T[1],w=(0,a.useLocalState)(u,"selectedCategories",s),O=w[0],M=w[1],P=(0,a.useLocalState)(u,"selectedDonatorLevels",N),F=P[0],R=P[1],U=(0,a.useLocalState)(u,"selectedPhrase",V[0]),j=U[0],W=U[1],K=(0,a.useLocalState)(u,"searchtext",""),$=K[0],ne=K[1],Y=y(m,B,L,"name"),le=y(g,A,E),de=y(s,O,M),oe=y(N,F,R),re=(0,e.createComponentVNode)(2,t.Dropdown,{options:V,selected:j.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(){function X(Q){return W(Q)}return X}()}),Z=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,onInput:function(){function X(Q,q){return ne(q)}return X}()}),ae=i.sort(function(X,Q){var q=X.name.toLowerCase(),te=Q.name.toLowerCase();return q>te?1:q0&&h!==X.name?"orange":"white",children:X.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:h===X.name?.5:.25,textAlign:"left",children:X.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:h===X.name?"white":k[X.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:k[X.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:X.donator_level>0&&(0,e.createFragment)([p[X.donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},X.name)});return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",fill:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:Y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:le}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:de}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:oe}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:re}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Z})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,fill:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+ae.length+"/"+i.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:J})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}return C}()},56441:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TachyonArray=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.records,l=f===void 0?[]:f,d=u.explosion_target,m=u.toxins_tech,i=u.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:m}),(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 h(){return c("print_logs")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function h(){return c("delete_logs")}return h}()})]})]})}),l.length?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),k=r.TachyonArrayContent=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.records,l=f===void 0?[]:f;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function m(){return c("delete_record",{index:d.index})}return m}()})})]},d.index)})]})})})})}return y}()},1754:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Tank=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u;return c.has_mask?u=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.connected?"check":"times",content:c.connected?"Internals On":"Internals Off",selected:c.connected,onClick:function(){function f(){return C("internals")}return f}()})}):u=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:300,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:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:c.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:c.ReleasePressure===c.minReleasePressure,tooltip:"Min",onClick:function(){function f(){return C("pressure",{pressure:"min"})}return f}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(c.releasePressure),width:"65px",unit:"kPa",minValue:c.minReleasePressure,maxValue:c.maxReleasePressure,onChange:function(){function f(l,d){return C("pressure",{pressure:d})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:c.ReleasePressure===c.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return C("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:c.ReleasePressure===c.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return C("pressure",{pressure:"reset"})}return f}()})]}),u]})})})})}return k}()},7579:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TankDispenser=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.o_tanks,f=c.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:100,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Oxygen Tank ("+u+")",disabled:u===0,icon:"arrow-circle-down",onClick:function(){function l(){return C("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Plasma Tank ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function l(){return C("plasma")}return l}()})})]})})}return k}()},16136:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsCore=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.ion,i=(0,a.useLocalState)(u,"tabIndex",0),h=i[0],V=i[1],v=function(){function s(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m===1&&(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===0,onClick:function(){function s(){return V(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function s(){return V(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===2,onClick:function(){function s(){return V(2)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),v(h)]})})}return C}(),k=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.active,i=d.sectors_available,h=d.nttc_toggle_jobs,V=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,s=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,N=d.nttc_setting_language,x=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:m?"On":"Off",selected:m,icon:"power-off",onClick:function(){function B(){return l("toggle_active")}return B}()})}),(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:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_jobs")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"On":"Off",selected:V,icon:"clipboard-list",onClick:function(){function B(){return l("nttc_toggle_job_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_name_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"volume-up",onClick:function(){function B(){return l("nttc_toggle_command_bold")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function B(){return l("nttc_job_indicator_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"globe",onClick:function(){function B(){return l("nttc_setting_language")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:x||"Unset",selected:x,icon:"server",onClick:function(){function B(){return l("network_id")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function B(){return l("import")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function B(){return l("export")}return B}()})]})],4)},S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.link_password,i=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:m||"Unset",selected:m,icon:"lock",onClick:function(){function h(){return l("change_password")}return h}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),i.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function V(){return l("unlink",{addr:h.addr})}return V}()})})]},h.addr)})]})]})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function 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"})]}),m.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 h(){return l("remove_filter",{user:i})}return h}()})})]},i)})]})})}},88046:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsRelay=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.linked,d=f.active,m=f.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function i(){return u("toggle_active")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:m||"Unset",selected:m,icon:"server",onClick:function(){function i(){return u("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,k):(0,e.createComponentVNode)(2,y)]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.linked_core_id,d=f.linked_core_addr,m=f.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:m?"Yes":"No",icon:m?"eye-slash":"eye",selected:m,onClick:function(){function i(){return u("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 u("unlink")}return i}()})})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function m(){return u("link",{addr:d.addr})}return m}()})})]},d.addr)})]})})}},20802:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(79646),k=r.Teleporter=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.targetsTeleport?u.targetsTeleport:{},l=0,d=1,m=2,i=u.calibrated,h=u.calibrating,V=u.powerstation,v=u.regime,s=u.teleporterhub,g=u.target,N=u.locked,x=u.accuracy;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(!V||!s)&&(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[s,!V&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),V&&!s&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),V&&s&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Regime",children:[(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to another teleport hub. ",color:v===d?"good":null,onClick:function(){function B(){return c("setregime",{regime:d})}return B}(),children:"Gate"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"One-way teleport. ",color:v===l?"good":null,onClick:function(){function B(){return c("setregime",{regime:l})}return B}(),children:"Teleporter"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:v===m?"good":null,disabled:!N,onClick:function(){function B(){return c("setregime",{regime:m})}return B}(),children:"GPS"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleport target",children:[v===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(f),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return c("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),v===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(f),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return c("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),v===m&&(0,e.createComponentVNode)(2,t.Box,{children:g})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibration",children:[g!=="None"&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,p.GridColumn,{size:"2",children:h&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||(i||x>=3)&&(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,p.GridColumn,{size:"3",children:(0,e.createComponentVNode)(2,t.Box,{class:"ml-1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!!(i||h),onClick:function(){function B(){return c("calibrate")}return B}()})})})]}),g==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(N&&V&&s&&v===m)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-around",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 c("load")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function B(){return c("eject")}return B}()})]})})]})})}return y}()},24410:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),p=n(92986),k=n(36036),y=n(98595),S=r.sanitizeMultiline=function(){function u(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return u}(),b=r.removeAllSkiplines=function(){function u(f){return f.replace(/[\r\n]+/,"")}return u}(),C=r.TextInputModal=function(){function u(f,l){var d=(0,o.useBackend)(l),m=d.act,i=d.data,h=i.max_length,V=i.message,v=V===void 0?"":V,s=i.multiline,g=i.placeholder,N=i.timeout,x=i.title,B=(0,o.useLocalState)(l,"input",g||""),L=B[0],T=B[1],A=function(){function O(M){if(M!==L){var P=s?S(M):b(M);T(P)}}return O}(),E=s||L.length>=40,w=130+(v.length>40?Math.ceil(v.length/3):0)+(E?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:x,width:325,height:w,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function O(M){var P=window.event?M.which:M.keyCode;P===p.KEY_ENTER&&(!E||!M.shiftKey)&&m("submit",{entry:L}),P===p.KEY_ESCAPE&&m("cancel")}return O}(),children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{input:L,onType:A})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+h})})]})})})]})}return u}(),c=function(f,l){var d=(0,o.useBackend)(l),m=d.act,i=d.data,h=i.max_length,V=i.multiline,v=f.input,s=f.onType,g=V||v.length>=40;return(0,e.createComponentVNode)(2,k.TextArea,{autoFocus:!0,autoSelect:!0,height:V||v.length>=40?"100%":"1.8rem",maxLength:h,onEscape:function(){function N(){return m("cancel")}return N}(),onEnter:function(){function N(x){g&&x.shiftKey||(x.preventDefault(),m("submit",{entry:v}))}return N}(),onInput:function(){function N(x,B){return s(B)}return N}(),placeholder:"\u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0447\u0442\u043E-\u043D\u0438\u0431\u0443\u0434\u044C...",value:v})}},69566:function(I,r,n){"use strict";r.__esModule=!0,r.ThiefKit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ThiefKit=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.uses,f=c.possible_uses,l=c.multi_uses,d=c.kits,m=c.choosen_kits;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:900,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0431\u043E\u0440 \u0413\u0438\u043B\u044C\u0434\u0438\u0438 \u0412\u043E\u0440\u043E\u0432:",children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:[(0,e.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044F \u043A\u043E\u0440\u043E\u0431\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043B\u0435\u0436\u0438\u0442 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0433\u0438\u043B\u044C\u0434\u0438\u0438 \u0432\u043E\u0440\u043E\u0432.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,"\u041D\u0430\u0431\u043E\u0440 \u0432\u043E\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043D\u0433\u0435\u0440\u0430. \u041D\u0435\u043B\u044C\u0437\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0447\u0442\u043E \u0432 \u043D\u0451\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u0430\u0433\u043B\u044F\u043D\u0435\u0448\u044C \u0432\u043D\u0443\u0442\u0440\u044C.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"p",null,(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043A\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u043D\u0451\u043C \u043B\u0435\u0436\u0438\u0442?:",16),2),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E \u043D\u0430\u0431\u043E\u0440\u043E\u0432:"),(0,e.createComponentVNode)(2,t.Box,{as:"span",color:u<=0?"good":u=f,onClick:function(){function i(){return C("randomKit")}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d&&d.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,buttons:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",disabled:i.was_taken||u>=f,onClick:function(){function h(){return C("takeKit",{item:i.type})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",disabled:!i.was_taken,onClick:function(){function h(){return C("undoKit",{item:i.type})}return h}()})]}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:i.desc})},i.type)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043D\u0430\u0431\u043E\u0440\u044B:",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m&&m.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",onClick:function(){function h(){return C("undoKit",{item:i.type})}return h}()}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:" "})},i.type)})})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",color:u0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),x.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers over]",16):"",x.contractor.accepted?(0,e.createVNode)(1,"i",null,"\xA0(Accepted)",16):!x.contractor.is_admin_forced&&x.contractor.available_offers<=0?"":(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:x.contractor.time_left,format:function(){function M(P,F){return" ("+F+")"}return M}(),bold:!0})]},"BecomeContractor"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:C(T)})]})})]})}return V}(),u=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.crystals,L=x.cats,T=(0,k.useLocalState)(s,"uplinkItems",L[0].items),A=T[0],E=T[1],w=(0,k.useLocalState)(s,"searchText",""),O=w[0],M=w[1],P=function(K,$){$===void 0&&($="");var ne=(0,o.createSearch)($,function(Y){var le=Y.hijack_only===1?"|hijack":"";return Y.name+"|"+Y.desc+"|"+Y.cost+"tc"+le});return(0,t.flow)([(0,a.filter)(function(Y){return Y==null?void 0:Y.name}),$&&(0,a.filter)(ne),(0,a.sortBy)(function(Y){return Y==null?void 0:Y.name})])(K)},F=function(K){if(M(K),K==="")return E(L[0].items);E(P(L.map(function($){return $.items}).flat(),K))},R=(0,k.useLocalState)(s,"showDesc",1),U=R[0],j=R[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:U,onClick:function(){function W(){return j(!U)}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,$){F($)}return W}(),value:O})})})}),(0,e.createComponentVNode)(2,y.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:O!==""?!1:W.items===A,onClick:function(){function K(){E(W.items),M("")}return K}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:A.map(function(W){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:W,showDecription:U},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},f=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.cart,L=x.crystals,T=x.cart_price,A=(0,k.useLocalState)(s,"showDesc",0),E=A[0],w=A[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:E,onClick:function(){function O(){return w(!E)}return O}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function O(){return N("empty_cart")}return O}(),disabled:!B}),(0,e.createComponentVNode)(2,y.Button,{content:"Purchase Cart ("+T+"TC)",icon:"shopping-cart",onClick:function(){function O(){return N("purchase_cart")}return O}(),disabled:!B||T>L})],4),children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:B?B.map(function(O){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:O,showDecription:E,buttons:(0,e.createComponentVNode)(2,i,{i:O})})},(0,o.decodeHtmlEntities)(O.name))}):(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,l)]})},l=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.cats,L=x.lucky_numbers;return(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,y.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function T(){return N("shuffle_lucky_numbers")}return T}()}),children:(0,e.createComponentVNode)(2,y.Stack,{wrap:!0,children:L.map(function(T){return B[T.cat].items[T.item]}).filter(function(T){return T!=null}).map(function(T,A){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:T})},A)})})})})},d=function(v,s){var g=v.i,N=v.showDecription,x=N===void 0?1:N,B=v.buttons,L=B===void 0?(0,e.createComponentVNode)(2,m,{i:g}):B;return(0,e.createComponentVNode)(2,y.Section,{title:(0,o.decodeHtmlEntities)(g.name),showBottom:x,buttons:L,children:x?(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(g.desc)}):null})},m=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=v.i,L=x.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function T(){return N("add_to_cart",{item:B.obj_path})}return T}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,y.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 T(){return N("buyItem",{item:B.obj_path})}return T}(),disabled:B.cost>L})],4)},i=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=v.i,L=x.exploitable;return(0,e.createComponentVNode)(2,y.Stack,{children:[(0,e.createComponentVNode)(2,y.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function T(){return N("remove_from_cart",{item:B.obj_path})}return T}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return T}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,y.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function T(A,E){return N("set_cart_item_quantity",{item:B.obj_path,quantity:E})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,y.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},h=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.exploitable,L=(0,k.useLocalState)(s,"selectedRecord",B[0]),T=L[0],A=L[1],E=(0,k.useLocalState)(s,"searchText",""),w=E[0],O=E[1],M=function(R,U){U===void 0&&(U="");var j=(0,o.createSearch)(U,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),U&&(0,a.filter)(j),(0,a.sortBy)(function(W){return W.name})])(R)},P=M(B,w);return(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:"Exploitable Records",children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",fill:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,y.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function F(R,U){return O(U)}return F}()}),(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:P.map(function(F){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:F===T,onClick:function(){function R(){return A(F)}return R}(),children:F.name},F)})})]})}),(0,e.createComponentVNode)(2,y.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:T.name,scrollable:!0,children:(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Age",children:T.age}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Fingerprint",children:T.fingerprint}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Rank",children:T.rank}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Sex",children:T.sex}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Species",children:T.species}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Records",children:T.exploit_record})]})})})]})})};(0,b.modalRegisterBodyOverride)("become_contractor",function(V,v){var s,g,N,x,B=(0,k.useBackend)(v),L=B.data,T=L.contractor||{},A=T.time_left,E=!!(L!=null&&(s=L.contractor)!=null&&s.available),w=!!(L!=null&&(g=L.contractor)!=null&&g.affordable),O=!!(L!=null&&(N=L.contractor)!=null&&N.accepted),M=L.contractor||{},P=M.available_offers,F=!!(L!=null&&(x=L.contractor)!=null&&x.is_admin_forced);return(0,e.createComponentVNode)(2,y.Section,{height:"65%",level:"2",m:"-1rem",pb:"1rem",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Icon,{name:"suitcase"}),(0,e.createTextVNode)("\xA0 Contracting Opportunity")],4),children:[(0,e.createComponentVNode)(2,y.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,e.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,e.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer.",F?"":(0,e.createComponentVNode)(2,y.Box,{children:["Hurry up. You are not the only one who received this offer. Their number is limited. If other traitors accept all offers before you, you will not be able to accept one of them.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Available offers: "),P],0)]})]}),(0,e.createComponentVNode)(2,y.Button.Confirm,{disabled:!E||O,italic:!E,bold:E,icon:E&&!O&&"check",color:"good",content:O?"Accepted":E?["Accept Offer",(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:A,format:function(){function R(U,j){return" ("+j+")"}return R}()},"countdown")]:w?L.contractor.is_admin_forced?"Offer expired":L.contractor.available_offers>0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),L.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers are over]",16):"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function R(){return(0,b.modalAnswer)(v,V.id,1)}return R}()})]})})},80949:function(I,r,n){"use strict";r.__esModule=!0,r.UploadPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.UploadPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.selected_target,f=c.new_law,l=c.id,d=c.transmitting,m=c.hacked;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Silicon Law Upload",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Target",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!u,content:u||"No target selected",onClick:function(){function i(){return C("choose_silicon")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Law",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!f,content:f||"No module installed",onClick:function(){function i(){return C("insert_module")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{selected:!!l,content:l||(m?"$@!ERR0R!@#":"No ID card inserted"),onClick:function(){function i(){return C("authorization")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upload Laws",children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u||!f||(m?!1:!l),selected:!!d,content:d?"STOP UPLOAD":"START UPLOAD",onClick:function(){function i(){return C("change_laws")}return i}()})})]})})})})}return k}()},8946:function(I,r,n){"use strict";r.__esModule=!0,r.VampireSpecMenu=r.UmbrMenu=r.HemoMenu=r.GarMenu=r.DantMenu=r.BestMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VampireSpecMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=(0,a.useLocalState)(f,"activeTab","hemomancer"),i=m[0],h=m[1],V=function(){function v(){switch(i){case"hemomancer":return(0,e.createComponentVNode)(2,k,{act:d});case"umbrae":return(0,e.createComponentVNode)(2,y,{act:d});case"gargantua":return(0,e.createComponentVNode)(2,S,{act:d});case"dantalion":return(0,e.createComponentVNode)(2,b,{act:d});case"bestia":return(0,e.createComponentVNode)(2,C,{act:d});default:return null}}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:890,resizable:!0,theme:"ntos_spooky",children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function v(){return h("hemomancer")}return v}(),selected:i==="hemomancer"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function v(){return h("umbrae")}return v}(),selected:i==="umbrae"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function v(){return h("gargantua")}return v}(),selected:i==="gargantua"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function v(){return h("dantalion")}return v}(),selected:i==="dantalion"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function v(){return h("bestia")}return v}(),selected:i==="bestia"})]}),(0,e.createComponentVNode)(2,t.Divider),V()]})})}return c}(),k=r.HemoMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.hemomancer;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043C\u0430\u0433\u0438\u0438 \u043A\u0440\u043E\u0432\u0438 \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0435\u044E.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u043E\u0433\u0442\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u0443 \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u0445 \u043A\u043E\u0433\u0442\u0435\u0439, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0438\u0445 \u0431\u044B\u0441\u0442\u0440\u043E \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u044F \u0435\u0435 \u043A\u0440\u043E\u0432\u044C \u0438 \u0440\u0435\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044F \u0441\u0432\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0431\u0430\u0440\u044C\u0435\u0440",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u0441\u0442\u0435\u043D\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0449\u0443\u043F\u0430\u043B\u044C\u0446\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u044C \u0432\u0441\u0435\u0445 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 3x3.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u0432 \u043A\u0440\u043E\u0432\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043D\u0435\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0441 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u044E, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044F \u0432\u0441\u0435 \u043F\u0440\u0435\u043F\u044F\u0442\u0441\u0442\u0432\u0438\u044F, \u043A\u0440\u043E\u043C\u0435 \u0441\u0442\u0435\u043D \u0438 \u043A\u043E\u0441\u043C\u043E\u0441\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044F \u0437\u0430 \u0441\u043E\u0431\u043E\u0439 \u043A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0441\u043B\u0435\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0427\u0443\u0442\u044C\u0451 \u0445\u0438\u0449\u043D\u0438\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0447\u0443\u0432\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0433\u043E-\u0443\u0433\u043E\u0434\u043D\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0435\u043A\u0442\u043E\u0440\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0418\u0437\u0432\u0435\u0440\u0436\u0435\u043D\u0438\u0435 \u043A\u0440\u043E\u0432\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u043B\u0443\u0436\u0430\u043C\u0438 \u043A\u0440\u043E\u0432\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0447\u0435\u0442\u044B\u0440\u0435\u0445 \u043C\u0435\u0442\u0440\u043E\u0432, \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0438\u0445 \u0432 \u0448\u0438\u043F\u044B, \u043F\u0440\u043E\u0442\u044B\u043A\u0430\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u043D\u0430 \u043D\u0438\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u043E\u0431\u0440\u044F\u0434",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432, \u0431\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u0447\u0435\u043C\u0443 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u043B\u0435\u0447\u0438\u0442\u044C\u0441\u044F \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function h(){return d("hemomancer")}return h}()})]})}return c}(),y=r.UmbrMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.umbrae;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043C\u0431\u0440\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0437\u0430\u0441\u0430\u0434\u0430\u0445 \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0438.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043A\u0440\u043E\u0432 \u0442\u044C\u043C\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0431\u044B\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0432 \u0442\u0435\u043C\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043A\u0430\u0445 \u0441\u0442\u0430\u043D\u0446\u0438\u0438. \u0422\u0430\u043A\u0436\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043B\u044E\u0431\u043E\u0439 \u0443\u0440\u043E\u043D \u043E\u0442 \u043E\u0436\u043E\u0433\u043E\u0432 \u043F\u043E \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u043E\u0439 \u044F\u043A\u043E\u0440\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043D\u0430 \u043C\u0435\u0441\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043C\u0430\u044F\u043A \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0430\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043A \u043C\u0430\u044F\u043A\u0443. \u0415\u0441\u043B\u0438 \u0441\u043F\u0443\u0441\u0442\u044F \u0434\u0432\u0435 \u043C\u0438\u043D\u0443\u0442\u044B \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043D\u0435 \u0431\u044B\u043B\u0430 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043D\u043E\u0432\u0430, \u0442\u043E \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B \u043A \u043C\u0430\u044F\u043A\u0443. \u041C\u0430\u044F\u043A \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0441 \u043C\u0435\u0436\u0434\u0443 \u0441\u0435\u043A\u0442\u043E\u0440\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u0430\u044F \u043B\u043E\u0432\u0443\u0448\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0442\u0440\u0430\u0432\u043C\u0438\u0440\u0443\u044E\u0449\u0438\u0435 \u0438 \u043E\u0441\u043B\u0435\u043F\u043B\u044F\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u0432 \u043D\u0438\u0445. \u041B\u043E\u0432\u0443\u0448\u043A\u0443 \u0442\u044F\u0436\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u0442\u0438\u0442\u044C, \u043D\u043E \u043E\u043D\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u043F\u043E\u0434 \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u044F\u0440\u043A\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0428\u0430\u0433 \u0432 \u0442\u0435\u043D\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043B\u044E\u0431\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0430\u0441\u0438\u0442\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0438\u0437 \u0441\u0442\u0440\u043E\u044F \u043B\u044E\u0431\u044B\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0441\u0432\u0435\u0442\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0433\u043B\u043E\u0443\u0448\u0440\u0443\u043C\u044B.")],0),(0,e.createVNode)(1,"b",null,"\u0411\u043E\u0439 \u0441 \u0442\u0435\u043D\u044C\u044E",16),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),", \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0442\u0435\u043D\u0435\u0432\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u043A\u0430 \u0432\u044B \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0435\u0441\u044C \u0440\u044F\u0434\u043E\u043C.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0412\u0435\u0447\u043D\u0430\u044F \u0442\u044C\u043C\u0430",16),(0,e.createTextVNode)(": \u043F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u044B \u0440\u0430\u0441\u0441\u0442\u0432\u043E\u0440\u044F\u0435\u0442\u0435\u0441\u044C \u0432 \u043D\u0435\u0447\u0435\u0441\u0442\u0438\u0432\u043E\u0439 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043D \u043B\u0438\u0448\u044C \u0441\u0438\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430. \u0425\u043E\u043B\u043E\u0434, \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0435\u0439 \u0432\u0430\u0441 \u0442\u044C\u043C\u044B \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043C\u043E\u0440\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u0441\u0435\u0445 \u0436\u0438\u0432\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438.")],4),(0,e.createVNode)(1,"p",null,"\u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 X-ray \u0437\u0440\u0435\u043D\u0438\u0435",16),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function h(){return d("umbrae")}return h}()})]})}return c}(),S=r.GarMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.gargantua;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u043E\u0439\u043A\u043E\u0441\u0442\u0438 \u0438 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u0435.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0435\u0442 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0442\u0435\u043C \u0441\u0438\u043B\u044C\u043D\u0435\u0435, \u0447\u0435\u043C \u0431\u043E\u043B\u044C\u0448\u0435 \u0443\u0440\u043E\u043D\u0430 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 150"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0435 \u0441\u043E\u043F\u0440\u043E\u0442\u0438\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u044E, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u0438 \u0441\u0442\u0430\u043C\u0438\u043D\u0430 \u0443\u0440\u043E\u043D\u0443. \u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u044F\u0442\u044C \u043F\u043E\u043A\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u0434\u0430\u0440\u043D\u0430\u044F \u0432\u043E\u043B\u043D\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0442\u0440\u044F\u0441\u0430\u0442\u044C \u0437\u0435\u043C\u043B\u044E \u043F\u043E\u0434 \u043D\u043E\u0433\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0433\u043B\u0443\u0448\u0438\u0442\u044C \u0438 \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0434\u0440\u0430\u0439\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0434\u0430\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0431\u0430\u0432\u043A\u0443 \u043A \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B II",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 400"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0443\u0440\u043E\u043D \u0432 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u044E \u043D\u0430 10.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041D\u0435\u0443\u0434\u0435\u0440\u0436\u0438\u043C\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 600"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0434\u0432\u0435\u0440\u0438 \u043F\u0440\u0438 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u0434\u0430\u0436\u0435 \u043D\u0435 \u0438\u043C\u0435\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. \u0412\u0430\u0441 \u0442\u0430\u043A\u0436\u0435 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0442\u0430\u0449\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0414\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0445\u0432\u0430\u0442\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 800"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A \u0446\u0435\u043B\u0438 \u0434\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0440\u0443\u043A\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u0438\u043D\u0442\u0435\u043D\u0442\u0430, disarm/grab, \u0432\u044B \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0435\u0442\u0435/\u043F\u0440\u0438\u0442\u044F\u043D\u0435\u0442\u0435 \u0446\u0435\u043B\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0435\u043B\u0430\u0442\u044C \u0440\u044B\u0432\u043E\u043A \u0432 \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u044F \u0438 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u044F \u0432\u0441\u0435, \u0432\u043E \u0447\u0442\u043E \u0432\u0440\u0435\u0436\u0435\u0442\u0435\u0441\u044C.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function h(){return d("gargantua")}return h}()})]})}return c}(),b=r.DantMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.dantalion;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u0438 \u0438 \u0438\u043B\u043B\u044E\u0437\u0438\u044F\u0445.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u0447\u0438\u043D\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0434\u0447\u0438\u043D\u044F\u0435\u0442 \u0446\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u0432\u043E\u043B\u0435, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0442 \u0432\u0430\u0441 \u043D\u0435 \u0448\u0435\u0432\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u044F. \u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u043D\u043E\u0441\u0438\u0442\u0435\u043B\u0435\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442\u0430 \u0437\u0430\u0449\u0438\u0442\u044B \u0440\u0430\u0437\u0443\u043C\u0430 \u0438 \u043D\u0430 \u0443\u0436\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u043D\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u0430 \u0437\u0430 \u0440\u0430\u0437. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(","),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 4 \u0440\u0430\u0431\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043B\u0435\u043F\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0441\u0432\u044F\u0437\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0440\u0430\u0437\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044C \u0441 \u0432\u0430\u0448\u0438\u043C\u0438 \u0440\u0430\u0431\u0430\u043C\u0438, \u0432\u0430\u0448\u0438 \u0440\u0430\u0431\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043E\u0431\u043C\u0435\u043D",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u043C\u0435\u0441\u0442\u0430\u043C\u0438 \u0441 \u0446\u0435\u043B\u044C\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u043C\u0438\u0440\u043E\u0442\u0432\u043E\u0440\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0443\u0441\u043F\u043E\u043A\u043E\u0438\u0442\u044C \u0446\u0435\u043B\u044C, \u043E\u0442\u043E\u0431\u0440\u0430\u0432 \u0443 \u043D\u0435\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u0434 \u043A\u043E\u043C\u0443-\u043B\u0438\u0431\u043E \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 40 \u0441\u0435\u043A\u0443\u043D\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u043C\u0430\u043D\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043D\u0435\u043D\u0430\u0434\u043E\u043B\u0433\u043E \u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043A\u043E\u043F\u0438\u044E \u043E\u0431\u043C\u0430\u043D\u043A\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0421\u043F\u043B\u043E\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u043D\u0438\u043C\u0430\u0435\u0442 \u0441 \u0431\u043B\u0438\u0437\u0441\u0442\u043E\u044F\u0449\u0438\u0445 \u0440\u0430\u0431\u043E\u0432 \u043B\u044E\u0431\u044B\u0435 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0443\u0437\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0441\u043E \u0432\u0441\u0435\u043C\u0438 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u0440\u0430\u0431\u0430\u043C\u0438, \u0435\u0441\u043B\u0438 \u043A\u0442\u043E-\u043B\u0438\u0431\u043E \u0432 \u0441\u0432\u044F\u0437\u043A\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043E\u043D, \u0442\u043E \u043E\u043D \u0434\u0435\u043B\u0438\u0442\u0441\u044F \u043C\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043C\u0438 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u043C\u0438. \u0415\u0441\u043B\u0438 \u0440\u0430\u0431 \u0443\u0445\u043E\u0434\u0438\u0442 \u0434\u0430\u043B\u0435\u043A\u043E \u043E\u0442 \u0432\u0430\u0441, \u0442\u043E \u0432\u044B \u0442\u0435\u0440\u044F\u0435\u0442\u0435 \u0441\u0432\u044F\u0437\u044C \u0441 \u043D\u0438\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0430\u0441\u0441\u043E\u0432\u0430\u044F \u0438\u0441\u0442\u0435\u0440\u0438\u044F",16),(0,e.createTextVNode)(": \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043C\u0430\u0441\u0441\u043E\u0432\u0443\u044E \u0433\u0430\u043B\u043B\u044E\u0446\u0438\u043D\u0430\u0446\u0438\u044E, \u043E\u0441\u043B\u0435\u043F\u0438\u0432 \u0432\u0441\u0435\u0445 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043C \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function h(){return d("dantalion")}return h}()})]})}return c}(),C=r.BestMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.bestia;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0411\u0435\u0441\u0442\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0438 \u0434\u043E\u0431\u044B\u0447\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0440\u043E\u0444\u0435\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0442\u0440\u043E\u0444\u0435\u0435\u0432, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u0441\u0435 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B, \u0447\u0442\u043E \u043E\u043D\u0438 \u0434\u0430\u044E\u0442.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0432\u0434\u043E\u0431\u0430\u0432\u043E\u043A \u043A \u043A\u0440\u043E\u0432\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043E\u0440\u0433\u0430\u043D\u044B \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0438\u0445 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0435\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u043F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0439",16),(0,e.createTextVNode)(": \u0437\u0430 \u0440\u0430\u0437 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0433\u043B\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u043E\u0440\u0433\u0430\u043D. \u041F\u0440\u0435\u0434\u0435\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 \u0442\u0440\u0438 \u043E\u0440\u0433\u0430\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0417\u0430\u0440\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u0444\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432 \u0441 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0434\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u0438, \u0437\u0430\u0440\u0430\u0436\u0430\u044F \u0438\u0445 \u043C\u043E\u0433\u0438\u043B\u044C\u043D\u043E\u0439 \u043B\u0438\u0445\u043E\u0440\u0430\u0434\u043A\u043E\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0432\u0430\u043C\u0438 \u0438 \u0446\u0435\u043B\u044C\u044E \u0438\u043B\u0438 \u0441\u0431\u0435\u0436\u0430\u0442\u044C \u0438\u0437 \u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0434\u043E\u0431\u044B\u0447\u0443",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u0436\u0435\u0440\u0442\u0432\u0443, \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0432 \u0435\u0435 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0435 \u043F\u0443\u0442\u0430\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0433\u0430\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u041B\u0435\u0442\u0443\u0447\u0438\u0435 \u043C\u044B\u0448\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u043C\u0438 \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u043B\u0435\u0442\u0443\u0447\u0438\u043C\u0438 \u043C\u044B\u0448\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0410\u043D\u0430\u0431\u0438\u043E\u0437",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0434\u0440\u0435\u0432\u043D\u044F\u044F \u0442\u0435\u0445\u043D\u0438\u043A\u0430, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0430\u044F \u0432\u0430\u043C \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u043D\u0430 \u0432 \u0433\u0440\u043E\u0431\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u0437\u044B\u0432 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439 \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0431\u043E\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u0413\u043E\u043D\u0447\u0430\u044F",16),(0,e.createTextVNode)(": \u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u0443\u044E \u0444\u043E\u0440\u043C\u0443 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0432\u043B\u0430\u0434\u0435\u0432\u0448\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u0434\u0443\u0448\u043E\u0439.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function h(){return d("bestia")}return h}()})]})}return c}()},45770:function(I,r,n){"use strict";r.__esModule=!0,r.VampireTrophiesStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(V){return(Math.round(V*10)/10).toFixed(1)},k=r.VampireTrophiesStatus=function(){function h(V,v){return(0,e.createComponentVNode)(2,o.Window,{theme:"ntos_spooky",width:700,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,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)]})})})}return h}(),y=function(V,v){var s=(0,a.useBackend)(v),g=s.act,N=s.data,x=N.hearts,B=N.lungs,L=N.livers,T=N.kidneys,A=N.eyes,E=N.ears,w=N.trophies_max_gen,O=N.trophies_max_crit,M=N.organs_icon,P=N.icon_hearts,F=N.icon_lungs,R=N.icon_livers,U=N.icon_kidneys,j=N.icon_eyes,W=N.icon_ears;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0422\u0440\u043E\u0444\u0435\u0438",color:"red",textAlign:"center",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,width:"16.6%",children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:M,icon_state:P,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,textColor:xv;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{verticalAlign:"middle",icon:m,icon_state:i,fallback:(0,e.createComponentVNode)(2,o.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:d<=0&&"bad"||d<=l.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:T,icon:L,content:B,textAlign:"left",onClick:function(){function A(){return u("vend",{inum:l.inum})}return A}()})})]})},y=r.Vending=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.user,d=f.guestNotice,m=f.userMoney,i=f.chargesMoney,h=f.product_records,V=h===void 0?[]:h,v=f.coin_records,s=v===void 0?[]:v,g=f.hidden_records,N=g===void 0?[]:g,x=f.stock,B=f.vend_ready,L=f.coin_name,T=f.inserted_item_name,A=f.panel_open,E=f.speaker,w=f.imagelist,O;return O=[].concat(V,s),f.extended_inventory&&(O=[].concat(O,N)),O=O.filter(function(M){return!!M}),(0,e.createComponentVNode)(2,p.Window,{width:470,height:100+Math.min(V.length*38,500),title:"\u0422\u043E\u0440\u0433\u043E\u0432\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[!!i&&(0,e.createComponentVNode)(2,o.Section,{title:"User",children:l&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,l.name,0),","," ",(0,e.createVNode)(1,"b",null,l.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[m,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:d})}),!!L&&(0,e.createComponentVNode)(2,o.Section,{title:"Coin",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){function M(){return u("remove_coin",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:L})}),!!T&&(0,e.createComponentVNode)(2,o.Section,{title:"Item",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){function M(){return u("eject_item",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:T})}),!!A&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"check":"volume-mute",selected:E,content:"Speaker",textAlign:"left",onClick:function(){function M(){return u("toggle_voice",{})}return M}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:O.map(function(M){return(0,e.createComponentVNode)(2,k,{product:M,productStock:x[M.name],productIcon:M.icon,productIconState:M.icon_state},M.name)})})})})]})})})}return S}()},87710:function(I,r,n){"use strict";r.__esModule=!0,r.VethPlayerPanel=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=n(98595),k=n(25328),y=r.VethPlayerPanel=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=(0,a.sortBy)(function(N){return N.name})(f.Data||[]),d=(0,t.useLocalState)(C,"searchText",""),m=d[0],i=d[1],h=(0,t.useLocalState)(C,"selectedPlayerCkey",""),V=h[0],v=h[1],s=(0,k.createSearch)(m,function(N){var x,B,L;return((x=N.name)==null?void 0:x.toLowerCase())+"|"+((B=N.job)==null?void 0:B.toLowerCase())+"|"+((L=N.ckey)==null?void 0:L.toLowerCase())}),g=function(){function N(x,B){B!=null&&B.ckey&&v(B.ckey),u(x,Object.assign({},B,{selectedPlayerCkey:(B==null?void 0:B.ckey)||V}))}return N}();return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,p.Window,{title:"Player Panel Veth",width:1100,height:640,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"refresh",content:"Refresh",onClick:function(){function N(){return g("refresh")}return N}()})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Game Panel",onClick:function(){function N(){return g("gamePanel")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Fax Panel",onClick:function(){function N(){return g("faxPanel")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Check Antags",onClick:function(){function N(){return g("checkAntags")}return N}()})]}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Create Command Report",onClick:function(){function N(){return g("createCommandReport")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Toggle Adv Admin Interact",onClick:function(){function N(){return g("adminaiinteract")}return N}()})]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Search Players",children:(0,e.createComponentVNode)(2,o.TextArea,{autoFocus:!0,placeholder:"Search by name, job, or ckey",value:m,onInput:function(){function N(x,B){return i(B)}return N}(),rows:1,height:"2rem"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Players",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:"Ckey"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Char Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Job"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Antagonist"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Last IP"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Actions"})]}),l.filter(s).map(function(N){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.ckey}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:N.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.job}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.is_antagonist?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Yes"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"No"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.last_ip}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("sendPrivateMessage",{ckey:N.ckey})}return x}(),content:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("follow",{ckey:N.ckey})}return x}(),content:"Follow"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("smite",{ckey:N.ckey})}return x}(),content:"Smite"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("openAdditionalPanel",{ckey:N.ckey})}return x}(),content:"PP",icon:"external-link"}),(0,e.createComponentVNode)(2,o.Button,{icon:"book",content:"Logs",onClick:function(){function x(){return u("logs",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"clipboard",content:"Notes",onClick:function(){function x(){return u("notes",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{content:"VV",onClick:function(){function x(){return u("vv",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{content:"TP",onClick:function(){function x(){return u("tp",{selectedPlayerCkey:N.ckey})}return x}()})]})]},N.ckey)})]})})]})})})}return S}()},68971:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VolumeMixer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+u.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:u.map(function(f,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:f.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:"\u0432\u044B\u043A\u043B. \u0437\u0432\u0443\u043A",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:f.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:f.volume,onChange:function(){function d(m,i){return C("volume",{channel:f.num,volume:i})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"\u0432\u043A\u043B. \u0437\u0432\u0443\u043A",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:f.num,volume:100})}return d}()})})})]})})],4,f.num)})})})})}return k}()},2510:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VotePanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.remaining,f=c.question,l=c.choices,d=c.user_vote,m=c.counts,i=c.show_counts,h=c.show_cancel;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:f,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:["Time remaining: ",Math.round(u/10),"s"]}),l.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:V+(i?" ("+(m[V]||0)+")":""),onClick:function(){function v(){return C("vote",{target:V})}return v}(),selected:V===d})},V)}),!!h&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Cancel",onClick:function(){function V(){return C("cancel")}return V}()})},"Cancel")]})})})}return k}()},30138:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Wires=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.wires||[],f=c.status||[],l=56+u.length*23+(status?0:15+f.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:u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function m(){return C("cut",{wire:d.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function m(){return C("pulse",{wire:d.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function m(){return C("attach",{wire:d.color})}return m}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return k}()},30995:function(I,r,n){"use strict";r.__esModule=!0,r.Workshop=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(73379),k=n(98595),y=["title","items"];function S(l,d){if(l==null)return{};var m={};for(var i in l)if({}.hasOwnProperty.call(l,i)){if(d.includes(i))continue;m[i]=l[i]}return m}var b=function(d,m,i){return d.requirements===null?!0:!(d.requirements.brass>m||d.requirements.power>i)},C=r.Workshop=function(){function l(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.brass_amount,s=V.power_amount,g=V.building,N=V.buildStart,x=V.buildEnd,B=V.worldTime,L=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),T=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),A={float:"left",width:"60%"},E={float:"right",width:"39%"};return(0,e.createComponentVNode)(2,k.Window,{width:400,height:500,theme:"clockwork",children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Section,{title:"Materials",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Brass",children:[L,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function w(){return h("dispense")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:T})]}),g&&(0,e.createComponentVNode)(2,o.ProgressBar.Countdown,{mt:2,start:N,current:B,end:x,bold:!0,children:["Building ",g,"\xA0(",(0,e.createComponentVNode)(2,p.Countdown,{current:B,timeLeft:x-B,format:function(){function w(O,M){return M.substr(3)}return w}()}),")"]})]})]}),(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,u)})})]})})})}return l}(),c=function(d,m){var i=(0,t.useLocalState)(m,"search",""),h=i[0],V=i[1],v=(0,t.useLocalState)(m,"sort",""),s=v[0],g=v[1],N=(0,t.useLocalState)(m,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return V(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"19px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function L(){return B(!x)}return L}()})})]})})},u=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.items,s=(0,t.useLocalState)(m,"search",""),g=s[0],N=s[1],x=(0,t.useLocalState)(m,"sort","Alphabetical"),B=x[0],L=x[1],T=(0,t.useLocalState)(m,"descending",!1),A=T[0],E=T[1],w=(0,a.createSearch)(g,function(P){return P[0]}),O=!1,M=Object.entries(v).map(function(P,F){var R=Object.entries(P[1]).filter(w).map(function(U){return U[1].affordable=b(U[1],V.brass_amount,V.power_amount),U[1]});if(R.length!==0)return A&&(R=R.reverse()),O=!0,(0,e.createComponentVNode)(2,f,{title:P[0],items:R},P[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",children:(0,e.createComponentVNode)(2,o.Section,{children:O?M:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=d.title,s=d.items,g=S(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:s.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.DmIcon,{icon:N.icon,icon_state:N.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,o.Button,{icon:"hammer",disabled:!b(N,V.brass_amount,V.power_amount),onClick:function(){function x(){return h("make",{cat:v,name:N.name})}return x}(),children:(0,a.toTitleCase)((0,a.toTitleCase)(N.name))}),(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:N.requirements&&Object.keys(N.requirements).map(function(x){return(0,a.toTitleCase)(x)+": "+N.requirements[x]}).join(", ")||(0,e.createComponentVNode)(2,o.Box,{children:"No resources required."})}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},N.name)})})))}},49148:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function p(C,c){var u=typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(u)return(u=u.call(C)).next.bind(u);if(Array.isArray(C)||(u=k(C))||c&&C&&typeof C.length=="number"){u&&(C=u);var f=0;return function(){return f>=C.length?{done:!0}:{done:!1,value:C[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(C,c){if(C){if(typeof C=="string")return y(C,c);var u={}.toString.call(C).slice(8,-1);return u==="Object"&&C.constructor&&(u=C.constructor.name),u==="Map"||u==="Set"?Array.from(C):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?y(C,c):void 0}}function y(C,c){(c==null||c>C.length)&&(c=C.length);for(var u=0,f=Array(c);u0&&!N.includes(R.ref)&&!s.includes(R.ref),checked:s.includes(R.ref),onClick:function(){function U(){return x(R.ref)}return U}()},R.desc)})]})]})})}return C}()},26991:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=function(S,b,C,c,u){return Sc?"average":S>u?"bad":"good"},k=r.AtmosScan=function(){function y(S,b){var C=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(c){return c.val!=="0"||c.entry==="Pressure"||c.entry==="Temperature"})(C).map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.entry,color:p(c.val,c.bad_low,c.poor_low,c.poor_high,c.bad_high),children:[c.val,c.units]},c.entry)})})})}return y}()},85870:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" \u0435\u0434\u0438\u043D\u0438\u0446"+(y%10===1&&y%100!==11?"\u0430":"")+(y%10>1&&y%10<5&&!(y%100>11)&&!(y%100<15)?"\u044B":"")},p=r.BeakerContents=function(){function k(y){var S=y.beakerLoaded,b=y.beakerContents,C=b===void 0?[]:b,c=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})||C.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430."}),C.map(function(u,f){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(u.volume)," ",u.name]},u.name),!!c&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:c(u,f)})]},u.name)})]})}return k}();p.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},3939:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},p=r.modalOpen=function(){function C(c,u,f){var l=(0,a.useBackend)(c),d=l.act,m=l.data,i=Object.assign(m.modal?m.modal.args:{},f||{});d("modal_open",{id:u,arguments:JSON.stringify(i)})}return C}(),k=r.modalRegisterBodyOverride=function(){function C(c,u){o[c]=u}return C}(),y=r.modalAnswer=function(){function C(c,u,f,l){var d=(0,a.useBackend)(c),m=d.act,i=d.data;if(i.modal){var h=Object.assign(i.modal.args||{},l||{});m("modal_answer",{id:u,answer:f,arguments:JSON.stringify(h)})}}return C}(),S=r.modalClose=function(){function C(c,u){var f=(0,a.useBackend)(c),l=f.act;l("modal_close",{id:u})}return C}(),b=r.ComplexModal=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.data;if(l.modal){var d=l.modal,m=d.id,i=d.text,h=d.type,V,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",onClick:function(){function L(){return S(u)}return L}()}),s,g,N="auto";if(o[m])s=o[m](l.modal,u);else if(h==="input"){var x=l.modal.value;V=function(){function L(T){return y(u,m,x)}return L}(),s=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER \u0434\u043B\u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(T,A){x=A}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",color:"grey",onClick:function(){function L(){return S(u)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(u,m,x)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(h==="choice"){var B=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;s=(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(T){return y(u,m,T)}return L}()}),N="initial"}else h==="bento"?s=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(L,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return y(u,m,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},T)})}):h==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(u,m,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(u,m,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:c.maxWidth||window.innerWidth/2+"px",maxHeight:c.maxHeight||window.innerHeight/2+"px",onEnter:V,mx:"auto",overflowY:N,"padding-bottom":"5px",children:[i&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i}),o[m]&&v,s,g]})}}return C}()},41874:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),p=n(76910),k=p.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(f){return y.indexOf(f)!==-1?"green":"orange"},b=function(f){if(y.indexOf(f)!==-1)return!0},C=function(f){return f.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"})]}),f.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(l.real_rank),bold:b(l.real_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)})]})},c=r.CrewManifest=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i;if(f.data)i=f.data;else{var h=(0,a.useBackend)(l),V=h.data;i=V}var v=i,s=v.manifest,g=s.heads,N=s.pro,x=s.sec,B=s.eng,L=s.med,T=s.sci,A=s.ser,E=s.sup,w=s.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:C(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.procedure,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:C(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:C(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:C(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:C(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:C(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:C(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:C(E)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:C(w)})]})}return u}()},19203:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function p(k,y){var S=(0,t.useBackend)(y),b=S.act,C=S.data,c=C.large_buttons,u=C.swapped_buttons,f=k.input,l=k.message,d=k.disabled,m=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"\u041F\u0440\u0438\u043D\u044F\u0442\u044C",bold:!!c,fluid:!!c,onClick:function(){function h(){return b("submit",{entry:f})}return h}(),textAlign:"center",tooltip:c&&l,disabled:d,width:!c&&6}),i=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",bold:!!c,fluid:!!c,onClick:function(){function h(){return b("cancel")}return h}(),textAlign:"center",width:!c&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:u?"row-reverse":"row",justify:"space-around",children:[c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:u?.5:0,mr:u?0:.5,children:i}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),!c&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:u?.5:0,ml:u?0:.5,children:m}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:m})]})}return p}()},195:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=k.siliconUser,u=c===void 0?C.siliconUser:c,f=k.locked,l=f===void 0?C.locked:f,d=k.normallyLocked,m=d===void 0?C.normallyLocked:d,i=k.onLockStatusChange,h=i===void 0?function(){return b("lock")}:i,V=k.accessText,v=V===void 0?"ID-\u043A\u0430\u0440\u0442\u043E\u0439":V;return u?(0,e.createComponentVNode)(2,t.NoticeBox,{color:u&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430:"}),(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:m?"red":"green",icon:m?"lock":"unlock",content:m?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E",onClick:function(){function s(){h&&h(!l)}return s}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 ",v,", \u0447\u0442\u043E\u0431\u044B"," ",l?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]})}return p}()},51057:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function p(k){var y=k.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return p}()},321:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.loginState;if(C)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D \u0432\u0445\u043E\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0443 \u043A\u0430\u043A: ",c.name," (",c.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043C\u044B",color:"good",onClick:function(){function u(){return b("login_logout")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!c.id,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C ID",color:"good",onClick:function(){function u(){return b("login_eject")}return u}()})]})]})})}return p}()},5485:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.loginState,u=C.isAI,f=C.isRobot,l=C.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u043E\u0431\u0440\u043E \u043F\u043E\u0436\u0430\u043B\u043E\u0432\u0430\u0442\u044C",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"}),"\u0413\u043E\u0441\u0442\u044C"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.id?c.id:"----------",ml:"0.5rem",onClick:function(){function d(){return b("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!c.id,content:"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function d(){return b("login_login",{login_type:1})}return d}()}),!!u&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0418\u0418",onClick:function(){function d(){return b("login_login",{login_type:2})}return d}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u043A\u0438\u0431\u043E\u0440\u0433",onClick:function(){function d(){return b("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0426\u0435\u043D\u0442\u041A\u043E\u043C",onClick:function(){function d(){return b("login_login",{login_type:4})}return d}()})]})})})}return p}()},62411:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function p(k){var y=k.operating,S=k.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return p}();o.propTypes={operating:t.bool,name:t.string}},13545:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.Signaler=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=y.data,u=c.code,f=c.frequency,l=c.minFrequency,d=c.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:f/10,format:function(){function m(i){return(0,a.toFixed)(i,1)}return m}(),width:"80px",onDrag:function(){function m(i,h){return C("freq",{freq:h})}return m}()})}),(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:u,width:"80px",onDrag:function(){function m(i,h){return C("code",{code:h})}return m}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function m(){return C("signal")}return m}()})]})}return k}()},41984:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),p=n(88510),k=n(36036),y=r.SimpleRecords=function(){function C(c,u){var f=c.data.records;return(0,e.createComponentVNode)(2,k.Box,{children:f?(0,e.createComponentVNode)(2,b,{data:c.data,recordType:c.recordType}):(0,e.createComponentVNode)(2,S,{data:c.data})})}return C}(),S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=c.data.recordsList,m=(0,a.useLocalState)(u,"searchText",""),i=m[0],h=m[1],V=function(g,N){N===void 0&&(N="");var x=(0,t.createSearch)(N,function(B){return B.Name});return(0,o.flow)([(0,p.filter)(function(B){return B==null?void 0:B.Name}),N&&(0,p.filter)(x),(0,p.sortBy)(function(B){return B.Name})])(d)},v=V(d,i);return(0,e.createComponentVNode)(2,k.Box,{children:[(0,e.createComponentVNode)(2,k.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function s(g,N){return h(N)}return s}()}),v.map(function(s){return(0,e.createComponentVNode)(2,k.Box,{children:(0,e.createComponentVNode)(2,k.Button,{mb:.5,content:s.Name,icon:"user",onClick:function(){function g(){return l("Records",{target:s.uid})}return g}()})},s)})]})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=c.data.records,m=d.general,i=d.medical,h=d.security,V;switch(c.recordType){case"MED":V=(0,e.createComponentVNode)(2,k.Section,{level:2,title:"Medical Data",children:i?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Blood Type",children:i.blood_type}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Current Diseases",children:i.cdi}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:i.notes})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":V=(0,e.createComponentVNode)(2,k.Section,{level:2,title:"Security Data",children:h?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Criminal Status",children:h.criminal}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Minor Crimes",children:h.mi_crim}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:h.mi_crim_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Major Crimes",children:h.ma_crim}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:h.ma_crim_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:h.notes})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,k.Box,{children:[(0,e.createComponentVNode)(2,k.Section,{title:"General Data",children:m?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Name",children:m.name}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Sex",children:m.sex}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Species",children:m.species}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Age",children:m.age}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Rank",children:m.rank}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Fingerprint",children:m.fingerprint}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Physical Status",children:m.p_stat}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Mental Status",children:m.m_stat})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"General record lost!"})}),V]})}},22091:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function p(k,y){var S,b=(0,a.useBackend)(y),C=b.act,c=b.data,u=c.temp;if(u){var f=(S={},S[u.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:u.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function l(){return C("cleartemp")}return l}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})))}}return p}()},25443:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20342),p=n(98595),k=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],y=["good","average","bad","black","white"],S=[{title:"Button",component:function(){function s(){return C}return s}()},{title:"Box",component:function(){function s(){return c}return s}()},{title:"ProgressBar",component:function(){function s(){return u}return s}()},{title:"Tabs",component:function(){function s(){return f}return s}()},{title:"Tooltip",component:function(){function s(){return l}return s}()},{title:"Input / Control",component:function(){function s(){return d}return s}()},{title:"Collapsible",component:function(){function s(){return m}return s}()},{title:"BlockQuote",component:function(){function s(){return h}return s}()},{title:"ByondUi",component:function(){function s(){return V}return s}()},{title:"Themes",component:function(){function s(){return v}return s}()}],b=r.KitchenSink=function(){function s(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=(0,a.useLocalState)(N,"pageIndex",0),T=L[0],A=L[1],E=S[T].component();return(0,e.createComponentVNode)(2,p.Window,{theme:B,resizable:!0,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:S.map(function(w,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:O===T,onClick:function(){function M(){return A(O)}return M}(),children:w.title},O)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,E)})]})})})})}return s}(),C=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[y.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),k.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),k.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:N,children:N},N)})]})]})},c=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,t.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"right",children:"right"})]})},u=function(g,N){var x=(0,a.useLocalState)(N,"progress",.5),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:B,children:["Value: ",Number(B).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function T(){return L(B-.1)}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function T(){return L(B+.1)}return T}()})]})]})},f=function(g,N){var x=(0,a.useLocalState)(N,"tabIndex",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"tabVert"),A=T[0],E=T[1],w=(0,a.useLocalState)(N,"tabAlt"),O=w[0],M=w[1],P=[1,2,3,4,5];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:A,onClick:function(){function F(){return E(!A)}return F}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"altSelection",checked:O,onClick:function(){function F(){return M(!O)}return F}()})]}),(0,e.createComponentVNode)(2,t.Tabs,{vertical:A,children:P.map(function(F,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{altSelection:O,selected:R===B,onClick:function(){function U(){return L(R)}return U}(),children:["Tab #",F]},R)})})]})},l=function(g){var N=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:["Box (hover me).",(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text."})]}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:N.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:x,content:x},x)})})],4)},d=function(g,N){var x=(0,a.useLocalState)(N,"number",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"text","Sample text"),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onChange:function(){function w(O,M){return E(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onInput:function(){function w(O,M){return E(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onChange:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,o.DraggableControl,{value:B,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function w(O,M){return L(M)}return w}(),children:function(){function w(O){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:O.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:O.displayValue*4}),O.inputElement]})}return w}()})})})]})})},m=function(g){return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,i)})})},i=function(g){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))},h=function(g){return(0,e.createComponentVNode)(2,t.BlockQuote,{children:(0,e.createComponentVNode)(2,i)})},V=function(g,N){var x=(0,a.useBackend)(N),B=x.config;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Button",level:2,children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",parent:B.window,text:"Button"}})})})},v=function(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:B,onInput:function(){function T(A,E){return L(E)}return T}()})})})})}},96572:function(I,r,n){"use strict";r.__esModule=!0,r.pai_advsecrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_advsecrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options:",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Records",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},80818:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:C.app_data})}return p}()},23903:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.holder,f=c.dead,l=c.health,d=c.brute,m=c.oxy,i=c.tox,h=c.burn,V=c.reagents,v=c.addictions,s=c.fractures,g=c.internal_bleeding;return u?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(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:m})}),(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:h})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagents",children:V?V.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,children:(0,e.createComponentVNode)(2,t.Box,{color:N.overdosed?"bad":"good",children:[" ",N.volume," ",N.overdosed?"OVERDOSED":""," "]})},N.id)}):"Reagents not found."}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Addictions",children:v?v.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.addiction_name,children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[" Stage: ",N.stage," "]})},N.id)}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Addictions not found."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fractures",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"bad":"good",children:["Fractures ",s?"":"not"," detected."]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Bleedings",children:(0,e.createComponentVNode)(2,t.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return p}()},79592:function(I,r,n){"use strict";r.__esModule=!0,r.pai_camera_bug=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_camera_bug=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Monitor",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},64988:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.master,f=c.dna,l=c.prime,d=c.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:u?u+" ("+f+")":"None"}),u&&(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 m(){return b("getdna")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return p}()},13813:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.cable,f=c.machine,l=c.inprogress,d=c.progress,m=c.aborted,i;f?i=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):i=(0,e.createComponentVNode)(2,t.Button,{content:u?"Extended":"Retracted",color:u?"orange":null,onClick:function(){function V(){return b("cable")}return V}()});var h;return f&&(h=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.Box,{color:l?"green":"red",children:[" ","In progress: ",l?"Yes":"No"," "]}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function V(){return b("cancel")}return V}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function V(){return b("jack")}return V}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:i}),h]})}return p}()},43816:function(I,r,n){"use strict";r.__esModule=!0,r.pai_encoder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_encoder=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.radio_name,f=c.radio_rank;return(0,e.createComponentVNode)(2,t.Section,{title:"Your name and rank in radio channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Your current name and rank",children:[u,", ",f]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new name",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,m){return b("set_newname",{newname:m})}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new rank",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,m){return b("set_newrank",{newrank:m})}return l}()})})]})})}return p}()},88895:function(I,r,n){"use strict";r.__esModule=!0,r.pai_gps_module=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_gps_module=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"GPS menu",children:(0,e.createComponentVNode)(2,t.Button,{content:"Open GPS",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},66025:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.available_software,f=c.installed_software,l=c.installed_toggles,d=c.available_ram,m=c.emotions,i=c.current_emotion,h=[];return f.map(function(V){return h[V.key]=V.name}),l.map(function(V){return h[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[u.filter(function(V){return!h[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{color:V.syndi?"red":"default",content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>d,onClick:function(){function v(){return b("purchaseSoftware",{key:V.key})}return v}()},V.key)}),u.filter(function(V){return!h[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[f.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function v(){return b("startSoftware",{software_key:V.key})}return v}()},V.key)}),f.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function v(){return b("setToggle",{toggle_key:V.key})}return v}()},V.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:m.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{color:V.syndi?"red":"default",content:V.name,selected:V.id===i,onClick:function(){function v(){return b("setEmotion",{emotion:V.id})}return v}()},V.id)})})]})})}return p}()},2983:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:C.app_data})}return p}()},40758:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"MED"})}return p}()},98599:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data.active_convo;return c?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:C.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:C.app_data})}return p}()},50775:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),p=r.pai_radio=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.app_data,f=u.minFrequency,l=u.maxFrequency,d=u.frequency,m=u.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:f/10,maxValue:l/10,value:d/10,format:function(){function i(h){return(0,t.toFixed)(h,1)}return i}(),onChange:function(){function i(h,V){return C("freq",{freq:V})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function i(){return C("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 C("toggleBroadcast")}return i}(),selected:m,content:m?"Enabled":"Disabled"})})]})}return k}()},19873:function(I,r,n){"use strict";r.__esModule=!0,r.pai_sec_chem=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_sec_chem=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.holder,f=c.dead,l=c.health,d=c.current_chemicals,m=c.available_chemicals;return u?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(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:"Current Chemicals",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Chemicals",children:[m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{content:i.name+" ("+i.cost+")",tooltip:i.desc,disabled:i.cost>d,onClick:function(){function h(){return b("secreteChemicals",{key:i.key})}return h}()},i.key)}),m.length===0&&"No chemicals available!"]})]})}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return p}()},48623:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"SEC"})}return p}()},47297:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C.app_data})}return p}()},78532:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:b})}return p}()},40253:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.janitor,u=c.user_loc,f=c.mops,l=c.buckets,d=c.cleanbots,m=c.carts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[u.x,",",u.y]}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - ",i.status]},i)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - [",i.volume,"/",i.max_volume,"]"]},i)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - ",i.status]},i)})}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - [",i.volume,"/",i.max_volume,"]"]},i)})})]})}return p}()},58293:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.pda_main_menu=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=b.data,u=c.owner,f=c.ownjob,l=c.idInserted,d=c.categories,m=c.pai,i=c.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[u,", ",f]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function h(){return C("UpdateInfo")}return h}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(h){var V=c.apps[h];return!V||!V.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h,children:V.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in i?v.notify_icon:v.icon,iconSpin:v.uid in i,color:v.uid in i?"red":"transparent",content:v.name,onClick:function(){function s(){return C("StartProgram",{program:v.uid})}return s}()},v.uid)})},h)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function h(){return C("pai",{option:1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function h(){return C("pai",{option:2})}return h}()})]})})]})}return k}()},58059:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return p}()},18147:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"MED"})}return p}()},77595:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=r.pda_messenger=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=u.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,k,{data:l}):(0,e.createComponentVNode)(2,y,{data:l})}return b}(),k=r.ActiveConversation=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=l.convo_device,m=l.messages,i=l.active_convo,h=(0,t.useLocalState)(c,"clipboardMode",!1),V=h[0],v=h[1],s=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:V,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!V)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return f("Message",{target:i})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===i})(m).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{textAlign:g.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:g.sent?"#4d9121":"#cd7a0d",position:"absolute",left:g.sent?null:"0px",right:g.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:g.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:g.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:g.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[g.sent?"You:":"Them:"," ",g.message]})]},N)})});return V&&(s=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:V,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!V)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return f("Message",{target:i})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===i})(m).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{color:g.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[g.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:g.message})]},N)})})),(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 g(){return f("Clear",{option:"Convo"})}return g}()})})})}),s]})}return b}(),y=r.MessengerList=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=l.convopdas,m=l.pdas,i=l.charges,h=l.silent,V=l.toff,v=(0,t.useLocalState)(c,"searchTerm",""),s=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function N(){return f("Toggle Ringer")}return N}(),children:["Ringer: ",h?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:V?"bad":"green",icon:"power-off",onClick:function(){function N(){return f("Toggle Messenger")}return N}(),children:["Messenger: ",V?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function N(){return f("Ringtone")}return N}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function N(){return f("Clear",{option:"All"})}return N}(),children:"Delete All Conversations"})]})}),!V&&(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."]})})}),!d.length&&!m.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:s,onInput:function(){function N(x,B){g(B)}return N}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:s}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:m,msgAct:"Message",data:l,searchTerm:s})]})}return b}(),S=function(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=C.pdas,m=C.title,i=C.msgAct,h=C.searchTerm,V=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:m,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:m,children:d.filter(function(s){return s.Name.toLowerCase().includes(h.toLowerCase())}).map(function(s){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:s.Name,onClick:function(){function g(){return f(i,{target:s.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!V&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function N(){return f("Messenger Plugin",{plugin:g.uid,target:s.uid})}return N}()},g.uid)})})]},s.uid)})})}},24635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,p)})}return y}(),p=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function m(){return c("AccessBot",{uid:d.uid})}return m}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return c("Rescan")}return d}()})})]})},k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.botstatus,d=f.active,m=l.mode,i=l.loca,h=l.load,V=l.powr,v=l.dest,s=l.home,g=l.retn,N=l.pick,x;switch(m){case 0:x="Ready";break;case 1:x="Loading/Unloading";break;case 2:case 12:x="Navigating to delivery location";break;case 3:x="Navigating to Home";break;case 4:x="Waiting for clear path";break;case 5:case 6:x="Calculating navigation path";break;case 7:x="Unable to locate destination";break;default:x=m;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[m===-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:x}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[V,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function B(){return c("SetDest")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Unload)":"None",disabled:!h,onClick:function(){function B(){return c("Unload")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function B(){return c("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function B(){return c("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function B(){return c("Stop")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function B(){return c("Start")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function B(){return c("ReturnHome")}return B}()})]})]})]})}},97085:function(I,r,n){"use strict";r.__esModule=!0,r.pda_notes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_notes=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:c}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function u(){return b("Edit")}return u}(),content:"Edit"})]})}return p}()},57513:function(I,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(89005),a=n(72253),t=n(61631),o=r.pda_power=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return p}()},57635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_request_console=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25472),p=r.pda_request_console=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.screen,f=c.selected_console,l=c.consoles_data,d=c.app;return f?(0,e.createComponentVNode)(2,t.Box,{children:[(o.pages[u]||o.pages.default)(),u===0?(0,e.createComponentVNode)(2,t.Button,{content:"Back to console selection",icon:"arrow-left",onClick:function(){function m(){return C("back")}return m}()}):""]}):(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:l.map(function(m){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{color:m.priority===1?"green":m.priority===2?"red":"default",content:m.name,onClick:function(){function i(){return C("select",{name:m.name})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:m.muted?"volume-mute":"volume-up",onClick:function(){function i(){return C("mute",{name:m.name})}return i}()})]})})},m.name)})})})}return k}()},99808:function(I,r,n){"use strict";r.__esModule=!0,r.pda_secbot=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_secbot=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,p)})}return y}(),p=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function m(){return c("AccessBot",{uid:d.uid})}return m}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return c("Rescan")}return d}()})})]})},k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.botstatus,d=f.active,m=l.mode,i=l.loca,h;switch(m){case 0:h="Ready";break;case 1:h="Apprehending target";break;case 2:case 3:h="Arresting target";break;case 4:h="Starting patrol";break;case 5:h="On patrol";break;case 6:h="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[m===-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:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go",icon:"play",onClick:function(){function V(){return c("Go")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function V(){return c("Stop")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Summon",icon:"arrow-down",onClick:function(){function V(){return c("Summon")}return V}()})]})]})]})}},77168:function(I,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_security=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"SEC"})}return p}()},21773:function(I,r,n){"use strict";r.__esModule=!0,r.pda_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pda_signaler=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C})}return p}()},81857:function(I,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_status_display=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function u(){return b("Status",{statdisp:"blank"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function u(){return b("Status",{statdisp:"shuttle"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function u(){return b("Status",{statdisp:"message"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"redalert"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"default"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"lockdown"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"biohazard"})}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:c.message1+" (set)",icon:"pen",onClick:function(){function u(){return b("Status",{statdisp:"setmsg1"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:c.message2+" (set)",icon:"pen",onClick:function(){function u(){return b("Status",{statdisp:"setmsg2"})}return u}()})})]})})}return p}()},70287:function(I,r,n){"use strict";r.__esModule=!0,r.pda_supplyrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_supplyrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.supply,u=c.shuttle_loc,f=c.shuttle_time,l=c.shuttle_moving,d=c.approved,m=c.approved_count,i=c.requests,h=c.requests_count;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:l?(0,e.createComponentVNode)(2,t.Box,{children:["In transit ",f]}):(0,e.createComponentVNode)(2,t.Box,{children:u})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:h>0&&i.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:["#",V.Number,' - "',V.Name,'" for "',V.OrderedBy,'"']},V)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:m>0&&d.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:["#",V.Number,' - "',V.Name,'" for "',V.ApprovedBy,'"']},V)})})]})}return p}()},17617:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),p=["className","theme","children"],k=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT