diff --git a/code/modules/genetics/machinery/genetics_cloner.dm b/code/modules/genetics/machinery/genetics_cloner.dm
index 0d44009bac6..d3ddb28c09a 100644
--- a/code/modules/genetics/machinery/genetics_cloner.dm
+++ b/code/modules/genetics/machinery/genetics_cloner.dm
@@ -302,7 +302,6 @@ This makes cloning vat is probably the most dangerous tool in Genetics. Because
/obj/machinery/genetics/cloner/proc/init_disposal_holder()
var/obj/structure/disposalholder/holder = new()
- holder.gas = air_contents// transfer gas resv. into holder object -- let's be explicit about the data this proc consumes, please.
holder.from_cloner = TRUE
//Check for any living mobs trigger hasmob.
diff --git a/code/modules/recycling/disposal-construction.dm b/code/modules/recycling/disposal-construction.dm
index 533f27bf477..c0f4fc96780 100644
--- a/code/modules/recycling/disposal-construction.dm
+++ b/code/modules/recycling/disposal-construction.dm
@@ -289,7 +289,7 @@
P.base_icon_state = base_state
P.set_dir(dir)
P.pipe_dir = pipe_dir
- P.updateicon()
+ P.update_icon()
//Needs some special treatment ;)
if(pipe_type in list(PIPE_TYPE_JUNC_SORT, PIPE_TYPE_JUNC_SORT_FLIP))
diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm
index 1237fcf9994..12b0f345f3a 100755
--- a/code/modules/recycling/disposal.dm
+++ b/code/modules/recycling/disposal.dm
@@ -8,6 +8,7 @@
#define SEND_PRESSURE (700 + ONE_ATMOSPHERE) //kPa - assume the inside of a dispoal pipe is 1 atm, so that needs to be added.
#define PRESSURE_TANK_VOLUME 150 //L
#define PUMP_MAX_FLOW_RATE 90 //L/s - 4 m/s using a 15 cm by 15 cm inlet
+#define PERCENT_PER_PROCESS 0.084 // ~12 cycles = 24 seconds
#define DISPOSALS_OFF "Off"
#define DISPOSALS_CHARGING "Pressurizing"
@@ -22,7 +23,7 @@
anchored = TRUE
density = TRUE
layer = LOW_OBJ_LAYER //This allows disposal bins to be underneath tables
- var/datum/gas_mixture/air_contents // internal reservoir
+ var/percent_charged = 1
var/mode = DISPOSALS_CHARGED
var/flush = 0 // true if flush handle is pulled
var/obj/structure/disposalpipe/trunk/trunk = null // the attached pipe trunk
@@ -30,32 +31,41 @@
var/flush_every_ticks = 30 //Every 30 ticks it will look whether it is ready to flush
var/flush_count = 0 //this var adds 1 once per tick. When it reaches flush_every_ticks it resets and tries to flush.
var/last_sound = 0
- active_power_usage = 2200 //the pneumatic pump power. 3 HP ~ 2200W
+ active_power_usage = 1100 // per tick, goal is 13,210 power over 12 cycles = 1100
idle_power_usage = 100
-// create a new disposal
-// find the attached trunk (if present) and init gas resvr.
-/obj/machinery/disposal/New()
+/obj/machinery/disposal/Initialize(mapload, d)
..()
- spawn(5)
- trunk = locate() in src.loc
- if(!trunk)
- mode = DISPOSALS_OFF
- flush = 0
- else
- trunk.linked = src // link the pipe trunk to self
+ return INITIALIZE_HINT_LATELOAD
+
+// create a new disposal
+// find the attached trunk (if present)
+/obj/machinery/disposal/LateInitialize(mapload)
+ . = ..()
- air_contents = new/datum/gas_mixture(PRESSURE_TANK_VOLUME)
- update()
+ trunk = locate() in loc
+ if(!trunk)
+ mode = DISPOSALS_OFF
+ flush = 0
+ else
+ trunk.linked = src // link the pipe trunk to self
+
+ update()
/obj/machinery/disposal/Destroy()
eject()
if(trunk)
trunk.linked = null
+ trunk = null
return ..()
-/obj/machinery/disposal/affect_grab(var/mob/living/user, var/mob/living/target)
+/obj/machinery/disposal/affect_grab(mob/living/user, mob/living/target)
+ if(target.mob_size > MOB_MEDIUM) //We cant stuff in anything bigger then 20
+ to_chat(user, SPAN_WARNING("[target] is too big to go in [src]."))
+ return
+
user.visible_message("[user] starts putting [target] into the disposal.")
+
var/time_to_put = target.mob_size //size is perfectly suit
if(do_after(user, time_to_put, src) && Adjacent(target))
user.face_atom(src)
@@ -63,19 +73,15 @@
visible_message(SPAN_NOTICE("[target] has been placed in the [src] by [user]."))
user.attack_log += text("\[[time_stamp()]\] Has placed [target] ([target.ckey]) in disposals. ")
target.attack_log += text("\[[time_stamp()]\] Has been placed in disposals by [user.name] ([user.ckey]) ")
- msg_admin_attack("[user] ([user.ckey]) placed [target] ([target.ckey]) in a disposals unit. (JMP )")
+ msg_admin_attack("[key_name_admin(user)] placed [key_name_admin(target)] in a disposals unit.")
return TRUE
-/obj/machinery/disposal/MouseDrop_T(var/obj/item/I, mob/user, src_location, over_location, src_control, over_control, params)
-
-
-
// attack by item places it in to disposal
-/obj/machinery/disposal/attackby(var/obj/item/I, var/mob/user)
+/obj/machinery/disposal/attackby(obj/item/I, mob/user)
if(stat & BROKEN || !I || !user)
return
- src.add_fingerprint(user)
+ add_fingerprint(user)
var/list/usable_qualities = list()
if(mode == DISPOSALS_OFF)
@@ -83,10 +89,8 @@
if(panel_open)
usable_qualities.Add(QUALITY_WELDING)
-
var/tool_type = I.get_tool_type(user, usable_qualities, src)
switch(tool_type)
-
if(QUALITY_SCREW_DRIVING)
if(length(contents) > 0)
to_chat(user, "Eject the items first!")
@@ -100,8 +104,6 @@
if(I.use_tool(user, src, WORKTIME_NEAR_INSTANT, tool_type, FAILCHANCE_EASY, required_stat = STAT_MEC, instant_finish_tier = 30, forced_sound = used_sound))
to_chat(user, "You [panel_open ? "attach" : "remove"] the screws around the power connection.")
panel_open = !panel_open
- return
-
return
if(QUALITY_WELDING)
@@ -115,23 +117,21 @@
if(I.use_tool(user, src, WORKTIME_NORMAL, tool_type, FAILCHANCE_EASY, required_stat = STAT_MEC))
to_chat(user, "You sliced the floorweld off the disposal unit.")
- var/obj/structure/disposalconstruct/C = new (src.loc)
- src.transfer_fingerprints_to(C)
+ var/obj/structure/disposalconstruct/C = new(loc)
+ transfer_fingerprints_to(C)
C.pipe_type = PIPE_TYPE_BIN
C.anchored = TRUE
C.density = TRUE
C.update()
qdel(src)
-
return
if(ABORT_CHECK)
return
-
if(istype(I, /obj/item/storage/bag))
var/obj/item/storage/bag/T = I
- to_chat(user, "\blue You empty the bag.")
+ to_chat(user, SPAN_NOTICE("You empty [I] into [src]."))
for(var/obj/item/O in T.contents)
T.remove_from_storage(O,src)
T.update_icon()
@@ -142,10 +142,11 @@
return
if(user.unEquip(I, src))
- user.visible_message("[user.name] places \the [I] into \the [src].", \
- "You place \the [I] into the [src].")
+ user.visible_message(
+ "[user.name] places [I] into [src].",
+ "You place [I] into the [src]."
+ )
playsound(loc, 'sound/machines/vending_drop.ogg', 100, 1)
-
update()
// mouse drop another mob or self
@@ -153,61 +154,60 @@
/obj/machinery/disposal/MouseDrop_T(atom/movable/A, mob/user)
if(ismob(A))
var/mob/target = A
- if(user.stat || !user.canmove)
+ if(user.incapacitated(INCAPACITATION_ALL))
return
- if(target.buckled || get_dist(user, src) > 1 || get_dist(user, target) > 1)
+ if(target.buckled || target.anchored || get_dist(user, src) > 1 || get_dist(user, target) > 1)
return
//animals cannot put mobs other than themselves into disposal
if(isanimal(user) && target != user)
+ to_chat(user, SPAN_WARNING("Animals cannot put mobs other than themselves into disposals."))
return
- if (target.mob_size < MOB_MEDIUM) //We cant stuff in anything bigger then 20
+ if(target.mob_size > MOB_MEDIUM) //We cant stuff in anything bigger then 20
+ to_chat(user, SPAN_WARNING("[target] is too big to go in [src]."))
return
- src.add_fingerprint(user)
- var/target_loc = target.loc
- var/msg
- for (var/mob/V in viewers(usr))
- if(target == user && !user.stat && !user.weakened && !user.stunned && !user.paralysis)
- V.show_message("[usr] starts climbing into the disposal.", 3)
- if(target != user && !user.restrained() && !user.stat && !user.weakened && !user.stunned && !user.paralysis)
- if(target.anchored) return
- V.show_message("[usr] starts stuffing [target.name] into the disposal.", 3)
+ add_fingerprint(user)
+
+ if(target == user)
+ user.visible_message(SPAN_DANGER("[user] starts climbing into [src]."), SPAN_DANGER("You start climbing into [src]."))
+ else
+ user.visible_message(SPAN_DANGER("[user] starts stuffing [target] into [src]."), SPAN_DANGER("You start stuffing [target] into [src]."))
var/delay = 20
- if(!do_after(usr, max(delay * usr.stats.getMult(STAT_VIG, STAT_LEVEL_EXPERT), delay * 0.66), src))
+ var/target_loc = target.loc
+ if(!do_after(user, max(delay * user.stats.getMult(STAT_VIG, STAT_LEVEL_EXPERT), delay * 0.66), src))
return
if(target_loc != target.loc)
return
- if(target == user && !user.incapacitated(INCAPACITATION_ALL)) // if drop self, then climbed in
- // must be awake, not stunned or whatever
- msg = "[user.name] climbs into the [src]."
- to_chat(user, "You climb into the [src].")
- else if(target != user && !user.restrained() && !user.stat && !user.weakened && !user.stunned && !user.paralysis)
- msg = "[user.name] stuffs [target.name] into the [src]!"
- to_chat(user, "You stuff [target.name] into the [src]!")
-
- user.attack_log += text("\[[time_stamp()]\] Has placed [target.name] ([target.ckey]) in disposals. ")
- target.attack_log += text("\[[time_stamp()]\] Has been placed in disposals by [user.name] ([user.ckey]) ")
- msg_admin_attack("[user] ([user.ckey]) placed [target] ([target.ckey]) in a disposals unit. (JMP )")
- else
+ // do_after incapacitation_flags don't work yet
+ if(user.incapacitated(INCAPACITATION_ALL))
return
- if (target.client)
- target.client.perspective = EYE_PERSPECTIVE
- target.client.eye = src
+ user.attack_log += text("\[[time_stamp()]\] Has placed [key_name(target)]]) in disposals. ")
+ target.attack_log += text("\[[time_stamp()]\] Has been placed in disposals by [key_name(user)] ")
+ msg_admin_attack("[key_name_admin(user)] placed [key_name_admin(target)] in a disposals unit.")
+
+ if(target == user)
+ user.visible_message(
+ SPAN_DANGER("[user] climbs into [src]."),
+ SPAN_DANGER("You climb into [src].")
+ )
+ else
+ user.visible_message(
+ SPAN_DANGER("[user] stuffs [target] into [src]."),
+ SPAN_DANGER("You stuff [target] into [src].")
+ )
+
+ target.reset_view(src)
target.simple_move_animation(src)
target.forceMove(src)
- for (var/mob/C in viewers(src))
- if(C == user)
- continue
- C.show_message(msg, 3)
-
update()
return
- else if (istype(A, /obj/item))
+
+ else if(isitem(A))
var/obj/item/I = A
if(!Adjacent(user) || !I.Adjacent(user) || user.stat)
return ..()
@@ -224,42 +224,41 @@
return
I.add_fingerprint(user)
- if(user.drop_from_inventory(I))
- user.drop_from_inventory(I)
- I.forceMove(src)
- user.visible_message("[user.name] places \the [I] into \the [src].", \
- "You place \the [I] into the [src].")
+
+ if(user.unEquip(I, src))
+ user.visible_message(
+ "[user] places [I] into [src].",
+ "You place [I] into [src]."
+ )
playsound(loc, 'sound/machines/vending_drop.ogg', 100, 1)
else
- user.visible_message("[user.name] fails to throw away \the [I] into \the [src].", \
- "You fail to throw away \the [I] into the [src].")
+ user.visible_message(
+ "[user] fails to throw away [I] into [src].",
+ "You fail to throw away [I] into [src]."
+ )
+
update()
return
+
. = ..()
// attempt to move while inside
-/obj/machinery/disposal/relaymove(mob/user as mob)
- if(user.stat || src.flushing)
+/obj/machinery/disposal/relaymove(mob/user)
+ if(user.stat || flushing)
return
if(user.loc == src)
- src.go_out(user)
- return
+ go_out(user)
// leave the disposal
/obj/machinery/disposal/proc/go_out(mob/user)
-
- if (user.client)
- user.client.eye = user.client.mob
- user.client.perspective = MOB_PERSPECTIVE
- user.forceMove(src.loc)
+ user.forceMove(loc)
+ user.reset_view()
update()
- return
/obj/machinery/disposal/ui_state(mob/user)
return GLOB.notcontained_state
/obj/machinery/disposal/ui_interact(mob/user, datum/tgui/ui)
-
if(stat & BROKEN)
return
@@ -276,7 +275,6 @@
"handle" = flush,
"panel" = panel_open,
"eject" = length(contents) ? TRUE : FALSE,
- "pressure" = CLAMP01(100 * air_contents.return_pressure() / SEND_PRESSURE)
)
return data
@@ -304,18 +302,24 @@
// eject the contents of the disposal unit
/obj/machinery/disposal/proc/eject()
for(var/atom/movable/AM in src)
- AM.forceMove(src.loc)
+ AM.forceMove(loc)
AM.pipe_eject(0)
update()
-// update the icon & over-lays to reflect mode & status
+// update state to match stat and update the icon
/obj/machinery/disposal/proc/update()
- cut_overlays()
if(stat & BROKEN)
- icon_state = "disposal-broken"
mode = DISPOSALS_OFF
flush = 0
- return
+
+ update_icon()
+
+/obj/machinery/disposal/update_icon()
+ . = ..()
+ cut_overlays()
+
+ if(stat & BROKEN)
+ icon_state = "disposal-broken"
// only handle is shown if no power
if(stat & NOPOWER || mode == DISPOSALS_OFF)
@@ -336,52 +340,46 @@
add_overlay(image(icon, "dispover-handle"))
// timed process
-// charge the gas reservoir and perform flush if ready
+// charge the "gas" reservoir and perform flush if ready
/obj/machinery/disposal/Process()
- if(!air_contents || (stat & BROKEN)) // nothing can happen if broken
+ if(stat & BROKEN) // nothing can happen if broken
update_use_power(0)
return
flush_count++
- if( flush_count >= flush_every_ticks )
- if( contents.len )
+ if(flush_count >= flush_every_ticks)
+ if(LAZYLEN(contents))
if(mode == DISPOSALS_CHARGED)
spawn(0)
flush()
flush_count = 0
- src.updateDialog()
-
- if(flush && air_contents.return_pressure() >= SEND_PRESSURE ) // flush can happen even without power
+ // flush can happen even without power
+ if(flush && percent_charged >= 1)
flush()
if(mode != DISPOSALS_CHARGING)
update_use_power(1)
- else if(air_contents.return_pressure() >= SEND_PRESSURE)
+ else if(percent_charged >= 1)
mode = DISPOSALS_CHARGED
update()
else
- src.pressurize() //otherwise charge
+ pressurize() //otherwise charge
/obj/machinery/disposal/proc/pressurize()
- if(stat & NOPOWER) // won't charge if no power
+ // won't charge if no power
+ if(stat & NOPOWER)
update_use_power(0)
return
- var/atom/L = loc // recharging from loc turf
- var/datum/gas_mixture/env = L.return_air()
-
- var/power_draw = -1
- if(env && env.temperature > 0)
- var/transfer_moles = (PUMP_MAX_FLOW_RATE/env.volume)*env.total_moles //group_multiplier is divided out here
- power_draw = pump_gas(src, env, air_contents, transfer_moles, active_power_usage)
+ if(percent_charged >= 1)
+ return
- if (power_draw > 0)
- use_power(power_draw)
+ use_power(active_power_usage)
+ percent_charged = CLAMP01(percent_charged + PERCENT_PER_PROCESS)
// perform a flush
/obj/machinery/disposal/proc/flush()
-
flushing = 1
flick("[icon_state]-flush", src)
@@ -398,55 +396,44 @@
if(wrapcheck == 1)
H.tomail = 1
-
sleep(10)
if(last_sound < world.time + 1)
playsound(src, 'sound/machines/disposalflush.ogg', 50, 0, 0)
last_sound = world.time
sleep(5) // wait for animation to finish
-
- H.init(src, air_contents) // copy the contents of disposer to holder
- air_contents = new(PRESSURE_TANK_VOLUME) // new empty gas resv.
-
+ H.init(src) // copy the contents of disposer to holder
H.start(src) // start the holder processing movement
flushing = 0
// now reset disposal state
flush = 0
+ percent_charged = 0
if(mode == DISPOSALS_CHARGED)
mode = DISPOSALS_CHARGING
update()
- return
-
// called when area power changes
/obj/machinery/disposal/power_change()
..() // do default setting/reset of stat NOPOWER bit
update() // update icon
- return
-
// called when holder is expelled from a disposal
// should usually only occur if the pipe network is modified
/obj/machinery/disposal/proc/get_eject_turf()
- get_offset_target_turf(src.loc, rand(5)-rand(5), rand(5)-rand(5))
-
-/obj/machinery/disposal/proc/expel(var/obj/structure/disposalholder/H)
+ get_offset_target_turf(loc, rand(5)-rand(5), rand(5)-rand(5))
- var/turf/target
+/obj/machinery/disposal/proc/expel(obj/structure/disposalholder/H)
+ var/turf/target = get_eject_turf()
playsound(src, 'sound/machines/hiss.ogg', 50, 0, 0)
if(H) // Somehow, someone managed to flush a window which broke mid-transit and caused the disposal to go in an infinite loop trying to expel null, hopefully this fixes it
for(var/atom/movable/AM in H)
- target = get_eject_turf()
-
- AM.forceMove(src.loc)
+ AM.forceMove(loc)
AM.pipe_eject(0)
if(!isdrone(AM)) //Poor drones kept smashing windows and taking system damage being fired out of disposals. ~Z
spawn(1)
if(AM)
AM.throw_at(target, 5, 1)
- H.vent_gas(loc)
qdel(H)
/obj/machinery/disposal/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
@@ -454,51 +441,49 @@
var/mob/living/carbon/human/H = mover
if(H.stats.getPerk(PERK_SPACE_ASSHOLE))
H.forceMove(src)
- visible_message("[H] dives into \the [src]!")
+ visible_message("[H] dives into [src]!")
flush = TRUE
return
- else if (istype(mover,/obj/item) && mover.throwing)
+ else if(isitem(mover) && mover.throwing)
var/obj/item/I = mover
if(istype(I, /obj/item/projectile))
return
else
if(prob(75))
I.forceMove(src)
- visible_message("\The [I] lands in \the [src].")
+ visible_message("[I] lands in [src].")
else
- visible_message("\The [I] bounces off of \the [src]\'s rim!")
- else if (istype(mover, /obj/item/projectile))
+ visible_message("[I] bounces off of [src]'s rim!")
+ else if(istype(mover, /obj/item/projectile))
return TRUE
-
else
return ..(mover, target, height, air_group)
// virtual disposal object
// travels through pipes in lieu of actual items
// contents will be items flushed by the disposal
-// this allows the gas flushed to be tracked
-
/obj/structure/disposalholder
invisibility = 101
- var/datum/gas_mixture/gas = null // gas used to flush, will appear at exit point
- var/active = 0 // true if the holder is moving, otherwise inactive
dir = 0
+
+ var/active = 0 // true if the holder is moving, otherwise inactive
var/count = 2048 //*** can travel 2048 steps before going inactive (in case of loops)
var/destinationTag = "" // changes if contains a delivery container
var/tomail = 0 //changes if contains wrapped package
var/has_mob = FALSE //If it contains a mob
var/from_cloner = FALSE // if the package originates from a genetics cloner
-
var/partialTag = "" //set by a partial tagger the first time round, then put in destinationTag if it goes through again.
- // initialize a holder from the contents of a disposal unit
-/obj/structure/disposalholder/proc/init(var/obj/machinery/disposal/D, var/datum/gas_mixture/flush_gas)
- gas = flush_gas// transfer gas resv. into holder object -- let's be explicit about the data this proc consumes, please.
+// initialize a holder from the contents of a disposal unit
+/obj/structure/disposalholder/proc/init(obj/machinery/disposal/D)
+ // these three loops are here to prevent someone from mailing themselves into a sensitive area
+ // by simply including a delivery in the same package as them
//Check for any living mobs trigger hasmob.
//hasmob effects whether the package goes to cargo or its tagged destination.
for(var/mob/living/M in D)
+ M.reset_view(src)
if(M && M.stat != DEAD && !isdrone(M))
has_mob = TRUE
@@ -507,6 +492,7 @@
for(var/obj/O in D)
if(O.contents)
for(var/mob/living/M in O.contents)
+ M.reset_view(src)
if(M && M.stat != DEAD && !isdrone(M))
has_mob = TRUE
@@ -516,19 +502,18 @@
AM.forceMove(src)
if(istype(AM, /obj/structure/bigDelivery) && !has_mob)
var/obj/structure/bigDelivery/T = AM
- src.destinationTag = T.sortTag
+ destinationTag = T.sortTag
if(istype(AM, /obj/item/smallDelivery) && !has_mob)
var/obj/item/smallDelivery/T = AM
- src.destinationTag = T.sortTag
+ destinationTag = T.sortTag
//Drones can mail themselves through maint.
if(isdrone(AM))
var/mob/living/silicon/robot/drone/drone = AM
- src.destinationTag = drone.mail_destination
-
+ destinationTag = drone.mail_destination
- // start the movement process
- // argument is the disposal unit the holder started in
-/obj/structure/disposalholder/proc/start(var/obj/machinery/disposal/D)
+// start the movement process
+// argument is the disposal unit the holder started in
+/obj/structure/disposalholder/proc/start(obj/machinery/disposal/D)
if(!D.trunk)
D.expel(src) // no trunk connected, so expel immediately
return
@@ -541,7 +526,7 @@
return
- // movement process, persists while holder is moving through pipes
+// movement process, persists while holder is moving through pipes
/obj/structure/disposalholder/proc/move()
var/obj/structure/disposalpipe/last
while(active)
@@ -575,20 +560,17 @@
if(!current)
last.expel(src, loc, dir)
- //
if(!(count--))
active = FALSE
return
-
- // find the turf which should contain the next pipe
+// find the turf which should contain the next pipe
/obj/structure/disposalholder/proc/nextloc()
- return get_step(loc,dir)
-
- // find a matching pipe on a turf
-/obj/structure/disposalholder/proc/findpipe(var/turf/T)
+ return get_step(loc, dir)
+// find a matching pipe on a turf
+/obj/structure/disposalholder/proc/findpipe(turf/T)
if(!T)
return null
@@ -599,9 +581,9 @@
// if no matching pipe, return null
return null
- // merge two holder objects
- // used when a a holder meets a stuck holder
-/obj/structure/disposalholder/proc/merge(var/obj/structure/disposalholder/other)
+// merge two holder objects
+// used when a a holder meets a stuck holder
+/obj/structure/disposalholder/proc/merge(obj/structure/disposalholder/other)
for(var/atom/movable/AM in other)
AM.forceMove(src) // move everything in other holder to this one
if(ismob(AM))
@@ -611,44 +593,35 @@
qdel(other)
-
-/obj/structure/disposalholder/proc/settag(var/new_tag)
+/obj/structure/disposalholder/proc/settag(new_tag)
destinationTag = new_tag
-/obj/structure/disposalholder/proc/setpartialtag(var/new_tag)
+/obj/structure/disposalholder/proc/setpartialtag(new_tag)
if(partialTag == new_tag)
destinationTag = new_tag
partialTag = ""
else
partialTag = new_tag
-
- // called when player tries to move while in a pipe
-/obj/structure/disposalholder/relaymove(mob/user as mob)
-
+// called when player tries to move while in a pipe
+/obj/structure/disposalholder/relaymove(mob/user)
if(!isliving(user))
return
var/mob/living/U = user
- if (U.stat || U.last_special <= world.time)
+ if(U.stat || U.last_special <= world.time)
return
- U.last_special = world.time+100
+ U.last_special = world.time + 100
- if (src.loc)
- for (var/mob/M in hearers(src.loc.loc))
+ if(loc)
+ for(var/mob/M in hearers(loc.loc))
to_chat(M, "CLONG, clong! ")
- playsound(src.loc, 'sound/effects/clang.ogg', 50, 0, 0)
-
- // called to vent all gas in holder to a location
-/obj/structure/disposalholder/proc/vent_gas(var/atom/location)
- location.assume_air(gas) // vent all gas to turf
- return
+ playsound(loc, 'sound/effects/clang.ogg', 50, 0, 0)
/obj/structure/disposalholder/Destroy()
- qdel(gas)
active = 0
return ..()
@@ -656,7 +629,6 @@
return TRUE
// Disposal pipes
-
/obj/structure/disposalpipe
icon = 'icons/obj/pipes/disposal.dmi'
name = "disposal pipe"
@@ -674,21 +646,20 @@
var/base_icon_state // initial icon state on map
var/sortType = list()
var/subtype = SORT_TYPE_NORMAL
- // new pipe, set the icon_state as on map
- New()
- ..()
- base_icon_state = icon_state
- return
+// new pipe, set the icon_state as on map
+/obj/structure/disposalpipe/New()
+ . = ..()
+ base_icon_state = icon_state
- // pipe is deleted
- // ensure if holder is present, it is expelled
+// pipe is deleted
+// ensure if holder is present, it is expelled
/obj/structure/disposalpipe/Destroy()
var/obj/structure/disposalholder/H = locate() in src
if(H)
// holder was present
H.active = FALSE
- var/turf/T = src.loc
+ var/turf/T = loc
if(T.density)
// deleting pipe is inside a dense turf (wall)
// this is unlikely, but just dump out everything into the turf in case
@@ -697,23 +668,22 @@
AM.forceMove(T)
AM.pipe_eject(0)
qdel(H)
- ..()
- return
+ return ..()
// otherwise, do normal expel from turf
if(H)
expel(H, T, 0)
. = ..()
- // returns the direction of the next pipe object, given the entrance dir
- // by default, returns the bitmask of remaining directions
-/obj/structure/disposalpipe/proc/nextdir(var/fromdir)
+// returns the direction of the next pipe object, given the entrance dir
+// by default, returns the bitmask of remaining directions
+/obj/structure/disposalpipe/proc/nextdir(fromdir)
return pipe_dir & (~turn(fromdir, 180))
- // transfer the holder through this pipe segment
- // overriden for special behaviour
- //
-/obj/structure/disposalpipe/proc/transfer(var/obj/structure/disposalholder/H)
+// transfer the holder through this pipe segment
+// overriden for special behaviour
+//
+/obj/structure/disposalpipe/proc/transfer(obj/structure/disposalholder/H)
var/nextdir = nextdir(H.dir)
H.set_dir(nextdir)
var/turf/T = H.nextloc()
@@ -733,30 +703,28 @@
return P
- // update the icon_state to reflect hidden status
+// update the icon_state to reflect hidden status
/obj/structure/disposalpipe/proc/update()
- var/turf/T = src.loc
- hide(!T.is_plating() && !istype(T,/turf/space)) // space never hides pipes
+ var/turf/T = loc
+ // space never hides pipes
+ hide(!T.is_plating() && !istype(T,/turf/space))
// hide called by levelupdate if turf intact status changes
// change visibility status and force update of icon
-/obj/structure/disposalpipe/hide(var/intact)
+/obj/structure/disposalpipe/hide(intact)
invisibility = intact ? 101: 0 // hide if floor is intact
- updateicon()
-
- // update actual icon_state depending on visibility
- // if invisible, append "f" to icon_state to show faded version
- // this will be revealed if a T-scanner is used
- // if visible, use regular icon_state
-/obj/structure/disposalpipe/proc/updateicon()
+ update_icon()
+// update actual icon_state depending on visibility
+// if invisible, append "f" to icon_state to show faded version
+// this will be revealed if a T-scanner is used
+// if visible, use regular icon_state
+/obj/structure/disposalpipe/update_icon()
icon_state = base_icon_state
- return
-
- // expel the held objects into a turf
- // called when there is a break in the pipe
-/obj/structure/disposalpipe/proc/expel(var/obj/structure/disposalholder/H, var/turf/T, var/direction)
+// expel the held objects into a turf
+// called when there is a break in the pipe
+/obj/structure/disposalpipe/proc/expel(obj/structure/disposalholder/H, turf/T, direction)
if(!istype(H))
return
@@ -769,7 +737,6 @@
qdel(H)
return
-
if(!T.is_plating() && istype(T,/turf/simulated/floor)) //intact floor, pop the tile
var/turf/simulated/floor/F = T
F.break_tile()
@@ -790,11 +757,9 @@
spawn(1)
if(AM)
AM.throw_at(target, 100, 1)
- H.vent_gas(T)
qdel(H)
else // no specified direction, so throw in random direction
-
playsound(src, 'sound/machines/hiss.ogg', 50, 0, 0)
if(H)
for(var/atom/movable/AM in H)
@@ -806,28 +771,25 @@
if(AM)
AM.throw_at(target, 5, 1)
- H.vent_gas(T) // all gas vent to turf
qdel(H)
- return
-
- // call to break the pipe
- // will expel any holder inside at the time
- // then delete the pipe
- // remains : set to leave broken pipe pieces in place
-/obj/structure/disposalpipe/proc/broken(var/remains = 0)
+// call to break the pipe
+// will expel any holder inside at the time
+// then delete the pipe
+// remains : set to leave broken pipe pieces in place
+/obj/structure/disposalpipe/proc/broken(remains = 0)
if(remains)
for(var/D in cardinal)
if(D & pipe_dir)
- var/obj/structure/disposalpipe/broken/P = new(src.loc)
+ var/obj/structure/disposalpipe/broken/P = new(loc)
P.set_dir(D)
- src.invisibility = 101 // make invisible (since we won't delete the pipe immediately)
+ invisibility = 101 // make invisible (since we won't delete the pipe immediately)
var/obj/structure/disposalholder/H = locate() in src
if(H)
// holder was present
H.active = 0
- var/turf/T = src.loc
+ var/turf/T = loc
if(T.density)
// broken pipe is inside a dense turf (wall)
// this is unlikely, but just dump out everything into the turf in case
@@ -848,7 +810,6 @@
// pipe affected by explosion
/obj/structure/disposalpipe/ex_act(severity)
-
switch(severity)
if(1)
broken(0)
@@ -874,23 +835,21 @@
//attack by item
//weldingtool: unfasten and convert to obj/disposalconstruct
-/obj/structure/disposalpipe/attackby(var/obj/item/I, var/mob/user)
-
- var/turf/T = src.loc
+/obj/structure/disposalpipe/attackby(obj/item/I, mob/user)
+ var/turf/T = loc
if(!T.is_plating())
return // prevent interaction with T-scanner revealed pipes
- src.add_fingerprint(user)
+
+ add_fingerprint(user)
if(QUALITY_WELDING in I.tool_qualities)
if(I.use_tool(user, src, WORKTIME_NORMAL, QUALITY_WELDING, FAILCHANCE_EASY, required_stat = STAT_MEC))
welded()
-
- return
+ return
// called when pipe is cut with welder
/obj/structure/disposalpipe/proc/welded()
-
- var/obj/structure/disposalconstruct/C = new (src.loc)
+ var/obj/structure/disposalconstruct/C = new(loc)
switch(base_icon_state)
if("pipe-s")
C.pipe_type = PIPE_TYPE_STRAIGHT
@@ -920,8 +879,8 @@
C.pipe_type = PIPE_TYPE_TAGGER
if("pipe-tagger-partial")
C.pipe_type = PIPE_TYPE_TAGGER_PART
- C.sort_mode = src.subtype
- src.transfer_fingerprints_to(C)
+ C.sort_mode = subtype
+ transfer_fingerprints_to(C)
C.set_dir(dir)
C.density = FALSE
C.anchored = TRUE
@@ -929,30 +888,6 @@
qdel(src)
-// pipe is deleted
-// ensure if holder is present, it is expelled
-/obj/structure/disposalpipe/Destroy()
- var/obj/structure/disposalholder/H = locate() in src
- if(H)
- // holder was present
- H.active = FALSE
- var/turf/T = src.loc
- if(T.density)
- // deleting pipe is inside a dense turf (wall)
- // this is unlikely, but just dump out everything into the turf in case
-
- for(var/atom/movable/AM in H)
- AM.forceMove(T)
- AM.pipe_eject(0)
- qdel(H)
-
- return ..()
-
- // otherwise, do normal expel from turf
- if(H)
- expel(H, T, 0)
- . = ..()
-
/obj/structure/disposalpipe/hides_under_flooring()
return TRUE
@@ -965,27 +900,25 @@
/obj/structure/disposalpipe/segment
icon_state = "pipe-s"
- New()
- ..()
- if(icon_state == "pipe-s")
- pipe_dir = dir | turn(dir, 180)
- else
- pipe_dir = dir | turn(dir, -90)
+/obj/structure/disposalpipe/segment/New()
+ . = ..()
+ if(icon_state == "pipe-s")
+ pipe_dir = dir | turn(dir, 180)
+ else
+ pipe_dir = dir | turn(dir, -90)
- update()
- return
+ update()
///// Z-Level stuff
/obj/structure/disposalpipe/up
icon_state = "pipe-u"
/obj/structure/disposalpipe/up/New()
- ..()
+ . = ..()
pipe_dir = dir
update()
- return
-/obj/structure/disposalpipe/up/nextdir(var/fromdir)
+/obj/structure/disposalpipe/up/nextdir(fromdir)
var/nextdir
if(fromdir == DOWN)
nextdir = dir
@@ -993,7 +926,7 @@
nextdir = UP
return nextdir
-/obj/structure/disposalpipe/up/transfer(var/obj/structure/disposalholder/H)
+/obj/structure/disposalpipe/up/transfer(obj/structure/disposalholder/H)
var/nextdir = nextdir(H.dir)
H.set_dir(nextdir)
@@ -1007,9 +940,8 @@
else
for(var/obj/structure/disposalpipe/down/F in T)
P = F
-
else
- T = get_step(src.loc, H.dir)
+ T = get_step(loc, H.dir)
P = H.findpipe(T)
if(P)
@@ -1029,12 +961,11 @@
icon_state = "pipe-d"
/obj/structure/disposalpipe/down/New()
- ..()
+ . = ..()
pipe_dir = dir
update()
- return
-/obj/structure/disposalpipe/down/nextdir(var/fromdir)
+/obj/structure/disposalpipe/down/nextdir(fromdir)
var/nextdir
if(fromdir == UP)
nextdir = dir
@@ -1042,7 +973,7 @@
nextdir = DOWN
return nextdir
-/obj/structure/disposalpipe/down/transfer(var/obj/structure/disposalholder/H)
+/obj/structure/disposalpipe/down/transfer(obj/structure/disposalholder/H)
var/nextdir = nextdir(H.dir)
H.dir = nextdir
@@ -1052,14 +983,14 @@
if(nextdir == DOWN)
T = GetBelow(src)
if(!T)
- H.forceMove(src.loc)
+ H.forceMove(loc)
return
else
for(var/obj/structure/disposalpipe/up/F in T)
P = F
else
- T = get_step(src.loc, H.dir)
+ T = get_step(loc, H.dir)
P = H.findpipe(T)
if(P)
@@ -1084,7 +1015,7 @@
icon_state = "pipe-j1"
/obj/structure/disposalpipe/junction/New()
- ..()
+ . = ..()
if(icon_state == "pipe-j1")
pipe_dir = dir | turn(dir, -90) | turn(dir,180)
else if(icon_state == "pipe-j2")
@@ -1092,13 +1023,10 @@
else // pipe-y
pipe_dir = dir | turn(dir,90) | turn(dir, -90)
update()
- return
-
-
- // next direction to move
- // if coming in from secondary dirs, then next is primary dir
- // if coming in from primary dir, then next is equal chance of other dirs
+// next direction to move
+// if coming in from secondary dirs, then next is primary dir
+// if coming in from primary dir, then next is equal chance of other dirs
/obj/structure/disposalpipe/junction/nextdir(var/fromdir)
var/flipdir = turn(fromdir, 180)
if(flipdir != dir) // came from secondary dir
@@ -1150,7 +1078,7 @@
updatedesc()
update()
-/obj/structure/disposalpipe/tagger/attackby(var/obj/item/I, var/mob/user)
+/obj/structure/disposalpipe/tagger/attackby(obj/item/I, mob/user)
if(..())
return
@@ -1159,12 +1087,12 @@
if(O.currTag)// Tag set
sort_tag = O.currTag
- playsound(src.loc, 'sound/machines/twobeep.ogg', 100, 1)
+ playsound(loc, 'sound/machines/twobeep.ogg', 100, 1)
to_chat(user, SPAN_NOTICE("Changed tag to '[sort_tag]'."))
updatename()
updatedesc()
-/obj/structure/disposalpipe/tagger/transfer(var/obj/structure/disposalholder/H)
+/obj/structure/disposalpipe/tagger/transfer(obj/structure/disposalholder/H)
if(sort_tag)
if(partial)
H.setpartialtag(sort_tag)
@@ -1218,7 +1146,7 @@
updatedesc()
update()
-/obj/structure/disposalpipe/sortjunction/attackby(var/obj/item/I, var/mob/user)
+/obj/structure/disposalpipe/sortjunction/attackby(obj/item/I, mob/user)
if(..())
return
@@ -1227,12 +1155,12 @@
if(O.currTag)// Tag set
sortType = O.currTag
- playsound(src.loc, 'sound/machines/twobeep.ogg', 100, 1)
+ playsound(loc, 'sound/machines/twobeep.ogg', 100, 1)
to_chat(user, "\blue Changed filter to '[sortType]'.")
updatename()
updatedesc()
-/obj/structure/disposalpipe/sortjunction/proc/divert_check(var/checkTag)
+/obj/structure/disposalpipe/sortjunction/proc/divert_check(checkTag)
if(islist(sortType))
return checkTag in sortType
else
@@ -1243,7 +1171,7 @@
// if coming in from posdir, then flip around and go back to posdir
// if coming in from sortdir, go to posdir
-/obj/structure/disposalpipe/sortjunction/nextdir(var/fromdir, var/sortTag)
+/obj/structure/disposalpipe/sortjunction/nextdir(fromdir, sortTag)
if(fromdir != sortdir) // probably came from the negdir
if(divert_check(sortTag))
return sortdir
@@ -1253,7 +1181,7 @@
// so go with the flow to positive direction
return posdir
-/obj/structure/disposalpipe/sortjunction/transfer(var/obj/structure/disposalholder/H)
+/obj/structure/disposalpipe/sortjunction/transfer(obj/structure/disposalholder/H)
var/nextdir = nextdir(H.dir, H.destinationTag)
H.set_dir(nextdir)
var/turf/T = H.nextloc()
@@ -1303,13 +1231,12 @@
var/obj/linked // the linked obj/machinery/disposal or obj/disposaloutlet
/obj/structure/disposalpipe/trunk/New()
- ..()
+ . = ..()
pipe_dir = dir
spawn(1)
getlinked()
update()
- return
/obj/structure/disposalpipe/trunk/Destroy()
// Unlink trunk and disposal so that objets are not sent to nullspace
@@ -1317,58 +1244,56 @@
if (istype(D))
D.trunk = null
linked = null
- return ..()
+ . = ..()
/obj/structure/disposalpipe/trunk/proc/getlinked()
linked = null
- var/obj/machinery/disposal/D = locate() in src.loc
+ var/obj/machinery/disposal/D = locate() in loc
if(D)
linked = D
if (!D.trunk)
D.trunk = src
- var/obj/structure/disposaloutlet/O = locate() in src.loc
+ var/obj/structure/disposaloutlet/O = locate() in loc
if(O)
linked = O
update()
- return
-
- // Override attackby so we disallow trunkremoval when somethings ontop
-/obj/structure/disposalpipe/trunk/attackby(var/obj/item/I, var/mob/user)
+// Override attackby so we disallow trunkremoval when somethings ontop
+/obj/structure/disposalpipe/trunk/attackby(obj/item/I, mob/user)
//Disposal bins or chutes
/*
These shouldn't be required
- var/obj/machinery/disposal/D = locate() in src.loc
+ var/obj/machinery/disposal/D = locate() in loc
if(D && D.anchored)
return
//Disposal outlet
- var/obj/structure/disposaloutlet/O = locate() in src.loc
+ var/obj/structure/disposaloutlet/O = locate() in loc
if(O && O.anchored)
return
*/
//Disposal constructors
- var/obj/structure/disposalconstruct/C = locate() in src.loc
+ var/obj/structure/disposalconstruct/C = locate() in loc
if(C && C.anchored)
return
- var/turf/T = src.loc
+ var/turf/T = loc
if(!T.is_plating())
return // prevent interaction with T-scanner revealed pipes
- src.add_fingerprint(user)
+ add_fingerprint(user)
if(QUALITY_WELDING in I.tool_qualities)
if(I.use_tool(user, src, WORKTIME_NORMAL, QUALITY_WELDING, FAILCHANCE_EASY, required_stat = STAT_MEC))
welded()
+ return
// would transfer to next pipe segment, but we are in a trunk
// if not entering from disposal bin,
// transfer to linked object (outlet or bin)
-/obj/structure/disposalpipe/trunk/transfer(var/obj/structure/disposalholder/H)
-
+/obj/structure/disposalpipe/trunk/transfer(obj/structure/disposalholder/H)
if(H.dir == DOWN) // we just entered from a disposer
return ..() // so do base transfer proc
// otherwise, go to the linked object
@@ -1382,12 +1307,10 @@
D.expel(H) // expel at disposal
else
if(H)
- src.expel(H, src.loc, 0) // expel at turf
+ expel(H, loc, 0) // expel at turf
return null
- // nextdir
-
-/obj/structure/disposalpipe/trunk/nextdir(var/fromdir)
+/obj/structure/disposalpipe/trunk/nextdir(fromdir)
if(fromdir == DOWN)
return dir
else
@@ -1400,18 +1323,16 @@
// i.e. will be treated as an empty turf
desc = "A broken piece of disposal pipe."
- New()
- ..()
- update()
- return
-
- // called when welded
- // for broken pipe, remove and turn into scrap
+/obj/structure/disposalpipe/broken/New()
+ . = ..()
+ update()
- welded()
-// var/obj/item/scrap/S = new(src.loc)
-// S.set_components(200,0,0)
- qdel(src)
+// called when welded
+// for broken pipe, remove and turn into scrap
+/obj/structure/disposalpipe/broken/welded()
+// var/obj/item/scrap/S = new(loc)
+// S.set_components(200,0,0)
+ qdel(src)
// the disposal outlet machine
@@ -1427,21 +1348,20 @@
var/turf/target // this will be where the output objects are 'thrown' to.
var/mode = DISPOSALS_OFF
- New()
- ..()
-
- spawn(1)
- target = get_ranged_target_turf(src, dir, 10)
-
+/obj/structure/disposaloutlet/Initialize()
+ ..()
+ return INITIALIZE_HINT_LATELOAD
- var/obj/structure/disposalpipe/trunk/trunk = locate() in src.loc
- if(trunk)
- trunk.linked = src // link the pipe trunk to self
+/obj/structure/disposaloutlet/LateInitialize(mapload)
+ target = get_ranged_target_turf(src, dir, 10)
- // expel the contents of the holder object, then delete it
- // called when the holder exits the outlet
-/obj/structure/disposaloutlet/proc/expel(var/obj/structure/disposalholder/H)
+ var/obj/structure/disposalpipe/trunk/trunk = locate() in loc
+ if(trunk)
+ trunk.linked = src // link the pipe trunk to self
+// expel the contents of the holder object, then delete it
+// called when the holder exits the outlet
+/obj/structure/disposaloutlet/proc/expel(obj/structure/disposalholder/H)
flick("outlet-open", src)
playsound(src, 'sound/machines/warning-buzzer.ogg', 50, 0, 0)
sleep(20) //wait until correct animation frame
@@ -1449,51 +1369,45 @@
if(H)
for(var/atom/movable/AM in H)
- AM.forceMove(src.loc)
+ AM.forceMove(loc)
AM.pipe_eject(dir)
if(!isdrone(AM)) //Drones keep smashing windows from being fired out of chutes. Bad for the station. ~Z
spawn(5)
AM.throw_at(target, 3, 1)
- H.vent_gas(src.loc)
qdel(H)
- return
-/obj/structure/disposaloutlet/attackby(var/obj/item/I, var/mob/user)
+/obj/structure/disposaloutlet/attackby(obj/item/I, mob/user)
if(!I || !user)
return
- src.add_fingerprint(user)
+ add_fingerprint(user)
var/list/usable_qualities = list()
- if(mode<=0)
+ if(mode <= 0)
usable_qualities.Add(QUALITY_SCREW_DRIVING)
- if(mode==-1)
+ if(mode == -1)
usable_qualities.Add(QUALITY_WELDING)
-
var/tool_type = I.get_tool_type(user, usable_qualities, src)
switch(tool_type)
-
if(QUALITY_SCREW_DRIVING)
- if(mode<=0)
+ if(mode <= 0)
var/used_sound = mode ? 'sound/machines/Custom_screwdriverclose.ogg' : 'sound/machines/Custom_screwdriveropen.ogg'
if(I.use_tool(user, src, WORKTIME_NEAR_INSTANT, tool_type, FAILCHANCE_EASY, required_stat = STAT_MEC, instant_finish_tier = 30, forced_sound = used_sound))
- if(mode==0) // It's off but still not unscrewed
- mode=-1 // Set it to doubleoff l0l
+ if(mode == 0) // It's off but still not unscrewed
+ mode = -1 // Set it to doubleoff l0l
to_chat(user, "You remove the screws around the power connection.")
- return
- else if(mode==-1)
- mode=0
+ else if(mode == -1)
+ mode = 0
to_chat(user, "You attach the screws around the power connection.")
- return
return
if(QUALITY_WELDING)
- if(mode==-1)
+ if(mode == -1)
if(I.use_tool(user, src, WORKTIME_NORMAL, tool_type, FAILCHANCE_EASY, required_stat = STAT_MEC))
to_chat(user, "You sliced the floorweld off the disposal outlet.")
- var/obj/structure/disposalconstruct/C = new (src.loc)
- src.transfer_fingerprints_to(C)
+ var/obj/structure/disposalconstruct/C = new(loc)
+ transfer_fingerprints_to(C)
C.pipe_type = PIPE_TYPE_OUTLET
C.anchored = TRUE
C.density = TRUE
@@ -1506,32 +1420,27 @@
// called when movable is expelled from a disposal pipe or outlet
// by default does nothing, override for special behaviour
-
-/atom/movable/proc/pipe_eject(var/direction)
+/atom/movable/proc/pipe_eject(direction)
return
// check if mob has client, if so restore client view on eject
-/mob/pipe_eject(var/direction)
- if (src.client)
- src.client.perspective = MOB_PERSPECTIVE
- src.client.eye = src
-
- return
+/mob/pipe_eject(direction)
+ reset_view()
-/obj/effect/decal/cleanable/blood/gibs/pipe_eject(var/direction)
+/obj/effect/decal/cleanable/blood/gibs/pipe_eject(direction)
var/list/dirs
if(direction)
- dirs = list( direction, turn(direction, -45), turn(direction, 45))
+ dirs = list(direction, turn(direction, -45), turn(direction, 45))
else
dirs = alldirs.Copy()
- src.streak(dirs)
+ streak(dirs)
-/obj/effect/decal/cleanable/blood/gibs/robot/pipe_eject(var/direction)
+/obj/effect/decal/cleanable/blood/gibs/robot/pipe_eject(direction)
var/list/dirs
if(direction)
- dirs = list( direction, turn(direction, -45), turn(direction, 45))
+ dirs = list(direction, turn(direction, -45), turn(direction, 45))
else
dirs = alldirs.Copy()
- src.streak(dirs)
+ streak(dirs)
diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm
index df4c4e8832e..8022411170d 100644
--- a/code/modules/recycling/sortingmachinery.dm
+++ b/code/modules/recycling/sortingmachinery.dm
@@ -377,12 +377,15 @@
layer = BELOW_OBJ_LAYER //So that things being ejected are visible
var/c_mode = 0
-/obj/machinery/disposal/deliveryChute/New()
+/obj/machinery/disposal/deliveryChute/Initialize(mapload, d)
..()
- spawn(5)
- trunk = locate() in src.loc
- if(trunk)
- trunk.linked = src // link the pipe trunk to self
+ return INIT_ORDER_LATELOAD
+
+/obj/machinery/disposal/deliveryChute/LateInitialize(mapload)
+ . = ..()
+ trunk = locate() in loc
+ if(trunk)
+ trunk.linked = src // link the pipe trunk to self
/obj/machinery/disposal/deliveryChute/interact()
return
@@ -390,29 +393,29 @@
/obj/machinery/disposal/deliveryChute/update()
return
-/obj/machinery/disposal/deliveryChute/Bumped(var/atom/movable/AM) //Go straight into the chute
- if(istype(AM, /obj/item/projectile) || istype(AM, /obj/effect)) return
- if(AM.loc && src.loc)
+/obj/machinery/disposal/deliveryChute/Bumped(atom/movable/AM) //Go straight into the chute
+ if(istype(AM, /obj/item/projectile) || istype(AM, /obj/effect))
+ return
+ if(AM.loc && loc)
switch(dir)
if(NORTH)
- if(AM.loc.y != src.loc.y+1) return
+ if(AM.loc.y != loc.y + 1) return
if(EAST)
- if(AM.loc.x != src.loc.x+1) return
+ if(AM.loc.x != loc.x + 1) return
if(SOUTH)
- if(AM.loc.y != src.loc.y-1) return
+ if(AM.loc.y != loc.y - 1) return
if(WEST)
- if(AM.loc.x != src.loc.x-1) return
+ if(AM.loc.x != loc.x - 1) return
if(isobj(AM) || ismob(AM))
AM.forceMove(src)
- src.flush()
+ flush()
/obj/machinery/disposal/deliveryChute/flush()
flushing = 1
flick("intake-closing", src)
var/obj/structure/disposalholder/H = new() // virtual holder object which actually
// travels through the pipes.
- //air_contents = new() // new empty gas resv.
sleep(10)
if(sound_on)
@@ -420,7 +423,6 @@
sleep(5) // wait for animation to finish
H.init(src) // copy the contents of disposer to holder
-
H.start(src) // start the holder processing movement
flushing = 0
// now reset disposal state
diff --git a/tgui/packages/tgui/interfaces/DisposalUnit.tsx b/tgui/packages/tgui/interfaces/DisposalUnit.tsx
index d76617e0679..ae621fefaae 100644
--- a/tgui/packages/tgui/interfaces/DisposalUnit.tsx
+++ b/tgui/packages/tgui/interfaces/DisposalUnit.tsx
@@ -10,31 +10,30 @@ const MODE2COLOR = {
};
type DisposalUnitData = {
- isai: boolean
- mode: string
- panel: boolean
- eject: boolean
- handle: boolean
- pressure: number
-}
+ isai: boolean;
+ mode: string;
+ panel: boolean;
+ eject: boolean;
+ handle: boolean;
+};
-export const DisposalUnit = props => {
+export const DisposalUnit = (props) => {
const { act, data } = useBackend();
- const { isai, mode, handle, panel, eject, pressure } = data;
+ const { isai, mode, handle, panel, eject } = data;
let modeColor = MODE2COLOR[panel ? 'Panel' : mode];
let modeText = panel ? 'Power Disabled' : mode;
return (
-
+
-
+
{modeText}
-
+
{
disabled={isai}
/>
-
+
{
act('toggle', { pump: true });
@@ -59,10 +58,10 @@ export const DisposalUnit = props => {
{
act('eject');
diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js
index 215d7389603..64200e56e54 100644
--- a/tgui/public/tgui.bundle.js
+++ b/tgui/public/tgui.bundle.js
@@ -284,7 +284,7 @@
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function o(M,A){(A==null||A>M.length)&&(A=M.length);for(var T=0,b=new Array(A);T=M.length?{done:!0}:{done:!1,value:M[b++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var E=(0,i.h)("hotkeys"),y={},x=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],m={},p=[],h=function(M){if(M===16)return"Shift";if(M===17)return"Ctrl";if(M===18)return"Alt";if(M===33)return"Northeast";if(M===34)return"Southeast";if(M===35)return"Southwest";if(M===36)return"Northwest";if(M===37)return"West";if(M===38)return"North";if(M===39)return"East";if(M===40)return"South";if(M===45)return"Insert";if(M===46)return"Delete";if(M>=48&&M<=57||M>=65&&M<=90)return String.fromCharCode(M);if(M>=96&&M<=105)return"Numpad"+(M-96);if(M>=112&&M<=123)return"F"+(M-111);if(M===188)return",";if(M===189)return"-";if(M===190)return"."},c=function(M){var A=String(M);if(A==="Ctrl+F5"||A==="Ctrl+R"){location.reload();return}if(A!=="Ctrl+F"&&!(M.event.defaultPrevented||M.isModifierKey()||x.includes(M.code))){var T=h(M.code);if(T){var b=y[T];if(b)return E.debug("macro",b),Byond.command(b);if(M.isDown()&&!m[T]){m[T]=!0;var B='KeyDown "'+T+'"';return E.debug(B),Byond.command(B)}if(M.isUp()&&m[T]){m[T]=!1;var R='KeyUp "'+T+'"';return E.debug(R),Byond.command(R)}}}},f=function(M){x.push(M)},v=function(M){var A=x.indexOf(M);A>=0&&x.splice(A,1)},O=function(){for(var M=u(Object.keys(m)),A;!(A=M()).done;){var T=A.value;m[T]&&(m[T]=!1,E.log('releasing key "'+T+'"'),Byond.command('KeyUp "'+T+'"'))}},C=function(){Byond.winget("default.*").then(function(M){for(var A={},T=u(Object.keys(M)),b;!(b=T()).done;){var B=b.value,R=B.split("."),N=R[1],W=R[2];N&&W&&(A[N]||(A[N]={}),A[N][W]=M[B])}for(var H=/\\"/g,q=function(oe){return oe.substring(1,oe.length-1).replace(H,'"')},V=u(Object.keys(A)),Y;!(Y=V()).done;){var _=Y.value,te=A[_],Q=q(te.name);y[Q]=q(te.command)}E.debug("loaded macros",y)}),a.Nh.on("window-blur",function(){O()}),a.Nh.on("key",function(M){for(var A=u(p),T;!(T=A()).done;){var b=T.value;b(M)}c(M)})},I=function(M){p.push(M);var A=!1;return function(){A||(A=!0,p.splice(p.indexOf(M),1))}}},40645:function(S,j,t){"use strict";t.r(j),t.d(j,{AiAirlock:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},u=function(p){var h=(0,a.Oc)().data,c=h.allowed;return(0,e.jsx)(o.p8,{width:470,height:370,children:(0,e.jsx)(o.p8.Content,{children:c?(0,e.jsx)(y,{}):(0,e.jsx)(E,{})})})},E=function(p){var h=(0,a.Oc)(),c=h.act,f=h.data,v=f.aiHacking,O=f.canHack;return(0,e.jsx)(i.wn,{fill:!0,color:"bad",title:"ACCESS DENIED",children:(0,e.jsxs)(i.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(i.BJ.Item,{fontSize:1.2,children:"Unable to interface with airlock."}),O?(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"bug",onClick:function(){return c("hack")},disabled:v,children:"Hack Controls?"})}):(0,e.jsx)(i.BJ.Item,{children:"Hacking impossible."}),!!v&&(0,e.jsx)(i.BJ.Item,{mt:2,children:(0,e.jsxs)(i.BJ,{vertical:!0,align:"center",fontSize:2,children:[(0,e.jsx)(i.BJ.Item,{children:"HACKING"}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.In,{name:"spinner",spin:!0})})]})})]})})},y=function(p){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),(0,e.jsx)(m,{})]})},x=function(p){var h=(0,a.Oc)(),c=h.act,f=h.data,v=f.power,O=f.shock,C=f.shock_timeleft,I=f.wires,M=v.main,A=v.main_timeleft,T=v.backup,b=v.backup_timeleft,B=l[M]||l[0],R=l[T]||l[0],N=l[O]||l[0];return(0,e.jsx)(i.wn,{title:"Power Status",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Main",color:B.color,buttons:(0,e.jsx)(i.$n,{icon:"lightbulb-o",disabled:!M,onClick:function(){return c("disrupt-main")},children:"Disrupt"}),children:[M?"Online":"Offline"," ",(!I.main_1||!I.main_2)&&"[Wires have been cut!]"||A>0&&"["+A+"s]"]}),(0,e.jsxs)(i.Ki.Item,{label:"Backup",color:R.color,buttons:(0,e.jsx)(i.$n,{icon:"lightbulb-o",disabled:!T,onClick:function(){return c("disrupt-backup")},children:"Disrupt"}),children:[T?"Online":"Offline"," ",(!I.backup_1||!I.backup_2)&&"[Wires have been cut!]"||b>0&&"["+b+"s]"]}),(0,e.jsxs)(i.Ki.Item,{label:"Electrify",color:N.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"wrench",disabled:!I.shock,selected:O===2,onClick:function(){return c("shock-restore")},children:"Restore"}),(0,e.jsx)(i.$n,{icon:"bolt",disabled:!I.shock,selected:O!==2&&C!==-1,onClick:function(){return c("shock-temp")},children:"Temporary"}),(0,e.jsx)(i.$n,{icon:"bolt",disabled:!I.shock,selected:O!==2&&C===-1,onClick:function(){return c("shock-perm")},children:"Permanent"})]}),children:[O===2?"Safe":"Electrified"," ",!I.shock&&"[Wires have been cut!]"||C>0&&"["+C+"s]"||C===-1&&"[Permanent]"]})]})})},m=function(p){var h=(0,a.Oc)(),c=h.act,f=h.data,v=f.id_scanner,O=f.locked,C=f.lights,I=f.safe,M=f.speed,A=f.welded,T=f.opened,b=f.wires;return(0,e.jsx)(i.wn,{title:"Access and Door Control",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:v?"power-off":"times",selected:v,disabled:!b.id_scanner,onClick:function(){return c("idscan-toggle")},children:v?"Enabled":"Disabled"}),children:!b.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(i.Ki.Divider,{}),(0,e.jsx)(i.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:O?"lock":"unlock",selected:O,disabled:!b.bolts,onClick:function(){return c("bolt-toggle")},children:O?"Lowered":"Raised"}),children:!b.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(i.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:C?"power-off":"times",selected:C,disabled:!b.lights,onClick:function(){return c("light-toggle")},children:C?"Enabled":"Disabled"}),children:!b.lights&&"[Wires have been cut!]"}),(0,e.jsx)(i.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:I?"power-off":"times",selected:I,disabled:!b.safe,onClick:function(){return c("safe-toggle")},children:I?"Enabled":"Disabled"}),children:!b.safe&&"[Wires have been cut!]"}),(0,e.jsx)(i.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:M?"power-off":"times",selected:M,disabled:!b.timing,onClick:function(){return c("speed-toggle")},children:M?"Enabled":"Disabled"}),children:!b.timing&&"[Wires have been cut!]"}),(0,e.jsx)(i.Ki.Divider,{}),(0,e.jsx)(i.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:T?"sign-out-alt":"sign-in-alt",selected:T,disabled:O||A,onClick:function(){return c("open-close")},children:T?"Open":"Closed"}),children:!!(O||A)&&(0,e.jsxs)("span",{children:["[Door is ",O?"bolted":"",O&&A?" and ":"",A?"welded":"","!]"]})})]})})}},81332:function(S,j,t){"use strict";t.r(j),t.d(j,{AntimatterControl:function(){return u}});var e=t(62161),a=t(41242),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.active,h=m.instability,c=m.linked_shielding,f=m.cores,v=m.efficiency,O=m.stability,C=m.stored_power,I=m.fuel,M=m.fuel_max,A=m.fuel_injection;return(0,e.jsx)(l.p8,{width:420,height:500,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsxs)(o.wn,{title:"Antimatter Control Panel",buttons:(0,e.jsx)(o.$n,{color:"average",icon:"shield-alt",tooltip:"Force Shielding Update",onClick:function(){return x("refreshicons")}}),children:[(0,e.jsxs)(o.BJ,{align:"center",justify:"space-between",children:[(0,e.jsx)(o.BJ.Item,{basis:"70%",children:(0,e.jsx)(o.$n,{fluid:!0,icon:"power-off",color:p?"bad":"good",fontSize:2,mb:2,onClick:function(){return x("togglestatus")},children:p?"Power Off":"Power On"})}),(0,e.jsx)(o.BJ.Item,{basis:"30%",children:(0,e.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.N6,{step:1,stepPixelSize:6,value:A,minValue:0,maxValue:f*4,size:2,onChange:function(T,b){return x("set_fuel_injection",{value:b})}})}),(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsx)(o.zv,{value:A})," units/sec"]})]})})]}),(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Status",color:p?"good":"grey",children:p?"Injecting":"Standby"}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsxs)(o.Ki.Item,{label:"Instability",children:[(0,e.jsx)(o.zv,{value:h}),"%"]}),(0,e.jsx)(o.Ki.Item,{label:"Reactor parts",children:c}),(0,e.jsx)(o.Ki.Item,{label:"Cores",children:f}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Current Efficiency",children:(0,e.jsx)(o.zv,{value:v})}),(0,e.jsx)(o.Ki.Item,{label:"Average Stability",buttons:(0,e.jsx)(o.$n,{color:"average",icon:"bug",onClick:function(){return x("refreshstability")},children:"Check Stability"}),children:(0,e.jsx)(o.zv,{value:O})}),(0,e.jsx)(o.Ki.Item,{label:"Last Produced",children:(0,a.d5)(C)})]}),(0,e.jsx)(o.wn,{title:"Fuel",mt:2,buttons:I!==null&&(0,e.jsx)(o.$n,{icon:"eject",onClick:function(){return x("ejectjar")},children:"Eject Container"}),children:I===null?"No fuel receptacle detected.":(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Fuel",children:(0,e.jsx)(o.z2,{value:I,maxValue:M,ranges:{good:[M*.75,M],average:[M*.25,M*.75],bad:[0,M*.25]}})})})})]})})})}},61396:function(S,j,t){"use strict";t.r(j),t.d(j,{Apc:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=t(98071),u=function(m){return(0,e.jsx)(o.p8,{width:450,height:445,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},E={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"}},y={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"}},x=function(m){var p=(0,a.Oc)(),h=p.act,c=p.data,f=c.locked&&!c.siliconUser,v=E[c.externalPower]||E[0],O=E[c.chargingStatus]||E[0],C=c.powerChannels||[],I=y[c.malfStatus]||y[0],M=c.powerCellStatus/100;return c.failTime>0?(0,e.jsxs)(i.IC,{info:!0,textAlign:"center",mb:0,children:[(0,e.jsx)("b",{children:(0,e.jsx)("h3",{children:"SYSTEM FAILURE"})}),"I/O regulators have malfunctioned! ",(0,e.jsx)("br",{}),"Awaiting system reboot.",(0,e.jsx)("br",{}),"Executing software reboot in ",c.failTime," seconds...",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)(i.$n,{icon:"sync",tooltip:"Force an interface reset.",tooltipPosition:"bottom",onClick:function(){return h("reboot")},children:"Reboot Now"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l.InterfaceLockNoticeBox,{siliconUser:c.remoteAccess||c.siliconUser,preventLocking:c.remoteAccess}),(0,e.jsx)(i.wn,{title:"Power Status",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.jsx)(i.$n,{icon:c.isOperating?"power-off":"times",selected:c.isOperating&&!f,disabled:f,onClick:function(){return h("breaker")},children:c.isOperating?"On":"Off"}),children:["[ ",v.externalPowerText," ]"]}),(0,e.jsx)(i.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(i.z2,{color:"good",value:M})}),(0,e.jsxs)(i.Ki.Item,{label:"Charge Mode",color:O.color,buttons:(0,e.jsx)(i.$n,{icon:c.chargeMode?"sync":"times",disabled:f,onClick:function(){return h("charge")},children:c.chargeMode?"Auto":"Off"}),children:["["," ",O.chargingText+(c.chargingStatus===1?c.chargingPowerDisplay:"")," ","]"]})]})}),(0,e.jsx)(i.wn,{title:"Power Channels",children:(0,e.jsxs)(i.Ki,{children:[C.map(function(A){var T=A.topicParams;return(0,e.jsx)(i.Ki.Item,{label:A.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.az,{inline:!0,mx:2,color:A.status>=2?"good":"bad",children:A.status>=2?"On":"Off"}),(0,e.jsx)(i.$n,{icon:"sync",selected:!f&&(A.status===1||A.status===3),disabled:f,onClick:function(){return h("channel",T.auto)},children:"Auto"}),(0,e.jsx)(i.$n,{icon:"power-off",selected:!f&&A.status===2,disabled:f,onClick:function(){return h("channel",T.on)},children:"On"}),(0,e.jsx)(i.$n,{icon:"times",selected:!f&&A.status===0,disabled:f,onClick:function(){return h("channel",T.off)},children:"Off"})]}),children:A.powerLoad},A.title)}),(0,e.jsx)(i.Ki.Item,{label:"Total Load",children:(0,e.jsx)("b",{children:c.totalLoad})})]})}),(0,e.jsx)(i.wn,{title:"Misc",buttons:!!c.siliconUser&&(0,e.jsxs)(e.Fragment,{children:[!!c.malfStatus&&(0,e.jsx)(i.$n,{icon:I.icon,color:"bad",onClick:function(){return h(I.action)},children:I.content}),(0,e.jsx)(i.$n,{icon:"lightbulb-o",onClick:function(){return h("overload")},children:"Overload"})]}),children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(i.$n,{tooltip:"APC cover can be pried open with a crowbar.",icon:c.coverLocked?"lock":"unlock",disabled:f,onClick:function(){return h("cover")},children:c.coverLocked?"Engaged":"Disengaged"})}),(0,e.jsx)(i.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(i.$n,{tooltip:"Lights use internal power cell when there is no power available.",icon:"lightbulb-o",disabled:f,onClick:function(){return h("emergency_lighting")},children:c.emergencyLights?"Enabled":"Disabled"})}),(0,e.jsx)(i.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsx)(i.$n,{tooltip:"Dim lights to reduce power consumption.",icon:"lightbulb-o",disabled:c.disable_nightshift_toggle,onClick:function(){return h("toggle_nightshift")},children:c.nightshiftLights?"Enabled":"Disabled"})})]})})]})}},86887:function(S,j,t){"use strict";t.r(j),t.d(j,{ArtistBench:function(){return E},OddityTag:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=t(48562),u=function(y){var x=y.level,m="",p="";return x>=10?(m="Overwhelming",p="gold"):x>=6?(m="Strong",p="red"):x>=3?(m="Medium",p="green"):(m="Weak",p="blue"),(0,e.jsx)(i.az,{inline:!0,color:p,children:m})},E=function(y){var x=(0,a.Oc)(),m=x.act,p=x.data,h=p.mat_capacity,c=p.materials,f=p.oddity_name,v=p.oddity_stats;return(0,e.jsx)(o.p8,{width:300,height:400,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(l.LoadedMaterials,{mat_capacity:h,materials:c}),(0,e.jsxs)(i.wn,{title:"Model Oddity",buttons:(0,e.jsx)(i.$n,{icon:f?"eject":"caret-up",onClick:function(){m("oddity")},children:f?"Remove":"Insert"}),children:[(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Name",children:f||"None"})}),v?(0,e.jsx)(i.wn,{title:"Stats",children:(0,e.jsx)(i.BJ,{vertical:!0,children:v.map(function(O){return(0,e.jsxs)(i.BJ.Item,{children:[(0,e.jsx)(u,{level:O.level})," aspect of"," ",(0,e.jsx)("b",{children:O.name})]},O.name)})})}):null]}),(0,e.jsx)(i.$n,{fluid:!0,fontSize:"24px",textAlign:"center",icon:"brush",onClick:function(){m("create_art")},children:"Create Art"})]})})}},16561:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosAlertConsole:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.priority,p=m===void 0?[]:m,h=x.minor,c=h===void 0?[]:h;return(0,e.jsx)(o.p8,{width:350,height:300,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(i.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[p.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),p.map(function(f){return(0,e.jsx)("li",{children:f},f)}),c.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),c.map(function(f){return(0,e.jsx)("li",{children:f},f)})]})})})})}},47329:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosOmniFilter:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(E){return E.input?"Input":E.output?"Output":E.f_type?E.f_type:"Disabled"},u=function(E){var y=(0,a.Oc)(),x=y.act,m=y.data,p=m.power,h=m.config,c=m.ports,f=m.set_flow_rate,v=m.last_flow_rate;return(0,e.jsx)(o.p8,{width:360,height:330,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(i.wn,{title:h?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"power-off",selected:p,disabled:h,onClick:function(){return x("power")},children:p?"On":"Off"}),(0,e.jsx)(i.$n,{icon:"wrench",selected:h,onClick:function(){return x("configure")}})]}),children:c&&c.length>0?(0,e.jsx)(i.Ki,{children:c.map(function(O){return(0,e.jsx)(i.Ki.Item,{label:O.dir+" Port",children:h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{selected:O.input,icon:"compress-arrows-alt",onClick:function(){return x("switch_mode",{mode:"in",dir:O.dir})},children:"IN"}),(0,e.jsx)(i.$n,{selected:O.output,icon:"expand-arrows-alt",onClick:function(){return x("switch_mode",{mode:"out",dir:O.dir})},children:"OUT"}),(0,e.jsx)(i.$n,{icon:"wrench",disabled:O.input||O.output,selected:!!O.f_type,onClick:function(){return x("switch_filter",{mode:O.f_type,dir:O.dir})},children:O.f_type||"None"})]}):l(O)},O.dir)})}):(0,e.jsx)(i.az,{color:"average",children:"No Ports Configured/Detected"})}),(0,e.jsx)(i.wn,{title:"Flow Rate",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Current Flow Rate",children:[v," L/s"]}),(0,e.jsx)(i.Ki.Item,{label:"Flow Rate Limit",children:h?(0,e.jsx)(i.$n,{icon:"wrench",onClick:function(){return x("set_flow_rate")},children:f/10+" L/s"}):f/10+" L/s"})]})})]})})}},15368:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosOmniMixer:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(y){return y.input?"Input":y.output?"Output":"Disabled"},u=function(y){var x=(0,a.Oc)(),m=x.act,p=x.data,h=p.power,c=p.config,f=p.ports,v=p.set_flow_rate,O=p.last_flow_rate;return(0,e.jsx)(o.p8,{width:390,height:330,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(i.wn,{title:c?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"power-off",content:h?"On":"Off",selected:h,disabled:c,onClick:function(){return m("power")}}),(0,e.jsx)(i.$n,{icon:"wrench",selected:c,onClick:function(){return m("configure")}})]}),children:f&&f.length>0?(0,e.jsxs)(i.XI,{children:[(0,e.jsxs)(i.XI.Row,{header:!0,children:[(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Port"}),c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Concentration"}),c?(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),f.map(function(C){return(0,e.jsx)(E,{port:C,config:c},C.dir)})]}):(0,e.jsx)(i.az,{color:"average",children:"No Ports Configured/Detected"})}),(0,e.jsx)(i.wn,{title:"Flow Rate",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Current Flow Rate",children:[O," L/s"]}),(0,e.jsx)(i.Ki.Item,{label:"Flow Rate Limit",children:c?(0,e.jsx)(i.$n,{icon:"wrench",onClick:function(){return m("set_flow_rate")},children:v/10+" L/s"}):v/10+" L/s"})]})})]})})},E=function(y){var x=(0,a.Oc)().act,m=y.port,p=y.config;return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:m.dir+" Port"}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:p?(0,e.jsx)(i.$n,{selected:m.input,disabled:m.output,icon:"compress-arrows-alt",onClick:function(){return x("switch_mode",{mode:m.input?"none":"in",dir:m.dir})},children:"IN"}):l(m)}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:p?(0,e.jsx)(i.$n,{selected:m.output,icon:"expand-arrows-alt",onClick:function(){return x("switch_mode",{mode:"out",dir:m.dir})},children:"OUT"}):m.concentration*100+"%"}),p?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(i.$n,{width:"100%",icon:"wrench",disabled:!m.input,onClick:function(){return x("switch_con",{dir:m.dir})},children:m.input?m.concentration*100+" %":"-"})}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:(0,e.jsx)(i.$n,{fluid:!0,icon:m.con_lock?"lock":"lock-open",disabled:!m.input,selected:m.con_lock,onClick:function(){return x("switch_conlock",{dir:m.dir})},children:m.con_lock?"Locked":"Unlocked"})})]}):null]})}},56306:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosPump:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.on,p=x.max_rate,h=x.max_pressure,c=x.rate,f=x.pressure;return(0,e.jsx)(o.p8,{width:335,height:115,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Power",children:(0,e.jsx)(i.$n,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){return y("power")}})}),p?(0,e.jsxs)(i.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(i.Q7,{animated:!0,step:1,value:c,width:"63px",unit:"L/s",minValue:0,maxValue:p,onChange:function(v){return y("rate",{rate:v})}}),(0,e.jsx)(i.$n,{ml:1,icon:"plus",content:"Max",disabled:c===p,onClick:function(){return y("rate",{rate:"max"})}})]}):(0,e.jsxs)(i.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(i.Q7,{animated:!0,value:f,unit:"kPa",width:"75px",minValue:0,maxValue:h,step:10,onChange:function(v){return y("pressure",{pressure:v})}}),(0,e.jsx)(i.$n,{ml:1,icon:"plus",content:"Max",disabled:f===h,onClick:function(){return y("pressure",{pressure:"max"})}})]})]})})})})}},26947:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosPumpPortable:function(){return x}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(41242),u=t(85242),E=t(27936),y;(function(m){m[m.Siphon=0]="Siphon",m[m.Release=1]="Release"})(y||(y={}));var x=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.on,v=c.connected,O=c.pressure,C=c.pumpDir,I=c.targetpressure,M=c.defaultPressure,A=c.minPressure,T=c.maxPressure,b=c.powerDraw,B=c.cell,R=c.holding;return(0,e.jsx)(u.p8,{width:340,height:400,children:(0,e.jsxs)(u.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Status",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,e.jsx)(o.zv,{value:O,format:function(N){return(0,l.Pz)((0,a.LI)(N,2))}})}),(0,e.jsx)(o.Ki.Item,{label:"Port",verticalAlign:"middle",children:(0,e.jsx)(E.PortConnector,{connected:v})}),(0,e.jsx)(o.Ki.Item,{label:"Load",children:(0,e.jsx)(o.zv,{value:b,format:function(N){return(0,l.d5)((0,a.LI)(N,2))}})}),(0,e.jsx)(o.Ki.Item,{label:"Cell",children:B?(0,e.jsxs)(o.z2,{value:B.charge,maxValue:B.maxCharge,ranges:{good:[B.maxCharge*.5,Number.POSITIVE_INFINITY],average:[B.maxCharge*.25,B.maxCharge*.5],bad:[Number.NEGATIVE_INFINITY,B.maxCharge*.25]},children:[B.charge," / ",B.maxCharge]}):(0,e.jsx)(o.az,{color:"bad",children:"No Cell Installed"})})]})}),(0,e.jsx)(o.wn,{title:"Holding Tank",buttons:(0,e.jsx)(o.$n,{icon:"eject",disabled:!R,onClick:function(){return h("remove_tank")},children:"Eject"}),children:R?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Tank Label",children:R.name}),(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,l.Pz)((0,a.LI)(R.pressure,2))})]}):(0,e.jsx)(o.az,{color:"average",children:"No Tank Inserted"})}),(0,e.jsx)(o.wn,{title:"Power Regulator",children:(0,e.jsxs)(o.BJ,{align:"flex-start",justify:"space-around",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(o.BJ.Item,{color:"label",children:"Power"}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{fontSize:1.25,icon:"power-off",selected:f,onClick:function(){return h("power")},children:f?"On":"Off"})})]})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(o.BJ.Item,{color:"label",children:"Pump Direction"}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{fontSize:1.25,icon:C===1?"wind":"fan",onClick:function(){return h("direction")},color:C===1?"good":"average",children:C===1?"Out":"In"})})]})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E.PressureRegulator,{highlightRing:"",pressure:I,minPressure:A,maxPressure:T,onChange:function(N,W){return h("set_pressure",{pressure:W})},onDefault:function(){return h("set_pressure",{pressure:M})},onMax:function(){return h("set_pressure",{pressure:T})}})})]})})]})})}},3049:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosScrubberPortable:function(){return x}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(41242),u=t(85242),E=t(27936),y;(function(m){m[m.Siphon=0]="Siphon",m[m.Release=1]="Release"})(y||(y={}));var x=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.on,v=c.connected,O=c.pressure,C=c.rate,I=c.defaultRate,M=c.minRate,A=c.maxRate,T=c.powerDraw,b=c.cell,B=c.holding;return(0,e.jsx)(u.p8,{width:300,height:400,children:(0,e.jsxs)(u.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Status",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,e.jsx)(o.zv,{value:O,format:function(R){return(0,l.Pz)((0,a.LI)(R,2))}})}),(0,e.jsx)(o.Ki.Item,{label:"Port",verticalAlign:"middle",children:(0,e.jsx)(E.PortConnector,{connected:v})}),(0,e.jsx)(o.Ki.Item,{label:"Load",children:(0,e.jsx)(o.zv,{value:T,format:function(R){return(0,l.d5)((0,a.LI)(R,2))}})}),(0,e.jsx)(o.Ki.Item,{label:"Cell",children:b?(0,e.jsxs)(o.z2,{value:b.charge,maxValue:b.maxCharge,ranges:{good:[b.maxCharge*.5,Number.POSITIVE_INFINITY],average:[b.maxCharge*.25,b.maxCharge*.5],bad:[Number.NEGATIVE_INFINITY,b.maxCharge*.25]},children:[b.charge," / ",b.maxCharge]}):(0,e.jsx)(o.az,{color:"bad",children:"No Cell Installed"})})]})}),(0,e.jsx)(o.wn,{title:"Holding Tank",buttons:(0,e.jsx)(o.$n,{icon:"eject",disabled:!B,onClick:function(){return h("remove_tank")},children:"Eject"}),children:B?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Tank Label",children:B.name}),(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,l.Pz)((0,a.LI)(B.pressure,2))})]}):(0,e.jsx)(o.az,{color:"average",children:"No Tank Inserted"})}),(0,e.jsx)(o.wn,{title:"Power Regulator",children:(0,e.jsxs)(o.BJ,{align:"flex-start",justify:"space-around",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(o.BJ.Item,{color:"label",children:"Power"}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{fontSize:1.25,icon:"power-off",selected:f,onClick:function(){return h("power")},children:f?"On":"Off"})})]})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E.PressureRegulator,{highlightRing:"",pressure:C,minPressure:M,maxPressure:A,onChange:function(R,N){return h("set_volume",{volume:N})},onDefault:function(){return h("set_volume",{volume:I})},onMax:function(){return h("set_volume",{volume:A})},unit:"L/s",format:function(R){return""+(0,a.LI)(R,2)+" L/s"}})})]})})]})})}},43855:function(S,j,t){"use strict";t.r(j),t.d(j,{Autolathe:function(){return m},Disk:function(){return x},Reagents:function(){return y}});var e=t(62161),a=t(88716),i=t(7081),o=t(34995),l=t(85242),u=t(44390),E=t(48562),y=function(p){var h=(0,i.Oc)().act,c=p.container,f=p.reagents;return(0,e.jsx)(o.wn,{height:"100%",title:"Inserted beaker",buttons:c?(0,e.jsx)(o.$n,{icon:"eject",tooltip:"Eject Beaker",onClick:function(){return h("eject_beaker")}}):null,children:c?f.length>0?(0,e.jsx)(o.Ki,{children:f.map(function(v){return(0,e.jsx)(o.Ki.Item,{label:v.name,children:v.amount},v.name)})}):"Empty.":"Not inserted."})},x=function(p){var h=(0,i.Oc)().act,c=p.disk;return(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Disk",color:c?"white":"grey",buttons:c?(0,e.jsx)(o.$n,{icon:"eject",tooltip:"Eject Disk",onClick:function(){h("eject_disk")}}):null,children:c?(0,a.jT)(c.name):"Not inserted."}),c&&c.license>0?(0,e.jsx)(o.Ki.Item,{label:"License Points",children:c.license}):null]})})},m=function(p){var h=(0,i.Oc)(),c=h.act,f=h.data,v=f.have_design_selector,O=f.have_disk,C=f.disk,I=f.mat_capacity,M=f.materials,A=f.container,T=f.reagents,b=f.have_materials,B=f.have_reagents,R=f.designs,N=f.current,W=f.error,H=f.paused,q=f.progress,V=f.queue,Y=f.queue_max,_=f.special_actions,te=f.categories,Q=f.show_category,oe=f.mat_efficiency,ne=(0,i.QY)("search_text",""),ae=ne[0],$=ne[1];return(0,e.jsx)(l.p8,{width:720,height:700,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsxs)(o.BJ,{vertical:!0,height:"100%",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{children:[b?(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(E.LoadedMaterials,{mat_capacity:I,materials:M})}):null,B?(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(y,{container:A,reagents:T})}):null]})}),O?(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(x,{disk:C})}):null,_?(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.wn,{title:"Special Actions",children:(0,e.jsx)(o.BJ,{children:_.map(function(ie){return(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:ie.icon,onClick:function(){c("special_action",{action:ie.action})},children:ie.name})},ie.action)})})})}):null,te?(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.wn,{children:(0,e.jsx)(o.BJ,{fill:!0,wrap:!0,justify:"center",align:"center",children:te.map(function(ie){return(0,e.jsx)(o.BJ.Item,{mb:.5,mt:.5,children:(0,e.jsx)(o.$n,{selected:ie===Q,onClick:function(){return c("switch_category",{category:ie})},children:ie})},ie)})})})}):null,(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsxs)(o.BJ,{height:"95%",children:[R?(0,e.jsx)(o.BJ.Item,{grow:!0,height:"100%",children:v?(0,e.jsxs)(o.wn,{title:"Recipes",fill:!0,children:[(0,e.jsx)(o.az,{style:{paddingBottom:"8px"},children:(0,e.jsx)(u.SearchBar,{searchText:ae,onSearchTextChanged:$,hint:"Search all designs..."})}),(0,e.jsx)(o.wn,{style:{paddingRight:"4px",paddingBottom:"30px"},fill:!0,scrollable:!0,children:(0,e.jsx)(o.BJ,{vertical:!0,children:(0,e.jsx)(o.wj,{children:ae.length>0?R.filter(function(ie){return ie.name.toLowerCase().includes(ae)}).map(function(ie){return(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E.AutolatheItem,{design:ie,mat_efficiency:oe})},ie.id+ie.name)}):R.map(function(ie){return(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E.AutolatheItem,{design:ie,mat_efficiency:oe})},ie.id+ie.name)})})})})]}):(0,e.jsx)(o.wn,{color:"bad",children:"This equipment is operated remotely."})}):null,V?(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(E.AutolatheQueue,{current:N,error:W,paused:H,progress:q,queue:V,queue_max:Y,mat_efficiency:oe})}):null]})})]})})})}},50127:function(S,j,t){"use strict";t.r(j),t.d(j,{BookCase:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.bookcase_name,p=x.hex_code_for_backround,h=x.contents,c=x.contents_ref;return(0,e.jsx)(o.p8,{title:m||"Bookcase",width:350,height:300,children:(0,e.jsxs)(o.p8.Content,{backgroundColor:p,scrollable:!0,children:[h.map(function(f,v){return(0,e.jsxs)(i.so,{color:"black",backgroundColor:"white",style:{padding:"2px"},mb:.5,children:[(0,e.jsx)(i.so.Item,{align:"center",grow:1,children:(0,e.jsx)(i.az,{align:"center",children:f})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return y("remove_object",{ref:c[v]})}})})]},c[v])}),h.length===0&&(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.az,{color:"white",align:"center",children:["The ",m," is empty!"]})})]})})}},82195:function(S,j,t){"use strict";t.r(j),t.d(j,{Canister:function(){return y}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(41242),u=t(85242),E=t(27936),y=function(x){var m=(0,i.Oc)(),p=m.act,h=m.data,c=h.connected,f=h.canLabel,v=h.pressure,O=h.valveOpen,C=h.holding;return(0,e.jsx)(u.p8,{width:280,height:260,children:(0,e.jsxs)(u.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Canister",buttons:(0,e.jsx)(o.$n,{icon:"pencil-alt",disabled:!f,onClick:function(){return p("relabel")},tooltip:f?"":"This canister cannot be relabeled.",tooltipPosition:"bottom",children:"Relabel"}),children:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,e.jsx)(o.zv,{value:v,format:function(I){return(0,l.Pz)((0,a.LI)(I,2))}})}),(0,e.jsx)(o.Ki.Item,{label:"Port",verticalAlign:"middle",children:(0,e.jsx)(E.PortConnector,{connected:c})}),(0,e.jsx)(o.Ki.Item,{label:"Valve",children:C?(0,e.jsx)(o.$n,{color:"average",icon:O?"wind":"tint-slash",onClick:function(){return p("valve")},children:O?"Open":"Closed"}):(0,e.jsx)(o.$n.Confirm,{color:"bad",icon:O?"wind":"tint-slash",onClick:function(){return p("valve")},children:O?"Open":"Closed"})})]})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E.PressureRegulator,{highlightRing:O?"yellow":"",pressure:h.releasePressure,minPressure:h.minReleasePressure,maxPressure:h.maxReleasePressure,onChange:function(I,M){return p("pressure",{pressure:M})},onDefault:function(){return p("pressure",{pressure:h.defaultReleasePressure})},onMax:function(){return p("pressure",{pressure:h.maxReleasePressure})}})})]})}),(0,e.jsxs)(o.wn,{title:"Holding Tank",buttons:!!C&&(0,e.jsx)(o.$n,{icon:"eject",color:O&&"danger",onClick:function(){return p("eject")},children:"Eject"}),children:[!!C&&(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Label",children:C.name}),(0,e.jsxs)(o.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(o.zv,{value:C.pressure})," kPa"]})]}),!C&&(0,e.jsx)(o.az,{color:"average",children:"No Holding Tank"})]})]})})}},81979:function(S,j,t){"use strict";t.r(j),t.d(j,{Catalog:function(){return E},CatalogContent:function(){return y}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l;(function(b){b.All="all",b.Cooking="cooking",b.Drinks="drinks",b.Reagents="chemistry"})(l||(l={}));var u;(function(b){b.List="list",b.Entry="entry"})(u||(u={}));var E=function(b){return(0,e.jsx)(o.p8,{width:640,height:700,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(y,{})})})},y=function(b){var B=(0,a.Oc)().data,R=B.catalog_browse_stage,N=(0,e.jsx)(x,{});return R==="list"?N=(0,e.jsx)(h,{}):R==="entry"&&(N=(0,e.jsx)(C,{})),N},x=function(b){var B=(0,a.Oc)(),R=B.act,N=B.data,W=N.front_page_name,H=N.front_page_desc,q=N.front_page_icon;return(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.BJ,{vertical:!0,align:"center",justify:"center",wrap:!0,children:[q&&(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i._V,{width:"200px",src:q})}),(0,e.jsx)(i.BJ.Item,{fontSize:1.5,children:W}),(0,e.jsx)(i.BJ.Item,{fontSize:1.2,children:H}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{fontSize:1.5,icon:"folder-open",onClick:function(){return R("state_machine_enter_list")},children:"Browse"})})]})})},m=function(b){var B=(0,a.Oc)(),R=B.act,N=B.data,W=N.catalog_search,H=N.front_page_name,q=N.front_page_icon,V=N.last_entry,Y=b.showSearch,_=b.showBack;return(0,e.jsxs)(i.BJ,{height:"120px",align:"center",justify:"space-around",children:[q&&(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i._V,{height:"120px",src:q})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.BJ,{vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{fontSize:1.25,children:H}),Y&&(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.BJ,{align:"baseline",children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.In,{name:"search"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.pd,{width:25,fluid:!0,placeholder:"Search catalog...",value:W,onChange:function(te,Q){return R("set_catalog_search",{search:Q})}})})]})}),_&&(0,e.jsxs)(i.BJ.Item,{children:[!!V&&(0,e.jsxs)(i.$n,{fluid:!0,icon:"chevron-left",onClick:function(){return R("state_machine_pop_entry")},children:["Back to ",V]}),(0,e.jsxs)(i.$n,{fluid:!0,icon:"home",onClick:function(){return R("state_machine_enter_list")},children:["Return To List ",V?"(Erase History)":""]})]})]})})]})},p=function(b){var B=b.type;return _jsx(Section,{children:"Meow"})},h=function(b){var B=(0,a.Oc)().data,R=B.catalog_key,N=B.entries,W=(0,e.jsx)(i.az,{color:"bad",children:"This catalog is corrupted."});return R==="cooking"?W=(0,e.jsx)(c,{entries:N}):R==="drinks"?W=(0,e.jsx)(f,{entries:N}):R==="chemistry"?W=(0,e.jsx)(v,{entries:N}):R==="all"&&(W=(0,e.jsx)(O,{entries:N})),(0,e.jsxs)(i.wn,{fill:!0,height:"100%",children:[(0,e.jsx)(m,{showSearch:!0}),(0,e.jsx)(i.cG,{}),W]})},c=function(b){var B=(0,a.Oc)().act,R=b.entries;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.BJ,{p:1,textAlign:"center",children:[(0,e.jsx)(i.BJ.Item,{basis:"10%",textAlign:"left",children:"Preview"}),(0,e.jsx)(i.BJ.Item,{basis:"40%",textAlign:"left",children:"Name"}),(0,e.jsx)(i.BJ.Item,{basis:"25%",textAlign:"left",children:"Product"}),(0,e.jsx)(i.BJ.Item,{basis:"25%",textAlign:"left",children:"Byproduct"})]}),(0,e.jsx)(i.wn,{scrollable:!0,fill:!0,height:"70%",className:"CatalogList",children:(0,e.jsx)(i.wj,{children:R.map(function(N){return(0,e.jsxs)(i.BJ,{height:4,align:"center",p:1,children:[(0,e.jsx)(i.BJ.Item,{basis:"10%",children:(0,e.jsx)(i._V,{src:N.icon})}),(0,e.jsx)(i.BJ.Item,{basis:"40%",children:(0,e.jsx)(i.$n,{color:"transparent",textColor:"white",style:{borderBottom:"1px dashed #fff"},onClick:function(){return B("state_machine_enter_entry",{entry:N.id})},children:N.name})}),(0,e.jsxs)(i.BJ.Item,{basis:"25%",children:[N.product_count," ",N.product_name]}),(0,e.jsx)(i.BJ.Item,{basis:"25%",children:N.byproduct_count>0&&(0,e.jsxs)(e.Fragment,{children:[N.byproduct_count," ",N.byproduct_name]})})]},N.id)})})})]})},f=function(b){var B=(0,a.Oc)().act,R=b.entries;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.BJ,{p:1,textAlign:"center",children:[(0,e.jsx)(i.BJ.Item,{basis:"70%",textAlign:"left",children:"Name"}),(0,e.jsx)(i.BJ.Item,{basis:"30%",textAlign:"left",children:"Type"})]}),(0,e.jsx)(i.wn,{scrollable:!0,fill:!0,height:"70%",className:"CatalogList",children:(0,e.jsx)(i.wj,{children:R.map(function(N){return(0,e.jsxs)(i.BJ,{height:4,align:"center",p:1,children:[(0,e.jsx)(i.BJ.Item,{basis:"70%",children:(0,e.jsx)(i.$n,{color:"transparent",textColor:"white",style:{borderBottom:"1px dashed #fff"},onClick:function(){return B("state_machine_enter_entry",{entry:N.id})},children:N.name})}),(0,e.jsx)(i.BJ.Item,{basis:"30%",children:N.thing_nature})]},N.id)})})})]})},v=function(b){var B=(0,a.Oc)().act,R=b.entries;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.BJ,{p:1,textAlign:"center",children:[(0,e.jsx)(i.BJ.Item,{basis:"40%",textAlign:"left",children:"Name"}),(0,e.jsx)(i.BJ.Item,{basis:"20%",textAlign:"left",children:"Phase"}),(0,e.jsx)(i.BJ.Item,{basis:"40%",textAlign:"left",children:"Type"})]}),(0,e.jsx)(i.wn,{scrollable:!0,fill:!0,height:"70%",className:"CatalogList",children:(0,e.jsx)(i.wj,{children:R.map(function(N){return(0,e.jsxs)(i.BJ,{height:4,align:"center",p:1,children:[(0,e.jsx)(i.BJ.Item,{basis:"40%",children:(0,e.jsx)(i.$n,{color:"transparent",textColor:"white",style:{borderBottom:"1px dashed #fff"},onClick:function(){return B("state_machine_enter_entry",{entry:N.id})},children:N.name})}),(0,e.jsx)(i.BJ.Item,{basis:"20%",children:N.reagent_state}),(0,e.jsx)(i.BJ.Item,{basis:"40%",children:N.reagent_type})]},N.id)})})})]})},O=function(b){var B=(0,a.Oc)().act,R=b.entries;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.BJ,{p:1,textAlign:"center",children:[(0,e.jsx)(i.BJ.Item,{basis:"40%",textAlign:"left",children:"Name"}),(0,e.jsx)(i.BJ.Item,{basis:"20%",textAlign:"left",children:"Phase"}),(0,e.jsx)(i.BJ.Item,{basis:"40%",textAlign:"left",children:"Type"})]}),(0,e.jsx)(i.wn,{scrollable:!0,fill:!0,height:"70%",className:"CatalogList",children:(0,e.jsx)(i.wj,{children:R.map(function(N){return(0,e.jsxs)(i.BJ,{height:4,align:"center",p:1,children:[(0,e.jsx)(i.BJ.Item,{basis:"40%",children:(0,e.jsx)(i.$n,{color:"transparent",textColor:"white",style:{borderBottom:"1px dashed #fff"},onClick:function(){return B("state_machine_enter_entry",{entry:N.id})},children:N.name})}),(0,e.jsx)(i.BJ.Item,{basis:"20%",children:N.reagent_state||"Unknown"}),(0,e.jsx)(i.BJ.Item,{basis:"40%",children:N.reagent_type||"Unknown"})]},N.id)})})})]})},C=function(b){var B=(0,a.Oc)().data,R=B.selected_entry;if(!R)return(0,e.jsxs)(i.wn,{fill:!0,children:[(0,e.jsx)(m,{showBack:!0}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.az,{color:"bad",children:"This entry is corrupt."})]});var N=(0,e.jsxs)(i.az,{color:"bad",children:["Unknown recipe type ",R.id]});return R.id.startsWith("/datum/cooking_with_jane/recipe")?N=(0,e.jsx)(I,{selected_entry:R}):R.id.startsWith("/datum/reagent/drink")||R.id.startsWith("/datum/reagent/ethanol")?N=(0,e.jsx)(M,{selected_entry:R}):R.id.startsWith("/datum/reagent")&&(N=(0,e.jsx)(A,{selected_entry:R})),(0,e.jsxs)(i.wn,{fill:!0,children:[(0,e.jsx)(m,{showBack:!0}),(0,e.jsx)(i.cG,{}),N]})},I=function(b){var B=b.selected_entry,R=B.name,N=B.icon,W=B.product_is_reagent,H=B.product_name,q=B.product_count,V=B.byproduct_name,Y=B.byproduct_count,_=B.description,te=B.recipe_guide,Q=B.create_in;return(0,e.jsxs)(i.wn,{fill:!0,height:"80%",style:{overflowY:"auto"},children:[(0,e.jsxs)(i.BJ,{align:"center",justify:"space-around",children:[(0,e.jsxs)(i.BJ.Item,{grow:!0,children:[(0,e.jsx)(i.az,{fontSize:2,bold:!0,children:R}),(0,e.jsx)(i.az,{children:Q}),(0,e.jsx)(i.az,{children:_})]}),(0,e.jsx)(i.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsx)(i._V,{src:N,width:15})})]}),(0,e.jsx)(i.az,{fontSize:1.5,bold:!0,mt:1,children:"Specifications"}),(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:W?"Reagent Name":"Product Name",children:H}),(0,e.jsx)(i.Ki.Item,{label:W?"Units Produced":"Product Count",children:q}),Y>0&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Ki.Item,{label:"Reagent Byproduct",children:V}),(0,e.jsx)(i.Ki.Item,{label:"Byproduct Units Produced",children:Y})]}),!!te&&(0,e.jsx)(i.Ki.Item,{label:"Recipe",children:(0,e.jsx)(i.az,{style:{borderRadius:"5px",border:"1px solid #4972a1",overflowY:"auto"},p:1,height:10,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:te}})})})]})]})},M=function(b){var B=b.selected_entry,R=B.name,N=B.description,W=B.thing_nature,H=B.taste,q=B.strength,V=B.temperature,Y=B.nutrition,_=B.recipe_data;return(0,e.jsxs)(i.wn,{fill:!0,height:"80%",style:{overflowY:"auto"},children:[(0,e.jsx)(i.az,{fontSize:2,bold:!0,children:R}),(0,e.jsx)(i.az,{children:N}),(0,e.jsx)(i.az,{children:H}),(0,e.jsx)(i.az,{fontSize:1.5,bold:!0,mt:1,children:"Specifications"}),(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Type",children:W}),!!q&&(0,e.jsx)(i.Ki.Item,{label:"Alcohol Strength",children:q}),!!V&&(0,e.jsx)(i.Ki.Item,{label:"Served",children:V}),!!Y&&(0,e.jsx)(i.Ki.Item,{label:"Nourishment",children:Y}),!!_&&(0,e.jsx)(i.Ki.Item,{label:"Recipe",children:_.map(function(te,Q){return(0,e.jsx)(i.az,{style:{borderRadius:"5px",border:"1px solid #4972a1",overflowY:"auto"},p:1,height:10,children:(0,e.jsx)(T,{recipe_data:te})},Q)})})]})]})},A=function(b){var B=(0,a.Oc)().act,R=b.selected_entry,N=R.name,W=R.description,H=R.taste,q=R.scannable,V=R.reagent_type,Y=R.reagent_state,_=R.color,te=R.metabolism_blood,Q=R.metabolism_stomach,oe=R.nsa,ne=R.addiction_threshold,ae=R.addiction_chance,$=R.overdose,ie=R.result_of_decomposition_in,fe=R.recipe_data,ye=R.heating_decompose,ge=R.heating_point,De=R.chilling_decompose,Be=R.chilling_point,Je=R.can_be_used_in;return(0,e.jsxs)(i.wn,{fill:!0,height:"80%",style:{overflowY:"auto"},children:[(0,e.jsx)(i.az,{fontSize:2,bold:!0,children:N}),(0,e.jsx)(i.az,{children:W}),(0,e.jsx)(i.az,{children:H}),!q&&(0,e.jsx)(i.az,{children:"Impossible to scan."}),(0,e.jsx)(i.az,{fontSize:1.5,bold:!0,mt:1,children:"Specifications"}),(0,e.jsxs)(i.Ki,{children:[!!V&&(0,e.jsx)(i.Ki.Item,{label:"Type",children:V}),!!Y&&(0,e.jsxs)(i.Ki.Item,{label:"Phase",children:[Y," at STP"]}),!!_&&(0,e.jsx)(i.Ki.Item,{label:"Color",children:(0,e.jsx)(i.BK,{color:_,width:3})}),!!te&&(0,e.jsxs)(i.Ki.Item,{label:"Metabolism",children:[(0,e.jsxs)(i.az,{children:[te,"u/s in blood"]}),Q?(0,e.jsxs)(i.az,{children:[Q,"u/s in stomach"]}):(0,e.jsxs)(i.az,{children:[te/2,"u/s in stomach"]})]}),(0,e.jsxs)(i.Ki.Item,{label:"NSA",children:[oe," units"]}),!!ne&&(0,e.jsxs)(i.Ki.Item,{label:"Addiction Threshold",children:[ne,"u"]}),!!ae&&(0,e.jsx)(i.Ki.Item,{label:"Addiction Chance",children:ae}),!!$&&(0,e.jsxs)(i.Ki.Item,{label:"Overdose At",children:[$,"u"]}),!!ye&&ye.types.length&&(0,e.jsx)(i.Ki.Item,{label:"Decomposition Above "+ge+"K",labelColor:"red",children:(0,e.jsx)(i.az,{p:1,style:{borderRadius:"5px",border:"1px solid #4972a1"},children:ye.types.map(function(be){return(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:be.type})},children:be.name},be.type)})})}),!!De&&De.types.length&&(0,e.jsx)(i.Ki.Item,{label:"Decomposition Below "+Be+"K",labelColor:"blue",children:(0,e.jsx)(i.az,{p:1,style:{borderRadius:"5px",border:"1px solid #4972a1"},children:De.types.map(function(be){return(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:be.type})},children:be.name},be.type)})})}),!!ie&&(0,e.jsx)(i.Ki.Item,{label:"Result Of Decomposition",children:(0,e.jsx)(i.az,{p:1,style:{borderRadius:"5px",border:"1px solid #4972a1"},children:ie.map(function(be){return(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:be.type})},children:be.name},be.type)})})}),!!fe&&(0,e.jsx)(i.Ki.Item,{label:"Recipe",children:fe.map(function(be,Ae){return(0,e.jsx)(i.az,{style:{borderRadius:"5px",border:"1px solid #4972a1",overflowY:"auto"},p:1,height:10,children:(0,e.jsx)(T,{recipe_data:be})},Ae)})}),!!Je&&(0,e.jsx)(i.Ki.Item,{label:"Takes Part In Reactions",children:(0,e.jsx)(i.az,{p:1,style:{borderRadius:"5px",border:"1px solid #4972a1"},children:Je.map(function(be){return(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:be.type})},children:be.name},be.type)})})})]})]})},T=function(b){var B=(0,a.Oc)().act,R=b.recipe_data,N=R.reagents,W=R.catalyst,H=R.inhibitors,q=R.byproducts,V=R.result_amount,Y=R.minimum_temperature,_=R.maximum_temperature,te=R.required_object,Q;return Y&&_?Q=(0,e.jsxs)(i.az,{children:["At temperatures between ",Y,"K and ",_,"K"]}):Y?Q=(0,e.jsxs)(i.az,{children:["At temperatures above ",Y,"K"]}):_&&(Q=(0,e.jsxs)(i.az,{children:["At temperatures belo",_,"K"]})),(0,e.jsxs)(i.az,{children:[!!N&&N.map(function(oe){return(0,e.jsxs)(i.az,{children:[oe.parts," of"," ",(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:oe.type})},children:oe.reagent})]},oe.reagent)}),!!W&&W.map(function(oe){return(0,e.jsxs)(i.az,{children:["In presence of ",oe.units,"u of"," ",(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:oe.type})},children:oe.reagent})]},oe.reagent)}),!!H&&H.map(function(oe){return(0,e.jsxs)(i.az,{children:["Without presence of",(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:oe.type})},children:oe.reagent})]},oe.reagent)}),!!q&&q.map(function(oe){return(0,e.jsxs)(i.az,{children:["Additional Creation of",(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:oe.type})},children:oe.reagent})]},oe.reagent)}),Q,te&&(0,e.jsxs)(i.az,{children:["Should take place inside of ",te]}),(0,e.jsxs)(i.az,{children:["Results in ",V," of substance"]})]})}},86813:function(S,j,t){"use strict";t.r(j),t.d(j,{Changelog:function(){return ze}});var e=t(62161),a=t(65380),i=t(28496),o=t.n(i);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function l(d){return typeof d=="undefined"||d===null}function u(d){return typeof d=="object"&&d!==null}function E(d){return Array.isArray(d)?d:l(d)?[]:[d]}function y(d,K){var G,ee,J,ce;if(K)for(ce=Object.keys(K),G=0,ee=ce.length;Gde&&(ce=" ... ",K=ee-de+ce.length),G-ee>de&&(re=" ...",G=ee+de-re.length),{str:ce+d.slice(K,G).replace(/\t/g,"\u2192")+re,pos:ee-K+ce.length}}function b(d,K){return C.repeat(" ",K-d.length)+d}function B(d,K){if(K=Object.create(K||null),!d.buffer)return null;K.maxLength||(K.maxLength=79),typeof K.indent!="number"&&(K.indent=1),typeof K.linesBefore!="number"&&(K.linesBefore=3),typeof K.linesAfter!="number"&&(K.linesAfter=2);for(var G=/\r?\n|\r|\0/g,ee=[0],J=[],ce,re=-1;ce=G.exec(d.buffer);)J.push(ce.index),ee.push(ce.index+ce[0].length),d.position<=ce.index&&re<0&&(re=ee.length-2);re<0&&(re=ee.length-1);var de="",ve,je,He=Math.min(d.line+K.linesAfter,J.length).toString().length,we=K.maxLength-(K.indent+He+3);for(ve=1;ve<=K.linesBefore&&!(re-ve<0);ve++)je=T(d.buffer,ee[re-ve],J[re-ve],d.position-(ee[re]-ee[re-ve]),we),de=C.repeat(" ",K.indent)+b((d.line-ve+1).toString(),He)+" | "+je.str+"\n"+de;for(je=T(d.buffer,ee[re],J[re],d.position,we),de+=C.repeat(" ",K.indent)+b((d.line+1).toString(),He)+" | "+je.str+"\n",de+=C.repeat("-",K.indent+He+3+je.pos)+"^\n",ve=1;ve<=K.linesAfter&&!(re+ve>=J.length);ve++)je=T(d.buffer,ee[re+ve],J[re+ve],d.position-(ee[re]-ee[re+ve]),we),de+=C.repeat(" ",K.indent)+b((d.line+ve+1).toString(),He)+" | "+je.str+"\n";return de.replace(/\n$/,"")}var R=B,N=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],W=["scalar","sequence","mapping"];function H(d){var K={};return d!==null&&Object.keys(d).forEach(function(G){d[G].forEach(function(ee){K[String(ee)]=G})}),K}function q(d,K){if(K=K||{},Object.keys(K).forEach(function(G){if(N.indexOf(G)===-1)throw new A('Unknown option "'+G+'" is met in definition of "'+d+'" YAML type.')}),this.options=K,this.tag=d,this.kind=K.kind||null,this.resolve=K.resolve||function(){return!0},this.construct=K.construct||function(G){return G},this.instanceOf=K.instanceOf||null,this.predicate=K.predicate||null,this.represent=K.represent||null,this.representName=K.representName||null,this.defaultStyle=K.defaultStyle||null,this.multi=K.multi||!1,this.styleAliases=H(K.styleAliases||null),W.indexOf(this.kind)===-1)throw new A('Unknown kind "'+this.kind+'" is specified for "'+d+'" YAML type.')}var V=q;function Y(d,K){var G=[];return d[K].forEach(function(ee){var J=G.length;G.forEach(function(ce,re){ce.tag===ee.tag&&ce.kind===ee.kind&&ce.multi===ee.multi&&(J=re)}),G[J]=ee}),G}function _(){var d={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},K,G;function ee(J){J.multi?(d.multi[J.kind].push(J),d.multi.fallback.push(J)):d[J.kind][J.tag]=d.fallback[J.tag]=J}for(K=0,G=arguments.length;K=0?"0b"+d.toString(2):"-0b"+d.toString(2).slice(1)},octal:function(d){return d>=0?"0o"+d.toString(8):"-0o"+d.toString(8).slice(1)},decimal:function(d){return d.toString(10)},hexadecimal:function(d){return d>=0?"0x"+d.toString(16).toUpperCase():"-0x"+d.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Nt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Bt(d){return!(d===null||!Nt.test(d)||d[d.length-1]==="_")}function pt(d){var K,G;return K=d.replace(/_/g,"").toLowerCase(),G=K[0]==="-"?-1:1,"+-".indexOf(K[0])>=0&&(K=K.slice(1)),K===".inf"?G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:K===".nan"?NaN:G*parseFloat(K,10)}var Ct=/^[-+]?[0-9]+e/;function gt(d,K){var G;if(isNaN(d))switch(K){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===d)switch(K){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===d)switch(K){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(C.isNegativeZero(d))return"-0.0";return G=d.toString(10),Ct.test(G)?G.replace("e",".e"):G}function qe(d){return Object.prototype.toString.call(d)==="[object Number]"&&(d%1!==0||C.isNegativeZero(d))}var Ke=new V("tag:yaml.org,2002:float",{kind:"scalar",resolve:Bt,construct:pt,predicate:qe,represent:gt,defaultStyle:"lowercase"}),Ze=$.extend({implicit:[ge,be,Lt,Ke]}),Ue=Ze,nt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),et=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function st(d){return d===null?!1:nt.exec(d)!==null||et.exec(d)!==null}function It(d){var K,G,ee,J,ce,re,de,ve=0,je=null,He,we,Ye;if(K=nt.exec(d),K===null&&(K=et.exec(d)),K===null)throw new Error("Date resolve error");if(G=+K[1],ee=+K[2]-1,J=+K[3],!K[4])return new Date(Date.UTC(G,ee,J));if(ce=+K[4],re=+K[5],de=+K[6],K[7]){for(ve=K[7].slice(0,3);ve.length<3;)ve+="0";ve=+ve}return K[9]&&(He=+K[10],we=+(K[11]||0),je=(He*60+we)*6e4,K[9]==="-"&&(je=-je)),Ye=new Date(Date.UTC(G,ee,J,ce,re,de,ve)),je&&Ye.setTime(Ye.getTime()-je),Ye}function Qt(d){return d.toISOString()}var Zt=new V("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:st,construct:It,instanceOf:Date,represent:Qt});function nn(d){return d==="<<"||d===null}var xt=new V("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nn}),it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function _e(d){if(d===null)return!1;var K,G,ee=0,J=d.length,ce=it;for(G=0;G64)){if(K<0)return!1;ee+=6}return ee%8===0}function ct(d){var K,G,ee=d.replace(/[\r\n=]/g,""),J=ee.length,ce=it,re=0,de=[];for(K=0;K>16&255),de.push(re>>8&255),de.push(re&255)),re=re<<6|ce.indexOf(ee.charAt(K));return G=J%4*6,G===0?(de.push(re>>16&255),de.push(re>>8&255),de.push(re&255)):G===18?(de.push(re>>10&255),de.push(re>>2&255)):G===12&&de.push(re>>4&255),new Uint8Array(de)}function Ot(d){var K="",G=0,ee,J,ce=d.length,re=it;for(ee=0;ee>18&63],K+=re[G>>12&63],K+=re[G>>6&63],K+=re[G&63]),G=(G<<8)+d[ee];return J=ce%3,J===0?(K+=re[G>>18&63],K+=re[G>>12&63],K+=re[G>>6&63],K+=re[G&63]):J===2?(K+=re[G>>10&63],K+=re[G>>4&63],K+=re[G<<2&63],K+=re[64]):J===1&&(K+=re[G>>2&63],K+=re[G<<4&63],K+=re[64],K+=re[64]),K}function Ht(d){return Object.prototype.toString.call(d)==="[object Uint8Array]"}var fn=new V("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_e,construct:ct,predicate:Ht,represent:Ot}),En=Object.prototype.hasOwnProperty,jn=Object.prototype.toString;function Dn(d){if(d===null)return!0;var K=[],G,ee,J,ce,re,de=d;for(G=0,ee=de.length;G>10)+55296,(d-65536&1023)+56320)}for(var zi=new Array(256),Rn=new Array(256),er=0;er<256;er++)zi[er]=$r(er)?1:0,Rn[er]=$r(er);function ji(d,K){this.input=d,this.filename=K.filename||null,this.schema=K.schema||Kn,this.onWarning=K.onWarning||null,this.legacy=K.legacy||!1,this.json=K.json||!1,this.listener=K.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=d.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function le(d,K){var G={name:d.filename,buffer:d.input.slice(0,-1),position:d.position,line:d.line,column:d.position-d.lineStart};return G.snippet=R(G),new A(K,G)}function Z(d,K){throw le(d,K)}function me(d,K){d.onWarning&&d.onWarning.call(null,le(d,K))}var Me={YAML:function(K,G,ee){var J,ce,re;K.version!==null&&Z(K,"duplication of %YAML directive"),ee.length!==1&&Z(K,"YAML directive accepts exactly one argument"),J=/^([0-9]+)\.([0-9]+)$/.exec(ee[0]),J===null&&Z(K,"ill-formed argument of the YAML directive"),ce=parseInt(J[1],10),re=parseInt(J[2],10),ce!==1&&Z(K,"unacceptable YAML version of the document"),K.version=ee[0],K.checkLineBreaks=re<2,re!==1&&re!==2&&me(K,"unsupported YAML version of the document")},TAG:function(K,G,ee){var J,ce;ee.length!==2&&Z(K,"TAG directive accepts exactly two arguments"),J=ee[0],ce=ee[1],yi.test(J)||Z(K,"ill-formed tag handle (first argument) of the TAG directive"),$n.call(K.tagMap,J)&&Z(K,'there is a previously declared suffix for "'+J+'" tag handle'),Dr.test(ce)||Z(K,"ill-formed tag prefix (second argument) of the TAG directive");try{ce=decodeURIComponent(ce)}catch(re){Z(K,"tag prefix is malformed: "+ce)}K.tagMap[J]=ce}};function Re(d,K,G,ee){var J,ce,re,de;if(K1&&(d.result+=C.repeat("\n",K-1))}function Ft(d,K,G){var ee,J,ce,re,de,ve,je,He,we=d.kind,Ye=d.result,Qe;if(Qe=d.input.charCodeAt(d.position),vn(Qe)||Sr(Qe)||Qe===35||Qe===38||Qe===42||Qe===33||Qe===124||Qe===62||Qe===39||Qe===34||Qe===37||Qe===64||Qe===96||(Qe===63||Qe===45)&&(J=d.input.charCodeAt(d.position+1),vn(J)||G&&Sr(J)))return!1;for(d.kind="scalar",d.result="",ce=re=d.position,de=!1;Qe!==0;){if(Qe===58){if(J=d.input.charCodeAt(d.position+1),vn(J)||G&&Sr(J))break}else if(Qe===35){if(ee=d.input.charCodeAt(d.position-1),vn(ee))break}else{if(d.position===d.lineStart&&dt(d)||G&&Sr(Qe))break;if(bn(Qe))if(ve=d.line,je=d.lineStart,He=d.lineIndent,Ne(d,!1,-1),d.lineIndent>=K){de=!0,Qe=d.input.charCodeAt(d.position);continue}else{d.position=re,d.line=ve,d.lineStart=je,d.lineIndent=He;break}}de&&(Re(d,ce,re,!1),Xe(d,d.line-ve),ce=re=d.position,de=!1),cr(Qe)||(re=d.position+1),Qe=d.input.charCodeAt(++d.position)}return Re(d,ce,re,!1),d.result?!0:(d.kind=we,d.result=Ye,!1)}function kt(d,K){var G,ee,J;if(G=d.input.charCodeAt(d.position),G!==39)return!1;for(d.kind="scalar",d.result="",d.position++,ee=J=d.position;(G=d.input.charCodeAt(d.position))!==0;)if(G===39)if(Re(d,ee,d.position,!0),G=d.input.charCodeAt(++d.position),G===39)ee=d.position,d.position++,J=d.position;else return!0;else bn(G)?(Re(d,ee,J,!0),Xe(d,Ne(d,!1,K)),ee=J=d.position):d.position===d.lineStart&&dt(d)?Z(d,"unexpected end of the document within a single quoted scalar"):(d.position++,J=d.position);Z(d,"unexpected end of the stream within a single quoted scalar")}function Tt(d,K){var G,ee,J,ce,re,de;if(de=d.input.charCodeAt(d.position),de!==34)return!1;for(d.kind="scalar",d.result="",d.position++,G=ee=d.position;(de=d.input.charCodeAt(d.position))!==0;){if(de===34)return Re(d,G,d.position,!0),d.position++,!0;if(de===92){if(Re(d,G,d.position,!0),de=d.input.charCodeAt(++d.position),bn(de))Ne(d,!1,K);else if(de<256&&zi[de])d.result+=Rn[de],d.position++;else if((re=Wi(de))>0){for(J=re,ce=0;J>0;J--)de=d.input.charCodeAt(++d.position),(re=Fo(de))>=0?ce=(ce<<4)+re:Z(d,"expected hexadecimal character");d.result+=Ei(ce),d.position++}else Z(d,"unknown escape sequence");G=ee=d.position}else bn(de)?(Re(d,G,ee,!0),Xe(d,Ne(d,!1,K)),G=ee=d.position):d.position===d.lineStart&&dt(d)?Z(d,"unexpected end of the document within a double quoted scalar"):(d.position++,ee=d.position)}Z(d,"unexpected end of the stream within a double quoted scalar")}function Gt(d,K){var G=!0,ee,J,ce,re=d.tag,de,ve=d.anchor,je,He,we,Ye,Qe,ke=Object.create(null),ot,St,qt,Rt;if(Rt=d.input.charCodeAt(d.position),Rt===91)He=93,Qe=!1,de=[];else if(Rt===123)He=125,Qe=!0,de={};else return!1;for(d.anchor!==null&&(d.anchorMap[d.anchor]=de),Rt=d.input.charCodeAt(++d.position);Rt!==0;){if(Ne(d,!0,K),Rt=d.input.charCodeAt(d.position),Rt===He)return d.position++,d.tag=re,d.anchor=ve,d.kind=Qe?"mapping":"sequence",d.result=de,!0;G?Rt===44&&Z(d,"expected the node content, but found ','"):Z(d,"missed comma between flow collection entries"),St=ot=qt=null,we=Ye=!1,Rt===63&&(je=d.input.charCodeAt(d.position+1),vn(je)&&(we=Ye=!0,d.position++,Ne(d,!0,K))),ee=d.line,J=d.lineStart,ce=d.position,Ut(d,K,_n,!1,!0),St=d.tag,ot=d.result,Ne(d,!0,K),Rt=d.input.charCodeAt(d.position),(Ye||d.line===ee)&&Rt===58&&(we=!0,Rt=d.input.charCodeAt(++d.position),Ne(d,!0,K),Ut(d,K,_n,!1,!0),qt=d.result),Qe?rt(d,de,ke,St,ot,qt,ee,J,ce):we?de.push(rt(d,null,ke,St,ot,qt,ee,J,ce)):de.push(ot),Ne(d,!0,K),Rt=d.input.charCodeAt(d.position),Rt===44?(G=!0,Rt=d.input.charCodeAt(++d.position)):G=!1}Z(d,"unexpected end of the stream within a flow collection")}function wt(d,K){var G,ee,J=qn,ce=!1,re=!1,de=K,ve=0,je=!1,He,we;if(we=d.input.charCodeAt(d.position),we===124)ee=!1;else if(we===62)ee=!0;else return!1;for(d.kind="scalar",d.result="";we!==0;)if(we=d.input.charCodeAt(++d.position),we===43||we===45)qn===J?J=we===43?ur:ri:Z(d,"repeat of a chomping mode identifier");else if((He=on(we))>=0)He===0?Z(d,"bad explicit indentation width of a block scalar; it cannot be less than one"):re?Z(d,"repeat of an indentation width identifier"):(de=K+He-1,re=!0);else break;if(cr(we)){do we=d.input.charCodeAt(++d.position);while(cr(we));if(we===35)do we=d.input.charCodeAt(++d.position);while(!bn(we)&&we!==0)}for(;we!==0;){for($e(d),d.lineIndent=0,we=d.input.charCodeAt(d.position);(!re||d.lineIndentde&&(de=d.lineIndent),bn(we)){ve++;continue}if(d.lineIndentK)&&ve!==0)Z(d,"bad indentation of a sequence entry");else if(d.lineIndentK)&&(St&&(re=d.line,de=d.lineStart,ve=d.position),Ut(d,K,Ir,!0,J)&&(St?ke=d.result:ot=d.result),St||(rt(d,we,Ye,Qe,ke,ot,re,de,ve),Qe=ke=ot=null),Ne(d,!0,-1),Rt=d.input.charCodeAt(d.position)),(d.line===ce||d.lineIndent>K)&&Rt!==0)Z(d,"bad indentation of a mapping entry");else if(d.lineIndentK?ve=1:d.lineIndent===K?ve=0:d.lineIndentK?ve=1:d.lineIndent===K?ve=0:d.lineIndent tag; it should be "scalar", not "'+d.kind+'"'),we=0,Ye=d.implicitTypes.length;we"),d.result!==null&&ke.kind!==d.kind&&Z(d,"unacceptable node kind for !<"+d.tag+'> tag; it should be "'+ke.kind+'", not "'+d.kind+'"'),ke.resolve(d.result,d.tag)?(d.result=ke.construct(d.result,d.tag),d.anchor!==null&&(d.anchorMap[d.anchor]=d.result)):Z(d,"cannot resolve a node with !<"+d.tag+"> explicit tag")}return d.listener!==null&&d.listener("close",d),d.tag!==null||d.anchor!==null||He}function Kt(d){var K=d.position,G,ee,J,ce=!1,re;for(d.version=null,d.checkLineBreaks=d.legacy,d.tagMap=Object.create(null),d.anchorMap=Object.create(null);(re=d.input.charCodeAt(d.position))!==0&&(Ne(d,!0,-1),re=d.input.charCodeAt(d.position),!(d.lineIndent>0||re!==37));){for(ce=!0,re=d.input.charCodeAt(++d.position),G=d.position;re!==0&&!vn(re);)re=d.input.charCodeAt(++d.position);for(ee=d.input.slice(G,d.position),J=[],ee.length<1&&Z(d,"directive name must not be less than one character in length");re!==0;){for(;cr(re);)re=d.input.charCodeAt(++d.position);if(re===35){do re=d.input.charCodeAt(++d.position);while(re!==0&&!bn(re));break}if(bn(re))break;for(G=d.position;re!==0&&!vn(re);)re=d.input.charCodeAt(++d.position);J.push(d.input.slice(G,d.position))}re!==0&&$e(d),$n.call(Me,ee)?Me[ee](d,ee,J):me(d,'unknown document directive "'+ee+'"')}if(Ne(d,!0,-1),d.lineIndent===0&&d.input.charCodeAt(d.position)===45&&d.input.charCodeAt(d.position+1)===45&&d.input.charCodeAt(d.position+2)===45?(d.position+=3,Ne(d,!0,-1)):ce&&Z(d,"directives end mark is expected"),Ut(d,d.lineIndent-1,Ir,!1,!0),Ne(d,!0,-1),d.checkLineBreaks&&xi.test(d.input.slice(K,d.position))&&me(d,"non-ASCII line breaks are interpreted as content"),d.documents.push(d.result),d.position===d.lineStart&&dt(d)){d.input.charCodeAt(d.position)===46&&(d.position+=3,Ne(d,!0,-1));return}if(d.position=55296&&G<=56319&&K+1=56320&&ee<=57343)?(G-55296)*1024+ee-56320+65536:G}function Wo(d){var K=/^\n* /;return K.test(d)}var po=1,Pi=2,go=3,Gi=4,ai=5;function da(d,K,G,ee,J,ce,re,de){var ve,je=0,He=null,we=!1,Ye=!1,Qe=ee!==-1,ke=-1,ot=ca(Xr(d,0))&&Hi(Xr(d,d.length-1));if(K||re)for(ve=0;ve=65536?ve+=2:ve++){if(je=Xr(d,ve),!Lr(je))return ai;ot=ot&&Ji(je,He,de),He=je}else{for(ve=0;ve=65536?ve+=2:ve++){if(je=Xr(d,ve),je===tn)we=!0,Qe&&(Ye=Ye||ve-ke-1>ee&&d[ke+1]!==" ",ke=ve);else if(!Lr(je))return ai;ot=ot&&Ji(je,He,de),He=je}Ye=Ye||Qe&&ve-ke-1>ee&&d[ke+1]!==" "}return!we&&!Ye?ot&&!re&&!J(d)?po:ce===Ln?ai:Pi:G>9&&Wo(d)?ai:re?ce===Ln?ai:Pi:Ye?Gi:go}function fa(d,K,G,ee,J){d.dump=function(){if(K.length===0)return d.quotingType===Ln?'""':"''";if(!d.noCompatMode&&(Hn.indexOf(K)!==-1||Si.test(K)))return d.quotingType===Ln?'"'+K+'"':"'"+K+"'";var ce=d.indent*Math.max(1,G),re=d.lineWidth===-1?-1:Math.max(Math.min(d.lineWidth,40),d.lineWidth-ce),de=ee||d.flowLevel>-1&&G>=d.flowLevel;function ve(je){return Ci(d,je)}switch(da(K,de,d.indent,re,ve,d.quotingType,d.forceQuotes&&!ee,J)){case po:return K;case Pi:return"'"+K.replace(/'/g,"''")+"'";case go:return"|"+zo(K,d.indent)+Ti(Hr(K,ce));case Gi:return">"+zo(K,d.indent)+Ti(Hr(Yi(K,re),ce));case ai:return'"'+Ai(K)+'"';default:throw new A("impossible error: invalid scalar style")}}()}function zo(d,K){var G=Wo(d)?String(K):"",ee=d[d.length-1]==="\n",J=ee&&(d[d.length-2]==="\n"||d==="\n"),ce=J?"+":ee?"":"-";return G+ce+"\n"}function Ti(d){return d[d.length-1]==="\n"?d.slice(0,-1):d}function Yi(d,K){for(var G=/(\n+)([^\n]*)/g,ee=function(){var je=d.indexOf("\n");return je=je!==-1?je:d.length,G.lastIndex=je,$o(d.slice(0,je),K)}(),J=d[0]==="\n"||d[0]===" ",ce,re;re=G.exec(d);){var de=re[1],ve=re[2];ce=ve[0]===" ",ee+=de+(!J&&!ce&&ve!==""?"\n":"")+$o(ve,K),J=ce}return ee}function $o(d,K){if(d===""||d[0]===" ")return d;for(var G=/ [^ ]/g,ee,J=0,ce,re=0,de=0,ve="";ee=G.exec(d);)de=ee.index,de-J>K&&(ce=re>J?re:de,ve+="\n"+d.slice(J,ce),J=ce+1),re=de;return ve+="\n",d.length-J>K&&re>J?ve+=d.slice(J,re)+"\n"+d.slice(re+1):ve+=d.slice(J),ve.slice(1)}function Ai(d){for(var K="",G=0,ee,J=0;J=65536?J+=2:J++)G=Xr(d,J),ee=Xt[G],!ee&&Lr(G)?(K+=d[J],G>=65536&&(K+=d[J+1])):K+=ee||hr(G);return K}function ko(d,K,G){var ee="",J=d.tag,ce,re,de;for(ce=0,re=G.length;ce1024&&(He+="? "),He+=d.dump+(d.condenseFlow?'"':"")+":"+(d.condenseFlow?"":" "),Pr(d,K,je,!1,!1)&&(He+=d.dump,ee+=He));d.tag=J,d.dump="{"+ee+"}"}function xo(d,K,G,ee){var J="",ce=d.tag,re=Object.keys(G),de,ve,je,He,we,Ye;if(d.sortKeys===!0)re.sort();else if(typeof d.sortKeys=="function")re.sort(d.sortKeys);else if(d.sortKeys)throw new A("sortKeys must be a boolean or a function");for(de=0,ve=re.length;de1024,we&&(d.dump&&tn===d.dump.charCodeAt(0)?Ye+="?":Ye+="? "),Ye+=d.dump,we&&(Ye+=Gr(d,K)),Pr(d,K+1,He,!0,we)&&(d.dump&&tn===d.dump.charCodeAt(0)?Ye+=":":Ye+=": ",Ye+=d.dump,J+=Ye));d.tag=ce,d.dump=J||"{}"}function Jo(d,K,G){var ee,J,ce,re,de,ve;for(J=G?d.explicitTypes:d.implicitTypes,ce=0,re=J.length;ce tag resolver accepts not "'+ve+'" style');d.dump=ee}return!0}return!1}function Pr(d,K,G,ee,J,ce,re){d.tag=null,d.dump=G,Jo(d,G,!1)||Jo(d,G,!0);var de=en.call(d.dump),ve=ee,je;ee&&(ee=d.flowLevel<0||d.flowLevel>K);var He=de==="[object Object]"||de==="[object Array]",we,Ye;if(He&&(we=d.duplicates.indexOf(G),Ye=we!==-1),(d.tag!==null&&d.tag!=="?"||Ye||d.indent!==2&&K>0)&&(J=!1),Ye&&d.usedDuplicates[we])d.dump="*ref_"+we;else{if(He&&Ye&&!d.usedDuplicates[we]&&(d.usedDuplicates[we]=!0),de==="[object Object]")ee&&Object.keys(d.dump).length!==0?(xo(d,K,d.dump,J),Ye&&(d.dump="&ref_"+we+d.dump)):(Vo(d,K,d.dump),Ye&&(d.dump="&ref_"+we+" "+d.dump));else if(de==="[object Array]")ee&&d.dump.length!==0?(d.noArrayIndent&&!re&&K>0?va(d,K-1,d.dump,J):va(d,K,d.dump,J),Ye&&(d.dump="&ref_"+we+d.dump)):(ko(d,K,d.dump),Ye&&(d.dump="&ref_"+we+" "+d.dump));else if(de==="[object String]")d.tag!=="?"&&fa(d,d.dump,K,ce,ve);else{if(de==="[object Undefined]")return!1;if(d.skipInvalid)return!1;throw new A("unacceptable kind of an object to dump "+de)}d.tag!==null&&d.tag!=="?"&&(je=encodeURI(d.tag[0]==="!"?d.tag.slice(1):d.tag).replace(/!/g,"%21"),d.tag[0]==="!"?je="!"+je:je.slice(0,18)==="tag:yaml.org,2002:"?je="!!"+je.slice(18):je="!<"+je+">",d.dump=je+" "+d.dump)}return!0}function yo(d,K){var G=[],ee=[],J,ce;for(Eo(d,G,ee),J=0,ce=ee.length;J0&&J[J.length-1])&&(je[0]===6||je[0]===2)){re=0;continue}if(je[0]===3&&(!J||je[1]>J[0]&&je[1]je)return J.setData("Failed to load data after "+je+" attempts");de("get_month",{date:ce}),fetch((0,U.l)(ce+".yml")).then(Oe(function(He){var we,Ye,Qe;return Ce(this,function(ke){switch(ke.label){case 0:return[4,He.text()];case 1:return we=ke.sent(),Ye=/^Cannot find/,Ye.test(we)?(Qe=50+re*50,ve.setData("Loading changelog data"+".".repeat(re+3)),setTimeout(function(){ve.getData(ce,re+1)},Qe)):ve.setData(Co.load(we,{schema:Co.CORE_SCHEMA})),[2]}})}))},J.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},J.dateChoices=[],J}var G=K.prototype;return G.setData=function(J){this.setState({data:J})},G.setSelectedDate=function(J){this.setState({selectedDate:J})},G.setSelectedIndex=function(J){this.setState({selectedIndex:J})},G.componentDidMount=function(){var J=this,ce=(0,z.Oc)(),re=ce.data,de=re.dates,ve=de===void 0?[]:de;ve&&(ve.forEach(function(je){return J.dateChoices.push(o()(je,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(ve[0]))},G.render=function(){var J=this,ce=this.state,re=ce.data,de=ce.selectedDate,ve=ce.selectedIndex,je=(0,z.Oc)(),He=je.data.dates,we=this.dateChoices,Ye=we.length>0&&(0,e.jsxs)(F.BJ,{mb:1,children:[(0,e.jsx)(F.BJ.Item,{children:(0,e.jsx)(F.$n,{className:"Changelog__Button",disabled:ve===0,icon:"chevron-left",onClick:function(){var St=ve-1;return J.setData("Loading changelog data..."),J.setSelectedIndex(St),J.setSelectedDate(we[St]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),J.getData(He[St])}})}),(0,e.jsx)(F.BJ.Item,{children:(0,e.jsx)(F.ms,{autoScroll:!1,options:we,onSelected:function(St){var qt=we.indexOf(St);return J.setData("Loading changelog data..."),J.setSelectedIndex(qt),J.setSelectedDate(St),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),J.getData(He[qt])},selected:de,width:"150px"})}),(0,e.jsx)(F.BJ.Item,{children:(0,e.jsx)(F.$n,{className:"Changelog__Button",disabled:ve===we.length-1,icon:"chevron-right",onClick:function(){var St=ve+1;return J.setData("Loading changelog data..."),J.setSelectedIndex(St),J.setSelectedDate(we[St]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),J.getData(He[St])}})})]}),Qe=(0,e.jsxs)(F.wn,{children:[(0,e.jsx)("h1",{children:"Traditional Games Space Station 13"}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Thanks to: "}),"Baystation 12, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original Space Station 13 developers, Invisty for the title image and the countless others who have contributed to the game, issue tracker or wiki over the years."]}),(0,e.jsxs)("p",{children:["Current organization members can be found ",(0,e.jsx)("a",{href:"https://github.com/orgs/tgstation/people",children:"here"}),", recent GitHub contributors can be found ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/pulse/monthly",children:"here"}),"."]}),(0,e.jsxs)("p",{children:["You can also join our discord ",(0,e.jsx)("a",{href:"https://tgstation13.org/phpBB/viewforum.php?f=60",children:"here"}),"."]}),Ye]}),ke=(0,e.jsxs)(F.wn,{children:[Ye,(0,e.jsx)("h3",{children:"GoonStation 13 Development Team"}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Coders: "}),"Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion"]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Spriters: "}),"Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No"]}),(0,e.jsxs)("p",{children:["Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"," r4407 release. The changelog for changes up to r4407 can be seen ",(0,e.jsx)("a",{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010",children:"here"}),"."]}),(0,e.jsxs)("p",{children:["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.jsx)("a",{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/",children:"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License"}),". Rights are currently extended to ",(0,e.jsx)("a",{href:"http://forums.somethingawful.com/",children:"SomethingAwful Goons"})," only."]}),(0,e.jsx)("h3",{children:"Traditional Games Space Station 13 License"}),(0,e.jsxs)("p",{children:["All code after ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/commit/333c566b88108de218d882840e61928a9b759d8f",children:"commit 333c566b88108de218d882840e61928a9b759d8f on 2014/31/12 at 4:38 PM PST"})," is licensed under ",(0,e.jsx)("a",{href:"https://www.gnu.org/licenses/agpl-3.0.html",children:"GNU AGPL v3"}),". All code before that commit is licensed under ",(0,e.jsx)("a",{href:"https://www.gnu.org/licenses/gpl-3.0.html",children:"GNU GPL v3"}),", including tools unless their readme specifies otherwise. See ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/blob/master/LICENSE",children:"LICENSE"})," and ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/blob/master/GPLv3.txt",children:"GPLv3.txt"})," for more details."]}),(0,e.jsxs)("p",{children:["The TGS DMAPI API is licensed as a subproject under the MIT license."," See the footer of ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/blob/master/code/__DEFINES/tgs.dm",children:"code/__DEFINES/tgs.dm"})," and ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/blob/master/code/modules/tgs/LICENSE",children:"code/modules/tgs/LICENSE"})," for the MIT license."]}),(0,e.jsxs)("p",{children:["All assets including icons and sound are under a ",(0,e.jsx)("a",{href:"https://creativecommons.org/licenses/by-sa/3.0/",children:"Creative Commons 3.0 BY-SA license"})," unless otherwise indicated."]})]}),ot=typeof re=="object"&&Object.keys(re).length>0&&Object.entries(re).reverse().map(function(St){var qt=St[0],Rt=St[1];return(0,e.jsx)(F.wn,{title:o()(qt,"d mmmm yyyy",!0),children:(0,e.jsx)(F.az,{ml:3,children:Object.entries(Rt).map(function(Gn){var ui=Gn[0],Di=Gn[1];return(0,e.jsxs)(P.Fragment,{children:[(0,e.jsxs)("h4",{children:[ui," changed:"]}),(0,e.jsx)(F.az,{ml:3,children:(0,e.jsx)(F.XI,{children:Di.map(function(zt){var Pn=Object.keys(zt)[0];return(0,e.jsxs)(F.XI.Row,{children:[(0,e.jsx)(F.XI.Cell,{className:(0,a.Ly)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.jsx)(F.In,{color:Le[Pn]?Le[Pn].color:Le.unknown.color,name:Le[Pn]?Le[Pn].icon:Le.unknown.icon})}),(0,e.jsx)(F.XI.Cell,{className:"Changelog__Cell",children:zt[Pn]})]},Pn+zt[Pn])})})})]},ui)})})},qt)});return(0,e.jsx)(L.p8,{title:"Changelog",width:675,height:650,children:(0,e.jsxs)(L.p8.Content,{scrollable:!0,children:[Qe,ot,typeof re=="string"&&(0,e.jsx)("p",{children:re}),ke]})})},K}(P.Component)},43970:function(S,j,t){"use strict";t.r(j),t.d(j,{ChemDispenser:function(){return u}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=function(p){var h=(0,i.Oc)().data,c=h.accept_beaker,f=h.chemicals,v=h.beaker,O=h.use_smaller_units;return(0,e.jsx)(l.p8,{width:430,height:560,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsxs)(o.BJ,{vertical:!0,height:"100%",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E,{})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(x,{chemicals:f,use_smaller_units:O})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(m,{beaker:v,accept_beaker:c})})]})})})},E=function(p){var h=(0,i.Oc)(),c=h.act,f=h.data,v=f.amount,O=f.energy,C=f.maxEnergy,I=f.use_smaller_units;return(0,e.jsx)(o.wn,{title:"Settings",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Energy",children:(0,e.jsx)(o.z2,{value:O,maxValue:C,ranges:{good:[C*.75,Number.POSITIVE_INFINITY],average:[C*.25,C*.75],bad:[Number.NEGATIVE_INFINITY,C*.25]},children:(0,e.jsx)(o.zv,{value:O,format:function(M){return(0,a.LI)(M,1)+" Unit"+(M>1?"s":"")}})})}),(0,e.jsx)(o.Ki.Item,{label:"Dispense",verticalAlign:"top",children:(0,e.jsxs)(o.BJ,{vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(y,{amount:v,use_smaller_units:I})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:"minus",onClick:function(){return c("amount",{amount:v-1})}})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.Ap,{animated:!0,value:v,minValue:0,maxValue:120,format:function(M){return(0,a.LI)(M,1)+" Unit"+(M>1?"s":"")},stepPixelSize:3,onChange:function(M,A){return c("amount",{amount:A})}})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:"plus",onClick:function(){return c("amount",{amount:v+1})}})})]})})]})})]})})},y=function(p){var h=(0,i.Oc)().act,c=p.amount,f=p.use_smaller_units?[1,2,5,10,15,20]:[5,10,20,30,40,60];return(0,e.jsx)(o.BJ,{children:f.map(function(v){return(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{selected:c===v,fluid:!0,icon:"eye-dropper",textAlign:"center",onClick:function(){return h("amount",{amount:v})},children:v})},v)})})},x=function(p){for(var h=(0,i.Oc)().act,c=p.chemicals,f=p.use_smaller_units,v=[],O=0;O<(c.length+1)%3;O++)v.push();return(0,e.jsx)(o.wn,{title:"Dispenser",children:(0,e.jsxs)(o.so,{direction:"row",wrap:"wrap",height:"100%",spacingPrecise:"2",align:"flex-start",alignContent:"flex-start",children:[c.map(function(C,I){return(0,e.jsx)(o.so.Item,{grow:"1",basis:f?"45%":"30%",pl:I%(f?2:3)===0?0:.5,pb:.5,children:(0,e.jsx)(o.$n,{icon:"arrow-circle-down",fluid:!0,onClick:function(){return h("dispense",{reagent:C.id})},children:C.title})},I)}),v.map(function(C,I){return(0,e.jsx)(o.so.Item,{grow:"1",basis:"25%",height:"20px"},I)})]})})},m=function(p){var h=(0,i.Oc)().act,c=p.beaker,f=p.accept_beaker,v=(0,e.jsx)(o.az,{color:"average",children:"No beaker loaded"}),O=f?"Beaker":"Container";return c&&(O+=" ("+c.total_volume+"/"+c.maximum_volume+")",v=(0,e.jsx)(o.BJ,{vertical:!0,children:c.contents.map(function(C){return(0,e.jsxs)(o.BJ.Item,{color:"label",children:[C.volume," unit",C.volume>1?"s":""," of ",C.name]},C.id)})})),(0,e.jsx)(o.wn,{fill:!0,title:O,scrollable:!0,buttons:(0,e.jsx)(o.$n,{icon:"eject",disabled:!c,onClick:function(){return h("eject")},children:"Eject"}),children:v})}},51288:function(S,j,t){"use strict";t.r(j),t.d(j,{ChemHeater:function(){return u}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.target_temperature,h=m.on,c=m.beaker;return(0,e.jsx)(l.p8,{width:275,height:400,children:(0,e.jsxs)(l.p8.Content,{scrollable:!0,style:{overflowY:"auto"},children:[(0,e.jsx)(o.wn,{title:"Controls",children:(0,e.jsxs)(o.Wx,{justify:"space-around",children:[(0,e.jsx)(o.Wx.Item,{label:"Power",children:(0,e.jsx)(o.$n,{fontSize:2,icon:"power-off",selected:h,onClick:function(){return x("power")}})}),(0,e.jsxs)(o.Wx.Item,{label:"Temperature",children:[(0,e.jsx)(o.N6,{value:p,minValue:0,maxValue:1e3,onChange:function(f,v){return x("temperature",{temp:v})},size:2,format:function(f){return(0,a.LI)(f,1)+"K"},className:"ChemHeater--knob"}),(0,e.jsx)(o.zv,{value:p,format:function(f){return(0,a.LI)(f,1)+"K"}})]})]})}),(0,e.jsx)(o.wn,{title:"Beaker "+(c?" ("+c.total_volume+"/"+c.maximum_volume+")":""),buttons:(0,e.jsx)(o.$n,{icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:c?(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Temperature",children:(0,e.jsx)(o.zv,{value:c.chem_temp,format:function(f){return(0,a.LI)(f,1)+"K"}})})}),c.contents.length?c.contents.map(function(f){return(0,e.jsxs)(o.az,{color:"label",children:[f.volume," unit",f.volume===1?"":"s"," ",f.name]},f.id)}):(0,e.jsx)(o.az,{color:"bad",children:"Beaker Empty"})]}):(0,e.jsx)(o.az,{color:"average",children:"No Beaker Loaded."})})]})})}},3889:function(S,j,t){"use strict";t.r(j),t.d(j,{ChemMaster:function(){return y}});var e=t(62161),a=t(65380),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E;(function(v){v.Pill="pill",v.Bottle="bottle",v.Syrette="syrette",v.SuperSyrette="supeyrette",v.PillBottle="pill_bottle"})(E||(E={}));var y=function(v){var O=(0,o.Oc)().data,C=O.analyze_reagent,I=O.beaker,M=(0,i.useState)(null),A=M[0],T=M[1],b=(0,e.jsx)(x,{});return A?b=(0,e.jsx)(m,{type:A,setSpriteMenu:T}):C?b=(0,e.jsx)(p,{analyze_reagent:C}):I&&(b=(0,e.jsx)(h,{setSpriteMenu:T})),(0,e.jsx)(u.p8,{width:440,height:560,children:(0,e.jsx)(u.p8.Content,{scrollable:!0,children:b})})},x=function(v){return(0,e.jsx)(l.wn,{title:"No Beaker Present",children:"Please insert beaker."})},m=function(v){var O=(0,o.Oc)(),C=O.act,I=O.data,M=v.type,A=v.setSpriteMenu,T,b,B=function(R){return C("set_sprite",{type:M,sprite:R})};switch(M){case"pill":T=I.available_sprites.pill,b="pill"+I.set_sprites.pill,B=function(R){return C("set_sprite",{type:M,sprite:R.replace("pill","")})};break;case"bottle":T=I.available_sprites.bottle,b=I.set_sprites.bottle;break;case"syrette":T=I.available_sprites.syrette,b=I.set_sprites.syrette;break;case"supeyrette":T=I.available_sprites.syrette,b=I.set_sprites.supeyrette;break;case"pill_bottle":T=I.available_sprites.pill_bottle,b=I.set_sprites.pill_bottle;break}return(0,e.jsx)(l.wn,{title:"Select Sprite",buttons:(0,e.jsx)(l.$n,{color:"bad",icon:"window-close",onClick:function(){return A(null)},children:"Close"}),children:T.map(function(R){return(0,e.jsx)(l.$n,{tooltip:R,selected:R===b,p:1,onClick:function(){B(R)},children:(0,e.jsx)(l.az,{style:{transform:"scale(1.5)"},className:(0,a.Ly)(["chem_master32x32",R])})},R)})})},p=function(v){var O=(0,o.Oc)().act,C=v.analyze_reagent;return typeof C=="string"?(0,e.jsx)(l.wn,{title:"Chemical Analysis",buttons:(0,e.jsx)(l.$n,{icon:"window-close",color:"bad",onClick:function(){return O("analyze",{reagent:null})},children:"Close"}),children:(0,e.jsx)(l.az,{color:"bad",children:C})}):(0,e.jsx)(l.wn,{title:"Chemical Analysis",buttons:(0,e.jsx)(l.$n,{icon:"window-close",color:"bad",onClick:function(){return O("analyze",{reagent:null})},children:"Close"}),children:(0,e.jsxs)(l.Ki,{children:[(0,e.jsx)(l.Ki.Item,{label:"Name",children:C.name}),(0,e.jsx)(l.Ki.Item,{label:"Description",children:C.desc}),!!C.blood_type&&(0,e.jsx)(l.Ki.Item,{label:"Blood Type",children:C.blood_type}),!!C.blood_DNA&&(0,e.jsx)(l.Ki.Item,{label:"Blood DNA",children:C.blood_DNA})]})})},h=function(v){var O=(0,o.Oc)(),C=O.act,I=O.data,M=I.beaker,A=I.buffer,T=I.set_sprites,b=I.mode,B=I.condi,R=v.setSpriteMenu;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l.wn,{title:"Beaker",buttons:M&&(0,e.jsxs)(l.az,{children:[(0,e.jsxs)(l.az,{inline:!0,color:"label",mr:2,children:[(0,e.jsx)(l.zv,{value:M.total_volume,initial:0})," /"," ",M.maximum_volume," units"]}),(0,e.jsx)(l.$n,{icon:"eject",onClick:function(){return C("eject")},children:"Eject"})]}),children:M?M.contents.length===0?(0,e.jsx)(l.az,{color:"label",children:"Beaker is empty"}):(0,e.jsx)(l.XI,{children:M.contents.map(function(N){return(0,e.jsx)(c,{reagent:N,transferTo:"buffer"},N.id)})}):(0,e.jsx)(l.az,{color:"label",children:"No beaker lodaed"})}),(0,e.jsx)(l.wn,{title:"Buffer",buttons:(0,e.jsxs)(l.az,{children:[(0,e.jsxs)(l.az,{inline:!0,color:"label",mr:1,children:[(0,e.jsx)(l.zv,{value:A.total_volume,initial:0})," /"," ",A.maximum_volume," units"]}),(0,e.jsxs)(l.$n,{icon:b?"flask":"trash-alt",onClick:function(){return C("toggle_mode")},color:b?"":"bad",children:["Transfering To ",b?"Beaker":"Disposal"]})]}),children:A.contents.length===0?(0,e.jsx)(l.az,{color:"label",children:"Buffer is empty."}):(0,e.jsx)(l.XI,{children:A.contents.map(function(N){return(0,e.jsx)(c,{reagent:N,transferTo:"beaker"},N.id)})})}),(0,e.jsxs)(l.wn,{title:"Packaging",children:[!B&&(0,e.jsx)(f,{name:"Create Pills (24 units max)",icon:"pill"+T.pill,onClick:function(){return C("print",{type:"pill"})},onIconChange:function(){return R("pill")}}),(0,e.jsx)(f,{name:"Create Bottle (60 units max)",icon:T.bottle,onClick:function(){return C("print",{type:"bottle"})},onIconChange:function(){return R("bottle")}}),!B&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{name:"Create Syrette (5 units max)",icon:T.syrette,onClick:function(){return C("print",{type:"syrette"})},onIconChange:function(){return R("syrette")}}),(0,e.jsxs)(l.BJ,{align:"center",mb:1,children:[(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{disabled:!0,tooltip:"Change Icon (No icons available)",children:(0,e.jsx)(l.az,{className:(0,a.Ly)(["chem_master32x32","supeyrette"])})})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{onClick:function(){return C("print",{type:"supeyrette"})},children:"Create Advanced Syrette (10 units max)"})})]}),(0,e.jsxs)(l.BJ,{align:"center",children:[(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{tooltip:"Change Icon",onClick:function(){return R("pill_bottle")},children:(0,e.jsx)(l.az,{className:(0,a.Ly)(["chem_master32x32",T.pill_bottle])})})}),(0,e.jsx)(l.BJ.Item,{children:"Change Pill Bottle Sprite"})]})]})]})]})},c=function(v){var O=(0,o.Oc)().act,C=v.reagent,I=v.transferTo;return(0,e.jsxs)(l.XI.Row,{children:[(0,e.jsxs)(l.XI.Cell,{children:[C.name," ",(0,e.jsx)(l.zv,{value:C.volume,initial:0}),"u"]}),(0,e.jsxs)(l.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(l.$n,{onClick:function(){return O("transfer",{id:C.id,amount:1,target:I})},children:"1"}),(0,e.jsx)(l.$n,{onClick:function(){return O("transfer",{id:C.id,amount:5,target:I})},children:"5"}),(0,e.jsx)(l.$n,{onClick:function(){return O("transfer",{id:C.id,amount:10,target:I})},children:"10"}),(0,e.jsx)(l.$n,{onClick:function(){return O("transfer",{id:C.id,amount:1e3,target:I})},children:"All"}),(0,e.jsx)(l.$n,{icon:"ellipsis-h",tooltip:"Custom amount",onClick:function(){return O("transfer",{id:C.id,amount:-1,target:I})}}),(0,e.jsx)(l.$n,{icon:"question",tooltip:"Analyze",onClick:function(){return O("analyze",{reagent:C.id})}})]})]})},f=function(v){var O=v.icon,C=v.name,I=v.onClick,M=v.onIconChange;return(0,e.jsxs)(l.BJ,{align:"center",mb:1,children:[(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{tooltip:"Change Icon",onClick:function(){return M()},children:(0,e.jsx)(l.az,{className:(0,a.Ly)(["chem_master32x32",O])})})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{onClick:I,children:C})})]})}},29965:function(S,j,t){"use strict";t.r(j),t.d(j,{CraftMenu:function(){return h},CraftingRecipe:function(){return p},CraftingStep:function(){return x}});var e=t(62161),a=t(28277),i=t(7402),o=t(88716),l=t(7081),u=t(34995),E=t(85242),y=function(c){var f=c.title;return(0,e.jsxs)(u.BJ,{my:1,children:[(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.cG,{})}),(0,e.jsx)(u.BJ.Item,{color:"gray",children:f}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.cG,{})})]})},x=function(c){var f=(0,l.Oc)().config,v=c.step,O=v.amt,C=v.tool_name,I=v.icon,M=v.reqed_material;return O===0?(0,e.jsxs)(u.BJ,{align:"center",children:[!f.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u._V,{src:I})}),(0,e.jsxs)(u.BJ.Item,{children:["Apply ",C]})]}):O===1&&!M?(0,e.jsxs)(u.BJ,{align:"center",children:[!f.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u._V,{src:I})}),(0,e.jsxs)(u.BJ.Item,{children:["Attach ",C]})]}):(0,e.jsxs)(u.BJ,{align:"center",children:[!f.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u._V,{src:I})}),(0,e.jsxs)(u.BJ.Item,{children:["Attach ",O," ",C]})]})},m=function(c){var f=c.amt,v=c.tool_name,O=c.icon,C=c.reqed_material;return f===0||f===1&&!C?v:f+" "+v},p=function(c){var f=(0,l.Oc)(),v=f.act,O=f.config,C=c.recipe,I=c.compact,M=c.admin;return(0,e.jsx)(u.wn,{children:(0,e.jsxs)(u.BJ,{children:[!O.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u._V,{src:C.icon})}),(0,e.jsxs)(u.BJ.Item,{grow:!0,children:[(0,e.jsx)(u.az,{style:{textTransform:"capitalize"},children:C.name}),!I&&(0,e.jsx)(u.az,{color:"grey",children:C.desc}),(0,e.jsxs)(u.az,{color:I?"grey":"",children:[!I&&(0,e.jsx)(y,{title:"Steps"}),C.steps.map(function(A,T){return I?(0,e.jsxs)(e.Fragment,{children:[m(A),T!==C.steps.length?", ":""]}):(0,e.jsx)(x,{step:A},T)})]})]}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{vertical:!I,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{icon:"hammer",tooltip:"Craft",onClick:function(){return v("build",{ref:C.ref})}})}),(0,e.jsx)(u.BJ.Item,{children:M&&(0,e.jsx)(u.$n,{icon:"bug",tooltip:"View Variables",onClick:function(){return v("view_variables",{ref:C.ref})}})})]})}),C.batch?I?(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 5",onClick:function(){return v("build",{ref:C.ref,amount:5})},children:"5"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 10",onClick:function(){return v("build",{ref:C.ref,amount:10})},children:"10"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 25",onClick:function(){return v("build",{ref:C.ref,amount:25})},children:"25"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 50",onClick:function(){return v("build",{ref:C.ref,amount:50})},children:"50"})})]})}):(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 5",onClick:function(){return v("build",{ref:C.ref,amount:5})},children:"5"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 10",onClick:function(){return v("build",{ref:C.ref,amount:10})},children:"10"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 25",onClick:function(){return v("build",{ref:C.ref,amount:25})},children:"25"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 50",onClick:function(){return v("build",{ref:C.ref,amount:50})},children:"50"})})]})}):""]})})},h=function(c){var f=(0,l.Oc)(),v=f.act,O=f.data,C=O.crafting_recipes,I=O.is_admin,M=Object.keys(C).filter(function($){return C[$].length!==0}),A=M.map(function($){return C[$].length}).reduce(function($,ie){return $+ie},0),T=(0,a.useState)(!1),b=T[0],B=T[1],R=(0,l.QY)("searchText",""),N=R[0],W=R[1],H=(0,o.XZ)(N,function($){return $.name}),q=(0,a.useState)(1),V=q[0],Y=q[1],_=N.length>0?b?20:10:b?60:30,te=_*V,Q=(0,a.useState)(M[0]),oe=Q[0],ne=Q[1],ae=C[oe];return N!==""&&(ae=M.flatMap(function($){return C[$]}).filter(H)),ae=(0,i.Ul)(ae,function($){return $.name.toUpperCase()}),(0,e.jsx)(E.p8,{width:800,height:450,children:(0,e.jsx)(E.p8.Content,{children:(0,e.jsxs)(u.BJ,{fill:!0,children:[(0,e.jsx)(u.BJ.Item,{width:"30%",children:(0,e.jsx)(u.wn,{fill:!0,children:(0,e.jsxs)(u.BJ,{fill:!0,vertical:!0,justify:"space-between",children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.pd,{placeholder:"Search in "+A+" recipes...",fluid:!0,value:N,onInput:function($,ie){Y(1),W(ie)}})}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.az,{height:"100%",pt:1,pr:1,overflowY:"auto",children:(0,e.jsx)(u.tU,{fluid:!0,vertical:!0,children:M.map(function($){return(0,e.jsxs)(u.tU.Tab,{selected:$===oe,onClick:function(){Y(1),ne($),N.length>0&&W("")},children:[$," (",C[$].length,")"]},$)})})})}),(0,e.jsxs)(u.BJ.Item,{children:[(0,e.jsx)(u.cG,{}),(0,e.jsx)(u.$n.Checkbox,{fluid:!0,content:"Compact List",checked:b,onClick:function(){return B(!b)}})]})]})})}),(0,e.jsx)(u.BJ.Item,{grow:!0,my:-1,children:(0,e.jsxs)(u.az,{height:"100%",pr:1,pt:1,mr:-1,overflowY:"auto",children:[ae.slice(0,te).map(function($){return(0,e.jsx)(p,{recipe:$,compact:b,admin:!!I},$.ref)}),ae.length>te&&(0,e.jsxs)(u.wn,{mb:2,textAlign:"center",style:{cursor:"pointer"},onClick:function(){return Y(V+1)},children:["Load ",Math.min(_,ae.length-te)," ","more..."]})]})})]})})})}},9884:function(S,j,t){"use strict";t.r(j),t.d(j,{CraftingStation:function(){return p},PointCount:function(){return h},Recipe:function(){return c}});var e=t(62161),a=t(7402),i=t(4089),o=t(88716),l=t(7081),u=t(34995),E=t(85242),y=t(78377),x=["barrels","grips","mechanisms","small arms ammo","long arms ammo","misc ammo"],m=["9mm","10mm magnum","12mm heavy pistol","shotgun shell","6.5mm carbine","7.62mm rifle","8.6mm heavy rifle","14.5mm anti materiel","flare shell","17mm rolled shot","19mm explosive","small arms","long arms","cheap small arms","cheap long arms"],p=function(f){var v=(0,l.Oc)(),O=v.act,C=v.data,I=C.craftable_recipes,M=C.recipes,A=C.materials,T=C.perk_no_obfuscation;if(!Array.isArray(I))return(0,e.jsx)(E.p8,{width:400,height:400,children:(0,e.jsx)(E.p8.Content,{children:(0,e.jsx)(u.wn,{title:"ERROR",color:"bad",children:(0,e.jsx)(u.az,{fontSize:1.5,children:"No recipes were found."})})})});var b=(0,a.sb)(M.map(function(te){return te.category})).sort(function(te,Q){var oe=te.toLowerCase(),ne=Q.toLowerCase();return x.includes(oe)&&x.includes(ne)?x.indexOf(oe)-x.indexOf(ne):oe.localeCompare(ne)}),B=(0,l.QY)("selectedCategory",b[0]),R=B[0],N=B[1],W=M.filter(function(te){return te.category===R}),H=(0,a.sb)(W.map(function(te){return te.subcategory||"Other"})).sort(function(te,Q){var oe=te.toLowerCase(),ne=Q.toLowerCase();return m.includes(oe)&&m.includes(ne)?m.indexOf(oe)-m.indexOf(ne):oe.localeCompare(ne)}),q=(0,l.QY)("selectedSubCategory",H[0]),V=q[0],Y=q[1],_=W.filter(function(te){return V===(te.subcategory||"Other")});return(0,e.jsx)(E.p8,{width:620,height:600,children:(0,e.jsxs)(E.p8.Content,{children:[(0,e.jsx)(u.wn,{title:"Crafting",fill:!0,height:A&&A.length>0?"85%":"100%",children:(0,e.jsxs)(u.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(u.BJ.Item,{children:[(0,e.jsx)(u.tU,{fluid:!0,children:b.map(function(te){return(0,e.jsx)(u.tU.Tab,{selected:te===R,onClick:function(){N(te),Y(M.filter(function(Q){return Q.category===te}).map(function(Q){return Q.subcategory||"Other"}).sort(function(Q,oe){var ne=Q.toLowerCase(),ae=oe.toLowerCase();return m.includes(ne)&&m.includes(ae)?m.indexOf(ne)-m.indexOf(ae):ne.localeCompare(ae)})[0])},children:te},te)})}),H.length>1&&(0,e.jsx)(u.tU,{fluid:!0,mt:-.5,mb:0,children:H.map(function(te){return(0,e.jsx)(u.tU.Tab,{selected:te===V,onClick:function(){return Y(te)},children:te},te)})})]}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.wn,{fill:!0,style:{overflowY:"auto"},children:_.map(function(te){return(0,e.jsxs)(u.BJ,{className:"candystripe",p:1,align:"center",children:[(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(c,{recipe:te,available:I.includes(te.type),perk_no_obfuscation:T})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{icon:"hammer",disabled:!I.includes(te.type),onClick:function(){return O("craft",{type:te.type})},children:"Craft"})})]},te.name)})})})]})}),A.length>0&&(0,e.jsx)(u.wn,{children:(0,e.jsx)(y.MaterialAccessBar,{availableMaterials:A,disableStackEjection:!0,onEjectRequested:function(te,Q){O("eject",{material:te.name})}})})]})})},h=function(f){var v=f.point_cost,O=f.available_points,C=f.perk_no_obfuscation;if(C)return(0,e.jsxs)(u.az,{inline:!0,color:O>=v?"good":"bad",children:["(",v," / ",O," points)"]});var I=O/v;return I<.8||I>=1?null:(0,e.jsx)(u.az,{inline:!0,color:"good",children:"(Unlock Close)"})},c=function(f){var v=f.recipe,O=f.available,C=f.perk_no_obfuscation;return(0,e.jsxs)(u.BJ,{vertical:!0,children:[(0,e.jsxs)(u.BJ.Item,{fontSize:1.2,color:"label",children:[v.name," ",v.point_cost&&v.available_points?(0,e.jsx)(h,{point_cost:v.point_cost,available_points:v.available_points,perk_no_obfuscation:C}):null]}),(0,e.jsx)(u.BJ.Item,{textColor:O?"":"bad",children:v.cost===-1?"Cannot Craft: Lacking mechanical skill or improved stock parts.":typeof v.cost=="object"&&Object.entries(v.cost).map(function(I,M,A){var T=I[0],b=I[1];return(0,e.jsxs)(u.az,{inline:!0,mr:M===A.length-1?0:.5,children:[(0,o.Sn)(T)," (",(0,i.LI)(b,2),")",M===A.length-1?"":", "]},T)})})]})}},58044:function(S,j,t){"use strict";t.r(j),t.d(j,{CrewManifest:function(){return x},CrewManifestContent:function(){return m}});var e=t(62161),a=t(7402),i=t(88716),o=t(7081),l=t(34995),u=t(85242),E=t(65380),y=t(40289),x=function(p){return(0,e.jsx)(u.p8,{width:450,height:600,children:(0,e.jsx)(u.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(p){var h=(0,o.Oc)().data,c=h.manifest;if(!c||c.length===0)return(0,e.jsx)(l.wn,{title:"No Crew Found",children:"There doesn't seem to be anyone here."});var f=(0,a.sb)(c.flatMap(function(O){return O.departments})).sort(function(O,C){return Object.keys(y.departmentData).indexOf(O)-Object.keys(y.departmentData).indexOf(C)}),v=c.filter(function(O){return O.departments.length===0});return(0,e.jsxs)(e.Fragment,{children:[f.map(function(O){var C=c.filter(function(I){return I.departments.indexOf(O)!==-1});return(0,e.jsx)(l.wn,{className:"CrewManifest--"+O,title:y.departmentData[O].name,children:(0,e.jsx)(l.XI,{children:C.map(function(I){return(0,e.jsxs)(l.XI.Row,{children:[(0,e.jsx)(l.XI.Cell,{className:"CrewManifest__Cell",maxWidth:"135px",overflow:"hidden",width:"40%",children:(0,i.jT)(I.name)}),(0,e.jsx)(l.XI.Cell,{className:(0,E.Ly)(["CrewManifest__Cell","CrewManifest__Cell--Rank"]),maxWidth:"135px",overflow:"hidden",width:"40%",children:(0,i.jT)(I.rank)}),(0,e.jsx)(l.XI.Cell,{className:"CrewManifest__Cell",maxWidth:"40px",overflow:"hidden",width:"20%",children:I.status||"Unknown"})]},I.name+I.rank)})})},O)}),v.length!==0&&(0,e.jsx)(l.wn,{className:"CrewManifest--misc",title:"Misc",children:(0,e.jsx)(l.XI,{children:v.map(function(O){return(0,e.jsxs)(l.XI.Row,{children:[(0,e.jsx)(l.XI.Cell,{className:"CrewManifest__Cell",maxWidth:"135px",overflow:"hidden",width:"40%",children:(0,i.jT)(O.name)}),(0,e.jsx)(l.XI.Cell,{className:(0,E.Ly)(["CrewManifest__Cell","CrewManifest__Cell--Rank"]),maxWidth:"135px",overflow:"hidden",width:"40%",children:(0,i.jT)(O.rank)}),(0,e.jsx)(l.XI.Cell,{className:"CrewManifest__Cell",maxWidth:"40px",overflow:"hidden",width:"20%",children:O.status||"Unknown"})]},O.name+O.rank)})})})]})}},32839:function(S,j,t){"use strict";t.r(j),t.d(j,{Cryo:function(){return E}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=t(78924),u=[{label:"Brute",type:"bruteLoss"},{label:"Respiratory",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Burn",type:"fireLoss"}],E=function(){return(0,e.jsx)(o.p8,{width:400,height:550,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(y,{})})})},y=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.wn,{title:"Occupant",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Occupant",children:h.occupant.name||"No Occupant"}),!!h.hasOccupant&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Ki.Item,{label:"State",color:h.occupant.statstate,children:h.occupant.stat}),(0,e.jsxs)(i.Ki.Item,{label:"Temperature",color:h.occupant.temperaturestatus,children:[(0,e.jsx)(i.zv,{value:h.occupant.bodyTemperature})," K"]}),(0,e.jsx)(i.Ki.Item,{label:"Health",children:(0,e.jsx)(i.z2,{value:h.occupant.health/h.occupant.maxHealth,color:h.occupant.health>0?"good":"average",children:(0,e.jsx)(i.zv,{value:h.occupant.health})})}),u.map(function(c){return(0,e.jsx)(i.Ki.Item,{label:c.label,children:(0,e.jsx)(i.z2,{value:h.occupant[c.type]/100,children:(0,e.jsx)(i.zv,{value:h.occupant[c.type]})})},c.type)})]})]})}),(0,e.jsx)(i.wn,{title:"Cell",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Power",children:(0,e.jsx)(i.$n,{icon:h.isOperating?"power-off":"times",disabled:h.isOpen,onClick:function(){return p("power")},color:h.isOperating&&"green",children:h.isOperating?"On":"Off"})}),(0,e.jsxs)(i.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(i.zv,{value:h.cellTemperature})," K"]}),(0,e.jsxs)(i.Ki.Item,{label:"Door",children:[(0,e.jsx)(i.$n,{icon:h.isOpen?"unlock":"lock",onClick:function(){return p("door")},children:h.isOpen?"Open":"Closed"}),(0,e.jsx)(i.$n,{icon:h.autoEject?"sign-out-alt":"sign-in-alt",onClick:function(){return p("autoeject")},children:h.autoEject?"Auto":"Manual"})]})]})}),(0,e.jsx)(i.wn,{title:"Beaker",buttons:(0,e.jsx)(i.$n,{icon:"eject",disabled:!h.isBeakerLoaded,onClick:function(){return p("ejectbeaker")},children:"Eject"}),children:(0,e.jsx)(l.BeakerContents,{beakerLoaded:h.isBeakerLoaded,beakerContents:h.beakerContents})})]})}},68919:function(S,j,t){"use strict";t.r(j),t.d(j,{DisposalUnit:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l={Off:"bad",Panel:"bad",Ready:"good",Pressurizing:"average"},u=function(E){var y=(0,a.Oc)(),x=y.act,m=y.data,p=m.isai,h=m.mode,c=m.handle,f=m.panel,v=m.eject,O=m.pressure,C=l[f?"Panel":h],I=f?"Power Disabled":h;return(0,e.jsx)(o.p8,{width:300,height:155,title:"Waste Disposal Unit",children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Status",color:C,children:I}),(0,e.jsx)(i.Ki.Item,{label:"Handle",children:(0,e.jsx)(i.$n,{icon:c?"toggle-on":"toggle-off",content:c?"Disengage":"Engage",onClick:function(){x("toggle",{handle:!0})},disabled:p})}),(0,e.jsx)(i.Ki.Item,{label:"Pump",children:(0,e.jsx)(i.$n,{icon:"power-off",selected:h!=="Off",onClick:function(){x("toggle",{pump:!0})},disabled:f})})]})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{fluid:!0,icon:"eject",disabled:!v,content:"Eject",textAlign:"center",style:{fontSize:"15px"},onClick:function(){x("eject")}})})]})})})})}},75083:function(S,j,t){"use strict";t.r(j),t.d(j,{DownloadScreen:function(){return m},EmailClient:function(){return E},EmailClientContent:function(){return x},Folder:function(){return y},LoginScreen:function(){return p},MainMenuScreen:function(){return f},SendMessageScreen:function(){return c},ViewMessageScreen:function(){return h}});var e=t(62161),a=t(28277),i=t(7081),o=t(34995),l=t(85242),u=t(44390),E=function(v){return(0,e.jsx)(l.p8,{width:800,height:500,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsx)(x,{})})})},y;(function(v){v.Inbox="Inbox",v.Sent="Sent",v.Spam="Spam",v.Deleted="Deleted"})(y||(y={}));var x=function(v){var O=(0,i.Oc)(),C=O.act,I=O.data,M=I.account_data,A=I.download,T=I.error,b=(0,a.useState)(!1),B=b[0],R=b[1],N=(0,a.useState)(""),W=N[0],H=N[1],q=(0,a.useState)(""),V=q[0],Y=q[1],_=(0,a.useState)(""),te=_[0],Q=_[1];(0,a.useEffect)(function(){T&&T.toLowerCase().includes("email successfully sent")&&(H(""),Y(""),Q(""))},[T]);var oe=(0,e.jsx)(p,{data:I});return T?oe=(0,e.jsx)(o.wn,{title:"System Message",color:"bad",buttons:(0,e.jsx)(o.$n,{icon:"times",onClick:function(){return C("reset_error")},children:"Dismiss"}),children:T}):A?oe=(0,e.jsx)(m,{download:A}):M&&(B?oe=(0,e.jsx)(c,{data:M,recipient:te,setSubject:Y,setRecipient:Q,state:{body:W,setBody:H,subject:V,setSubject:Y},setSendMessageScreen:R}):M.current_message?oe=(0,e.jsx)(h,{data:M,setSubject:Y,setRecipient:Q,setSendMessageScreen:R}):oe=(0,e.jsx)(f,{data:I,setSubject:Y,setRecipient:Q,setSendMessageScreen:R})),oe},m=function(v){var O=(0,i.Oc)().act,C=v.download;return(0,e.jsx)(o.wn,{title:"Download Helper v4.3",buttons:(0,e.jsx)(o.$n,{icon:"times",color:"bad",onClick:function(){return O("cancel_download")},children:"Cancel Download"}),children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Filename",children:C.filename}),(0,e.jsxs)(o.Ki.Item,{label:"Speed",children:[(0,e.jsx)(o.zv,{value:C.speed})," GQ/s"]}),(0,e.jsx)(o.Ki.Item,{label:"Completion",children:(0,e.jsxs)(o.z2,{value:C.progress,maxValue:C.size,children:[(0,e.jsx)(o.zv,{value:C.progress}),"/",(0,e.jsx)(o.zv,{value:C.size})," GQ"]})})]})})},p=function(v){var O=(0,i.Oc)().act,C=v.data,I=C.stored_login,M=C.stored_password,A=C.id_available;return(0,e.jsxs)(o.wn,{title:"Please Log In",children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Email Address",children:(0,e.jsx)(o.pd,{fluid:!0,autoUpdateValue:!0,value:I,onChange:function(T,b){return O("set_stored_login",{login:b})}})}),(0,e.jsx)(o.Ki.Item,{label:"Password",children:(0,e.jsx)(o.pd,{fluid:!0,autoUpdateValue:!0,value:M,onChange:function(T,b){return O("set_stored_password",{password:b})}})})]}),(0,e.jsx)(o.$n,{mt:1,icon:"sign-in-alt",onClick:function(){return O("log_in")},children:"Log In"}),!!A&&(0,e.jsx)(o.$n,{mt:1,icon:"id-card",onClick:function(){return O("autofill_id")},children:"Autofill From ID"})]})},h=function(v){var O=(0,i.Oc)().act,C=v.data,I=v.setSendMessageScreen,M=v.setRecipient,A=v.setSubject,T=C.current_message,b=C.login,B=T.body,R=T.source,N=T.timestamp,W=T.title,H=T.uid,q=T.attachment;return(0,e.jsx)(o.wn,{scrollable:!0,fill:!0,title:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{color:"transparent",icon:"arrow-left",tooltip:"Back to Inbox",tooltipPosition:"left",pt:.5,mr:1,onClick:function(){return O("clear_current_message")}})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:W}),(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsx)(o.$n,{color:"transparent",icon:"save",onClick:function(){return O("save_message",{uid:H})}}),(0,e.jsx)(o.$n,{color:"transparent",icon:"print",onClick:function(){return O("print_message",{uid:H})}}),(0,e.jsx)(o.$n,{color:"transparent",icon:"reply",onClick:function(){M(R),A("RE: "+W),I(!0)}}),(0,e.jsx)(o.$n,{color:"transparent",icon:"trash",onClick:function(){return O("delete_message",{uid:H})}})]})]}),children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.In,{mt:.5,name:"user",p:1.25,size:.75,backgroundColor:"gray",style:{borderRadius:"50%"}})}),(0,e.jsxs)(o.BJ.Item,{grow:!0,children:[(0,e.jsxs)(o.BJ,{align:"center",justify:"space-between",children:[(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsx)(o.az,{bold:!0,fontSize:1.3,children:R}),(0,e.jsxs)(o.az,{color:"gray",ml:1,fontSize:.9,children:["to ",b]})]}),(0,e.jsx)(o.BJ.Item,{color:"gray",mr:1,children:N})]}),(0,e.jsx)(o.az,{mt:2,children:!!B&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:B}})}),!!q&&(0,e.jsxs)(o.$n,{icon:"save",mt:2,color:"grey",style:{borderRadius:"5px"},onClick:function(){return O("download_message_attachment",{uid:H})},children:[q.filename," (",q.size,"GQ)"]})]})]})})},c=function(v){var O=(0,i.Oc)().act,C=v.data,I=v.setSendMessageScreen,M=v.recipient,A=v.setRecipient,T=v.state,b=T.body,B=T.setBody,R=T.subject,N=T.setSubject,W=C.addressbook,H=C.attachment,q=(0,a.useState)(!1),V=q[0],Y=q[1];return(0,e.jsxs)(e.Fragment,{children:[V&&(0,e.jsx)(o.Rr,{children:(0,e.jsx)(o.wn,{className:"Section--force-background",fillPositionedParent:!0,m:2,title:"Address Book",scrollable:!0,fill:!0,height:"90%",buttons:(0,e.jsx)(o.$n,{icon:"times",tooltip:"Close Address Book",tooltipPosition:"left",color:"bad",onClick:function(){return Y(!1)}}),children:W.map(function(_){return(0,e.jsx)(o.$n,{icon:"user",fluid:!0,onClick:function(){A(_),Y(!1)},children:_},_)})})}),(0,e.jsx)(o.wn,{fill:!0,title:"Send Message",buttons:(0,e.jsx)(o.$n,{color:"bad",icon:"times",tooltip:"Close (Work will be lost)",onClick:function(){return I(!1)}}),children:(0,e.jsxs)(o.BJ,{vertical:!0,fill:!0,ml:1,mr:1,children:[(0,e.jsx)(o.BJ.Item,{ml:1,children:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{fontSize:1.25,children:"To"}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.pd,{fluid:!0,style:{background:"none",border:"none"},autoUpdateValue:!0,value:M,onChange:function(_,te){return A(te)}})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{color:"transparent",icon:"address-book",onClick:function(){return Y(!0)}})})]})}),(0,e.jsx)(o.BJ.Divider,{}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.pd,{placeholder:"Subject",fluid:!0,style:{background:"none",border:"none"},value:R,onChange:function(_,te){return N(te)}})}),(0,e.jsx)(o.BJ.Divider,{}),(0,e.jsx)(o.BJ.Item,{ml:1,grow:!0,children:(0,e.jsx)(o.fs,{scrollbar:!0,height:"100%",maxLength:2e4,multilineEnter:!0,style:{background:"none",border:"none"},placeholder:"Write your message here (pencode is supported)",onInput:function(_,te){return B(te)},onChange:function(_,te){return B(te)},value:b})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{align:"center",justify:"space-between",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{bold:!0,style:{borderRadius:"25px"},pt:1,pl:3,pr:3,pb:1,fontSize:1.25,onClick:function(){O("send_message",{body:b.replaceAll("\n","[br]"),recipient:M,title:R})},children:"Send"})}),(0,e.jsxs)(o.BJ.Item,{children:[!!H&&(0,e.jsxs)(o.az,{backgroundColor:"gray",inline:!0,pl:1,style:{borderRadius:"5px"},children:[H.filename," (",H.size,"GQ)",(0,e.jsx)(o.$n,{color:"transparent",icon:"times",onClick:function(){return O("clear_attachment")}})]}),!H&&(0,e.jsx)(o.$n,{color:"transparent",icon:"plus",tooltip:"Add Attachment",tooltipPosition:"left",onClick:function(){return O("add_attachment")}})]})]})})]})})]})},f=function(v){var O=(0,i.Oc)().act,C=v.data,I=v.setSendMessageScreen,M=v.setRecipient,A=v.setSubject,T=C.account_data,b=C.id_available,B=C.id_matches;if(T){var R=T.login,N=T.main_menu,W=T.ringtone;if(N){var H=N.label_inbox,q=N.label_outbox,V=N.label_spam,Y=N.label_deleted,_=N.folder,te=N.messages,Q=(0,a.useState)(""),oe=Q[0],ne=Q[1],ae=oe!==""?te.filter(function($){return $.title.includes(oe)||$.source.includes(oe)}):te;return(0,e.jsx)(o.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:W?"volume-up":"volume-mute",selected:W,tooltip:W?"Ringtone Enabled":"Ringtone Disabled",tooltipPosition:"bottom",onClick:function(){return O("ringtone_toggle")}}),(0,e.jsx)(o.$n,{icon:"key",tooltip:"Change Password",tooltipPosition:"bottom",onClick:function(){return O("change_password")}}),!!b&&!B&&(0,e.jsx)(o.$n,{icon:"id-card",tooltip:"Email mismatch with ID Card Detected. Synchronize ID with account?",tooltipPosition:"bottom",onClick:function(){return O("sync_id")}}),(0,e.jsxs)(o.$n,{icon:"sign-out-alt",onClick:function(){return O("log_out")},children:["Sign out of ",R]})]}),fill:!0,children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsxs)(o.BJ.Item,{basis:"15%",children:[(0,e.jsx)(o.$n,{icon:"envelope-open-text",fluid:!0,onClick:function(){return I(!0)},children:"Compose"}),(0,e.jsxs)(o.tU,{vertical:!0,children:[(0,e.jsx)(o.tU.Tab,{onClick:function(){return O("set_folder",{folder:"Inbox"})},selected:_==="Inbox",children:H}),(0,e.jsx)(o.tU.Tab,{onClick:function(){return O("set_folder",{folder:"Sent"})},selected:_==="Sent",children:q}),(0,e.jsx)(o.tU.Tab,{onClick:function(){return O("set_folder",{folder:"Spam"})},selected:_==="Spam",children:V}),(0,e.jsx)(o.tU.Tab,{onClick:function(){return O("set_folder",{folder:"Deleted"})},selected:_==="Deleted",children:Y})]})]}),(0,e.jsx)(o.BJ.Item,{grow:!0,pl:4,children:(0,e.jsx)(o.wn,{title:"Messages",buttons:(0,e.jsx)(o.az,{width:25,children:(0,e.jsx)(u.SearchBar,{searchText:oe,onSearchTextChanged:function($){return ne($)}})}),fill:!0,scrollable:!0,children:(0,e.jsx)(o.BJ,{vertical:!0,children:(0,e.jsx)(o.wj,{children:ae.length===0?(0,e.jsx)(o.az,{p:1,children:"No Messages :)"}):ae.map(function($){return(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsxs)(o.BJ,{align:"center",pt:2,children:[(0,e.jsx)(o.BJ.Item,{basis:"3%",children:(0,e.jsx)(o.$n,{inline:!0,pt:.5,color:"transparent",icon:"times",tooltip:"Delete",tooltipPosition:"right",onClick:function(){return O("delete_message",{uid:$.uid})}})}),(0,e.jsx)(o.BJ.Item,{basis:"3%",children:(0,e.jsx)(o.$n,{inline:!0,pt:.5,color:"transparent",icon:"reply",tooltip:"Reply",tooltipPosition:"right",onClick:function(){M($.source),A("RE: "+$.title),I(!0)}})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{color:"transparent",fluid:!0,width:"100%",onClick:function(){return O("set_current_message",{uid:$.uid})},children:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{bold:!0,basis:"45%",textColor:"white",children:$.source}),(0,e.jsxs)(o.BJ.Item,{grow:!0,children:[$.title.substring(0,30),$.title.length>30?"...":""]}),(0,e.jsx)(o.BJ.Item,{children:$.timestamp})]})})})]}),(0,e.jsx)(o.cG,{})]},$.uid)})})})})})]})})}}}},78377:function(S,j,t){"use strict";t.r(j),t.d(j,{MaterialAccessBar:function(){return x}});var e=t(62161),a=t(65380),i=t(88716),o=t(28277),l=t(34995),u=t(41242),E=t(7933),y=function(c){return(0,u.QL)(c,0)},x=function(c){var f=c.availableMaterials,v=c.onEjectRequested,O=c.disableStackEjection,C=c.showAllButton;return(0,e.jsxs)(l.so,{wrap:!0,children:[f.map(function(I){return(0,e.jsx)(l.so.Item,{grow:!0,basis:4.5,children:(0,e.jsx)(m,{material:I,onEjectRequested:function(M){return v&&v(I,M)},disableStackEjection:O})},I.name)}),C&&(0,e.jsx)(l.so.Item,{grow:!0,basis:4.5,children:(0,e.jsx)(p,{onEjectRequested:function(){return v&&v({name:"all",icon:"",count:0},0)}})})]})},m=function(c){var f=c.material,v=c.onEjectRequested,O=c.disableStackEjection,C=(0,o.useState)(!1),I=C[0],M=C[1];return(0,e.jsx)("div",{onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},className:(0,a.Ly)(["MaterialDock",I&&"MaterialDock--active",f.count<1&&"MaterialDock--disabled"]),children:(0,e.jsxs)(l.so,{direction:"column-reverse",children:[(0,e.jsxs)(l.so,{direction:"column",textAlign:"center",onClick:function(){return v(1)},className:"MaterialDock__Label",children:[(0,e.jsx)(l.so.Item,{children:(0,e.jsx)(E.MaterialIcon,{material:f})}),(0,e.jsx)(l.so.Item,{children:(0,e.jsx)(l.zv,{value:f.count,format:y})})]}),I&&(0,e.jsx)("div",{className:"MaterialDock__Dock",children:(0,e.jsxs)(l.so,{vertical:!0,direction:"column-reverse",children:["Eject "+(0,i.Sn)(f.name),!O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{sheets:f.count,amount:5,onEject:v}),(0,e.jsx)(h,{sheets:f.count,amount:10,onEject:v}),(0,e.jsx)(h,{sheets:f.count,amount:25,onEject:v}),(0,e.jsx)(h,{sheets:f.count,amount:50,onEject:v})]})]})})]})})},p=function(c){var f=c.onEjectRequested,v=(0,o.useState)(!1),O=v[0],C=v[1];return(0,e.jsx)("div",{onMouseEnter:function(){return C(!0)},onMouseLeave:function(){return C(!1)},className:(0,a.Ly)(["MaterialDock",O&&"MaterialDock--active"]),style:{height:"100%"},children:(0,e.jsx)(l.so,{direction:"column-reverse",height:"100%",children:(0,e.jsxs)(l.so,{direction:"column",textAlign:"center",justify:"center",onClick:function(){return f()},className:"MaterialDock__Label",height:"100%",children:[(0,e.jsx)(l.so.Item,{children:(0,e.jsx)(l.In,{name:"eject",className:"FabricatorMaterialIcon"})}),(0,e.jsx)(l.so.Item,{children:"Eject All"})]})})})},h=function(c){var f=c.amount,v=c.sheets,O=c.onEject;return(0,e.jsxs)(l.$n,{fluid:!0,color:"transparent",className:(0,a.Ly)(["Fabricator__PrintAmount",f>v&&"Fabricator__PrintAmount--disabled"]),onClick:function(){return O(f)},children:["\xD7",f]})}},7933:function(S,j,t){"use strict";t.r(j),t.d(j,{MaterialIcon:function(){return i}});var e=t(62161),a=t(34995),i=function(o){var l=o.material;return l.icon?(0,e.jsx)(a._V,{className:"FabricatorMaterialIcon",src:l.icon}):(0,e.jsx)(a.In,{name:"question-circle"})}},44390:function(S,j,t){"use strict";t.r(j),t.d(j,{SearchBar:function(){return u}});var e=t(62161),a=t(28277),i=t(34995);function o(E,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(y&&y.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),y&&l(E,y)}function l(E,y){return l=Object.setPrototypeOf||function(m,p){return m.__proto__=p,m},l(E,y)}var u=function(E){"use strict";o(y,E);function y(){return E.apply(this,arguments)}var x=y.prototype;return x.onInput=function(p){var h=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){return h.props.onSearchTextChanged(p)},200)},x.render=function(){var p=this,h=this.props,c=h.searchText,f=h.hint;return(0,e.jsxs)(i.BJ,{align:"baseline",children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.In,{name:"search"})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.pd,{fluid:!0,placeholder:f||"Search for...",onInput:function(v,O){return p.onInput(O)},value:c})})]})},y}(a.Component)},72546:function(S,j,t){"use strict";t.r(j)},99303:function(S,j,t){"use strict";t.r(j),t.d(j,{FilingCabinet:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.cabinet_name,p=x.hex_code_for_backround,h=x.contents,c=x.contents_ref;return(0,e.jsx)(o.p8,{title:m||"Filing Cabinet",width:350,height:300,children:(0,e.jsxs)(o.p8.Content,{backgroundColor:p||"#7f7f7f",scrollable:!0,children:[h.map(function(f,v){return(0,e.jsxs)(i.so,{color:"black",backgroundColor:"white",style:{padding:"2px"},mb:.5,children:[(0,e.jsx)(i.so.Item,{align:"center",grow:1,children:(0,e.jsx)(i.az,{align:"center",children:f})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return y("remove_object",{ref:c[v]})}})})]},c[v])}),h.length===0&&(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.az,{color:"white",align:"center",children:["The ",m," is empty!"]})})]})})}},17789:function(S,j,t){"use strict";t.r(j),t.d(j,{FireAlarm:function(){return E}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=t(9478),E=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.seclevel,c=p.time,f=p.timing,v=p.active;return(0,e.jsx)(l.p8,{width:275,height:300,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsxs)(o.wn,{fill:!0,title:(0,e.jsxs)(o.az,{inline:!0,children:["Current alert level:"," ",(0,e.jsx)(u.ColoredSecurityLevel,{security_level:h})]}),children:[(0,e.jsx)(o.BJ,{mt:1,mb:3,align:"center",justify:"center",children:(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:"fire",fontSize:8,color:v?"bad":"",iconSpin:v,onClick:function(){return m("alarm_toggle")}})})}),(0,e.jsx)(o.Ki,{children:!v&&(0,e.jsx)(o.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(o.$n,{onClick:function(){return m("timer_toggle")},children:f?"Stop":"Start"}),children:(0,e.jsx)(o.Ap,{animated:!0,value:c,minValue:0,maxValue:120,step:1,stepPixelSize:2,format:function(O){return""+(0,a.LI)(O,0)+" seconds"},onChange:function(O,C){return m("timer_set",{time:C})}})})})]})})})}},17532:function(S,j,t){"use strict";t.r(j),t.d(j,{Folder:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.theme,p=x.bg_color,h=x.folder_name,c=x.contents,f=x.contents_ref;return(0,e.jsx)(o.p8,{title:h||"Folder",theme:m,width:400,height:500,children:(0,e.jsxs)(o.p8.Content,{backgroundColor:p||"#7f7f7f",scrollable:!0,children:[!c.length&&(0,e.jsx)(i.wn,{children:(0,e.jsx)(i.az,{color:"lightgrey",align:"center",children:"This folder is empty!"})}),c.map(function(v,O){return(0,e.jsxs)(i.BJ,{color:"black",backgroundColor:"white",style:{padding:"2px 2px 0 2px"},children:[(0,e.jsx)(i.BJ.Item,{align:"center",grow:!0,children:(0,e.jsx)(i.az,{align:"center",children:v})}),(0,e.jsxs)(i.BJ.Item,{children:[(0,e.jsx)(i.$n,{icon:"search",onClick:function(){return y("examine",{ref:f[O]})}}),(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return y("remove",{ref:f[O]})}})]})]},f[O])})]})})}},11932:function(S,j,t){"use strict";t.r(j),t.d(j,{GasTemperatureControl:function(){return u}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.on,h=m.gasPressure,c=m.gasTemperature,f=m.minGasTemperature,v=m.maxGasTemperature,O=m.targetGasTemperature,C=m.powerSetting,I=m.gasTemperatureClass;return(0,e.jsx)(l.p8,{width:280,height:290,children:(0,e.jsxs)(l.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Controls",buttons:(0,e.jsx)(o.$n,{icon:"power-off",selected:p,onClick:function(){return x("toggleStatus")},children:p?"On":"Off"}),children:(0,e.jsxs)(o.Wx,{justify:"space-around",children:[(0,e.jsx)(o.Wx.Item,{label:"Power Level",children:(0,e.jsxs)(o.BJ,{vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.N6,{size:1.5,minValue:0,maxValue:100,value:C,format:function(M){return""+M+"%"},onChange:function(M,A){return x("setPower",{setPower:A})}})}),(0,e.jsxs)(o.BJ.Item,{children:[C,"%"]})]})}),(0,e.jsx)(o.Wx.Item,{label:"Gas Pressure",children:(0,e.jsx)(o.zv,{value:h,format:function(M){return""+(0,a.LI)(M,2)+" kPa"}})})]})}),(0,e.jsxs)(o.wn,{title:"Gas Temperature",children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Current Temperature",children:(0,e.jsx)(o.zv,{value:c,format:function(M){return""+(0,a.LI)(M,2)+" K"}})}),(0,e.jsx)(o.Ki.Item,{label:"Target Temperature",children:(0,e.jsx)(o.zv,{value:O,format:function(M){return""+(0,a.LI)(M,2)+" K"}})})]}),(0,e.jsxs)(o.Ap,{mt:1,color:I,value:O,minValue:f,maxValue:v,fillValue:c,onChange:function(M,A){return x("temp",{temp:A})},children:[(0,e.jsx)(o.zv,{value:c,format:function(M){return(0,a.LI)(M,2)}})," ","/"," ",(0,e.jsx)(o.zv,{value:O,format:function(M){return(0,a.LI)(M,2)}})," ","K"]})]})]})})}},2741:function(S,j,t){"use strict";t.r(j),t.d(j,{GeneralAirControl:function(){return l},Sensors:function(){return E}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(y){var x=(0,a.Oc)(),m=x.act,p=x.data;return(0,e.jsx)(o.p8,{width:350,height:230,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(E,{})})})},u=function(y){return y.oxygen!==null||y.plasma!==null||y.nitrogen!==null||y.carbon_dioxide!==null},E=function(y){var x=(0,a.Oc)().data,m=x.sensors,p=x.waiting_on_signal;return(0,e.jsx)(i.wn,{title:"Sensor Data",buttons:!!p&&(0,e.jsx)(i.$n,{color:"transparent",icon:"sync",iconSpin:!0,tooltip:"Waiting on return signal..."}),children:m&&m.length>0?m.map(function(h){return(0,e.jsx)(i.wn,{title:h.long_name,children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Pressure",children:[h.pressure!==null?(0,e.jsx)(i.zv,{value:h.pressure}):"UNK"," ","kPa"]}),(0,e.jsxs)(i.Ki.Item,{label:"Temperature",children:[h.temperature!==null?(0,e.jsx)(i.zv,{value:h.temperature}):"UNK"," ","K"]}),(0,e.jsxs)(i.Ki.Item,{label:"Gas Composition",children:[!u(h.gas)&&(0,e.jsx)(i.az,{color:"average",children:"Unavailable"}),h.gas.oxygen!==null&&(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.zv,{value:h.gas.oxygen}),"% O2"]}),h.gas.nitrogen!==null&&(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.zv,{value:h.gas.nitrogen}),"% N"]}),h.gas.carbon_dioxide!==null&&(0,e.jsxs)(i.az,{color:"average",children:[(0,e.jsx)(i.zv,{value:h.gas.carbon_dioxide}),"% CO2"]}),h.gas.plasma!==null&&(0,e.jsxs)(i.az,{color:"average",children:[(0,e.jsx)(i.zv,{value:h.gas.plasma}),"% TX"]})]})]})},h.long_name)}):(0,e.jsx)(i.az,{color:"average",children:"No Sensors Detected"})})}},30178:function(S,j,t){"use strict";t.r(j),t.d(j,{GeneralAirControlFuelInjection:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=t(2741),u=function(E){var y=(0,a.Oc)(),x=y.act,m=y.data,p=m.automation,h=m.device;return(0,e.jsx)(o.p8,{width:350,height:500,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(l.Sensors,{}),(0,e.jsx)(i.wn,{title:(0,e.jsx)(i.az,{inline:!0,color:h?"":"bad",children:h?"Injector":"Injector - NOT FOUND"}),buttons:(0,e.jsxs)(e.Fragment,{children:[h&&(0,e.jsx)(i.$n,{icon:"power-off",selected:h.power,onClick:function(){return x("toggle_injector")},children:h.power?"Injecting":"On Hold"}),(0,e.jsx)(i.$n,{ml:1,icon:h?"sync":"search",onClick:function(){return x("refresh_status")},tooltip:h?"Refresh":"",children:!h&&"Search"})]}),children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Automated Fuel Injection",children:(0,e.jsx)(i.$n,{icon:"robot",selected:p,onClick:function(){return x("toggle_automation")},children:p?"Engaged":"Disengaged"})}),h&&(0,e.jsx)(i.Ki.Item,{label:"Injector",buttons:!p&&(0,e.jsx)(i.$n,{icon:"syringe",onClick:function(){return x("injection")},tooltip:"Inject (1 Cycle)"}),children:p?(0,e.jsx)(i.az,{color:"average",children:"Injector Controls Locked Out"}):(0,e.jsx)(i.zv,{value:h.volume_rate,format:function(c){return""+c+" L/s"}})})]})})]})})}},47662:function(S,j,t){"use strict";t.r(j),t.d(j,{GeneralAirControlInputOutput:function(){return u},InputPort:function(){return E},OutputPort:function(){return y}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=t(2741),u=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data;return(0,e.jsx)(o.p8,{width:350,height:420,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(l.Sensors,{}),(0,e.jsxs)(i.wn,{title:"Controls",children:[(0,e.jsx)(E,{}),(0,e.jsx)(y,{})]})]})})},E=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data,c=h.input;return(0,e.jsx)(i.wn,{title:(0,e.jsx)(i.az,{inline:!0,color:c?"":"bad",children:c?c.name:"Input - NOT DETECTED"}),buttons:(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(i.$n,{icon:"power-off",selected:c.power,onClick:function(){return p("in_toggle_injector")},children:c.power?"Injecting":"On Hold"}),(0,e.jsx)(i.$n,{ml:1,icon:c?"sync":"search",onClick:function(){return p("in_refresh_status")},tooltip:c?"Refresh":"",children:!c&&"Search"})]}),children:c?(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Flow Rate",buttons:(0,e.jsx)(i.$n,{ml:1,icon:"plus",onClick:function(){return p("in_set_flowrate",{value:c.max})},children:"Max"}),children:(0,e.jsx)(i.Ap,{value:c.volume_rate,fillValue:c.volume_rate,minValue:0,maxValue:c.max,format:function(f){return""+f+" L/s"},onChange:function(f,v){p("in_set_flowrate",{value:v})}})})}):(0,e.jsx)(i.az,{color:"bad",children:"No Input Detected"})})},y=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data,c=h.output;return(0,e.jsx)(i.wn,{title:(0,e.jsx)(i.az,{inline:!0,color:c?"":"bad",children:c?c.name:"Output - NOT DETECTED"}),buttons:(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(i.$n,{icon:"power-off",selected:c.power,onClick:function(){return p("out_toggle_power")},children:c.power?"Open":"On Hold"}),(0,e.jsx)(i.$n,{ml:1,icon:c?"sync":"search",onClick:function(){return p("out_refresh_status")},tooltip:c?"Refresh":"",children:!c&&"Search"})]}),children:c?(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Output Pressure",buttons:(0,e.jsx)(i.$n,{ml:1,icon:"plus",onClick:function(){return p("out_set_pressure",{value:c.max})},children:"Max"}),children:(0,e.jsx)(i.Ap,{value:c.pressure,fillValue:c.pressure,minValue:0,maxValue:c.max,format:function(f){return""+f+" kPa"},onChange:function(f,v){p("out_set_pressure",{value:v})}})})}):(0,e.jsx)(i.az,{color:"bad",children:"No Output Detected"})})}},80590:function(S,j,t){"use strict";t.r(j),t.d(j,{HydroelectricControl:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(41242),l=t(85242),u=function(E){var y=(0,a.Oc)(),x=y.act,m=y.data,p=m.waterheld,h=m.watermax,c=m.hydrostatus,f=m.is_open,v=m.generated;return(0,e.jsx)(l.p8,{width:350,height:300,children:(0,e.jsxs)(l.p8.Content,{children:[(0,e.jsxs)(i.wn,{title:"Stored Capacity",children:[(0,e.jsx)(i.z2,{value:p,maxValue:h}),(0,e.jsx)(i.wn,{title:"Flood Gates",children:(0,e.jsx)(i.BJ,{mt:1,align:"center",justify:"center",children:(0,e.jsx)(i.BJ.Item,{basis:"50%",children:(0,e.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:f,fontSize:1.2,icon:f?"door-open":"door-closed",onClick:function(){return x("togglegate")},children:f?"Opened":"Closed"})})})})]}),(0,e.jsxs)(i.wn,{title:"Turbines",buttons:(0,e.jsx)(i.$n,{icon:"search",tooltip:"Detect Connected Turbines",onClick:function(){return x("detect_turbines")}}),children:[(0,e.jsx)(i.az,{color:"label",fontSize:1.2,mb:1,children:c}),(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Generated Power",children:(0,e.jsx)(i.zv,{value:v,format:function(O){return(0,o.d5)(O)}})})})]})]})})}},98309:function(S,j,t){"use strict";t.r(j),t.d(j,{IDCard:function(){return E}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l={"Blackshield Commander":["user-tie","flag"],Sergeant:"flag",Corpsman:"shield-virus","Corpsman Cadet":["shield-virus","school"],"Combat Medic":"shield-virus","Blackshield Trooper":"fighter-jet","Blackshield Cadet":["fighter-jet","school"],Premier:"user-tie",Steward:["user-tie","shield-alt"],Prime:"sun",Vector:"place-of-worship",Divisor:"place-of-worship",Factorial:"place-of-worship",Monomial:"place-of-worship",Lemniscate:"place-of-worship",Tessellate:"place-of-worship",Colonist:"user",Freelancer:"user",Journalist:"newspaper",Visitor:"user","Chief Executive Officer":["user-tie","box-open"],Bartender:"cocktail",Barkeep:"glass-whiskey",Barista:"coffee",Mixologist:"cocktail",Chef:"cookie-bite","Culinary Artist":"cookie-bite",Cook:"cookie-bite","Line Chef":"cookie-bite",Gardener:"seedling",Hydroponicist:"seedling",Artist:"paint-brush",Clown:"blender-phone",Entertainer:"person-booth",Mime:"volume-mute",Janitor:"soap",Custodian:"soap","Sanitation Technician":"soap","Cargo Technician":"box-open","Cargo Specialist":"box-open","Lonestar Sales Technician":"box-open","Lonestar Retail Assistant":["box-open","school"],"Lonestar Miner":"hard-hat","Lonestar Drill Technician":"hard-hat","Junior Lonestar Miner":"hard-hat","Guild Master":["user-tie","toolbox"],"Guild Adept":"toolbox","Guild Trainee":["toolbox","school"],"Guild Electrician":"bolt","Guild Mechanical Engineer":"toolbox","Chief Biolab Overseer":["user-tie","user-md"],"Soteria Doctor":"user-md","Soteria Medical Student":["user-md","school"],"Soteria Nurse":"user-nurse","Soteria Emergency Physician":["user-md","hospital"],"Soteria Surgeon":"user-md","Soteria Lifeline Technician":"ambulance","Soteria Psychiatrist":["user-md","brain"],"Soteria Psychologist":["user-md","brain"],"Soteria Empath":["user-md","brain"],"Lodge Hunt Master":["user-tie","campground"],"Lodge Hunter":"campground","Lodge Herbalist":["campground","user-md"],Outsider:"campground",Foreman:["user-tie","truck-pickup"],Fence:["truck-pickup","money-bill-wave"],Salvager:["truck-pickup","user-md"],Sawbones:["truck-pickup","user-md"],"Rookie Salvager":["truck-pickup","user-md","school"],Prospector:"truck-pickup","Rookie Prospector":["truck-pickup","school"],"Hired Muscle":"truck-pickup","Chief Research Overseer":"user-graduate","Soteria Scientist":"flask","Soteria Research Student":["flask","school"],"Soteria Xenobiologist":"meteor","Soteria Xenoarcheologist":"meteor","Soteria Xenobotanist":["biohazard","seedling"],"Soteria Research Fabricator":["flask","hammer"],"Soteria Geneticist":"dna","Soteria Roboticist":"robot","Soteria Roboticist Trainee":["robot","school"],"Soteria Cyberneticist":"robot","Soteria Mechanist":"robot","Soteria Biomechanical Engineer":"robot","Warrant Officer":["user-tie","user-shield"],"Supply Specialist":["hat-cowboy","user-shield"],Ranger:["user-shield","search"],"Junior Ranger":["user-shield","search","school"],Detective:["user-shield","search"],"Forensics Specialist":["user-shield","search"],"Marshal Officer":"user-shield","Junior Marshal Officer":["user-shield","school"],"Marshal Civil Servant":"user-shield"},u=function(y){var x=y.rank,m=l[x];return typeof m=="string"?(0,e.jsx)(i.In,{inline:!0,color:"label",name:m,size:2}):Array.isArray(m)?m.map(function(p){return(0,e.jsx)(i.In,{inline:!0,color:"label",name:p,size:2,ml:.5,mr:.5},p)}):(0,e.jsx)(i.In,{inline:!0,color:"label",name:"user",size:2})},E=function(y){var x=(0,a.Oc)().data,m=x.registered_name,p=x.sex,h=x.age,c=x.assignment,f=x.fingerprint_hash,v=x.blood_type,O=x.dna_hash,C=[{name:"Sex",val:p},{name:"Age",val:h},{name:"Blood Type",val:v},{name:"Fingerprint",val:f},{name:"DNA Hash",val:O}];return(0,e.jsx)(o.p8,{width:470,height:230,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsxs)(i.wn,{fill:!0,children:[(0,e.jsxs)(i.so,{children:[(0,e.jsx)(i.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(i.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:(0,e.jsx)(i._V,{src:"front.png",width:20,ml:-11,mt:1.2})})}),(0,e.jsx)(i.so.Item,{basis:0,grow:1,children:(0,e.jsx)(i.Ki,{children:C.map(function(I){return(0,e.jsx)(i.Ki.Item,{label:I.name,children:I.val},I.name)})})})]}),(0,e.jsxs)(i.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.az,{textAlign:"center",children:m})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.az,{textAlign:"center",children:(0,e.jsx)(u,{rank:c})})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.az,{textAlign:"center",children:c})})]})]})})})}},38860:function(S,j,t){"use strict";t.r(j),t.d(j,{Attachments:function(){return y},Firemodes:function(){return x},ItemStats:function(){return u},StatDisplay:function(){return E}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l;(function(m){m.AnimatedNumber="AnimatedNumber",m.ProgressBar="ProgressBar",m.String="String"})(l||(l={}));var u=function(m){var p=(0,a.Oc)(),h=p.act,c=p.data,f=c.stats,v=c.attachments,O=c.max_upgrades,C=c.firemodes;return(0,e.jsx)(o.p8,{width:650,height:550,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[C&&(0,e.jsx)(x,{firemodes:C}),Object.entries(f).filter(function(I){var M=I[0],A=I[1];return Array.isArray(A)&&A.length!==0}).map(function(I){var M=I[0],A=I[1];return(0,e.jsx)(i.wn,{title:M,children:(0,e.jsx)(i.Ki,{children:A.map(function(T){return(0,e.jsx)(E,{stats:T},T.name)})})},M)}),v&&(0,e.jsx)(y,{attachments:v,max_upgrades:O})]})})},E=function(m){var p=m.stats,h=p.type,c=p.name,f=p.value,v=p.unit,O;switch(h){case"AnimatedNumber":if(typeof f!="number"){O=(0,e.jsx)(i.IC,{danger:!0,children:"Invalid Data"});break}O=(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.zv,{value:f}),v]});break;case"ProgressBar":{var C=p.min,I=p.max,M=p.ranges,A=p.color;if(I===void 0||typeof f!="number"){O=(0,e.jsx)(i.IC,{danger:!0,children:"Invalid Data"});break}var T;v?T=f+""+v:T=f+" / "+I,O=(0,e.jsx)(i.z2,{value:f,minValue:C,maxValue:I,ranges:M,color:A,children:T});break}case"String":O=f;break}return(0,e.jsx)(i.Ki.Item,{label:c,children:O})},y=function(m){var p=m.attachments,h=m.max_upgrades;return p===void 0?(0,e.jsx)(i.wn,{title:"Attachments",children:(0,e.jsx)(i.IC,{danger:!0,children:"Attachment Data Invalid"})}):(0,e.jsx)(i.wn,{title:"Attachments ("+p.length+" / "+h+")",children:(0,e.jsxs)(i.BJ,{vertical:!0,children:[p.length===0&&"None attached.",p.map(function(c){return(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.BJ,{align:"center",children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i._V,{style:{border:"1px solid #3e6189",borderRadius:"5%"},src:c.icon})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:c.name})]})},c.name)})]})})},x=function(m){var p=(0,a.Oc)().act,h=m.firemodes;if(h.modes.length!==0)return(0,e.jsx)(i.wn,{title:"Firemodes: "+h.modes.length,children:h.modes.map(function(c){return(0,e.jsx)(i.az,{as:"span",children:(0,e.jsxs)(i.wn,{p:1,title:c.name,buttons:(0,e.jsx)(i.$n,{selected:c.index===h.sel_mode,onClick:function(){return p("firemode",{index:c.index})},children:"Select"}),children:[(0,e.jsx)(i.az,{pb:2,children:c.desc}),(0,e.jsxs)(i.BJ,{children:[(0,e.jsx)(i.BJ.Item,{grow:!0,pr:1,children:(0,e.jsx)(i.wn,{children:(0,e.jsx)(i.Ki,{children:c.stats.map(function(f){return(0,e.jsx)(E,{stats:f},f.name)})})})}),c.projectile&&(0,e.jsx)(i.BJ.Item,{grow:!0,pl:1,children:(0,e.jsx)(i.wn,{children:(0,e.jsx)(i.Ki,{children:c.projectile.map(function(f){return(0,e.jsx)(E,{stats:f},f.name)})})})})]}),(0,e.jsx)(i.cG,{})]},c.index)},c.index)})})}},1086:function(S,j,t){"use strict";t.r(j),t.d(j,{Evacuation:function(){return y},LateChoices:function(){return E}});var e=t(62161),a=t(7402),i=t(7081),o=t(34995),l=t(85242),u=t(40289),E=function(x){var m=(0,i.Oc)(),p=m.act,h=m.data,c=h.name,f=h.duration,v=h.evac,O=h.jobs,C=(0,a.sb)(O.flatMap(function(M){return M.departments})).sort(function(M,A){return Object.keys(u.departmentData).indexOf(M)-Object.keys(u.departmentData).indexOf(A)}),I=O.filter(function(M){return M.departments.length===0});return(0,e.jsx)(l.p8,{width:400,height:640,children:(0,e.jsx)(l.p8.Content,{scrollable:!0,children:(0,e.jsxs)(o.wn,{children:[(0,e.jsxs)(o.az,{fontSize:1.4,bold:!0,textAlign:"center",children:["Welcome, ",c]}),(0,e.jsxs)(o.az,{fontSize:1.2,textAlign:"center",children:["Round Duration: ",f]}),(0,e.jsx)(o.cG,{}),(0,e.jsx)(y,{data:v}),(0,e.jsx)(o.az,{children:"Choose one of the following open/valid positions."}),C.map(function(M){var A=O.filter(function(T){return T.departments.indexOf(M)!==-1});return(0,e.jsx)(o.wn,{className:"CrewManifest--"+M,title:u.departmentData[M].name,children:A.map(function(T){return(0,e.jsx)(o.$n,{fluid:!0,onClick:function(){return p("join",{job:T.title})},children:(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{grow:!0,children:T.title}),(0,e.jsxs)(o.BJ.Item,{children:["(",T.current_positions,") (Active: ",T.active,")"]})]})},T.title)})},M)}),I.length!==0&&(0,e.jsx)(o.wn,{title:"Misc",children:I.map(function(M){return(0,e.jsx)(o.$n,{fluid:!0,onClick:function(){return p("join",{job:M.title})},children:(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{grow:!0,children:M.title}),(0,e.jsxs)(o.BJ.Item,{children:["(",M.current_positions,") (Active: ",M.active,")"]})]})},M.title)})})]})})})},y=function(x){var m=x.data;switch(m){case"None":return"";case"CrewTransfer":return(0,e.jsx)(o.IC,{danger:!0,children:"The vessel is currently undergoing crew transfer procedures."});case"Emergency":return(0,e.jsx)(o.IC,{danger:!0,children:"The vessel is currently undergoing evacuation procedures."});case"Gone":return(0,e.jsx)(o.IC,{danger:!0,children:"The vessel has been evacuated."})}}},48562:function(S,j,t){"use strict";t.r(j),t.d(j,{AutolatheItem:function(){return p},AutolatheItemDetails:function(){return m},AutolatheQueue:function(){return h},LoadedMaterials:function(){return x},Matterforge:function(){return f}});var e=t(62161),a=t(28277),i=t(4089),o=t(88716),l=t(7081),u=t(34995),E=t(85242),y=t(44390),x=function(v){var O=(0,l.Oc)().act,C=v.materials,I=v.mat_capacity;return(0,e.jsx)(u.wn,{fill:!0,scrollable:!0,height:C.length<=1?5:18,title:"Loaded Materials",buttons:(0,e.jsx)(u.$n,{icon:"arrow-up",tooltip:"Load Materials From Hand",onClick:function(){return O("insert_material")}}),children:C.length>0&&(0,e.jsx)(u.Ki,{children:C.map(function(M){return(0,e.jsxs)(u.Ki.Item,{buttons:M.ejectable&&(0,e.jsx)(u.$n,{icon:"eject",onClick:function(){return O("eject_material",{id:M.id})}}),label:(0,o.Sn)(M.name),children:[M.amount," / ",I]},M.id)})})||(0,e.jsx)(u.az,{children:"None loaded."})})},m=function(v){var O=v.design,C=v.mat_efficiency;return(0,e.jsxs)(e.Fragment,{children:[O.materials?(0,e.jsx)(u.wn,{title:"Materials",children:O.materials.map(function(I){return(0,e.jsx)(u.Ki.Item,{label:I.name,children:(0,i.LI)(I.req*C,2)},I.id)})}):null,O.chemicals?(0,e.jsx)(u.wn,{title:"Chemicals",children:O.chemicals.map(function(I){return(0,e.jsx)(u.Ki.Item,{label:I.name,children:I.req},I.id)})}):null,(0,e.jsx)(u.wn,{title:"Other information",children:(0,e.jsxs)(u.Ki,{children:[(0,e.jsx)(u.Ki.Item,{label:"Build time",children:O.time}),O.point_cost?(0,e.jsx)(u.Ki.Item,{label:"Point cost",children:O.point_cost}):null]})})]})},p=function(v){var O=(0,l.Oc)(),C=O.act,I=O.config,M=v.design,A=v.mat_efficiency,T=(0,a.useState)(!1),b=T[0],B=T[1];return(0,e.jsx)(u.az,{style:{borderBottom:"2px solid #444",padding:"4px"},children:(0,e.jsxs)(u.BJ,{vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{align:"center",children:[!I.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.BJ,{width:"32px",height:"32px",align:"center",justify:"center",backgroundColor:"black",overflow:"hidden",style:{border:"1px solid #3e6189 "},children:(0,e.jsx)(u.BJ.Item,{className:M.icon})})}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:M.name}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{icon:"print",tooltip:"Print",onClick:function(){C("add_to_queue",{id:M.id,filename:M.filename,several:!1})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{icon:"th",tooltip:"Print Several",onClick:function(){C("add_to_queue",{id:M.id,filename:M.filename,several:!0})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{tooltip:"Show Details",icon:b?"arrow-up":"arrow-down",onClick:function(){return B(!b)}})})]})}),b&&(0,e.jsx)(u.BJ.Item,{backgroundColor:"black",style:{padding:"10px"},children:(0,e.jsx)(m,{design:M,mat_efficiency:A})})]})})},h=function(v){var O=(0,l.Oc)(),C=O.act,I=O.config,M=v.error,A=v.current,T=v.progress,b=v.queue,B=v.queue_max,R=v.paused,N=v.mat_efficiency;return(0,e.jsxs)(u.BJ,{vertical:!0,height:"100%",children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.wn,{title:"Current Item",children:A?(0,e.jsxs)(u.BJ,{vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{align:"center",children:[!I.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.BJ,{width:"32px",height:"32px",align:"center",justify:"center",backgroundColor:"black",overflow:"hidden",style:{border:"1px solid #3e6189 "},children:(0,e.jsx)(u.BJ.Item,{className:A.icon})})}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsxs)(u.BJ,{vertical:!0,children:[(0,e.jsxs)(u.BJ.Item,{children:["Printing ",A.name]}),M?(0,e.jsx)(u.BJ.Item,{textColor:"bad",children:M}):(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.z2,{value:T/A.time,color:"good"})})]})}),(0,e.jsxs)(u.BJ.Item,{children:[(0,e.jsx)(u.$n,{icon:R?"play":"pause",onClick:function(){C("pause")}}),(0,e.jsx)(u.$n,{icon:"times",onClick:function(){C("abort_print")}})]})]})}),(0,e.jsx)(u.BJ.Item,{backgroundColor:"black",style:{padding:"10px"},children:(0,e.jsx)(m,{design:A,mat_efficiency:N})})]}):(0,e.jsx)(e.Fragment,{children:"Nothing printing."})})}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.wn,{fill:!0,title:"Queue",buttons:(0,e.jsxs)(u.BJ,{align:"center",children:[(0,e.jsxs)(u.BJ.Item,{children:["Queue: ",b.length," / ",B]}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{color:"bad",icon:"times",tooltip:"Clear Queue",onClick:function(){C("clear_queue")}})})]}),scrollable:!0,children:(0,e.jsx)(u.BJ,{vertical:!0,children:b.map(function(W){return(0,e.jsx)(u.BJ.Item,{style:{borderBottom:"2px solid #444"},children:(0,e.jsxs)(u.BJ,{align:"center",children:[(0,e.jsx)(u.BJ.Item,{grow:!0,color:c(W.error),children:W.name}),W.ind>1&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{icon:"arrow-up",onClick:function(){C("move_up_queue",{index:W.ind})}})}),W.ind=2?"bad":v===1?"average":"good"},f=function(v){var O=(0,l.Oc)(),C=O.act,I=O.data,M=I.error,A=I.designs,T=I.current,b=I.progress,B=I.queue,R=I.queue_max,N=I.paused,W=I.mat_efficiency,H=(0,l.QY)("search_text",""),q=H[0],V=H[1];return(0,e.jsx)(E.p8,{width:720,height:700,children:(0,e.jsxs)(E.p8.Content,{children:[(0,e.jsx)(x,{mat_capacity:I.mat_capacity,materials:I.materials}),(0,e.jsxs)(u.BJ,{height:"85%",children:[(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsxs)(u.wn,{title:"Recipes",fill:!0,children:[(0,e.jsx)(u.az,{style:{paddingBottom:"8px"},children:(0,e.jsx)(y.SearchBar,{searchText:q,onSearchTextChanged:V,hint:"Search all designs..."})}),(0,e.jsx)(u.wn,{style:{paddingRight:"4px",paddingBottom:"30px"},fill:!0,scrollable:!0,children:(0,e.jsx)(u.BJ,{vertical:!0,children:(0,e.jsx)(u.wj,{children:q.length>0?A.filter(function(Y){return Y.name.toLowerCase().includes(q)}).map(function(Y){return(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(p,{design:Y,mat_efficiency:W})},Y.id)}):A.map(function(Y){return(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(p,{design:Y,mat_efficiency:W})},Y.id)})})})})]})}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{current:T,error:M,paused:N,progress:b,queue:B,queue_max:R,mat_efficiency:W})})]})]})})}},4418:function(S,j,t){"use strict";t.r(j),t.d(j,{NoticeBoard:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.allowed,p=x.items,h=p===void 0?[]:p;return(0,e.jsx)(o.p8,{width:425,height:176,children:(0,e.jsx)(o.p8.Content,{backgroundColor:"#704D25",children:h.length?h.map(function(c){return(0,e.jsxs)(i.BJ,{color:"black",backgroundColor:"white",style:{padding:"2px 2px 0 2px"},children:[(0,e.jsx)(i.BJ.Item,{align:"center",grow:!0,children:(0,e.jsx)(i.az,{align:"center",children:c.name})}),(0,e.jsxs)(i.BJ.Item,{children:[(0,e.jsx)(i.$n,{icon:"eye",onClick:function(){return y("examine",{ref:c.ref})}}),(0,e.jsx)(i.$n,{icon:"eject",disabled:!m,onClick:function(){return y("remove",{ref:c.ref})}})]})]},c.ref)}):(0,e.jsx)(i.wn,{children:(0,e.jsx)(i.az,{color:"white",align:"center",children:"The notice board is empty!"})})})})}},65376:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosCatalog:function(){return o}});var e=t(62161),a=t(85242),i=t(81979),o=function(l){return(0,e.jsx)(a.Zm,{width:640,height:700,children:(0,e.jsx)(a.Zm.Content,{children:(0,e.jsx)(i.CatalogContent,{})})})}},244:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosComputerConfig:function(){return E}});var e=t(62161),a=t(88716),i=t(7081),o=t(34995),l=t(41242),u=t(85242),E=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.disk_size,c=p.disk_used,f=p.power_usage,v=p.battery_exists,O=p.battery_rating,C=p.battery_percent,I=p.available_themes,M=p.PC_device_theme,A=p.print_language,T=p.hardware,b=[].concat(["Default"],I);return(0,e.jsx)(u.Zm,{width:700,height:700,children:(0,e.jsxs)(u.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(o.wn,{title:"Power Supply",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Battery Status",children:v?"Active":"Not Available"}),v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Ki.Item,{label:"Battery Rating",children:O}),(0,e.jsx)(o.Ki.Item,{label:"Battery Charge",children:(0,e.jsx)(o.z2,{ranges:{bad:[0,25],average:[25,50],good:[50,Number.POSITIVE_INFINITY]},value:C,maxValue:100})}),(0,e.jsx)(o.Ki.Item,{label:"Power Usage",children:(0,l.d5)(f)})]})]})}),(0,e.jsx)(o.wn,{title:"File System",children:(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Used Capacity",children:(0,e.jsxs)(o.z2,{ranges:{good:[0,h*.75],average:[h*.75,h*.9],bad:[h*.9,Number.POSITIVE_INFINITY]},value:c,maxValue:h,children:[c,"/",h," GQ"]})})})}),(0,e.jsx)(o.wn,{title:"Customization",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Theme",verticalAlign:"middle",children:(0,e.jsx)(o.ms,{width:"100%",options:b,onSelected:function(B){B==="Default"?m("set_device_theme",{theme:""}):m("set_device_theme",{theme:B})},selected:M||"Default"})}),!!A&&(0,e.jsx)(o.Ki.Item,{label:"Printer Language",children:(0,e.jsx)(o.$n,{onClick:function(){return m("edit_language")},children:A})})]})}),(0,e.jsx)(o.wn,{title:"Computer Components",children:T.map(function(B){return(0,e.jsxs)(o.wn,{title:(0,a.Sn)(B.name),buttons:!B.critical&&(0,e.jsx)(o.$n,{icon:"power-off",selected:B.enabled,tooltip:B.enabled?"Turn Off":"Turn On",onClick:function(){return m("PC_toggle_component",{component:B.name})},children:B.enabled?"On":"Off"}),children:[(0,e.jsx)(o.az,{italic:!0,mb:1,children:B.desc}),(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Power Usage",children:(0,l.d5)(B.powerusage)})})]},B.name)})}),(0,e.jsx)(o.wn,{children:"NTOS v2.0.4b Copyright NanoTrasen 2557 - 2559"})]})})}},51729:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosCrewManifest:function(){return o}});var e=t(62161),a=t(85242),i=t(58044),o=function(l){return(0,e.jsx)(a.Zm,{width:450,height:700,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:(0,e.jsx)(i.CrewManifestContent,{})})})}},91644:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosDownloader:function(){return u},SoftwareRepository:function(){return E}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.error,c=p.downloaded_file,f=p.download_paused,v=p.disk_size,O=p.disk_used,C=p.downloads_queue,I=p.hackedavailable,M=p.hacked_programs,A=p.downloadable_programs;return(0,e.jsx)(l.Zm,{width:600,height:700,children:(0,e.jsxs)(l.Zm.Content,{scrollable:!0,children:[h?(0,e.jsxs)(o.wn,{title:"ERROR",color:"bad",children:[(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Information",children:h})}),(0,e.jsx)(o.$n,{icon:"power-off",onClick:function(){return m("reset_error")},children:"Reset Program"})]}):(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(o.wn,{title:"Download In Progress",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"File Name",children:c.downloadname}),(0,e.jsx)(o.Ki.Item,{label:"File Description",children:c.downloaddesc}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Rate",children:(0,e.jsx)(o.zv,{value:c.downloadspeed,format:function(T){return""+(0,a.LI)(T,2)+" GQ/s"}})}),(0,e.jsx)(o.Ki.Item,{label:"Download Progress",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:f?"play":"pause",tooltip:f?"Resume Download":"Pause Download",onClick:function(){return m("download_pause")}}),(0,e.jsx)(o.$n,{icon:"stop",tooltip:"Stop Download",onClick:function(){return m("download_stop")}})]}),children:(0,e.jsxs)(o.z2,{value:c.downloadcompletion,maxValue:c.downloadsize,children:[(0,e.jsx)(o.zv,{value:c.downloadcompletion}),"/",(0,e.jsx)(o.zv,{value:c.downloadsize}),"GQ"]})})]})}),C.length>0&&(0,e.jsx)(o.wn,{title:"Download Queue",children:(0,e.jsx)(o.BJ,{vertical:!0,children:C.map(function(T){return(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsx)(o.$n,{inline:!0,icon:"times",pr:1,onClick:function(){return m("remove_queued",{file:T})}})," ",T]},T)})})}),(0,e.jsx)(E,{title:"Primary software repository",show_disk:!0,downloadable_programs:A}),M.length>0&&(0,e.jsx)(E,{title:"*UNKNOWN* software repository",evil:!0,downloadable_programs:M})]}),(0,e.jsx)(o.wn,{children:"NTOS v2.0.4b Copyright NanoTrasen 2557 - 2559"})]})})},E=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.disk_size,c=p.disk_used,f=p.downloaded_file,v=y.downloadable_programs,O=y.title,C=y.show_disk,I=y.evil;return(0,e.jsxs)(o.wn,{title:O,className:I?"theme-malfunction":"",children:[C&&(0,e.jsxs)(o.z2,{ranges:{good:[0,h*.75],average:[h*.75,h*.9],bad:[h*.9,Number.POSITIVE_INFINITY]},value:c,maxValue:h,children:[c,"/",h," GQ"]}),(0,e.jsxs)(o.BJ,{pt:1,vertical:!0,zebra:!0,children:[(0,e.jsx)(o.BJ.Item,{pl:1,pr:1,children:(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{basis:"5%"}),(0,e.jsx)(o.BJ.Item,{basis:"20%",children:"Name"}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:"Description"}),(0,e.jsx)(o.BJ.Item,{shrink:!0,children:"Size"})]})}),v.map(function(M){return(0,e.jsx)(o.BJ.Item,{p:1,children:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{shrink:!0,children:(0,e.jsx)(o.$n,{disabled:M.in_queue||M.filename===(f==null?void 0:f.downloadname),icon:"download",tooltipPosition:"left",tooltip:"Download",onClick:function(){return m("download_file",{file:M.filename})}})}),(0,e.jsx)(o.BJ.Item,{basis:"20%",children:M.filedesc}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:M.fileinfo}),(0,e.jsxs)(o.BJ.Item,{shrink:!0,children:[M.size,"GQ"]})]})},M.filename)})]})]})}},91988:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosEmailClient:function(){return l}});var e=t(62161),a=t(7081),i=t(49347),o=t(75083),l=function(u){var E=(0,a.Oc)().data;return(0,e.jsx)(i.Z,{title:E.account_data&&"Email Client - "+E.account_data.login||"",width:800,height:500,children:(0,e.jsx)(i.Z.Content,{children:(0,e.jsx)(o.EmailClientContent,{})})})}},55070:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosFileManager:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data,c=h.error,f=h.open_file,v=h.internal_disk,O=h.portable_disk,C=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{disk:v,title:"Available Files (Local)"}),!!O&&(0,e.jsx)(u,{disk:O,title:"Available Files ("+(O.disk_name||"Portable Device")+")",portable:!0})]});return c?C=(0,e.jsxs)(i.wn,{textColor:"bad",title:"An error has occured",children:[(0,e.jsxs)(i.az,{children:["Additional information: ",c]}),(0,e.jsx)(i.az,{italic:!0,children:"Please try again. If the problem persists contact your system administrator for assistance."}),(0,e.jsx)(i.$n,{mt:1,fluid:!0,onClick:function(){return p("close_file")},children:"Back To Menu"})]}):f&&(C=(0,e.jsx)(y,{file:f})),(0,e.jsx)(o.Zm,{width:600,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:C})})},u=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data,c=x.disk,f=x.title,v=x.portable,O=[];return!c.read_only&&!v&&O.push((0,e.jsx)(i.$n,{icon:"file-upload",ml:1,onClick:function(){return p("new_text_file")},children:"New File"})),v&&O.push((0,e.jsx)(i.$n,{icon:"eject",tooltip:"Eject Disk",onClick:function(){return p("PC_eject_disk")},children:"Eject"})),(0,e.jsxs)(i.wn,{title:f,buttons:O.map(function(C){return C}),children:[(0,e.jsxs)(i.z2,{ranges:{good:[0,c.max_capacity*.75],average:[c.max_capacity*.75,c.max_capacity*.9],bad:[c.max_capacity*.9,Number.POSITIVE_INFINITY]},color:c.read_only?"bad":"",value:c.used_capacity,maxValue:c.max_capacity,children:[c.used_capacity,"/",c.max_capacity," GQ"," ",c.read_only?"(READ ONLY)":""]}),(0,e.jsxs)(i.XI,{mt:1,children:[(0,e.jsxs)(i.XI.Row,{header:!0,children:[(0,e.jsx)(i.XI.Cell,{children:"Name"}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",collapsing:!0,children:"Type"}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",collapsing:!0,children:"Size"}),(0,e.jsx)(i.XI.Cell,{textAlign:"right",collapsing:!0,children:"Operations"})]}),c.files.map(function(C){return(0,e.jsx)(E,{file:C,portable:v,disk:c},C.filename)})]})]})},E=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data,c=x.file,f=x.portable,v=x.disk,O=c.filename==="AUTORUN"&&c.filetype==="DAT",C=v.read_only||c.undeletable;return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsxs)(i.XI.Cell,{color:O?"gray":"",verticalAlign:"middle",children:[c.filename," ",!!O&&(0,e.jsx)(i.az,{inline:!0,color:"bad",children:"[System File]"})]}),(0,e.jsx)(i.XI.Cell,{color:O?"gray":"",textAlign:"center",verticalAlign:"middle",children:c.filetype}),(0,e.jsxs)(i.XI.Cell,{color:O?"gray":"",textAlign:"center",verticalAlign:"middle",children:[c.size,"GQ"]}),(0,e.jsx)(i.XI.Cell,{textAlign:"right",verticalAlign:"middle",ml:1,pb:.5,children:(0,e.jsxs)(i.BJ,{justify:"flex-end",children:[!f&&(0,e.jsxs)(e.Fragment,{children:[c.filetype==="PRG"&&(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n.Checkbox,{checked:c.filename===v.autorun,tooltip:"Autorun",tooltipPosition:"left",onClick:function(){return p("PC_setautorun",{program:c.filename})},children:"AR"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"book-open",tooltip:"View",tooltipPosition:"left",onClick:function(){return p("set_open_file",{file:c.filename})}})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"edit",tooltip:C?"READ ONLY":"Rename",tooltipPosition:"left",disabled:C,onClick:function(){return p("rename_file",{file:c.filename})}})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"copy",tooltip:C?"READ ONLY":c.clone_able?"Clone":"CLONING DISABLED",tooltipPosition:"left",disabled:!c.clone_able||C,onClick:function(){return p("clone_file",{file:c.filename})}})})]}),!!h.portable_disk&&(f?!h.internal_disk.read_only:!h.portable_disk.read_only)&&(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:!c.clone_able||c.undeletable,icon:"copy-o",tooltip:c.undeletable?"READ ONLY":c.clone_able?"Copy to "+(f?"Hard Drive":"Portable Drive"):"CLONING DISABLED",onClick:function(){return p(f?"copy_from_usb":"copy_to_usb",{file:c.filename})}})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{color:"red",icon:"trash-alt",tooltip:C?"READ ONLY":"Delete",tooltipPosition:"left",disabled:C,onClick:function(){return p("delete_file",{file:c.filename,portable:f})}})})]})})]})},y=function(x){var m=(0,a.Oc)().act,p=x.file;return(0,e.jsx)(i.wn,{fill:!0,title:"Viewing file "+p.filename,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"edit",tooltip:"Edit",onClick:function(){return m("edit_file")}}),(0,e.jsx)(i.$n,{icon:"print",tooltip:"Print",onClick:function(){return m("print_file")}}),(0,e.jsx)(i.$n,{icon:"window-close-o",tooltip:"Close",onClick:function(){return m("close_file")}})]}),children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:p.filedata}})})}},63822:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosMain:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l={},u=function(y){var x=(0,a.Oc)(),m=x.act,p=x.data,h=p.PC_device_theme,c=p.hard_drive,f=p.portable_drive;return(0,e.jsx)(o.Zm,{title:h==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",width:400,height:500,resizable:!0,children:(0,e.jsxs)(o.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(E,{drive:c}),f&&(0,e.jsx)(E,{drive:f,removable:!0})]})})},E=function(y){var x=(0,a.Oc)().act,m=y.drive,p=y.removable,h=m.name||(p?"Data Disk":"Programs");return(0,e.jsx)(i.wn,{title:h,buttons:p&&(0,e.jsx)(i.$n,{icon:"eject",tooltip:"Eject Disk",onClick:function(){return x("PC_eject_disk")}}),children:(0,e.jsx)(i.XI,{children:m.programs.map(function(c){return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsx)(i.XI.Cell,{pb:.5,children:(0,e.jsx)(i.$n,{fluid:!0,color:"dark-grey",icon:c.icon||l[c.name]||"window-maximize-o",content:c.desc,onClick:function(){return x("PC_runprogram",{program:c.name,disk:m.ref})}})}),(0,e.jsx)(i.XI.Cell,{collapsing:!0,width:"18px",children:!!c.running&&(0,e.jsx)(i.$n,{color:"dark-grey",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return x("PC_killprogram",{program:c.name,disk:m.ref})}})})]},c.name)})})})}},32887:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosRcon:function(){return y}});var e=t(62161),a=t(7402),i=t(4089),o=t(7081),l=t(34995),u=t(41242),E=t(85242),y=function(m){var p=(0,o.Oc)(),h=p.act,c=p.data,f=c.smeses,v=c.breakers,O=(0,a.Ul)(f,function(C){return C.RCON_tag});return(0,e.jsx)(E.Zm,{width:660,height:600,children:(0,e.jsxs)(E.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(l.wn,{title:"Detected SMES Units",children:(0,e.jsx)(l.Ki,{children:O.map(function(C){return(0,e.jsx)(x,{smes:C},C.RCON_tag)})})}),(0,e.jsx)(l.wn,{title:"Detected Breakers",children:(0,e.jsx)(l.Ki,{children:v.map(function(C){return(0,e.jsxs)(l.Ki.Item,{label:C.RCON_tag,children:["[",(0,e.jsx)(l.az,{inline:!0,color:C.enabled?"good":"bad",children:C.enabled?"ENABLED":"DISABLED"}),"]"," ",(0,e.jsx)(l.$n,{icon:"power-off",tooltip:C.enabled?"Turn Off?":"Turn On?",onClick:function(){return h("toggle_breaker",{breaker:C.RCON_tag})}})]},C.RCON_tag)})})})]})})},x=function(m){var p=(0,o.Oc)().act,h=m.smes;return(0,e.jsxs)(l.Ki.Item,{label:h.RCON_tag,children:[(0,e.jsx)(l.az,{mb:1,children:(0,e.jsx)(l.z2,{value:h.charge,minValue:0,maxValue:100,ranges:{good:[50,Number.POSITIVE_INFINITY],average:[25,50],bad:[Number.NEGATIVE_INFINITY,25]}})}),(0,e.jsx)(l.az,{children:(0,e.jsxs)(l.Ki,{children:[(0,e.jsx)(l.Ki.Item,{label:"Input",buttons:(0,e.jsx)(l.$n,{icon:"power-off",selected:h.input_set,tooltip:h.input_set?"AUTO":"OFF",onClick:function(){return p("smes_in_toggle",{smes:h.RCON_tag})}}),children:(0,e.jsxs)(l.Ap,{value:h.input_val/1e3,minValue:0,maxValue:h.input_max/1e3,fillValue:h.input_load/1e3,step:1,format:function(c){return(0,u.d5)((0,i.LI)(c*1e3,2))},onChange:function(c,f){return p("smes_in_set",{smes:h.RCON_tag,value:f*1e3})},children:[(0,u.d5)((0,i.LI)(h.input_load,2))," Load /"," ",(0,u.d5)((0,i.LI)(h.input_val,2))," Set"]})}),(0,e.jsx)(l.Ki.Item,{label:"Output",buttons:(0,e.jsx)(l.$n,{icon:"power-off",selected:h.output_set,tooltip:h.output_set?"ONLINE":"OFFLINE",onClick:function(){return p("smes_out_toggle",{smes:h.RCON_tag})}}),children:(0,e.jsxs)(l.Ap,{value:h.output_val/1e3,minValue:0,maxValue:h.output_max/1e3,fillValue:h.output_load/1e3,step:1,format:function(c){return(0,u.d5)((0,i.LI)(c*1e3,2))},onChange:function(c,f){return p("smes_out_set",{smes:h.RCON_tag,value:f*1e3})},children:[(0,u.d5)((0,i.LI)(h.output_load,2))," Load /"," ",(0,u.d5)((0,i.LI)(h.output_val,2))," Set"]})})]})})]})}},41285:function(S,j,t){"use strict";t.r(j),t.d(j,{FileBrowser:function(){return E},NtosWord:function(){return u},Word:function(){return y}});var e=t(62161),a=t(28277),i=t(7081),o=t(34995),l=t(85242),u=function(x){var m=(0,i.Oc)(),p=m.act,h=m.data,c=h.error,f=(0,a.useState)(!1),v=f[0],O=f[1],C=(0,i.QY)("edited-flag",!1),I=C[0],M=C[1],A={setShowFileBrowser:O,edited:I,setEdited:M},T=(0,e.jsx)(y,{uiControl:A});return c?T=(0,e.jsx)(o.wn,{title:"Notice",buttons:(0,e.jsx)(o.$n,{icon:"times",onClick:function(){return p("PRG_reseterror")}}),children:c}):v&&(T=(0,e.jsx)(E,{uiControl:A})),(0,e.jsx)(l.Zm,{width:550,height:700,children:(0,e.jsx)(l.Zm.Content,{children:T})})},E=function(x){var m=(0,i.Oc)(),p=m.act,h=m.data,c=x.uiControl,f=c.setShowFileBrowser,v=c.edited,O=c.setEdited,C=h.open_file,I=h.files,M=h.usbfiles;return(0,e.jsx)(o.wn,{title:"File Browser"+(v?" (Unsaved Changes In Editor)":""),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"file-upload",tooltip:v?"New File (Unsaved Changes)":"New File",color:v?"bad":"",onClick:function(){p("PRG_newfile"),O(!0)}}),(0,e.jsx)(o.$n,{icon:"arrow-left",tooltip:"Return to editor",onClick:function(){return f(!1)}})]}),children:(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Name"}),(0,e.jsx)(o.XI.Cell,{collapsing:!0,textAlign:"right",children:"Size (GQ)"}),(0,e.jsx)(o.XI.Cell,{collapsing:!0})]}),I.map(function(A){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{color:C===A.name?"good":"",children:A.name}),(0,e.jsx)(o.XI.Cell,{color:C===A.name?"good":"",textAlign:"right",collapsing:!0,children:A.size}),(0,e.jsx)(o.XI.Cell,{ml:1,collapsing:!0,children:(0,e.jsx)(o.$n,{icon:"pen",color:v?"bad":"",tooltip:v?"(Unsaved Changes)":"",selected:C===A.name,onClick:function(){p("PRG_openfile",{file:A.name}),f(!1)},children:"Edit"})})]},A.name)})]})})},y=function(x){var m=(0,i.Oc)(),p=m.act,h=m.data,c=x.uiControl,f=c.setShowFileBrowser,v=c.edited,O=c.setEdited,C=h.open_file,I=h.loaded_data,M=h.loaded_data_html,A=h.max_length,T=(0,a.useState)(!1),b=T[0],B=T[1],R=(0,a.useState)(!1),N=R[0],W=R[1];return(0,e.jsx)(o.wn,{title:"Document: "+(C||"Untitled")+(v?"*":""),fill:!0,scrollable:b,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"file-upload",tooltip:"New File",color:v?"bad":"",onClick:function(){p("PRG_newfile"),O(!0)}}),(0,e.jsx)(o.$n,{icon:"columns",tooltip:"Browse Files",pr:1,onClick:function(){return f(!0)}}),(0,e.jsx)(o.$n,{icon:"save",tooltip:"Save File",onClick:function(){p("PRG_savefile"),O(!1)}}),(0,e.jsx)(o.$n,{icon:"save-o",tooltip:"Save File As",onClick:function(){p("PRG_saveasfile"),O(!1)}}),(0,e.jsx)(o.$n,{icon:"print",tooltip:"Print File",onClick:function(){return p("PRG_printfile")}}),(0,e.jsx)(o.$n.Checkbox,{checked:b,onClick:function(){return B(!b)},children:"Preview"}),(0,e.jsx)(o.$n,{icon:"question",selected:N,onClick:function(){return W(!N)},tooltip:"Help"})]}),children:b?(0,e.jsx)(o.az,{dangerouslySetInnerHTML:{__html:M}}):N?(0,e.jsxs)(o.az,{color:"label",children:[(0,e.jsx)(o.az,{fontSize:1.4,children:"Formatting Help"}),(0,e.jsx)(o.az,{children:"[br] : Creates a linebreak."}),(0,e.jsx)(o.az,{children:"[center] - [/center] : Centers the text."}),(0,e.jsx)(o.az,{children:"[h1] - [/h1] : First level heading."}),(0,e.jsx)(o.az,{children:"[h2] - [/h2] : Second level heading."}),(0,e.jsx)(o.az,{children:"[h3] - [/h3] : Third level heading."}),(0,e.jsx)(o.az,{children:"[b] - [/b] : Bold."}),(0,e.jsx)(o.az,{children:"[i] - [/i] : Italic."}),(0,e.jsx)(o.az,{children:"[u] - [/u] : Underlined."}),(0,e.jsx)(o.az,{children:"[small] - [/small] : Decreases the size of the text."}),(0,e.jsx)(o.az,{children:"[large] - [/large] : Increases the size of the text."}),(0,e.jsx)(o.az,{children:"[field] : Inserts a blank text field, which can be filled later. Useful for forms."}),(0,e.jsx)(o.az,{children:"[date] : Current station date."}),(0,e.jsx)(o.az,{children:"[time] : Current station time."}),(0,e.jsx)(o.az,{children:"[list] - [/list] : Begins and ends a list."}),(0,e.jsx)(o.az,{children:"[*] : A list item."}),(0,e.jsx)(o.az,{children:"[hr] : Horizontal rule."}),(0,e.jsx)(o.az,{children:"[table] - [/table] : Creates table using [row] and [cell] tags."}),(0,e.jsx)(o.az,{children:"[grid] - [/grid] : Table without visible borders, for layouts."}),(0,e.jsx)(o.az,{children:"[row] - New table row."}),(0,e.jsx)(o.az,{children:"[cell] - New table cell."}),(0,e.jsx)(o.az,{children:"[logo] - Inserts corporate logo image."}),(0,e.jsx)(o.az,{children:"[logolonestar] - Inserts Lonestar Logo"})]}):(0,e.jsx)(o.fs,{scrollbar:!0,fluid:!0,height:"100%",maxLength:A,multilineEnter:!0,value:I,onInput:function(H,q){O(!0)},onChange:function(H,q){p("PRG_editfile",{text:q}),O(!0)}})})}},13919:function(S,j,t){"use strict";t.r(j),t.d(j,{OreBox:function(){return E}});var e=t(62161),a=t(88716),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E=function(x){var m=(0,o.Oc)(),p=m.act,h=m.data,c=h.materials;return(0,e.jsx)(u.p8,{width:460,height:265,children:(0,e.jsx)(u.p8.Content,{children:(0,e.jsx)(l.wn,{fill:!0,scrollable:!0,title:"Ores",buttons:(0,e.jsx)(l.$n,{content:"Eject All Ores",onClick:function(){return p("ejectallores")}}),children:(0,e.jsx)(l.BJ,{direction:"column",children:(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.wn,{children:(0,e.jsxs)(l.BJ,{vertical:!0,children:[(0,e.jsxs)(l.BJ,{align:"start",children:[(0,e.jsx)(l.BJ.Item,{basis:"30%",children:(0,e.jsx)(l.az,{bold:!0,children:"Ore"})}),(0,e.jsx)(l.BJ.Item,{basis:"20%",children:(0,e.jsx)(l.wn,{align:"center",children:(0,e.jsx)(l.az,{bold:!0,children:"Amount"})})})]}),c.map(function(f){return(0,e.jsx)(y,{material:f,onRelease:function(v,O){return p("eject",{type:v,qty:O})},onReleaseAll:function(v){return p("ejectall",{type:v})}},f.type)})]})})})})})})})},y=function(x){var m=x.material,p=x.onRelease,h=x.onReleaseAll,c=(0,i.useState)(1),f=c[0],v=c[1],O=Math.floor(m.amount);return(0,e.jsx)(l.BJ.Item,{children:(0,e.jsxs)(l.BJ,{align:"center",children:[(0,e.jsx)(l.BJ.Item,{basis:"30%",children:(0,a.Sn)(m.name)}),(0,e.jsx)(l.BJ.Item,{basis:"20%",children:(0,e.jsx)(l.wn,{align:"center",children:(0,e.jsx)(l.az,{mr:0,color:"label",inline:!0,children:O})})}),(0,e.jsxs)(l.BJ.Item,{basis:"50%",children:[(0,e.jsx)(l.Q7,{width:"32px",step:1,stepPixelSize:5,minValue:1,maxValue:100,value:f,onChange:function(C){return v(C)}}),(0,e.jsx)(l.$n,{content:"Eject Amount",onClick:function(){return p(m.type,f)}}),(0,e.jsx)(l.$n,{content:"Eject All",onClick:function(){return h(m.type)}})]})]})})}},59722:function(S,j,t){"use strict";t.r(j),t.d(j,{PortableGenerator:function(){return E}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=t(41242),E=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.active,c=p.is_ai,f=p.fuel_is_reagent,v=p.fuel_type,O=p.fuel_stored,C=p.fuel_capacity,I=p.fuel_usage,M=p.anchored,A=p.connected,T=p.ready_to_boot,b=p.power_generated,B=p.max_power_output,R=p.power_output,N=p.unsafe_output,W=p.power_available,H=p.temperature_current,q=p.temperature_max,V=p.temperature_overheat,Y=O/C,_=Y>=.5&&"good"||Y>.15&&"average"||"bad";return(0,e.jsx)(l.p8,{width:400,height:280,children:(0,e.jsxs)(l.p8.Content,{children:[!M&&(0,e.jsx)(o.IC,{children:"Generator must be anchored to operate."}),(0,e.jsx)(o.wn,{title:"Status",buttons:(0,e.jsx)(o.$n,{icon:"power-off",onClick:function(){return m("toggle_power")},selected:h,disabled:!T,children:h?"Stop":"Start"}),children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Current fuel level",children:(0,e.jsx)(o.z2,{value:O/C,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:f?(0,e.jsxs)(e.Fragment,{children:[(0,a.LI)(O/1e3,1),"u / ",C/1e3,"u"]}):(0,e.jsxs)(e.Fragment,{children:[(0,a.LI)(O,1),"cm\xB3 / ",C,"cm\xB3"]})})}),(0,e.jsx)(o.Ki.Item,{label:"Fuel Type",buttons:O>=1&&(0,e.jsx)(o.$n,{ml:1,icon:"eject",disabled:h||c,onClick:function(){return m("eject")},children:"Eject"}),children:f?(0,e.jsxs)(o.az,{color:_,children:[(0,a.LI)(O/1e3,1),"u ",v]}):(0,e.jsxs)(o.az,{color:_,children:[(0,a.LI)(O,1),"cm\xB3 ",v]})}),(0,e.jsx)(o.Ki.Item,{label:"Fuel Usage",children:f?(0,e.jsxs)(e.Fragment,{children:[(0,a.LI)(I,3)/1e3,"L/s"]}):(0,e.jsxs)(e.Fragment,{children:[(0,a.LI)(I,3)," cm\xB3/s"]})}),(0,e.jsx)(o.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(o.z2,{value:H,maxValue:q+30,color:V?"bad":"good",children:[(0,a.LI)(H,1),"\xB0C"]})})]})}),(0,e.jsx)(o.wn,{title:"Output",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"Current output",color:N?"bad":"",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"minus",onClick:function(){return m("lower_power")}}),(0,e.jsx)(o.$n,{icon:"plus",onClick:function(){return m("higher_power")}})]}),children:[R/b," / ",B," (",(0,u.d5)(R),")"]}),(0,e.jsx)(o.Ki.Item,{label:"Power available",children:(0,e.jsx)(o.az,{inline:!0,color:!A&&"bad",children:A?(0,u.d5)(W):"Unconnected"})})]})})]})})}},56794:function(S,j,t){"use strict";t.r(j),t.d(j,{Processor:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l;(function(E){E[E.Storing=0]="Storing",E[E.Smelting=1]="Smelting",E[E.Compressing=2]="Compressing",E[E.Alloying=3]="Alloying"})(l||(l={}));var u=function(E){var y=(0,a.Oc)(),x=y.act,m=y.data,p=m.materials_data,h=p===void 0?[]:p,c=m.alloy_data,f=c===void 0?[]:c,v=m.currently_alloying,O=m.running,C=m.sheet_rate,I=m.machine;if(I)return(0,e.jsx)(o.p8,{children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsxs)(i.so,{"frex-wrap":"wrap",children:[(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.$n,{onClick:function(){return x("set_running")},width:5,height:5,mb:2,color:O?"green":"red",icon:"power-off",fontSize:2,tooltipPosition:"right",tooltip:O?"Turn off":"Turn on",verticalAlignContent:"middle",textAlign:"center"}),(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.N6,{size:2,minValue:5,maxValue:30,value:C,unit:"Sheets",step:1,stepPixelSize:2,onDrag:function(M,A){return x("set_rate",{sheets:A})}}),(0,e.jsx)("br",{}),(0,e.jsx)("center",{children:"Melting Rate"})]})]}),(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.wn,{title:"Loaded Materials",children:(0,e.jsx)(i.Ki,{children:h.map(function(M){return(0,e.jsx)(i.Ki.Item,{label:M.name,buttons:(0,e.jsx)(i.$n,{onClick:function(){return x("set_smelting",{id:M.id,action_type:M.current_action+1})},children:M.current_action_string},M.name),children:M.amount},M.name)})})}),(0,e.jsx)(i.wn,{title:"Alloy Menu",children:(0,e.jsx)(i.Ki,{children:f.map(function(M){return(0,e.jsx)(i.Ki.Item,{label:M.name,buttons:(0,e.jsx)(i.$n,{selected:M.name===v,onClick:function(){return x("set_alloying",{id:M.name})},children:M.name},M.name)},M.name)})})})]})]})})});o.p8,o.p8.Content,i.$n}},16655:function(S,j,t){"use strict";t.r(j),t.d(j,{RIGSuit:function(){return u}});var e=t(62161),a=t(88716),i=t(7081),o=t(34995),l=t(85242),u=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.interfacelock,v=c.malf,O=c.aicontrol,C=c.ai,I;return f||v?I=(0,e.jsx)(o.az,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!C&&O&&(I=(0,e.jsx)(o.az,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,e.jsx)(l.p8,{height:480,width:550,children:(0,e.jsx)(l.p8.Content,{scrollable:!0,children:I||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(E,{}),(0,e.jsx)(y,{}),(0,e.jsx)(x,{})]})})})},E=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.chargestatus,v=c.charge,O=c.maxcharge,C=c.tank,I=c.aioverride,M=c.sealing,A=c.sealed,T=c.emagged,b=c.securitycheck,B=c.coverlock,R=(0,e.jsx)(o.$n,{icon:M?"redo":A?"power-off":"lock-open",iconSpin:M,disabled:M,selected:A,onClick:function(){return h("toggle_seals")},children:"Suit "+(M?"seals working...":A?"is Active":"is Inactive")}),N=(0,e.jsx)(o.$n,{selected:I,icon:"robot",onClick:function(){return h("toggle_ai_control")},children:"AI Control "+(I?"Enabled":"Disabled")});return(0,e.jsx)(o.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[R,N]}),children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Power Supply",children:(0,e.jsxs)(o.z2,{minValue:0,maxValue:50,value:f,ranges:{good:[35,1/0],average:[15,35],bad:[-1/0,15]},children:[v," / ",O]})}),(0,e.jsx)(o.Ki.Item,{label:"Cover Status",children:T||!b?(0,e.jsx)(o.az,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,e.jsx)(o.$n,{icon:B?"lock":"lock-open",onClick:function(){return h("toggle_suit_lock")},children:B?"Locked":"Unlocked"})}),C&&(0,e.jsx)(o.Ki.Item,{label:"Suit Tank Pressure",buttons:(0,e.jsx)(o.$n,{icon:"wind",onClick:function(){return h("tank_settings")},children:"Tank Settings"}),children:(0,e.jsx)(o.z2,{value:C.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:C.tankPressure+" kPa"})})]})})},y=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.sealing,v=c.helmet,O=c.helmetDeployed,C=c.gauntlets,I=c.gauntletsDeployed,M=c.boots,A=c.bootsDeployed,T=c.chest,b=c.chestDeployed;return(0,e.jsx)(o.wn,{title:"Hardware",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Helmet",buttons:(0,e.jsx)(o.$n,{icon:O?"sign-out-alt":"sign-in-alt",disabled:f,selected:O,onClick:function(){return h("toggle_piece",{piece:"helmet"})},children:O?"Deployed":"Deploy"}),children:v?(0,a.ZH)(v):"ERROR"}),(0,e.jsx)(o.Ki.Item,{label:"Gauntlets",buttons:(0,e.jsx)(o.$n,{icon:I?"sign-out-alt":"sign-in-alt",disabled:f,selected:I,onClick:function(){return h("toggle_piece",{piece:"gauntlets"})},children:I?"Deployed":"Deploy"}),children:C?(0,a.ZH)(C):"ERROR"}),(0,e.jsx)(o.Ki.Item,{label:"Boots",buttons:(0,e.jsx)(o.$n,{icon:A?"sign-out-alt":"sign-in-alt",disabled:f,selected:A,onClick:function(){return h("toggle_piece",{piece:"boots"})},children:A?"Deployed":"Deploy"}),children:M?(0,a.ZH)(M):"ERROR"}),(0,e.jsx)(o.Ki.Item,{label:"Chestpiece",buttons:(0,e.jsx)(o.$n,{icon:b?"sign-out-alt":"sign-in-alt",disabled:f,selected:b,onClick:function(){return h("toggle_piece",{piece:"chest"})},children:b?"Deployed":"Deploy"}),children:T?(0,a.ZH)(T):"ERROR"})]})})},x=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.sealed,v=c.sealing,O=c.primarysystem,C=c.modules;return!f||v?(0,e.jsx)(o.wn,{title:"Modules",children:(0,e.jsx)(o.az,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,e.jsxs)(o.wn,{title:"Modules",children:[(0,e.jsxs)(o.az,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,a.ZH)(O||"None")]}),C&&C.map(function(I,M){return(0,e.jsxs)(o.wn,{title:(0,a.Sn)(I.name)+(I.damage?" (damaged)":""),buttons:(0,e.jsxs)(e.Fragment,{children:[I.can_select?(0,e.jsx)(o.$n,{selected:I.name===O,icon:"arrow-circle-right",onClick:function(){return h("interact_module",{module:I.index,module_mode:"select"})},children:I.name===O?"Selected":"Select"}):null,I.can_use?(0,e.jsx)(o.$n,{icon:"arrow-circle-down",onClick:function(){return h("interact_module",{module:I.index,module_mode:"engage"})},children:I.engagestring}):null,I.can_toggle?(0,e.jsx)(o.$n,{selected:I.is_active,icon:"arrow-circle-down",onClick:function(){return h("interact_module",{module:I.index,module_mode:"toggle"})},children:I.is_active?I.deactivatestring:I.activatestring}):null]}),children:[I.damage>=2?(0,e.jsx)(o.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(o.so,{spacing:1,children:[(0,e.jsxs)(o.so.Item,{grow:1,children:[(0,e.jsxs)(o.az,{color:"average",children:["Engage: ",I.engagecost]}),(0,e.jsxs)(o.az,{color:"average",children:["Active: ",I.activecost]}),(0,e.jsxs)(o.az,{color:"average",children:["Passive: ",I.passivecost]})]}),(0,e.jsx)(o.so.Item,{grow:1,children:I.desc})]}),I.charges?(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.wn,{title:"Module Charges",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Selected",children:(0,a.ZH)(I.chargetype)}),I.charges.map(function(A,T){return(0,e.jsx)(o.Ki.Item,{label:(0,a.ZH)(A.caption),children:(0,e.jsx)(o.$n,{selected:I.realchargetype===A.index,icon:"arrow-right",onClick:function(){return h("interact_module",{module:I.index,module_mode:"select_charge_type",charge_type:A.index})}})},A.caption)})]})})}):null]},I.name)})]})}},36863:function(S,j,t){"use strict";t.r(j),t.d(j,{Radio:function(){return E}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(79500),u=t(85242),E=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.rawfreq,c=p.minFrequency,f=p.maxFrequency,v=p.listening,O=p.broadcasting,C=p.subspace,I=p.subspaceSwitchable,M=p.chan_list,A=p.loudspeaker,T=p.loudspeakerSwitchable,b=p.mic_cut,B=p.spk_cut,R=p.useSyndMode,N=l.Fo.find(function(H){return H.freq===Number(h)}),W=156;return M&&M.length>0?W+=M.length*28+6:W+=24,I&&(W+=19),T&&(W+=19),(0,e.jsx)(u.p8,{width:310,height:W,theme:R?"syndicate":"",children:(0,e.jsxs)(u.p8.Content,{children:[(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(o.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:c/10,maxValue:f/10,value:h/10,format:function(H){return(0,a.Mg)(H,1)},onDrag:function(H){return m("setFrequency",{freq:(0,a.LI)(H*10,1)})}}),N&&(0,e.jsxs)(o.az,{inline:!0,color:N.color,ml:2,children:["[",N.name,"]"]})]}),(0,e.jsxs)(o.Ki.Item,{label:"Audio",children:[(0,e.jsx)(o.$n,{textAlign:"center",width:"37px",icon:v?"volume-up":"volume-mute",selected:v,disabled:B,onClick:function(){return m("listen")}}),(0,e.jsx)(o.$n,{textAlign:"center",width:"37px",icon:O?"microphone":"microphone-slash",selected:O,disabled:b,onClick:function(){return m("broadcast")}}),!!I&&(0,e.jsx)(o.az,{children:(0,e.jsxs)(o.$n,{icon:"bullhorn",selected:C,onClick:function(){return m("subspace")},children:["Subspace Tx ",C?"ON":"OFF"]})}),!!T&&(0,e.jsx)(o.az,{children:(0,e.jsx)(o.$n,{icon:A?"volume-up":"volume-mute",selected:A,onClick:function(){return m("toggleLoudspeaker")},children:"Loudspeaker"})})]})]})}),(0,e.jsxs)(o.wn,{title:"Channels",children:[(!M||M.length===0)&&(0,e.jsx)(o.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(o.Ki,{children:M?M.map(function(H){var q=l.Fo.find(function(Y){return Y.freq===Number(H.freq)}),V="default";return q&&(V=q.color),(0,e.jsx)(o.Ki.Item,{label:H.display_name,labelColor:V,textAlign:"right",children:H.secure_channel&&C?(0,e.jsx)(o.$n,{icon:H.sec_channel_listen?"square-o":"check-square-o",selected:!H.sec_channel_listen,content:H.sec_channel_listen?"Off":"On",onClick:function(){return m("channel",{channel:H.chan})}}):(0,e.jsx)(o.$n,{content:"Switch",selected:H.freq===h,onClick:function(){return m("specFreq",{channel:H.chan})}})},H.chan)}):null})]})]})})}},29232:function(S,j,t){"use strict";t.r(j),t.d(j,{TRAIT_ASSET:function(){return i},TRAIT_DESCRIPTION:function(){return e},TRAIT_LABEL:function(){return a},TRAIT_NAME:function(){return o}});var e={Sanity:"Sanity is gained or lost depending on your environment. For example being around oddities increases your sanity slightly, as well as taking drugs or smoking. Seeing people die, being around blood and grime and being hurt yourself lowers your sanity.",Insight:"Insight is gained by activies such as smoking, taking drugs, hurting people or seeing them get hurt, seeing blood and grime and exploring maintenance.",Desires:"Once you have gained enough insight, you should rest. While you rest you will have certain wishes to fulfill."},a={Sanity:"Sanity level",Insight:"Insight progress",Desires:"Rest progress"},i={Sanity:"sanity.png",Insight:"insight.png",Desires:"desire.png"},o={Sanity:"Sanity",Insight:"Insight",Desires:"Desires"}},49307:function(S,j,t){"use strict";t.r(j),t.d(j,{DesiresTraitFluff:function(){return x},Sanity:function(){return p},Trait:function(){return m},TraitBar:function(){return E},TraitFluff:function(){return y}});var e=t(62161),a=t(31200),i=t(7081),o=t(34995),l=t(85242),u=t(29232),E=function(h){var c=h.maxValue,f=h.minValue,v=h.value,O=h.label,C=c||100;return(0,e.jsx)(o.Ki.Item,{textAlign:"right",label:O,children:(0,e.jsx)(o.z2,{width:"55vw",value:v,minValue:f||0,maxValue:c||100,ranges:{good:[C*.6,1/0],average:[C*.3,C*.6],bad:[-1/0,C*.3]}})})},y=function(h){var c=h.bar,f=h.desc;return(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{grow:!0,style:{overflow:"hidden",whiteSpace:"wrap",textOverflow:"ellipsis"},children:(0,e.jsx)(o.Y0,{children:f})}),(0,e.jsx)(o.BJ.Item,{children:c})]})},x=function(h){var c=h.bar,f=h.desc,v=h.active,O=h.desires;return(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{grow:!0,style:{overflow:"hidden",whiteSpace:"wrap",textOverflow:"ellipsis"},children:(0,e.jsx)(o.Y0,{children:f})}),(0,e.jsx)(o.BJ.Item,{}),(0,e.jsx)(o.BJ.Item,{children:v?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Ki.Item,{label:"Desires",children:O.join(", ")}),c]}):(0,e.jsx)(o.Y0,{children:"Currently you don't have desires."})})]})},m=function(h){var c=h.fluff,f=h.title,v=h.img;return(0,e.jsx)(o.wn,{title:f,children:(0,e.jsxs)(o.BJ,{height:"100px",fill:!0,children:[(0,e.jsx)(o.BJ.Item,{shrink:!0,children:(0,e.jsx)(o._V,{width:"100px",src:(0,a.l)(v)})}),(0,e.jsx)(o.BJ.Item,{grow:!0,basis:0,children:c})]})})},p=function(h){var c=(0,i.Oc)().data,f=c.sanity,v=c.desires,O=c.insight;return(0,e.jsx)(l.p8,{width:650,height:510,children:(0,e.jsx)(l.p8.Content,{style:{backgroundImage:"none"},scrollable:!0,children:(0,e.jsxs)(o.BJ,{vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(m,{fluff:(0,e.jsx)(y,{desc:u.TRAIT_DESCRIPTION.Sanity,bar:(0,e.jsx)(E,{maxValue:f.max,value:f.value,label:u.TRAIT_LABEL.Sanity})}),title:u.TRAIT_NAME.Sanity,img:u.TRAIT_ASSET.Sanity})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(m,{fluff:(0,e.jsx)(y,{desc:u.TRAIT_DESCRIPTION.Insight,bar:(0,e.jsx)(E,{value:O,label:u.TRAIT_LABEL.Insight})}),title:u.TRAIT_NAME.Insight,img:u.TRAIT_ASSET.Insight})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(m,{fluff:(0,e.jsx)(x,{active:v.resting,desires:v==null?void 0:v.desires,desc:u.TRAIT_DESCRIPTION.Desires,bar:v.resting?(0,e.jsx)(E,{value:v.value,label:u.TRAIT_LABEL.Desires}):void 0}),title:u.TRAIT_NAME.Desires,img:u.TRAIT_ASSET.Desires})})]})})})}},76372:function(){},5378:function(S,j,t){"use strict";t.r(j),t.d(j,{Smartfridge:function(){return y}});var e=t(62161),a=t(7402),i=t(88716),o=t(28277),l=t(7081),u=t(34995),E=t(85242),y=function(p){var h=(0,l.Oc)(),c=h.act,f=h.data,v=f.allowed,O=f.emagged,C=f.secure,I=f.items,M=(0,a.Ul)(Object.entries(I),function(T){var b=T[0],B=T[1];return b.toUpperCase()}),A=!1;return C&&!O&&(A=!v),(0,e.jsx)(E.p8,{width:400,height:500,children:(0,e.jsx)(E.p8.Content,{scrollable:!0,children:(0,e.jsxs)(u.wn,{title:"Storage",fill:!0,children:[(0,e.jsx)(x,{secure:C,emagged:O,allowed:v}),M.length===0?(0,e.jsx)(u.az,{color:"average",children:"No items loaded."}):(0,e.jsxs)(u.XI,{children:[(0,e.jsxs)(u.XI.Row,{header:!0,children:[(0,e.jsx)(u.XI.Cell,{children:"Item"}),(0,e.jsx)(u.XI.Cell,{collapsing:!0,textAlign:"right",children:"Amount"}),(0,e.jsx)(u.XI.Cell,{collapsing:!0,textAlign:"center",children:"Vend"})]}),M.map(function(T){var b=T[0],B=T[1];return(0,e.jsxs)(u.XI.Row,{className:"candystripe",children:[(0,e.jsx)(u.XI.Cell,{p:1,verticalAlign:"middle",color:"label",children:(0,i.Sn)(b)}),(0,e.jsx)(u.XI.Cell,{p:1,verticalAlign:"middle",textAlign:"right",collapsing:!0,children:B}),(0,e.jsx)(u.XI.Cell,{p:1,verticalAlign:"middle",textAlign:"center",collapsing:!0,children:(0,e.jsx)(m,{name:b,count:B,disabled:A})})]},b)})]})]})})})},x=function(p){var h=p.secure,c=p.emagged,f=p.allowed,v="Secure Access: Please have your identification ready.",O=["*","^","&","%","$","_","#","!"],C=100,I=(0,o.useState)(v),M=I[0],A=I[1];return(0,o.useEffect)(function(){if(c){var T=setInterval(function(){for(var b="",B=0;B.9?b+=O[Math.floor(Math.random()*O.length)]:b+=v[B];A(b)},C);return function(){clearInterval(T),A(v)}}},[c]),h?c?(0,e.jsx)(u.IC,{danger:!0,children:M}):f?(0,e.jsx)(u.IC,{info:!0,children:M}):(0,e.jsx)(u.IC,{danger:!0,children:"Unauthorized access, vending is unavailable."}):null},m=function(p){var h=(0,l.Oc)().act,c=p.name,f=p.count,v=p.disabled;return(0,e.jsxs)(u.so,{direction:"column",children:[(0,e.jsx)(u.so.Item,{children:(0,e.jsxs)(u.so,{children:[(0,e.jsx)(u.so.Item,{grow:!0,minWidth:3,children:(0,e.jsx)(u.$n,{fluid:!0,disabled:v,textAlign:"center",onClick:function(){return h("vend",{name:c,count:1})},children:"x1"})}),f>=5&&(0,e.jsx)(u.so.Item,{grow:!0,minWidth:3,ml:.2,children:(0,e.jsx)(u.$n,{fluid:!0,disabled:v,textAlign:"center",onClick:function(){return h("vend",{name:c,count:5})},children:"x5"})})]})}),f>=10&&(0,e.jsx)(u.so.Item,{mt:.2,children:(0,e.jsxs)(u.so,{children:[(0,e.jsx)(u.so.Item,{grow:!0,minWidth:3,children:(0,e.jsx)(u.$n,{fluid:!0,disabled:v,textAlign:"center",onClick:function(){return h("vend",{name:c,count:10})},children:"x10"})}),f>=25&&(0,e.jsx)(u.so.Item,{grow:!0,minWidth:3,ml:.2,children:(0,e.jsx)(u.$n,{fluid:!0,disabled:v,textAlign:"center",onClick:function(){return h("vend",{name:c,count:25})},children:"x25"})})]})}),f>1&&(0,e.jsx)(u.so.Item,{mt:.2,children:(0,e.jsx)(u.$n,{fluid:!0,disabled:v,textAlign:"center",onClick:function(){return h("vend",{name:c,count:f})},children:"All"})})]})}},78082:function(S,j,t){"use strict";t.r(j),t.d(j,{AnimatedArrows:function(){return v},RollyIcon:function(){return C},ShakingElement:function(){return O},Smelter:function(){return m}});var e=t(62161),a=t(4089),i=t(88716),o=t(28277),l=t(7081),u=t(34995),E=t(85242),y=t(78377);function x(){return x=Object.assign||function(I){for(var M=1;M30?T>60?"#c00":"#880":"#0c0",transition:"color 1s ease"}})})})}),(0,e.jsxs)(u.so,{width:"100%",align:"center",justify:"center",position:"absolute",bottom:-.5,left:0,children:[(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(C,{name:"fire",color:"bad",size:1.5,rotMin:0,rotMax:45})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(C,{name:"fire",color:"bad",size:1.5,rotMin:-30,rotMax:30})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(C,{name:"fire",color:"bad",size:1.5,rotMin:-45,rotMax:0})})]})]}):(0,e.jsx)(u.az,{width:5,height:5,style:{borderRadius:"5%",border:"3px dotted #4972a1"}})},f=function(I){var M=(0,l.Oc)(),A=M.act,T=M.data,b=T.input_side,B=T.output_side,R=T.refuse_side;return(0,e.jsx)(u.wn,{title:"Sides Config",fill:!0,children:(0,e.jsxs)(u.so,{align:"center",justify:"space-around",height:"100%",children:[(0,e.jsx)(u.so.Item,{children:(0,e.jsxs)(u.BJ,{align:"center",vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:b==="North",onClick:function(){return A("setside_input",{side:"NORTH"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:b==="West",onClick:function(){return A("setside_input",{side:"WEST"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,backgroundColor:"good",textAlign:"center",verticalAlignContent:"middle",children:"Input"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:b==="East",onClick:function(){return A("setside_input",{side:"EAST"})}})})]})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:b==="South",onClick:function(){return A("setside_input",{side:"SOUTH"})}})})]})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(v,{on:!0})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsxs)(u.BJ,{align:"center",vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:B==="North",onClick:function(){return A("setside_output",{side:"NORTH"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:B==="West",onClick:function(){return A("setside_output",{side:"WEST"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,backgroundColor:"bad",textAlign:"center",verticalAlignContent:"middle",children:"Output"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:B==="East",onClick:function(){return A("setside_output",{side:"EAST"})}})})]})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:B==="South",onClick:function(){return A("setside_output",{side:"SOUTH"})}})})]})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsxs)(u.BJ,{align:"center",vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:R==="North",onClick:function(){return A("setside_refuse",{side:"NORTH"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:R==="West",onClick:function(){return A("setside_refuse",{side:"WEST"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,backgroundColor:"brown",textAlign:"center",verticalAlignContent:"middle",children:"Refuse"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:R==="East",onClick:function(){return A("setside_refuse",{side:"EAST"})}})})]})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:R==="South",onClick:function(){return A("setside_refuse",{side:"SOUTH"})}})})]})})]})})},v=function(I){var M=I.on,A=(0,o.useState)(0),T=A[0],b=A[1],B=200;return(0,o.useEffect)(function(){var R=setInterval(function(){b(function(N){return(N+1)%3})},B);return function(){return clearInterval(R)}},[]),(0,e.jsxs)(u.az,{children:[(0,e.jsx)(u.In,{color:M?T===0?"green":"white":"gray",name:"chevron-right"}),(0,e.jsx)(u.In,{color:M?T===1?"green":"white":"gray",name:"chevron-right"}),(0,e.jsx)(u.In,{color:M?T===2?"green":"white":"gray",name:"chevron-right"})]})},O=function(I){var M=I.children,A=I.speed||100,T=I.bounds||[1,1],b=(0,o.useState)(0),B=b[0],R=b[1],N=(0,o.useState)(0),W=N[0],H=N[1];return(0,o.useEffect)(function(){var q=setInterval(function(){R(function(V){var Y=Math.random()-.5,_=V+Y;return(_>T[0]||_<-T[0])&&(_=V-Y),_}),H(function(V){var Y=Math.random()-.5,_=V+Y;return(_>T[0]||_<-T[0])&&(_=V-Y),_})},A);return function(){return clearInterval(q)}},[A,T]),(0,e.jsx)(u.az,{ml:B,mt:W,children:M})},C=function(I){var M=I.speed!==void 0?I.speed:90,A=I.stepSize!==void 0?I.stepSize:5,T=I.rotMin!==void 0?I.rotMin:0,b=I.rotMax!==void 0?I.rotMax:360,B=(0,o.useState)(T),R=B[0],N=B[1],W=(0,o.useState)(A),H=W[0],q=W[1];return(0,o.useEffect)(function(){var V=setInterval(function(){N(function(Y){return Y+H})},M);return function(){return clearInterval(V)}},[M,H]),(0,o.useEffect)(function(){var V=setInterval(function(){q(function(Y){return R>b&&Y>0||R=100&&"good"||O&&"average"||"bad",W=T&&"good"||f>0&&"average"||"bad";return(0,e.jsx)(l.p8,{width:340,height:350,children:(0,e.jsxs)(l.p8.Content,{children:[(0,e.jsx)(i.wn,{title:"Stored Energy",children:(0,e.jsx)(i.z2,{value:h*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.jsx)(i.wn,{title:"Input",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(i.$n,{icon:v?"sync-alt":"times",selected:v,onClick:function(){return m("tryinput")},children:v?"Auto":"Off"}),children:(0,e.jsx)(i.az,{color:N,children:h>=100&&"Fully Charged"||O&&"Charging"||"Not Charging"})}),(0,e.jsx)(i.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(i.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.$n,{icon:"fast-backward",disabled:C===0,onClick:function(){return m("input",{target:"min"})}}),(0,e.jsx)(i.$n,{icon:"backward",disabled:C===0,onClick:function(){return m("input",{adjust:-1e4})}})]}),(0,e.jsx)(i.so.Item,{grow:1,mx:1,children:(0,e.jsx)(i.Ap,{value:C/u,fillValue:M/u,minValue:0,maxValue:I/u,step:5,stepPixelSize:4,format:function(H){return(0,o.d5)(H*u,1)},onDrag:function(H,q){return m("input",{target:q*u})}})}),(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.$n,{icon:"forward",disabled:C===I,onClick:function(){return m("input",{adjust:1e4})}}),(0,e.jsx)(i.$n,{icon:"fast-forward",disabled:C===I,onClick:function(){return m("input",{target:"max"})}})]})]})}),(0,e.jsx)(i.Ki.Item,{label:"Available",children:(0,o.d5)(M)})]})}),(0,e.jsx)(i.wn,{title:"Output",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(i.$n,{icon:A?"power-off":"times",selected:A,onClick:function(){return m("tryoutput")},children:A?"On":"Off"}),children:(0,e.jsx)(i.az,{color:W,children:T?"Sending":f>0?"Not Sending":"No Charge"})}),(0,e.jsx)(i.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(i.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.$n,{icon:"fast-backward",disabled:b===0,onClick:function(){return m("output",{target:"min"})}}),(0,e.jsx)(i.$n,{icon:"backward",disabled:b===0,onClick:function(){return m("output",{adjust:-1e4})}})]}),(0,e.jsx)(i.so.Item,{grow:1,mx:1,children:(0,e.jsx)(i.Ap,{value:b/u,minValue:0,maxValue:B/u,step:5,stepPixelSize:4,format:function(H){return(0,o.d5)(H*u,1)},onDrag:function(H,q){return m("output",{target:q*u})}})}),(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.$n,{icon:"forward",disabled:b===B,onClick:function(){return m("output",{adjust:1e4})}}),(0,e.jsx)(i.$n,{icon:"fast-forward",disabled:b===B,onClick:function(){return m("output",{target:"max"})}})]})]})}),(0,e.jsx)(i.Ki.Item,{label:"Outputting",children:(0,o.d5)(R)})]})})]})})}},24854:function(S,j,t){"use strict";t.r(j),t.d(j,{SolarControl:function(){return u}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.generated,h=m.generated_ratio,c=m.azimuth_current,f=m.azimuth_rate,v=m.max_rotation_rate,O=m.tracking_state,C=m.connected_panels,I=m.connected_tracker;return(0,e.jsx)(l.p8,{width:380,height:230,children:(0,e.jsxs)(l.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Status",buttons:(0,e.jsx)(o.$n,{icon:"sync",onClick:function(){return x("refresh")},children:"Scan for new hardware"}),children:(0,e.jsxs)(o.xA,{children:[(0,e.jsx)(o.xA.Column,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Solar tracker",color:I?"good":"bad",children:I?"OK":"N/A"}),(0,e.jsx)(o.Ki.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.jsx)(o.xA.Column,{size:1.5,children:(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Power output",children:(0,e.jsx)(o.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:h,children:p+" W"})})})})]})}),(0,e.jsx)(o.wn,{title:"Controls",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(o.$n,{icon:"times",selected:O===0,onClick:function(){return x("tracking",{mode:0})},children:"Off"}),(0,e.jsx)(o.$n,{icon:"clock-o",selected:O===1,onClick:function(){return x("tracking",{mode:1})},children:"Timed"}),(0,e.jsx)(o.$n,{icon:"sync",selected:O===2,disabled:!I,onClick:function(){return x("tracking",{mode:2})},children:"Auto"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Azimuth",children:[(O===0||O===1)&&(0,e.jsx)(o.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:0,maxValue:360,value:c,onChange:function(M){return x("azimuth",{value:M})}}),O===1&&(0,e.jsx)(o.Q7,{width:"80px",unit:"\xB0/m",step:.01,stepPixelSize:1,minValue:-v-.01,maxValue:v+.01,value:f,format:function(M){var A=Math.sign(M)>0?"+":"-";return(0,a.LI)(A+Math.abs(M),1)},onChange:function(M){return x("azimuth_rate",{value:M})}}),O===2&&(0,e.jsxs)(o.az,{inline:!0,color:"label",mt:"3px",children:[c+" \xB0"," (auto)"]})]})]})})]})})}},65511:function(S,j,t){"use strict";t.r(j),t.d(j,{Stats:function(){return c}});var e=t(62161),a=t(65380),i=t(88716),o=t(28277),l=t(7081),u=t(34995),E=t(85242),y;(function(f){f[f.stats=0]="stats",f[f.perks=1]="perks"})(y||(y={}));var x=function(f){var v=f.name,O=f.icon,C=f.desc;return(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.m_,{position:"bottom",content:C,children:(0,e.jsxs)(u.BJ,{position:"relative",fill:!0,children:[(0,e.jsx)(u.BJ.Item,{className:(0,a.Ly)(["Stats__box--icon","Stats__content"]),children:(0,e.jsx)(u.az,{className:(0,a.Ly)(["perks32x32",O])})}),(0,e.jsx)(u.BJ.Item,{grow:!0,className:(0,a.Ly)(["Stats__box--text","Stats__content"]),children:(0,i.ZH)(v)})]})})})},m=function(f){var v=(0,l.Oc)().data,O=v.perks;return(0,e.jsx)(u.BJ,{fill:!0,vertical:!0,justify:"start",children:O.map(function(C,I){return x(C)})})},p=function(f){var v=f.name,O=f.value;return(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{fill:!0,children:[(0,e.jsx)(u.BJ.Item,{grow:2,className:(0,a.Ly)(["Stats__box--skill","Stats__content"]),children:(0,i.ZH)(v)}),(0,e.jsx)(u.BJ.Item,{grow:1,className:(0,a.Ly)(["Stats__box--text","Stats__content"]),children:O})]})})},h=function(f){var v=(0,l.Oc)().data,O=v.stats;return(0,e.jsx)(u.BJ,{fill:!0,vertical:!0,justify:"space-around",children:O.map(function(C,I){return p(C)})})},c=function(f){var v=(0,l.Oc)().data,O=v.name,C=v.hasPerks,I=(0,o.useState)(0),M=I[0],A=I[1];return(0,e.jsx)(E.p8,{width:285,height:320,title:""+O+"'s Stats",children:(0,e.jsx)(E.p8.Content,{style:{backgroundImage:"none"},children:(0,e.jsxs)(u.BJ,{fill:!0,vertical:!0,children:[C&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.tU,{fluid:!0,children:[(0,e.jsx)(u.tU.Tab,{selected:M===0,onClick:function(){return A(0)},children:"Stats"}),(0,e.jsx)(u.tU.Tab,{selected:M===1,onClick:function(){return A(1)},children:"Perks"})]})})||null,(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.wn,{fill:!0,scrollable:M===1,children:C&&M===1&&(0,e.jsx)(m,{})||(0,e.jsx)(h,{})})})]})})})}},28742:function(S,j,t){"use strict";t.r(j),t.d(j,{MainMenu:function(){return x},MaintenancePanel:function(){return y},StorageRow:function(){return m},StorageSlot:function(){return p},SuitStorageUnit:function(){return u},UVInProgress:function(){return E}});var e=t(62161),a=t(28277),i=t(7081),o=t(34995),l=t(85242),u=function(h){var c=(0,i.Oc)(),f=c.act,v=c.data,O=v.panel_open,C=v.isUV,I=(0,e.jsx)(x,{});return C?I=(0,e.jsx)(E,{}):O&&(I=(0,e.jsx)(y,{})),(0,e.jsx)(l.p8,{width:360,height:340,children:(0,e.jsx)(l.p8.Content,{children:I})})},E=function(h){var c=(0,i.Oc)().data,f=c.isSuperUV,v=c.occupied,O=(0,a.useState)(0),C=O[0],I=O[1],M=(0,a.useState)(1),A=M[0],T=M[1],b=.6,B=5;return(0,a.useEffect)(function(){var R=setInterval(function(){I(function(N){var W=N+b*A;return W>80?T(-1):W<0&&T(1),W})},B);return function(){return clearInterval(R)}}),(0,e.jsxs)(o.wn,{title:"UV Cauterization In Progress",position:"relative",fill:!0,children:[(0,e.jsx)(o.az,{position:"absolute",left:0,top:C+"%",height:6,width:"100%",className:f?"SuitStorageUnit__gradient-35":"SuitStorageUnit__gradient-185"}),(0,e.jsx)(o.BJ,{fill:!0,align:"center",justify:"center",children:(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.In,{name:v?"user":"user-astronaut",color:v?"bad":"",size:8})})})]})},y=function(h){var c=(0,i.Oc)(),f=c.act,v=c.data,O=v.isSuperUV,C=v.safeties;return(0,e.jsx)(o.wn,{title:"Maintenance Panel",fill:!0,children:(0,e.jsxs)(o.BJ,{vertical:!0,align:"center",justify:"space-around",height:"100%",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{align:"flex-end",children:[(0,e.jsx)(o.BJ.Item,{children:"185nm"}),(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsx)(o.az,{textAlign:"center",fontSize:1.5,children:"\u03BB"}),(0,e.jsx)(o.N6,{color:O?"bad":"good",size:2,value:O?1:0,minValue:0,maxValue:1,step:1,format:function(I){return I?"15nm":"185nm"},onChange:function(I,M){f("toggle_super_UV",{on:M})}})]}),(0,e.jsx)(o.BJ.Item,{children:"15nm"})]})}),(0,e.jsx)(o.BJ.Item,{mt:2,children:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{color:"bad",fontSize:2,width:4,height:4,style:{borderRadius:"50px"},onClick:function(){return f("toggle_safeties")},children:(0,e.jsx)(o.In,{name:"exclamation-triangle",inline:!0,ml:-.5,mt:.3})})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.In,{size:2,name:C?"circle-o":"circle",color:C?"":"bad"})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.In,{size:2,name:C?"circle":"circle-o",color:C?"green":""})})]})})]})})},x=function(h){var c=(0,i.Oc)(),f=c.act,v=c.data,O=v.isOpen,C=v.occupied,I=v.locked,M=v.helmet,A=v.helmet_icon,T=v.suit,b=v.suit_icon,B=v.mask,R=v.mask_icon;return(0,e.jsxs)(o.BJ,{height:"100%",fill:!0,children:[(0,e.jsx)(o.BJ.Item,{height:"100%",basis:"50%",children:(0,e.jsx)(o.wn,{title:"Storage",fill:!0,height:"100%",children:(0,e.jsxs)(o.BJ,{vertical:!0,fill:!0,align:"center",justify:"space-around",children:[(0,e.jsx)(o.BJ.Item,{width:"100%",children:(0,e.jsx)(m,{name:M,icon:A,emptyText:"No Helmet Detected",toasterIcon:"hard-hat",isOpen:O,onEject:function(){return f("dispense_helmet")}})}),(0,e.jsx)(o.BJ.Item,{width:"100%",children:(0,e.jsx)(m,{name:B,icon:R,emptyText:"No Mask Detected",toasterIcon:"lungs",isOpen:O,onEject:function(){return f("dispense_mask")}})}),(0,e.jsx)(o.BJ.Item,{width:"100%",children:(0,e.jsx)(m,{name:T,icon:b,emptyText:"No Suit Detected",toasterIcon:"user-astronaut",isOpen:O,onEject:function(){return f("dispense_suit")}})})]})})}),(0,e.jsxs)(o.BJ.Item,{basis:"50%",children:[(0,e.jsxs)(o.wn,{title:"Controls",fill:!0,height:"32%",children:[(0,e.jsx)(o.$n,{fluid:!0,fontSize:1.25,textAlign:"center",disabled:I,icon:O?"door-open":"door-closed",selected:O,onClick:function(){return f("toggle_open")},children:O?"Unit Opened":"Unit Closed"}),(0,e.jsx)(o.$n,{fluid:!0,fontSize:1.1,disabled:O,textAlign:"center",icon:I?"lock":"lock-open",selected:I,onClick:function(){return f("toggle_lock")},children:I?"Unit Locked":"Unit Unlocked"})]}),(0,e.jsxs)(o.wn,{title:"Disinfection",fill:!0,height:"66%",children:[!!C&&(0,e.jsxs)(o.az,{color:"bad",textAlign:"center",children:[(0,e.jsx)(o.az,{children:(0,e.jsx)(o.In,{name:"user",size:4})}),"WARNING: Biological Entity detected inside Unit's storage.",(0,e.jsx)("br",{}),(0,e.jsx)(o.$n,{color:"bad",inline:!0,onClick:function(){return f("eject_guy")},mt:.5,icon:"eject",children:"Remove?"}),(0,e.jsx)(o.cG,{})]}),(0,e.jsx)(o.$n.Confirm,{fluid:!0,color:"bad",disabled:O,icon:"pump-medical",confirmIcon:"virus-slash",textAlign:"center",onClick:function(){return f("start_UV")},children:"Start Disinfection"})]})]})]})},m=function(h){var c=h.name,f=h.icon,v=h.emptyText,O=h.toasterIcon,C=h.isOpen,I=h.onEject;return(0,e.jsx)(o.BJ,{align:"center",justify:"space-around",width:"100%",children:(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(p,{name:c,icon:f,emptyText:v,toasterIcon:O,isOpen:C,onEject:I})})})},p=function(h){var c=h.name,f=h.icon,v=h.emptyText,O=h.toasterIcon,C=h.isOpen,I=h.onEject;return(0,e.jsxs)(o.BJ,{align:"center",vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:C?(0,e.jsx)(o.$n,{disabled:!c,width:4,height:4,style:{border:"1px solid #3e6189",borderRadius:"5%"},onClick:I,textAlign:"center",children:f?(0,e.jsx)(o._V,{src:f,mt:-.5,ml:-1,width:4,height:4}):(0,e.jsx)(o.In,{name:O,ml:.25,size:2,mt:2})}):(0,e.jsx)(o.az,{backgroundColor:"black",width:4,height:4,style:{border:"1px solid #3e6189",borderRadius:"5%"},textAlign:"center",children:f?(0,e.jsx)(o._V,{src:f,mt:-.5,width:4,height:4}):(0,e.jsx)(o.In,{name:O,size:2,mt:2})})}),(0,e.jsx)(o.BJ.Item,{color:c?"good":"label",children:c||v})]})}},27136:function(S,j,t){"use strict";t.r(j),t.d(j,{Tank:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.connected,p=x.showToggle,h=p===void 0?!0:p,c=x.maskConnected,f=x.tankPressure,v=x.releasePressure,O=x.defaultReleasePressure,C=x.minReleasePressure,I=x.maxReleasePressure;return(0,e.jsx)(o.p8,{width:400,height:320,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(i.wn,{title:"Status",buttons:!!h&&(0,e.jsx)(i.$n,{icon:m?"air-freshener":"lock-open",selected:m,disabled:!c,onClick:function(){return y("toggle")},children:"Mask Release Valve"}),children:(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Mask Connected",children:c?"Yes":"No"})})}),(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Pressure",children:(0,e.jsx)(i.z2,{value:f/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:x.tankPressure+" kPa"})}),(0,e.jsxs)(i.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(i.$n,{icon:"fast-backward",disabled:v===C,onClick:function(){return y("pressure",{pressure:"min"})}}),(0,e.jsx)(i.Q7,{animated:!0,value:v,width:"65px",unit:"kPa",step:1,minValue:C,maxValue:I,onChange:function(M){return y("pressure",{pressure:M})}}),(0,e.jsx)(i.$n,{icon:"fast-forward",disabled:v===I,onClick:function(){return y("pressure",{pressure:"max"})}}),(0,e.jsx)(i.$n,{icon:"undo",disabled:v===O,onClick:function(){return y("pressure",{pressure:"reset"})}})]})]})})]})})}},10351:function(S,j,t){"use strict";t.r(j),t.d(j,{TankDispenser:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.plasma,p=x.oxygen;return(0,e.jsx)(o.p8,{width:275,height:103,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Plasma",buttons:(0,e.jsx)(i.$n,{icon:m?"square":"square-o",disabled:!m,onClick:function(){return y("plasma")},children:"Dispense"}),children:m}),(0,e.jsx)(i.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(i.$n,{icon:p?"square":"square-o",disabled:!p,onClick:function(){return y("oxygen")},children:"Dispense"}),children:p})]})})})})}},76952:function(S,j,t){"use strict";t.r(j),t.d(j,{Terminal:function(){return u}});var e=t(62161),a=t(28277),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.history,h=(0,a.useRef)(null),c=(0,a.useState)(!0),f=c[0],v=c[1];return(0,a.useEffect)(function(){f&&(v(!1),h.current&&(h.current.scrollTop=h.current.scrollHeight))},[p]),(0,e.jsx)(l.p8,{width:500,height:460,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsxs)(o.wn,{fill:!0,scrollable:!0,className:"Terminal__Monospace",ref:h,children:[p.map(function(O){var C="gray";return O.startsWith(">")?C="label":O.includes("ACCESS DENIED")&&(C="bad"),(0,e.jsx)(o.az,{color:C,children:O},O)}),(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{children:">"}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.pd,{autoFocus:!0,autoSelect:!0,selfClear:!0,fluid:!0,className:"Terminal__Monospace",style:{backgroundColor:"transparent",border:"none"},onEnter:function(O,C){x("command",{input:C}),v(!0)}})})]})]})})})}},8360:function(S,j,t){"use strict";t.r(j),t.d(j,{TguiInputAlertModal:function(){return x}});var e=t(62161),a=t(87239),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E=t(44149),y;(function(h){h[h.Increment=1]="Increment",h[h.Decrement=-1]="Decrement"})(y||(y={}));function x(h){var c=(0,o.Oc)(),f=c.act,v=c.data,O=v.autofocus,C=v.buttons,I=C===void 0?[]:C,M=v.large_buttons,A=v.message,T=A===void 0?"":A,b=v.timeout,B=v.title,R=(0,i.useState)(0),N=R[0],W=R[1],H=I.some(function(Q){return Q.length>10}),q=H&&M?20:15,V=120+(H?q*I.length:0)+(T.length>30?Math.ceil(T.length/4):0)+(T.length&&M?5:0),Y=345+(I.length>2?55:0);function _(Q){switch(Q.key){case a._.Space:case a._.Enter:f("choose",{choice:I[N]});return;case a._.Left:Q.preventDefault(),te(-1);return;case a._.Tab:case a._.Right:Q.preventDefault(),te(1);return;default:if((0,a.K)(Q.key)){f("cancel");return}}}function te(Q){var oe=(N+Q+I.length)%I.length;W(oe)}return(0,e.jsxs)(u.p8,{height:V,title:B,width:Y,children:[!!b&&(0,e.jsx)(E.Loader,{value:b}),(0,e.jsx)(u.p8.Content,{onKeyDown:_,children:(0,e.jsx)(l.wn,{fill:!0,children:(0,e.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l.BJ.Item,{m:1,children:(0,e.jsx)(l.az,{color:"label",overflow:"hidden",children:T})}),(0,e.jsxs)(l.BJ.Item,{grow:!0,children:[!!O&&(0,e.jsx)(l.y5,{}),H?(0,e.jsx)(p,{selected:N}):(0,e.jsx)(m,{selected:N})]})]})})})]})}function m(h){var c=(0,o.Oc)(),f=c.act,v=c.data,O=v.buttons,C=O===void 0?[]:O,I=v.large_buttons,M=v.swapped_buttons,A=h.selected;return(0,e.jsx)(l.BJ,{fill:!0,justify:"space-around",reverse:!M,children:C.map(function(T,b){return(0,e.jsx)(l.BJ.Item,{grow:I?1:void 0,children:(0,e.jsx)(l.$n,{fluid:!!I,minWidth:5,onClick:function(){return f("choose",{choice:T})},overflowX:"hidden",px:2,py:I?.5:0,selected:A===b,textAlign:"center",children:I?T.toUpperCase():T})},b)})})}function p(h){var c=(0,o.Oc)(),f=c.act,v=c.data,O=v.buttons,C=O===void 0?[]:O,I=v.large_buttons,M=v.swapped_buttons,A=h.selected;return(0,e.jsx)(l.BJ,{align:"center",fill:!0,justify:"space-around",reverse:!M,vertical:!0,children:C.map(function(T,b){return(0,e.jsx)(l.BJ.Item,{grow:!0,width:I?"100%":void 0,m:0,children:(0,e.jsx)(l.$n,{fluid:!0,minWidth:20,onClick:function(){return f("choose",{choice:T})},overflowX:"hidden",px:2,py:I?.5:0,selected:A===b,textAlign:"center",children:I?T.toUpperCase():T})},b)})})}},15293:function(S,j,t){"use strict";t.r(j),t.d(j,{TguiInputKeyComboModal:function(){return c}});var e=t(62161),a=t(87239),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E=t(5335),y=t(44149),x=function(f){return f.key!==a._.Alt&&f.key!==a._.Control&&f.key!==a._.Shift&&!(0,a.K)(f.key)},m={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},p=3,h=function(f){var v="";if(f.altKey&&(v+="Alt"),f.ctrlKey&&(v+="Ctrl"),f.shiftKey&&(v+="Shift"),f.location===p&&(v+="Numpad"),x(f)){var O=f.key.toUpperCase();v+=m[O]||O}return v},c=function(f){var v=(0,o.Oc)(),O=v.act,C=v.data,I=C.init_value,M=C.large_buttons,A=C.message,T=A===void 0?"":A,b=C.title,B=C.timeout,R=(0,i.useState)(I),N=R[0],W=R[1],H=(0,o.Ul)("binding",!0),q=H[0],V=H[1],Y=function(te){te!==N&&W(te)},_=130+(T.length>30?Math.ceil(T.length/3):0)+(T.length&&M?5:0);return(0,e.jsxs)(u.p8,{title:b,width:240,height:_,children:[B&&(0,e.jsx)(y.Loader,{value:B}),(0,e.jsx)(u.p8.Content,{onKeyDown:function(te){if(!q){te.key===a._.Enter&&O("submit",{entry:N}),(0,a.K)(te.key)&&O("cancel");return}if(te.preventDefault(),x(te)){Y(h(te)),V(!1);return}else if((0,a.K)(te.key)){Y(I),V(!1);return}},children:(0,e.jsxs)(l.wn,{fill:!0,children:[(0,e.jsx)(l.y5,{}),(0,e.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(l.az,{color:"label",children:T})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{disabled:q,content:q&&q!==null?"Awaiting input...":""+N,width:"100%",textAlign:"center",onClick:function(){Y(I),V(!0)}})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(E.InputButtons,{input:N})})]})]})})]})}},29089:function(S,j,t){"use strict";t.r(j),t.d(j,{ListInputModal:function(){return E}});var e=t(62161),a=t(28277),i=t(6544),o=t(7081),l=t(34995),u=t(5335),E=function(m){var p=m.items,h=p===void 0?[]:p,c=m.default_item,f=m.message,v=m.on_selected,O=m.on_cancel,C=(0,a.useState)(h.indexOf(c)),I=C[0],M=C[1],A=(0,a.useState)(h.length>9),T=A[0],b=A[1],B=(0,a.useState)(""),R=B[0],N=B[1],W=function(Q){var oe=te.length-1;if(Q===i.R)if(I===null||I===oe){var ne;M(0),(ne=document.getElementById("0"))==null||ne.scrollIntoView()}else{var ae;M(I+1),(ae=document.getElementById((I+1).toString()))==null||ae.scrollIntoView()}else if(Q===i.gf)if(I===null||I===0){var $;M(oe),($=document.getElementById(oe.toString()))==null||$.scrollIntoView()}else{var ie;M(I-1),(ie=document.getElementById((I-1).toString()))==null||ie.scrollIntoView()}},H=function(Q){Q!==I&&M(Q)},q=function(){b(!1),b(!0)},V=function(Q){var oe=String.fromCharCode(Q),ne=h.find(function(ie){return ie==null?void 0:ie.toLowerCase().startsWith(oe==null?void 0:oe.toLowerCase())});if(ne){var ae,$=h.indexOf(ne);M($),(ae=document.getElementById($.toString()))==null||ae.scrollIntoView()}},Y=function(Q){var oe;Q!==R&&(N(Q),M(0),(oe=document.getElementById("0"))==null||oe.scrollIntoView())},_=function(){b(!T),N("")},te=h.filter(function(Q){return Q==null?void 0:Q.toLowerCase().includes(R.toLowerCase())});return T||setTimeout(function(){var Q;return(Q=document.getElementById(I.toString()))==null?void 0:Q.focus()},1),(0,e.jsx)(l.wn,{onKeyDown:function(Q){var oe=window.event?Q.which:Q.keyCode;(oe===i.R||oe===i.gf)&&(Q.preventDefault(),W(oe)),oe===i.Ri&&(Q.preventDefault(),v(te[I])),!T&&oe>=i.W8&&oe<=i.bh&&(Q.preventDefault(),V(oe)),oe===i.s6&&(Q.preventDefault(),O())},buttons:(0,e.jsx)(l.$n,{compact:!0,icon:T?"search":"font",selected:!0,tooltip:T?"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(){return _()}}),className:"ListInput__Section",fill:!0,title:f,children:(0,e.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(y,{filteredItems:te,onClick:H,onFocusSearch:q,searchBarVisible:T,selected:I})}),T&&(0,e.jsx)(x,{filteredItems:te,onSearch:Y,searchQuery:R,selected:I}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(u.InputButtons,{input:te[I],on_submit:function(){return v(te[I])},on_cancel:O})})]})})},y=function(m){var p=(0,o.Oc)().act,h=m.filteredItems,c=m.onClick,f=m.onFocusSearch,v=m.searchBarVisible,O=m.selected;return(0,e.jsxs)(l.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(l.y5,{}),h.map(function(C,I){return(0,e.jsx)(l.$n,{color:"transparent",fluid:!0,onClick:function(){return c(I)},onDoubleClick:function(M){M.preventDefault(),p("submit",{entry:h[O]})},onKeyDown:function(M){var A=window.event?M.which:M.keyCode;v&&A>=i.W8&&A<=i.bh&&(M.preventDefault(),f())},selected:I===O,style:{animation:"none",transition:"none"},children:C.replace(/^\w/,function(M){return M.toUpperCase()})},I)})]})},x=function(m){var p=(0,o.Oc)().act,h=m.filteredItems,c=m.onSearch,f=m.searchQuery,v=m.selected;return(0,e.jsx)(l.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(O){O.preventDefault(),p("submit",{entry:h[v]})},onInput:function(O,C){return c(C)},placeholder:"Search...",value:f})}},73688:function(S,j,t){"use strict";t.r(j),t.d(j,{TguiInputListInputWindow:function(){return u}});var e=t(62161),a=t(7081),i=t(85242),o=t(44149),l=t(29089),u=function(){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.items,p=m===void 0?[]:m,h=x.message,c=h===void 0?"":h,f=x.init_value,v=x.large_buttons,O=x.timeout,C=x.title,I=325+Math.ceil(c.length/3)+(v?5:0);return(0,e.jsxs)(i.p8,{title:C,width:325,height:I,children:[O&&(0,e.jsx)(o.Loader,{value:O}),(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(l.ListInputModal,{items:p,default_item:f,message:c,on_selected:function(M){return y("submit",{entry:M})},on_cancel:function(){return y("cancel")}})})]})}},49845:function(S,j,t){"use strict";t.r(j),t.d(j,{TguiInputNumberInputModal:function(){return x}});var e=t(62161),a=t(87239),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E=t(5335),y=t(44149),x=function(p){var h=(0,o.Oc)(),c=h.act,f=h.data,v=f.init_value,O=f.large_buttons,C=f.message,I=C===void 0?"":C,M=f.timeout,A=f.title,T=(0,i.useState)(v),b=T[0],B=T[1],R=function(W){W!==b&&B(W)},N=140+(I.length>30?Math.ceil(I.length/3):0)+(I.length&&O?5:0);return(0,e.jsxs)(u.p8,{title:A,width:270,height:N,children:[M&&(0,e.jsx)(y.Loader,{value:M}),(0,e.jsx)(u.p8.Content,{onKeyDown:function(W){W.key===a._.Enter&&c("submit",{entry:b}),(0,a.K)(W.key)&&c("cancel")},children:(0,e.jsx)(l.wn,{fill:!0,children:(0,e.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(l.az,{color:"label",children:I})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(m,{input:b,onClick:R,onChange:R,onBlur:R})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(E.InputButtons,{input:b})})]})})})]})},m=function(p){var h=(0,o.Oc)(),c=h.act,f=h.data,v=f.min_value,O=f.max_value,C=f.init_value,I=f.round_value,M=p.input,A=p.onClick,T=p.onChange,b=p.onBlur;return(0,e.jsxs)(l.BJ,{fill:!0,children:[(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{disabled:M===v,icon:"angle-double-left",onClick:function(){return A(v)},tooltip:v?"Min ("+v+")":"Min"})}),(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(l.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!I,minValue:v,maxValue:O,onChange:function(B,R){return T(R)},onBlur:function(B,R){return b(R)},onEnter:function(B,R){return c("submit",{entry:R})},value:M})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{disabled:M===O,icon:"angle-double-right",onClick:function(){return A(O)},tooltip:O?"Max ("+O+")":"Max"})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{disabled:M===C,icon:"redo",onClick:function(){return A(C)},tooltip:C?"Reset ("+C+")":"Reset"})})]})}},66579:function(S,j,t){"use strict";t.r(j),t.d(j,{TguiInputTextInputModal:function(){return p},removeAllSkiplines:function(){return m},sanitizeMultiline:function(){return x}});var e=t(62161),a=t(87239),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E=t(5335),y=t(44149),x=function(c){return c.replace(/(\n|\r\n){3,}/,"\n\n")},m=function(c){return c.replace(/[\r\n]+/,"")},p=function(c){var f=(0,o.Oc)(),v=f.act,O=f.data,C=O.large_buttons,I=O.max_length,M=O.message,A=M===void 0?"":M,T=O.multiline,b=O.placeholder,B=b===void 0?"":b,R=O.timeout,N=O.title,W=(0,i.useState)(B||""),H=W[0],q=W[1],V=function(te){if(te!==H){var Q=T?x(te):m(te);q(Q)}},Y=T||H.length>=30,_=135+(A.length>30?Math.ceil(A.length/4):0)+(Y?75:0)+(A.length&&C?5:0);return(0,e.jsxs)(u.p8,{title:N,width:325,height:_,children:[R&&(0,e.jsx)(y.Loader,{value:R}),(0,e.jsx)(u.p8.Content,{onKeyDown:function(te){te.key===a._.Enter&&(!Y||!te.shiftKey)&&v("submit",{entry:H}),(0,a.K)(te.key)&&v("cancel")},children:(0,e.jsx)(l.wn,{fill:!0,children:(0,e.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.az,{color:"label",children:A})}),(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{input:H,onType:V},N)}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(E.InputButtons,{input:H,message:H.length+"/"+I})})]})})})]})},h=function(c){var f=(0,o.Oc)(),v=f.act,O=f.data,C=O.max_length,I=O.multiline,M=c.input,A=c.onType,T=I||M.length>=30;return(0,e.jsx)(l.fs,{autoFocus:!0,autoSelect:!0,height:I||M.length>=30?"100%":"1.8rem",maxLength:C,onEscape:function(){return v("cancel")},onEnter:function(b){T&&b.shiftKey||(b.preventDefault(),v("submit",{entry:M}))},onChange:function(b,B){return A(B)},onInput:function(b,B){return A(B)},placeholder:"Type something...",value:M})}},2965:function(S,j,t){"use strict";t.r(j),t.d(j,{Circulator:function(){return x},ThermoelectricGenerator:function(){return y}});var e=t(62161),a=t(4089),i=t(28277),o=t(7081),l=t(34995),u=t(41242),E=t(85242),y=function(p){var h=(0,o.Oc)(),c=h.act,f=h.data,v=f.totalOutput,O=f.maxTotalOutput,C=f.thermalOutput,I=f.circConnected,M=f.primary,A=f.secondary;return(0,e.jsx)(E.p8,{width:500,height:360,children:(0,e.jsxs)(E.p8.Content,{children:[(0,e.jsx)(l.wn,{title:"Output",children:(0,e.jsxs)(l.Ki,{children:[(0,e.jsx)(l.Ki.Item,{label:"Total Output",children:(0,e.jsx)(l.z2,{value:v,maxValue:O,children:(0,e.jsx)(l.zv,{value:v,format:function(T){return(0,u.d5)(T)}})})}),(0,e.jsx)(l.Ki.Item,{label:"Thermal Output",children:(0,e.jsx)(l.zv,{value:C,format:function(T){return(0,u.d5)(T)}})})]})}),I?(0,e.jsxs)(l.BJ,{children:[M&&(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(x,{name:"Primary Circulator",circulator:M})}),A&&(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(x,{name:"Secondary Circulator",circulator:A})})]}):(0,e.jsx)(l.IC,{danger:!0,children:"ERROR: Both circulators must be connected!"})]})})},x=function(p){var h=(0,o.Oc)().config,c=p.circulator,f=p.name;return(0,e.jsxs)(l.wn,{title:f+" ("+c.dir+")",children:[(0,e.jsxs)(l.BJ,{justify:"space-around",align:"center",children:[(0,e.jsx)(l.BJ.Item,{children:h.window.toaster?(0,e.jsx)(l.In,{size:4,name:"fan",spin:c.flowCapacity>0,color:c.flowCapacity>80?"good":c.flowCapacity>50?"average":"bad"}):(0,e.jsx)(m,{value:c.flowCapacity})}),(0,e.jsxs)(l.BJ.Item,{children:[(0,e.jsx)(l.az,{color:"label",fontSize:1.2,children:"Flow Capacity"}),(0,e.jsx)(l.az,{children:(0,e.jsx)(l.zv,{value:c.flowCapacity,format:function(v){return(0,a.LI)(v,2)+"%"}})})]})]}),(0,e.jsx)(l.cG,{}),(0,e.jsxs)(l.Ki,{children:[(0,e.jsx)(l.Ki.Item,{label:"Turbine Output",children:(0,e.jsx)(l.zv,{value:c.output,format:function(v){return(0,u.d5)(v)}})}),(0,e.jsx)(l.Ki.Item,{label:"Inlet Pressure",children:(0,e.jsx)(l.zv,{value:c.inletPressure,format:function(v){return""+(0,a.LI)(v,2)+" kPa"}})}),(0,e.jsx)(l.Ki.Item,{label:"Inlet Temperature",children:(0,e.jsx)(l.zv,{value:c.inletTemperature,format:function(v){return""+(0,a.LI)(v,1)+" K"}})}),(0,e.jsx)(l.Ki.Item,{label:"Outlet Pressure",children:(0,e.jsx)(l.zv,{value:c.outletPressure,format:function(v){return""+(0,a.LI)(v,2)+" kPa"}})}),(0,e.jsx)(l.Ki.Item,{label:"Outlet Temperature",children:(0,e.jsx)(l.zv,{value:c.outletTemperature,format:function(v){return""+(0,a.LI)(v,1)+" K"}})})]})]})},m=function(p){var h=p.value,c=(0,i.useState)(0),f=c[0],v=c[1],O=.2,C=4,I=4;return(0,i.useEffect)(function(){var M=setInterval(function(){v(function(A){return(A+I)%359})},O*(100*C-h*C));return function(){return clearInterval(M)}},[h]),(0,e.jsx)(l.In,{rotation:f,size:4,name:"fan",color:h>80?"good":h>50?"average":"bad"})}},13101:function(S,j,t){"use strict";t.r(j),t.d(j,{Turbolift:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.floors,p=x.doors_open,h=x.fire_mode;return(0,e.jsx)(o.p8,{width:480,height:260+(h?1:0)*25,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsxs)(i.wn,{fill:!0,title:"Floor Selection",className:h?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:p?"door-open":"door-closed",selected:p&&!h,color:h?"red":null,onClick:function(){return y("toggle_doors")},children:p?h?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed"}),(0,e.jsx)(i.$n,{icon:"exclamation-triangle",color:"bad",onClick:function(){return y("emergency_stop")},children:"Emergency Stop"})]}),children:[!h||(0,e.jsx)(i.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(i.so,{wrap:"wrap",children:m.map(function(c){return(0,e.jsx)(i.so.Item,{basis:"100%",children:(0,e.jsxs)(i.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(i.so.Item,{basis:"40%",textAlign:"right",mr:2,children:c.label||"Floor #"+c.id}),(0,e.jsx)(i.so.Item,{basis:"8%",children:(0,e.jsx)(i.$n,{icon:"circle",color:c.current?"red":c.target?"green":c.queued?"yellow":null,onClick:function(){return y("move_to_floor",{ref:c.ref})}})}),(0,e.jsx)(i.so.Item,{basis:"50%",grow:1,children:c.name})]})},c.id)})})]})})})}},21037:function(S,j,t){"use strict";t.r(j),t.d(j,{Vending:function(){return h}});var e=t(62161),a=t(88716),i=t(7081),o=t(34995);function l(){return l=Object.assign||function(c){for(var f=1;f0&&(0,e.jsx)(o.IC,{style:{overflow:"hidden",wordBreak:"break-all"},children:c.message})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{justify:"space-between",textAlign:"center",children:[(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{fluid:!0,ellipsis:!0,icon:"building",onClick:function(){return f("setdepartment")},children:"Organization"})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{fluid:!0,ellipsis:!0,icon:"id-card",onClick:function(){return f("setaccount")},children:"Account"})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{fluid:!0,ellipsis:!0,icon:"tags",onClick:function(){return f("markup")},children:"Markup"})})]})})]})},x=function(c){var f=(0,i.Oc)(),v=f.act,O=f.data,C=O.ownerData;return(0,e.jsx)(o.wn,{title:O.isManaging?"Managment":"Commercial Info",children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{align:"center",children:(0,e.jsx)(o.In,{name:"toolbox",size:3,mx:1})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Owner",children:(C==null?void 0:C.name)||"Unknown"}),(0,e.jsx)(o.Ki.Item,{label:"Department",children:(C==null?void 0:C.dept)||"Not Specified"}),(0,e.jsx)(o.Ki.Item,{label:"Murkup",children:(O==null?void 0:O.markup)&&(O==null?void 0:O.markup)>0&&(0,e.jsx)(o.az,{children:O.markup})||"None"})]})})]}),O.isManaging&&y(O.managingData)||null]})})},m=function(c){var f=(0,i.Oc)(),v=f.act,O=f.config,C=f.data;return(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{fluid:!0,ellipsis:!0,onClick:function(){return v("vend",{key:c.key})},children:(0,e.jsxs)(o.BJ,{fill:!0,align:"center",children:[!O.window.toaster&&(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(u,{html:c.icon})}),(0,e.jsx)(o.BJ.Item,{grow:4,textAlign:"left",className:"Vending--text",children:c.name}),(0,e.jsxs)(o.BJ.Item,{grow:!0,textAlign:"right",className:"Vending--text",children:[c.amount,(0,e.jsx)(o.In,{name:"box",pl:"0.6em"})]}),c.price>0&&(0,e.jsxs)(o.BJ.Item,{grow:!0,textAlign:"right",className:"Vending--text",children:[c.price,(0,e.jsx)(o.In,{name:"money-bill",pl:"0.6em"})]})||null]})})}),C.isManaging&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:"tag",tooltip:"Change Price",color:"yellow",className:"Vending--icon",verticalAlignContent:"middle",onClick:function(){return v("setprice",{key:c.key})}})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:"eject",tooltip:"Remove",color:"red",className:"Vending--icon",verticalAlignContent:"middle",onClick:function(){return v("remove",{key:c.key})}})})]})||null]})})},p=function(c){var f=(0,i.Oc)().act;return(0,e.jsx)(o.aF,{className:"Vending--modal",children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,justify:"space-between",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",children:(0,a.ZH)(c.name)}),(0,e.jsx)(o.Ki.Item,{label:"Description",children:c.desc}),(0,e.jsx)(o.Ki.Item,{label:"Price",children:c.price})]})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.IC,{color:c.isError?"red":"",children:c.message})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{fluid:!0,icon:"ban",color:"red",content:"Cancel",className:"Vending--cancel",verticalAlignContent:"middle",onClick:function(){return f("cancelpurchase")}})})]})})},h=function(c){var f=(0,i.Oc)(),v=f.act,O=f.data;return(0,e.jsxs)(E.p8,{width:450,height:600,title:"Vending Machine - "+O.name,children:[(0,e.jsx)(E.p8.Content,{children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[O.isCustom&&(0,e.jsx)(o.BJ.Item,{children:x(O)})||null,O.panel&&(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{fluid:!0,bold:!0,my:1,py:1,icon:O.speaker?"comment":"comment-slash",content:"Speaker "+(O.speaker?"Enabled":"Disabled"),textAlign:"center",color:O.speaker?"green":"red",onClick:function(){return v("togglevoice")}})})||null,O.advertisement&&O.advertisement.length>0&&(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.wn,{children:(0,e.jsx)(o.Y0,{children:O.advertisement})})})||null,(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.wn,{scrollable:!0,fill:!0,title:"Products",children:(0,e.jsx)(o.BJ,{fill:!0,vertical:!0,children:O.products&&O.products.map(function(C,I){return m(C)})})})})]})}),O.isVending&&p(O.vendingData)||null]})}},33368:function(S,j,t){"use strict";t.r(j),t.d(j,{Wires:function(){return u}});var e=t(62161),a=t(88716),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.wires||[],h=m.status||[];return(0,e.jsx)(l.p8,{width:350,height:150+p.length*30,children:(0,e.jsxs)(l.p8.Content,{children:[(0,e.jsx)(o.wn,{children:(0,e.jsx)(o.Ki,{children:p.map(function(c){return(0,e.jsx)(o.Ki.Item,{className:"candystripe",label:(0,a.ZH)(c.color_name),labelColor:c.color,color:c.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{onClick:function(){return x("cut",{wire:c.color})},children:c.cut?"Mend":"Cut"}),(0,e.jsx)(o.$n,{onClick:function(){return x("pulse",{wire:c.color})},children:"Pulse"}),(0,e.jsx)(o.$n,{onClick:function(){return x("attach",{wire:c.color})},children:c.attached?"Detach":"Attach"})]}),children:!!c.desc&&(0,e.jsxs)("i",{children:["(",c.desc,")"]})},c.color)})})}),!!h.length&&(0,e.jsx)(o.wn,{children:h.map(function(c){return(0,e.jsx)(o.az,{color:"lightgray",mt:.1,children:c},c)})})]})})}},27936:function(S,j,t){"use strict";t.r(j),t.d(j,{PortConnector:function(){return l},PressureRegulator:function(){return u}});var e=t(62161),a=t(4089),i=t(34995),o=t(41242),l=function(E){var y=E.connected;return(0,e.jsxs)(i.BJ,{align:"center",children:[(0,e.jsx)(i.BJ.Item,{mt:y?0:.3,children:(0,e.jsx)(i.In,{color:y?"good":"bad",name:y?"plug":"times",size:1.25})}),(0,e.jsx)(i.BJ.Item,{color:y?"good":"bad",children:y?"Connected":"Disconnected"})]})},u=function(E){var y=E.highlightRing,x=E.pressure,m=E.minPressure,p=E.maxPressure,h=E.onChange,c=E.onMax,f=E.onDefault,v=E.unit,O=v===void 0?"kPa":v,C=E.format,I=C===void 0?function(M){return(0,o.Pz)((0,a.LI)(M,2))}:C;return(0,e.jsxs)(i.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(i.BJ.Item,{color:"label",children:"Regulator"}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.BJ,{children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.N6,{className:"Canister--knob",size:1.25,color:y,value:x,fillValue:x,minValue:m,maxValue:p,unit:O,stepPixelSize:1,onChange:h})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.BJ,{vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{mb:-1,children:(0,e.jsx)(i.$n,{fluid:!0,color:"transparent",icon:"fast-forward",tooltip:"Set to max",onClick:c})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{fluid:!0,color:"transparent",icon:"undo",tooltip:"Reset to default",onClick:f})})]})})]})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.zv,{value:x,format:I})})]})}},78924:function(S,j,t){"use strict";t.r(j),t.d(j,{BeakerContents:function(){return i}});var e=t(62161),a=t(34995),i=function(o){var l=o.beakerLoaded,u=o.beakerContents;return(0,e.jsxs)(a.az,{children:[!l&&(0,e.jsx)(a.az,{color:"label",children:"No beaker loaded."})||u.length===0&&(0,e.jsx)(a.az,{color:"label",children:"Beaker is empty."}),u.map(function(E){return(0,e.jsxs)(a.az,{color:"label",children:[(0,e.jsx)(a.zv,{initial:0,value:E.volume})," units of "+E.name]},E.name)})]})}},9478:function(S,j,t){"use strict";t.r(j),t.d(j,{ColoredSecurityLevel:function(){return y},DeltaSecurityLevel:function(){return x},SecurityLevelData:function(){return E},SecurityLevelEnum:function(){return l}});var e=t(62161),a=t(88716),i=t(28277),o=t(34995),l;(function(m){m.GREEN="code green",m.BLUE="code blue",m.RED="code red",m.DELTA="code delta"})(l||(l={}));var u,E=(u={},u["code green"]={color:"#23e870"},u["code blue"]={color:"#45b6ea"},u["code red"]={color:"#fa4c41"},u),y=function(m){var p=m.security_level;if(p==="code delta")return(0,e.jsx)(x,{});var h=E[p];return(0,e.jsx)(o.az,{inline:!0,color:h.color,children:(0,a.Sn)(p)})},x=function(m){var p="CODE DELTA",h=(0,i.useState)(0),c=h[0],f=h[1],v=200;return(0,i.useEffect)(function(){var O=setInterval(function(){f(function(C){var I=(C+1)%p.length;return p[I]===" "&&(I+=1),I})},v);return function(){return clearInterval(O)}},[]),(0,e.jsxs)(o.az,{as:"span",inline:!0,color:"#f00",bold:!0,children:[p.substring(0,c),(0,e.jsx)(o.az,{as:"span",inline:!0,color:"#45b6ea",bold:!0,children:p.substring(c,c+1)}),p.substring(c+1)]})}},5335:function(S,j,t){"use strict";t.r(j),t.d(j,{InputButtons:function(){return o}});var e=t(62161),a=t(7081),i=t(34995),o=function(l){var u=(0,a.Oc)(),E=u.act,y=u.data,x=y.large_buttons,m=y.swapped_buttons,p=l.input,h=l.message,c=l.on_submit,f=l.on_cancel,v=c;v||(v=function(){E("submit",{entry:p})});var O=f;O||(O=function(){E("cancel")});var C=(0,e.jsx)(i.$n,{color:"good",fluid:!!x,height:!!x&&2,onClick:v,m:.5,pl:2,pr:2,pt:x?.33:0,textAlign:"center",tooltip:x&&h,width:!x&&6,children:x?"SUBMIT":"Submit"}),I=(0,e.jsx)(i.$n,{color:"bad",fluid:!!x,height:!!x&&2,onClick:O,m:.5,pl:2,pr:2,pt:x?.33:0,textAlign:"center",width:!x&&6,children:x?"CANCEL":"Cancel"});return(0,e.jsxs)(i.so,{align:"center",direction:m?"row-reverse":"row",fill:!0,justify:"space-around",children:[x?(0,e.jsx)(i.so.Item,{grow:!0,children:I}):(0,e.jsx)(i.so.Item,{children:I}),!x&&h&&(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.az,{color:"label",textAlign:"center",children:h})}),x?(0,e.jsx)(i.so.Item,{grow:!0,children:C}):(0,e.jsx)(i.so.Item,{children:C})]})}},98071:function(S,j,t){"use strict";t.r(j),t.d(j,{InterfaceLockNoticeBox:function(){return o}});var e=t(62161),a=t(7081),i=t(34995),o=function(l){var u=(0,a.Oc)(),E=u.act,y=u.data,x=l.siliconUser,m=x===void 0?y.siliconUser:x,p=l.locked,h=p===void 0?y.locked:p,c=l.onLockStatusChange,f=c===void 0?function(){return E("lock")}:c,v=l.accessText,O=v===void 0?"an ID card":v,C=l.preventLocking,I=C===void 0?y.preventLocking:C;return m?(0,e.jsx)(i.IC,{color:"grey",children:(0,e.jsxs)(i.so,{align:"center",children:[(0,e.jsx)(i.so.Item,{children:"Interface lock status:"}),(0,e.jsx)(i.so.Item,{grow:1}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{m:0,color:h?"red":"green",icon:h?"lock":"unlock",disabled:I,onClick:function(){f&&f(!h)},children:h?"Locked":"Unlocked"})})]})}):(0,e.jsxs)(i.IC,{children:["Swipe ",O," to ",h?"unlock":"lock"," this interface."]})}},44149:function(S,j,t){"use strict";t.r(j),t.d(j,{Loader:function(){return o}});var e=t(62161),a=t(4089),i=t(34995),o=function(l){var u=l.value;return(0,e.jsx)("div",{className:"AlertModal__Loader",children:(0,e.jsx)(i.az,{className:"AlertModal__LoaderProgress",style:{width:(0,a.J$)(u)*100+"%"}})})}},96825:function(S,j,t){"use strict";t.r(j),t.d(j,{LoadingScreen:function(){return i}});var e=t(62161),a=t(34995),i=function(o){return(0,e.jsx)(a.Rr,{children:(0,e.jsxs)(a.BJ,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.In,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.jsx)(a.BJ.Item,{children:"Please wait..."})]})})}},17561:function(S,j,t){"use strict";t.r(j)},40289:function(S,j,t){"use strict";t.r(j),t.d(j,{departmentData:function(){return e}});var e={heads:{name:"Command Staff"},sec:{name:"Security - Marshals"},bls:{name:"Security - Blackshield"},med:{name:"Soteria Medical"},sci:{name:"Soteria Research"},chr:{name:"Church of the Absolute"},sup:{name:"Lonestar Shipping Solutions"},eng:{name:"Artificers Guild"},pro:{name:"Prospector"},civ:{name:"Civilian"},bot:{name:"Silicon"},ldg:{name:"Lodge"}}},85653:function(S,j,t){"use strict";t.d(j,{P:function(){return x}});var e=t(62161),a=t(65380),i=t(28277),o=t(7081),l=t(96781),u=t(37912);/**
+ */function o(M,A){(A==null||A>M.length)&&(A=M.length);for(var T=0,b=new Array(A);T=M.length?{done:!0}:{done:!1,value:M[b++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var E=(0,i.h)("hotkeys"),y={},x=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],m={},p=[],h=function(M){if(M===16)return"Shift";if(M===17)return"Ctrl";if(M===18)return"Alt";if(M===33)return"Northeast";if(M===34)return"Southeast";if(M===35)return"Southwest";if(M===36)return"Northwest";if(M===37)return"West";if(M===38)return"North";if(M===39)return"East";if(M===40)return"South";if(M===45)return"Insert";if(M===46)return"Delete";if(M>=48&&M<=57||M>=65&&M<=90)return String.fromCharCode(M);if(M>=96&&M<=105)return"Numpad"+(M-96);if(M>=112&&M<=123)return"F"+(M-111);if(M===188)return",";if(M===189)return"-";if(M===190)return"."},c=function(M){var A=String(M);if(A==="Ctrl+F5"||A==="Ctrl+R"){location.reload();return}if(A!=="Ctrl+F"&&!(M.event.defaultPrevented||M.isModifierKey()||x.includes(M.code))){var T=h(M.code);if(T){var b=y[T];if(b)return E.debug("macro",b),Byond.command(b);if(M.isDown()&&!m[T]){m[T]=!0;var B='KeyDown "'+T+'"';return E.debug(B),Byond.command(B)}if(M.isUp()&&m[T]){m[T]=!1;var R='KeyUp "'+T+'"';return E.debug(R),Byond.command(R)}}}},f=function(M){x.push(M)},v=function(M){var A=x.indexOf(M);A>=0&&x.splice(A,1)},O=function(){for(var M=u(Object.keys(m)),A;!(A=M()).done;){var T=A.value;m[T]&&(m[T]=!1,E.log('releasing key "'+T+'"'),Byond.command('KeyUp "'+T+'"'))}},C=function(){Byond.winget("default.*").then(function(M){for(var A={},T=u(Object.keys(M)),b;!(b=T()).done;){var B=b.value,R=B.split("."),N=R[1],W=R[2];N&&W&&(A[N]||(A[N]={}),A[N][W]=M[B])}for(var H=/\\"/g,q=function(oe){return oe.substring(1,oe.length-1).replace(H,'"')},V=u(Object.keys(A)),Y;!(Y=V()).done;){var _=Y.value,te=A[_],Q=q(te.name);y[Q]=q(te.command)}E.debug("loaded macros",y)}),a.Nh.on("window-blur",function(){O()}),a.Nh.on("key",function(M){for(var A=u(p),T;!(T=A()).done;){var b=T.value;b(M)}c(M)})},I=function(M){p.push(M);var A=!1;return function(){A||(A=!0,p.splice(p.indexOf(M),1))}}},40645:function(S,j,t){"use strict";t.r(j),t.d(j,{AiAirlock:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},u=function(p){var h=(0,a.Oc)().data,c=h.allowed;return(0,e.jsx)(o.p8,{width:470,height:370,children:(0,e.jsx)(o.p8.Content,{children:c?(0,e.jsx)(y,{}):(0,e.jsx)(E,{})})})},E=function(p){var h=(0,a.Oc)(),c=h.act,f=h.data,v=f.aiHacking,O=f.canHack;return(0,e.jsx)(i.wn,{fill:!0,color:"bad",title:"ACCESS DENIED",children:(0,e.jsxs)(i.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(i.BJ.Item,{fontSize:1.2,children:"Unable to interface with airlock."}),O?(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"bug",onClick:function(){return c("hack")},disabled:v,children:"Hack Controls?"})}):(0,e.jsx)(i.BJ.Item,{children:"Hacking impossible."}),!!v&&(0,e.jsx)(i.BJ.Item,{mt:2,children:(0,e.jsxs)(i.BJ,{vertical:!0,align:"center",fontSize:2,children:[(0,e.jsx)(i.BJ.Item,{children:"HACKING"}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.In,{name:"spinner",spin:!0})})]})})]})})},y=function(p){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),(0,e.jsx)(m,{})]})},x=function(p){var h=(0,a.Oc)(),c=h.act,f=h.data,v=f.power,O=f.shock,C=f.shock_timeleft,I=f.wires,M=v.main,A=v.main_timeleft,T=v.backup,b=v.backup_timeleft,B=l[M]||l[0],R=l[T]||l[0],N=l[O]||l[0];return(0,e.jsx)(i.wn,{title:"Power Status",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Main",color:B.color,buttons:(0,e.jsx)(i.$n,{icon:"lightbulb-o",disabled:!M,onClick:function(){return c("disrupt-main")},children:"Disrupt"}),children:[M?"Online":"Offline"," ",(!I.main_1||!I.main_2)&&"[Wires have been cut!]"||A>0&&"["+A+"s]"]}),(0,e.jsxs)(i.Ki.Item,{label:"Backup",color:R.color,buttons:(0,e.jsx)(i.$n,{icon:"lightbulb-o",disabled:!T,onClick:function(){return c("disrupt-backup")},children:"Disrupt"}),children:[T?"Online":"Offline"," ",(!I.backup_1||!I.backup_2)&&"[Wires have been cut!]"||b>0&&"["+b+"s]"]}),(0,e.jsxs)(i.Ki.Item,{label:"Electrify",color:N.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"wrench",disabled:!I.shock,selected:O===2,onClick:function(){return c("shock-restore")},children:"Restore"}),(0,e.jsx)(i.$n,{icon:"bolt",disabled:!I.shock,selected:O!==2&&C!==-1,onClick:function(){return c("shock-temp")},children:"Temporary"}),(0,e.jsx)(i.$n,{icon:"bolt",disabled:!I.shock,selected:O!==2&&C===-1,onClick:function(){return c("shock-perm")},children:"Permanent"})]}),children:[O===2?"Safe":"Electrified"," ",!I.shock&&"[Wires have been cut!]"||C>0&&"["+C+"s]"||C===-1&&"[Permanent]"]})]})})},m=function(p){var h=(0,a.Oc)(),c=h.act,f=h.data,v=f.id_scanner,O=f.locked,C=f.lights,I=f.safe,M=f.speed,A=f.welded,T=f.opened,b=f.wires;return(0,e.jsx)(i.wn,{title:"Access and Door Control",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:v?"power-off":"times",selected:v,disabled:!b.id_scanner,onClick:function(){return c("idscan-toggle")},children:v?"Enabled":"Disabled"}),children:!b.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(i.Ki.Divider,{}),(0,e.jsx)(i.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:O?"lock":"unlock",selected:O,disabled:!b.bolts,onClick:function(){return c("bolt-toggle")},children:O?"Lowered":"Raised"}),children:!b.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(i.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:C?"power-off":"times",selected:C,disabled:!b.lights,onClick:function(){return c("light-toggle")},children:C?"Enabled":"Disabled"}),children:!b.lights&&"[Wires have been cut!]"}),(0,e.jsx)(i.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:I?"power-off":"times",selected:I,disabled:!b.safe,onClick:function(){return c("safe-toggle")},children:I?"Enabled":"Disabled"}),children:!b.safe&&"[Wires have been cut!]"}),(0,e.jsx)(i.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:M?"power-off":"times",selected:M,disabled:!b.timing,onClick:function(){return c("speed-toggle")},children:M?"Enabled":"Disabled"}),children:!b.timing&&"[Wires have been cut!]"}),(0,e.jsx)(i.Ki.Divider,{}),(0,e.jsx)(i.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(i.$n,{icon:T?"sign-out-alt":"sign-in-alt",selected:T,disabled:O||A,onClick:function(){return c("open-close")},children:T?"Open":"Closed"}),children:!!(O||A)&&(0,e.jsxs)("span",{children:["[Door is ",O?"bolted":"",O&&A?" and ":"",A?"welded":"","!]"]})})]})})}},81332:function(S,j,t){"use strict";t.r(j),t.d(j,{AntimatterControl:function(){return u}});var e=t(62161),a=t(41242),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.active,h=m.instability,c=m.linked_shielding,f=m.cores,v=m.efficiency,O=m.stability,C=m.stored_power,I=m.fuel,M=m.fuel_max,A=m.fuel_injection;return(0,e.jsx)(l.p8,{width:420,height:500,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsxs)(o.wn,{title:"Antimatter Control Panel",buttons:(0,e.jsx)(o.$n,{color:"average",icon:"shield-alt",tooltip:"Force Shielding Update",onClick:function(){return x("refreshicons")}}),children:[(0,e.jsxs)(o.BJ,{align:"center",justify:"space-between",children:[(0,e.jsx)(o.BJ.Item,{basis:"70%",children:(0,e.jsx)(o.$n,{fluid:!0,icon:"power-off",color:p?"bad":"good",fontSize:2,mb:2,onClick:function(){return x("togglestatus")},children:p?"Power Off":"Power On"})}),(0,e.jsx)(o.BJ.Item,{basis:"30%",children:(0,e.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.N6,{step:1,stepPixelSize:6,value:A,minValue:0,maxValue:f*4,size:2,onChange:function(T,b){return x("set_fuel_injection",{value:b})}})}),(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsx)(o.zv,{value:A})," units/sec"]})]})})]}),(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Status",color:p?"good":"grey",children:p?"Injecting":"Standby"}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsxs)(o.Ki.Item,{label:"Instability",children:[(0,e.jsx)(o.zv,{value:h}),"%"]}),(0,e.jsx)(o.Ki.Item,{label:"Reactor parts",children:c}),(0,e.jsx)(o.Ki.Item,{label:"Cores",children:f}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Current Efficiency",children:(0,e.jsx)(o.zv,{value:v})}),(0,e.jsx)(o.Ki.Item,{label:"Average Stability",buttons:(0,e.jsx)(o.$n,{color:"average",icon:"bug",onClick:function(){return x("refreshstability")},children:"Check Stability"}),children:(0,e.jsx)(o.zv,{value:O})}),(0,e.jsx)(o.Ki.Item,{label:"Last Produced",children:(0,a.d5)(C)})]}),(0,e.jsx)(o.wn,{title:"Fuel",mt:2,buttons:I!==null&&(0,e.jsx)(o.$n,{icon:"eject",onClick:function(){return x("ejectjar")},children:"Eject Container"}),children:I===null?"No fuel receptacle detected.":(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Fuel",children:(0,e.jsx)(o.z2,{value:I,maxValue:M,ranges:{good:[M*.75,M],average:[M*.25,M*.75],bad:[0,M*.25]}})})})})]})})})}},61396:function(S,j,t){"use strict";t.r(j),t.d(j,{Apc:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=t(98071),u=function(m){return(0,e.jsx)(o.p8,{width:450,height:445,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},E={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"}},y={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"}},x=function(m){var p=(0,a.Oc)(),h=p.act,c=p.data,f=c.locked&&!c.siliconUser,v=E[c.externalPower]||E[0],O=E[c.chargingStatus]||E[0],C=c.powerChannels||[],I=y[c.malfStatus]||y[0],M=c.powerCellStatus/100;return c.failTime>0?(0,e.jsxs)(i.IC,{info:!0,textAlign:"center",mb:0,children:[(0,e.jsx)("b",{children:(0,e.jsx)("h3",{children:"SYSTEM FAILURE"})}),"I/O regulators have malfunctioned! ",(0,e.jsx)("br",{}),"Awaiting system reboot.",(0,e.jsx)("br",{}),"Executing software reboot in ",c.failTime," seconds...",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)(i.$n,{icon:"sync",tooltip:"Force an interface reset.",tooltipPosition:"bottom",onClick:function(){return h("reboot")},children:"Reboot Now"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l.InterfaceLockNoticeBox,{siliconUser:c.remoteAccess||c.siliconUser,preventLocking:c.remoteAccess}),(0,e.jsx)(i.wn,{title:"Power Status",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.jsx)(i.$n,{icon:c.isOperating?"power-off":"times",selected:c.isOperating&&!f,disabled:f,onClick:function(){return h("breaker")},children:c.isOperating?"On":"Off"}),children:["[ ",v.externalPowerText," ]"]}),(0,e.jsx)(i.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(i.z2,{color:"good",value:M})}),(0,e.jsxs)(i.Ki.Item,{label:"Charge Mode",color:O.color,buttons:(0,e.jsx)(i.$n,{icon:c.chargeMode?"sync":"times",disabled:f,onClick:function(){return h("charge")},children:c.chargeMode?"Auto":"Off"}),children:["["," ",O.chargingText+(c.chargingStatus===1?c.chargingPowerDisplay:"")," ","]"]})]})}),(0,e.jsx)(i.wn,{title:"Power Channels",children:(0,e.jsxs)(i.Ki,{children:[C.map(function(A){var T=A.topicParams;return(0,e.jsx)(i.Ki.Item,{label:A.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.az,{inline:!0,mx:2,color:A.status>=2?"good":"bad",children:A.status>=2?"On":"Off"}),(0,e.jsx)(i.$n,{icon:"sync",selected:!f&&(A.status===1||A.status===3),disabled:f,onClick:function(){return h("channel",T.auto)},children:"Auto"}),(0,e.jsx)(i.$n,{icon:"power-off",selected:!f&&A.status===2,disabled:f,onClick:function(){return h("channel",T.on)},children:"On"}),(0,e.jsx)(i.$n,{icon:"times",selected:!f&&A.status===0,disabled:f,onClick:function(){return h("channel",T.off)},children:"Off"})]}),children:A.powerLoad},A.title)}),(0,e.jsx)(i.Ki.Item,{label:"Total Load",children:(0,e.jsx)("b",{children:c.totalLoad})})]})}),(0,e.jsx)(i.wn,{title:"Misc",buttons:!!c.siliconUser&&(0,e.jsxs)(e.Fragment,{children:[!!c.malfStatus&&(0,e.jsx)(i.$n,{icon:I.icon,color:"bad",onClick:function(){return h(I.action)},children:I.content}),(0,e.jsx)(i.$n,{icon:"lightbulb-o",onClick:function(){return h("overload")},children:"Overload"})]}),children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(i.$n,{tooltip:"APC cover can be pried open with a crowbar.",icon:c.coverLocked?"lock":"unlock",disabled:f,onClick:function(){return h("cover")},children:c.coverLocked?"Engaged":"Disengaged"})}),(0,e.jsx)(i.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(i.$n,{tooltip:"Lights use internal power cell when there is no power available.",icon:"lightbulb-o",disabled:f,onClick:function(){return h("emergency_lighting")},children:c.emergencyLights?"Enabled":"Disabled"})}),(0,e.jsx)(i.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsx)(i.$n,{tooltip:"Dim lights to reduce power consumption.",icon:"lightbulb-o",disabled:c.disable_nightshift_toggle,onClick:function(){return h("toggle_nightshift")},children:c.nightshiftLights?"Enabled":"Disabled"})})]})})]})}},86887:function(S,j,t){"use strict";t.r(j),t.d(j,{ArtistBench:function(){return E},OddityTag:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=t(48562),u=function(y){var x=y.level,m="",p="";return x>=10?(m="Overwhelming",p="gold"):x>=6?(m="Strong",p="red"):x>=3?(m="Medium",p="green"):(m="Weak",p="blue"),(0,e.jsx)(i.az,{inline:!0,color:p,children:m})},E=function(y){var x=(0,a.Oc)(),m=x.act,p=x.data,h=p.mat_capacity,c=p.materials,f=p.oddity_name,v=p.oddity_stats;return(0,e.jsx)(o.p8,{width:300,height:400,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(l.LoadedMaterials,{mat_capacity:h,materials:c}),(0,e.jsxs)(i.wn,{title:"Model Oddity",buttons:(0,e.jsx)(i.$n,{icon:f?"eject":"caret-up",onClick:function(){m("oddity")},children:f?"Remove":"Insert"}),children:[(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Name",children:f||"None"})}),v?(0,e.jsx)(i.wn,{title:"Stats",children:(0,e.jsx)(i.BJ,{vertical:!0,children:v.map(function(O){return(0,e.jsxs)(i.BJ.Item,{children:[(0,e.jsx)(u,{level:O.level})," aspect of"," ",(0,e.jsx)("b",{children:O.name})]},O.name)})})}):null]}),(0,e.jsx)(i.$n,{fluid:!0,fontSize:"24px",textAlign:"center",icon:"brush",onClick:function(){m("create_art")},children:"Create Art"})]})})}},16561:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosAlertConsole:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.priority,p=m===void 0?[]:m,h=x.minor,c=h===void 0?[]:h;return(0,e.jsx)(o.p8,{width:350,height:300,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(i.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[p.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),p.map(function(f){return(0,e.jsx)("li",{children:f},f)}),c.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),c.map(function(f){return(0,e.jsx)("li",{children:f},f)})]})})})})}},47329:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosOmniFilter:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(E){return E.input?"Input":E.output?"Output":E.f_type?E.f_type:"Disabled"},u=function(E){var y=(0,a.Oc)(),x=y.act,m=y.data,p=m.power,h=m.config,c=m.ports,f=m.set_flow_rate,v=m.last_flow_rate;return(0,e.jsx)(o.p8,{width:360,height:330,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(i.wn,{title:h?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"power-off",selected:p,disabled:h,onClick:function(){return x("power")},children:p?"On":"Off"}),(0,e.jsx)(i.$n,{icon:"wrench",selected:h,onClick:function(){return x("configure")}})]}),children:c&&c.length>0?(0,e.jsx)(i.Ki,{children:c.map(function(O){return(0,e.jsx)(i.Ki.Item,{label:O.dir+" Port",children:h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{selected:O.input,icon:"compress-arrows-alt",onClick:function(){return x("switch_mode",{mode:"in",dir:O.dir})},children:"IN"}),(0,e.jsx)(i.$n,{selected:O.output,icon:"expand-arrows-alt",onClick:function(){return x("switch_mode",{mode:"out",dir:O.dir})},children:"OUT"}),(0,e.jsx)(i.$n,{icon:"wrench",disabled:O.input||O.output,selected:!!O.f_type,onClick:function(){return x("switch_filter",{mode:O.f_type,dir:O.dir})},children:O.f_type||"None"})]}):l(O)},O.dir)})}):(0,e.jsx)(i.az,{color:"average",children:"No Ports Configured/Detected"})}),(0,e.jsx)(i.wn,{title:"Flow Rate",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Current Flow Rate",children:[v," L/s"]}),(0,e.jsx)(i.Ki.Item,{label:"Flow Rate Limit",children:h?(0,e.jsx)(i.$n,{icon:"wrench",onClick:function(){return x("set_flow_rate")},children:f/10+" L/s"}):f/10+" L/s"})]})})]})})}},15368:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosOmniMixer:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(y){return y.input?"Input":y.output?"Output":"Disabled"},u=function(y){var x=(0,a.Oc)(),m=x.act,p=x.data,h=p.power,c=p.config,f=p.ports,v=p.set_flow_rate,O=p.last_flow_rate;return(0,e.jsx)(o.p8,{width:390,height:330,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(i.wn,{title:c?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"power-off",content:h?"On":"Off",selected:h,disabled:c,onClick:function(){return m("power")}}),(0,e.jsx)(i.$n,{icon:"wrench",selected:c,onClick:function(){return m("configure")}})]}),children:f&&f.length>0?(0,e.jsxs)(i.XI,{children:[(0,e.jsxs)(i.XI.Row,{header:!0,children:[(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Port"}),c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Concentration"}),c?(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),f.map(function(C){return(0,e.jsx)(E,{port:C,config:c},C.dir)})]}):(0,e.jsx)(i.az,{color:"average",children:"No Ports Configured/Detected"})}),(0,e.jsx)(i.wn,{title:"Flow Rate",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Current Flow Rate",children:[O," L/s"]}),(0,e.jsx)(i.Ki.Item,{label:"Flow Rate Limit",children:c?(0,e.jsx)(i.$n,{icon:"wrench",onClick:function(){return m("set_flow_rate")},children:v/10+" L/s"}):v/10+" L/s"})]})})]})})},E=function(y){var x=(0,a.Oc)().act,m=y.port,p=y.config;return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:m.dir+" Port"}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:p?(0,e.jsx)(i.$n,{selected:m.input,disabled:m.output,icon:"compress-arrows-alt",onClick:function(){return x("switch_mode",{mode:m.input?"none":"in",dir:m.dir})},children:"IN"}):l(m)}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:p?(0,e.jsx)(i.$n,{selected:m.output,icon:"expand-arrows-alt",onClick:function(){return x("switch_mode",{mode:"out",dir:m.dir})},children:"OUT"}):m.concentration*100+"%"}),p?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(i.$n,{width:"100%",icon:"wrench",disabled:!m.input,onClick:function(){return x("switch_con",{dir:m.dir})},children:m.input?m.concentration*100+" %":"-"})}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",children:(0,e.jsx)(i.$n,{fluid:!0,icon:m.con_lock?"lock":"lock-open",disabled:!m.input,selected:m.con_lock,onClick:function(){return x("switch_conlock",{dir:m.dir})},children:m.con_lock?"Locked":"Unlocked"})})]}):null]})}},56306:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosPump:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.on,p=x.max_rate,h=x.max_pressure,c=x.rate,f=x.pressure;return(0,e.jsx)(o.p8,{width:335,height:115,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Power",children:(0,e.jsx)(i.$n,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){return y("power")}})}),p?(0,e.jsxs)(i.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(i.Q7,{animated:!0,step:1,value:c,width:"63px",unit:"L/s",minValue:0,maxValue:p,onChange:function(v){return y("rate",{rate:v})}}),(0,e.jsx)(i.$n,{ml:1,icon:"plus",content:"Max",disabled:c===p,onClick:function(){return y("rate",{rate:"max"})}})]}):(0,e.jsxs)(i.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(i.Q7,{animated:!0,value:f,unit:"kPa",width:"75px",minValue:0,maxValue:h,step:10,onChange:function(v){return y("pressure",{pressure:v})}}),(0,e.jsx)(i.$n,{ml:1,icon:"plus",content:"Max",disabled:f===h,onClick:function(){return y("pressure",{pressure:"max"})}})]})]})})})})}},26947:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosPumpPortable:function(){return x}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(41242),u=t(85242),E=t(27936),y;(function(m){m[m.Siphon=0]="Siphon",m[m.Release=1]="Release"})(y||(y={}));var x=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.on,v=c.connected,O=c.pressure,C=c.pumpDir,I=c.targetpressure,M=c.defaultPressure,A=c.minPressure,T=c.maxPressure,b=c.powerDraw,B=c.cell,R=c.holding;return(0,e.jsx)(u.p8,{width:340,height:400,children:(0,e.jsxs)(u.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Status",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,e.jsx)(o.zv,{value:O,format:function(N){return(0,l.Pz)((0,a.LI)(N,2))}})}),(0,e.jsx)(o.Ki.Item,{label:"Port",verticalAlign:"middle",children:(0,e.jsx)(E.PortConnector,{connected:v})}),(0,e.jsx)(o.Ki.Item,{label:"Load",children:(0,e.jsx)(o.zv,{value:b,format:function(N){return(0,l.d5)((0,a.LI)(N,2))}})}),(0,e.jsx)(o.Ki.Item,{label:"Cell",children:B?(0,e.jsxs)(o.z2,{value:B.charge,maxValue:B.maxCharge,ranges:{good:[B.maxCharge*.5,Number.POSITIVE_INFINITY],average:[B.maxCharge*.25,B.maxCharge*.5],bad:[Number.NEGATIVE_INFINITY,B.maxCharge*.25]},children:[B.charge," / ",B.maxCharge]}):(0,e.jsx)(o.az,{color:"bad",children:"No Cell Installed"})})]})}),(0,e.jsx)(o.wn,{title:"Holding Tank",buttons:(0,e.jsx)(o.$n,{icon:"eject",disabled:!R,onClick:function(){return h("remove_tank")},children:"Eject"}),children:R?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Tank Label",children:R.name}),(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,l.Pz)((0,a.LI)(R.pressure,2))})]}):(0,e.jsx)(o.az,{color:"average",children:"No Tank Inserted"})}),(0,e.jsx)(o.wn,{title:"Power Regulator",children:(0,e.jsxs)(o.BJ,{align:"flex-start",justify:"space-around",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(o.BJ.Item,{color:"label",children:"Power"}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{fontSize:1.25,icon:"power-off",selected:f,onClick:function(){return h("power")},children:f?"On":"Off"})})]})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(o.BJ.Item,{color:"label",children:"Pump Direction"}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{fontSize:1.25,icon:C===1?"wind":"fan",onClick:function(){return h("direction")},color:C===1?"good":"average",children:C===1?"Out":"In"})})]})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E.PressureRegulator,{highlightRing:"",pressure:I,minPressure:A,maxPressure:T,onChange:function(N,W){return h("set_pressure",{pressure:W})},onDefault:function(){return h("set_pressure",{pressure:M})},onMax:function(){return h("set_pressure",{pressure:T})}})})]})})]})})}},3049:function(S,j,t){"use strict";t.r(j),t.d(j,{AtmosScrubberPortable:function(){return x}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(41242),u=t(85242),E=t(27936),y;(function(m){m[m.Siphon=0]="Siphon",m[m.Release=1]="Release"})(y||(y={}));var x=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.on,v=c.connected,O=c.pressure,C=c.rate,I=c.defaultRate,M=c.minRate,A=c.maxRate,T=c.powerDraw,b=c.cell,B=c.holding;return(0,e.jsx)(u.p8,{width:300,height:400,children:(0,e.jsxs)(u.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Status",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,e.jsx)(o.zv,{value:O,format:function(R){return(0,l.Pz)((0,a.LI)(R,2))}})}),(0,e.jsx)(o.Ki.Item,{label:"Port",verticalAlign:"middle",children:(0,e.jsx)(E.PortConnector,{connected:v})}),(0,e.jsx)(o.Ki.Item,{label:"Load",children:(0,e.jsx)(o.zv,{value:T,format:function(R){return(0,l.d5)((0,a.LI)(R,2))}})}),(0,e.jsx)(o.Ki.Item,{label:"Cell",children:b?(0,e.jsxs)(o.z2,{value:b.charge,maxValue:b.maxCharge,ranges:{good:[b.maxCharge*.5,Number.POSITIVE_INFINITY],average:[b.maxCharge*.25,b.maxCharge*.5],bad:[Number.NEGATIVE_INFINITY,b.maxCharge*.25]},children:[b.charge," / ",b.maxCharge]}):(0,e.jsx)(o.az,{color:"bad",children:"No Cell Installed"})})]})}),(0,e.jsx)(o.wn,{title:"Holding Tank",buttons:(0,e.jsx)(o.$n,{icon:"eject",disabled:!B,onClick:function(){return h("remove_tank")},children:"Eject"}),children:B?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Tank Label",children:B.name}),(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,l.Pz)((0,a.LI)(B.pressure,2))})]}):(0,e.jsx)(o.az,{color:"average",children:"No Tank Inserted"})}),(0,e.jsx)(o.wn,{title:"Power Regulator",children:(0,e.jsxs)(o.BJ,{align:"flex-start",justify:"space-around",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(o.BJ.Item,{color:"label",children:"Power"}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{fontSize:1.25,icon:"power-off",selected:f,onClick:function(){return h("power")},children:f?"On":"Off"})})]})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E.PressureRegulator,{highlightRing:"",pressure:C,minPressure:M,maxPressure:A,onChange:function(R,N){return h("set_volume",{volume:N})},onDefault:function(){return h("set_volume",{volume:I})},onMax:function(){return h("set_volume",{volume:A})},unit:"L/s",format:function(R){return""+(0,a.LI)(R,2)+" L/s"}})})]})})]})})}},43855:function(S,j,t){"use strict";t.r(j),t.d(j,{Autolathe:function(){return m},Disk:function(){return x},Reagents:function(){return y}});var e=t(62161),a=t(88716),i=t(7081),o=t(34995),l=t(85242),u=t(44390),E=t(48562),y=function(p){var h=(0,i.Oc)().act,c=p.container,f=p.reagents;return(0,e.jsx)(o.wn,{height:"100%",title:"Inserted beaker",buttons:c?(0,e.jsx)(o.$n,{icon:"eject",tooltip:"Eject Beaker",onClick:function(){return h("eject_beaker")}}):null,children:c?f.length>0?(0,e.jsx)(o.Ki,{children:f.map(function(v){return(0,e.jsx)(o.Ki.Item,{label:v.name,children:v.amount},v.name)})}):"Empty.":"Not inserted."})},x=function(p){var h=(0,i.Oc)().act,c=p.disk;return(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Disk",color:c?"white":"grey",buttons:c?(0,e.jsx)(o.$n,{icon:"eject",tooltip:"Eject Disk",onClick:function(){h("eject_disk")}}):null,children:c?(0,a.jT)(c.name):"Not inserted."}),c&&c.license>0?(0,e.jsx)(o.Ki.Item,{label:"License Points",children:c.license}):null]})})},m=function(p){var h=(0,i.Oc)(),c=h.act,f=h.data,v=f.have_design_selector,O=f.have_disk,C=f.disk,I=f.mat_capacity,M=f.materials,A=f.container,T=f.reagents,b=f.have_materials,B=f.have_reagents,R=f.designs,N=f.current,W=f.error,H=f.paused,q=f.progress,V=f.queue,Y=f.queue_max,_=f.special_actions,te=f.categories,Q=f.show_category,oe=f.mat_efficiency,ne=(0,i.QY)("search_text",""),ae=ne[0],$=ne[1];return(0,e.jsx)(l.p8,{width:720,height:700,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsxs)(o.BJ,{vertical:!0,height:"100%",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{children:[b?(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(E.LoadedMaterials,{mat_capacity:I,materials:M})}):null,B?(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(y,{container:A,reagents:T})}):null]})}),O?(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(x,{disk:C})}):null,_?(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.wn,{title:"Special Actions",children:(0,e.jsx)(o.BJ,{children:_.map(function(ie){return(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:ie.icon,onClick:function(){c("special_action",{action:ie.action})},children:ie.name})},ie.action)})})})}):null,te?(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.wn,{children:(0,e.jsx)(o.BJ,{fill:!0,wrap:!0,justify:"center",align:"center",children:te.map(function(ie){return(0,e.jsx)(o.BJ.Item,{mb:.5,mt:.5,children:(0,e.jsx)(o.$n,{selected:ie===Q,onClick:function(){return c("switch_category",{category:ie})},children:ie})},ie)})})})}):null,(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsxs)(o.BJ,{height:"95%",children:[R?(0,e.jsx)(o.BJ.Item,{grow:!0,height:"100%",children:v?(0,e.jsxs)(o.wn,{title:"Recipes",fill:!0,children:[(0,e.jsx)(o.az,{style:{paddingBottom:"8px"},children:(0,e.jsx)(u.SearchBar,{searchText:ae,onSearchTextChanged:$,hint:"Search all designs..."})}),(0,e.jsx)(o.wn,{style:{paddingRight:"4px",paddingBottom:"30px"},fill:!0,scrollable:!0,children:(0,e.jsx)(o.BJ,{vertical:!0,children:(0,e.jsx)(o.wj,{children:ae.length>0?R.filter(function(ie){return ie.name.toLowerCase().includes(ae)}).map(function(ie){return(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E.AutolatheItem,{design:ie,mat_efficiency:oe})},ie.id+ie.name)}):R.map(function(ie){return(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E.AutolatheItem,{design:ie,mat_efficiency:oe})},ie.id+ie.name)})})})})]}):(0,e.jsx)(o.wn,{color:"bad",children:"This equipment is operated remotely."})}):null,V?(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(E.AutolatheQueue,{current:N,error:W,paused:H,progress:q,queue:V,queue_max:Y,mat_efficiency:oe})}):null]})})]})})})}},50127:function(S,j,t){"use strict";t.r(j),t.d(j,{BookCase:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.bookcase_name,p=x.hex_code_for_backround,h=x.contents,c=x.contents_ref;return(0,e.jsx)(o.p8,{title:m||"Bookcase",width:350,height:300,children:(0,e.jsxs)(o.p8.Content,{backgroundColor:p,scrollable:!0,children:[h.map(function(f,v){return(0,e.jsxs)(i.so,{color:"black",backgroundColor:"white",style:{padding:"2px"},mb:.5,children:[(0,e.jsx)(i.so.Item,{align:"center",grow:1,children:(0,e.jsx)(i.az,{align:"center",children:f})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return y("remove_object",{ref:c[v]})}})})]},c[v])}),h.length===0&&(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.az,{color:"white",align:"center",children:["The ",m," is empty!"]})})]})})}},82195:function(S,j,t){"use strict";t.r(j),t.d(j,{Canister:function(){return y}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(41242),u=t(85242),E=t(27936),y=function(x){var m=(0,i.Oc)(),p=m.act,h=m.data,c=h.connected,f=h.canLabel,v=h.pressure,O=h.valveOpen,C=h.holding;return(0,e.jsx)(u.p8,{width:280,height:260,children:(0,e.jsxs)(u.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Canister",buttons:(0,e.jsx)(o.$n,{icon:"pencil-alt",disabled:!f,onClick:function(){return p("relabel")},tooltip:f?"":"This canister cannot be relabeled.",tooltipPosition:"bottom",children:"Relabel"}),children:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,e.jsx)(o.zv,{value:v,format:function(I){return(0,l.Pz)((0,a.LI)(I,2))}})}),(0,e.jsx)(o.Ki.Item,{label:"Port",verticalAlign:"middle",children:(0,e.jsx)(E.PortConnector,{connected:c})}),(0,e.jsx)(o.Ki.Item,{label:"Valve",children:C?(0,e.jsx)(o.$n,{color:"average",icon:O?"wind":"tint-slash",onClick:function(){return p("valve")},children:O?"Open":"Closed"}):(0,e.jsx)(o.$n.Confirm,{color:"bad",icon:O?"wind":"tint-slash",onClick:function(){return p("valve")},children:O?"Open":"Closed"})})]})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E.PressureRegulator,{highlightRing:O?"yellow":"",pressure:h.releasePressure,minPressure:h.minReleasePressure,maxPressure:h.maxReleasePressure,onChange:function(I,M){return p("pressure",{pressure:M})},onDefault:function(){return p("pressure",{pressure:h.defaultReleasePressure})},onMax:function(){return p("pressure",{pressure:h.maxReleasePressure})}})})]})}),(0,e.jsxs)(o.wn,{title:"Holding Tank",buttons:!!C&&(0,e.jsx)(o.$n,{icon:"eject",color:O&&"danger",onClick:function(){return p("eject")},children:"Eject"}),children:[!!C&&(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Label",children:C.name}),(0,e.jsxs)(o.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(o.zv,{value:C.pressure})," kPa"]})]}),!C&&(0,e.jsx)(o.az,{color:"average",children:"No Holding Tank"})]})]})})}},81979:function(S,j,t){"use strict";t.r(j),t.d(j,{Catalog:function(){return E},CatalogContent:function(){return y}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l;(function(b){b.All="all",b.Cooking="cooking",b.Drinks="drinks",b.Reagents="chemistry"})(l||(l={}));var u;(function(b){b.List="list",b.Entry="entry"})(u||(u={}));var E=function(b){return(0,e.jsx)(o.p8,{width:640,height:700,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(y,{})})})},y=function(b){var B=(0,a.Oc)().data,R=B.catalog_browse_stage,N=(0,e.jsx)(x,{});return R==="list"?N=(0,e.jsx)(h,{}):R==="entry"&&(N=(0,e.jsx)(C,{})),N},x=function(b){var B=(0,a.Oc)(),R=B.act,N=B.data,W=N.front_page_name,H=N.front_page_desc,q=N.front_page_icon;return(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.BJ,{vertical:!0,align:"center",justify:"center",wrap:!0,children:[q&&(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i._V,{width:"200px",src:q})}),(0,e.jsx)(i.BJ.Item,{fontSize:1.5,children:W}),(0,e.jsx)(i.BJ.Item,{fontSize:1.2,children:H}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{fontSize:1.5,icon:"folder-open",onClick:function(){return R("state_machine_enter_list")},children:"Browse"})})]})})},m=function(b){var B=(0,a.Oc)(),R=B.act,N=B.data,W=N.catalog_search,H=N.front_page_name,q=N.front_page_icon,V=N.last_entry,Y=b.showSearch,_=b.showBack;return(0,e.jsxs)(i.BJ,{height:"120px",align:"center",justify:"space-around",children:[q&&(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i._V,{height:"120px",src:q})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.BJ,{vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{fontSize:1.25,children:H}),Y&&(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.BJ,{align:"baseline",children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.In,{name:"search"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.pd,{width:25,fluid:!0,placeholder:"Search catalog...",value:W,onChange:function(te,Q){return R("set_catalog_search",{search:Q})}})})]})}),_&&(0,e.jsxs)(i.BJ.Item,{children:[!!V&&(0,e.jsxs)(i.$n,{fluid:!0,icon:"chevron-left",onClick:function(){return R("state_machine_pop_entry")},children:["Back to ",V]}),(0,e.jsxs)(i.$n,{fluid:!0,icon:"home",onClick:function(){return R("state_machine_enter_list")},children:["Return To List ",V?"(Erase History)":""]})]})]})})]})},p=function(b){var B=b.type;return _jsx(Section,{children:"Meow"})},h=function(b){var B=(0,a.Oc)().data,R=B.catalog_key,N=B.entries,W=(0,e.jsx)(i.az,{color:"bad",children:"This catalog is corrupted."});return R==="cooking"?W=(0,e.jsx)(c,{entries:N}):R==="drinks"?W=(0,e.jsx)(f,{entries:N}):R==="chemistry"?W=(0,e.jsx)(v,{entries:N}):R==="all"&&(W=(0,e.jsx)(O,{entries:N})),(0,e.jsxs)(i.wn,{fill:!0,height:"100%",children:[(0,e.jsx)(m,{showSearch:!0}),(0,e.jsx)(i.cG,{}),W]})},c=function(b){var B=(0,a.Oc)().act,R=b.entries;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.BJ,{p:1,textAlign:"center",children:[(0,e.jsx)(i.BJ.Item,{basis:"10%",textAlign:"left",children:"Preview"}),(0,e.jsx)(i.BJ.Item,{basis:"40%",textAlign:"left",children:"Name"}),(0,e.jsx)(i.BJ.Item,{basis:"25%",textAlign:"left",children:"Product"}),(0,e.jsx)(i.BJ.Item,{basis:"25%",textAlign:"left",children:"Byproduct"})]}),(0,e.jsx)(i.wn,{scrollable:!0,fill:!0,height:"70%",className:"CatalogList",children:(0,e.jsx)(i.wj,{children:R.map(function(N){return(0,e.jsxs)(i.BJ,{height:4,align:"center",p:1,children:[(0,e.jsx)(i.BJ.Item,{basis:"10%",children:(0,e.jsx)(i._V,{src:N.icon})}),(0,e.jsx)(i.BJ.Item,{basis:"40%",children:(0,e.jsx)(i.$n,{color:"transparent",textColor:"white",style:{borderBottom:"1px dashed #fff"},onClick:function(){return B("state_machine_enter_entry",{entry:N.id})},children:N.name})}),(0,e.jsxs)(i.BJ.Item,{basis:"25%",children:[N.product_count," ",N.product_name]}),(0,e.jsx)(i.BJ.Item,{basis:"25%",children:N.byproduct_count>0&&(0,e.jsxs)(e.Fragment,{children:[N.byproduct_count," ",N.byproduct_name]})})]},N.id)})})})]})},f=function(b){var B=(0,a.Oc)().act,R=b.entries;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.BJ,{p:1,textAlign:"center",children:[(0,e.jsx)(i.BJ.Item,{basis:"70%",textAlign:"left",children:"Name"}),(0,e.jsx)(i.BJ.Item,{basis:"30%",textAlign:"left",children:"Type"})]}),(0,e.jsx)(i.wn,{scrollable:!0,fill:!0,height:"70%",className:"CatalogList",children:(0,e.jsx)(i.wj,{children:R.map(function(N){return(0,e.jsxs)(i.BJ,{height:4,align:"center",p:1,children:[(0,e.jsx)(i.BJ.Item,{basis:"70%",children:(0,e.jsx)(i.$n,{color:"transparent",textColor:"white",style:{borderBottom:"1px dashed #fff"},onClick:function(){return B("state_machine_enter_entry",{entry:N.id})},children:N.name})}),(0,e.jsx)(i.BJ.Item,{basis:"30%",children:N.thing_nature})]},N.id)})})})]})},v=function(b){var B=(0,a.Oc)().act,R=b.entries;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.BJ,{p:1,textAlign:"center",children:[(0,e.jsx)(i.BJ.Item,{basis:"40%",textAlign:"left",children:"Name"}),(0,e.jsx)(i.BJ.Item,{basis:"20%",textAlign:"left",children:"Phase"}),(0,e.jsx)(i.BJ.Item,{basis:"40%",textAlign:"left",children:"Type"})]}),(0,e.jsx)(i.wn,{scrollable:!0,fill:!0,height:"70%",className:"CatalogList",children:(0,e.jsx)(i.wj,{children:R.map(function(N){return(0,e.jsxs)(i.BJ,{height:4,align:"center",p:1,children:[(0,e.jsx)(i.BJ.Item,{basis:"40%",children:(0,e.jsx)(i.$n,{color:"transparent",textColor:"white",style:{borderBottom:"1px dashed #fff"},onClick:function(){return B("state_machine_enter_entry",{entry:N.id})},children:N.name})}),(0,e.jsx)(i.BJ.Item,{basis:"20%",children:N.reagent_state}),(0,e.jsx)(i.BJ.Item,{basis:"40%",children:N.reagent_type})]},N.id)})})})]})},O=function(b){var B=(0,a.Oc)().act,R=b.entries;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.BJ,{p:1,textAlign:"center",children:[(0,e.jsx)(i.BJ.Item,{basis:"40%",textAlign:"left",children:"Name"}),(0,e.jsx)(i.BJ.Item,{basis:"20%",textAlign:"left",children:"Phase"}),(0,e.jsx)(i.BJ.Item,{basis:"40%",textAlign:"left",children:"Type"})]}),(0,e.jsx)(i.wn,{scrollable:!0,fill:!0,height:"70%",className:"CatalogList",children:(0,e.jsx)(i.wj,{children:R.map(function(N){return(0,e.jsxs)(i.BJ,{height:4,align:"center",p:1,children:[(0,e.jsx)(i.BJ.Item,{basis:"40%",children:(0,e.jsx)(i.$n,{color:"transparent",textColor:"white",style:{borderBottom:"1px dashed #fff"},onClick:function(){return B("state_machine_enter_entry",{entry:N.id})},children:N.name})}),(0,e.jsx)(i.BJ.Item,{basis:"20%",children:N.reagent_state||"Unknown"}),(0,e.jsx)(i.BJ.Item,{basis:"40%",children:N.reagent_type||"Unknown"})]},N.id)})})})]})},C=function(b){var B=(0,a.Oc)().data,R=B.selected_entry;if(!R)return(0,e.jsxs)(i.wn,{fill:!0,children:[(0,e.jsx)(m,{showBack:!0}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.az,{color:"bad",children:"This entry is corrupt."})]});var N=(0,e.jsxs)(i.az,{color:"bad",children:["Unknown recipe type ",R.id]});return R.id.startsWith("/datum/cooking_with_jane/recipe")?N=(0,e.jsx)(I,{selected_entry:R}):R.id.startsWith("/datum/reagent/drink")||R.id.startsWith("/datum/reagent/ethanol")?N=(0,e.jsx)(M,{selected_entry:R}):R.id.startsWith("/datum/reagent")&&(N=(0,e.jsx)(A,{selected_entry:R})),(0,e.jsxs)(i.wn,{fill:!0,children:[(0,e.jsx)(m,{showBack:!0}),(0,e.jsx)(i.cG,{}),N]})},I=function(b){var B=b.selected_entry,R=B.name,N=B.icon,W=B.product_is_reagent,H=B.product_name,q=B.product_count,V=B.byproduct_name,Y=B.byproduct_count,_=B.description,te=B.recipe_guide,Q=B.create_in;return(0,e.jsxs)(i.wn,{fill:!0,height:"80%",style:{overflowY:"auto"},children:[(0,e.jsxs)(i.BJ,{align:"center",justify:"space-around",children:[(0,e.jsxs)(i.BJ.Item,{grow:!0,children:[(0,e.jsx)(i.az,{fontSize:2,bold:!0,children:R}),(0,e.jsx)(i.az,{children:Q}),(0,e.jsx)(i.az,{children:_})]}),(0,e.jsx)(i.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsx)(i._V,{src:N,width:15})})]}),(0,e.jsx)(i.az,{fontSize:1.5,bold:!0,mt:1,children:"Specifications"}),(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:W?"Reagent Name":"Product Name",children:H}),(0,e.jsx)(i.Ki.Item,{label:W?"Units Produced":"Product Count",children:q}),Y>0&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Ki.Item,{label:"Reagent Byproduct",children:V}),(0,e.jsx)(i.Ki.Item,{label:"Byproduct Units Produced",children:Y})]}),!!te&&(0,e.jsx)(i.Ki.Item,{label:"Recipe",children:(0,e.jsx)(i.az,{style:{borderRadius:"5px",border:"1px solid #4972a1",overflowY:"auto"},p:1,height:10,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:te}})})})]})]})},M=function(b){var B=b.selected_entry,R=B.name,N=B.description,W=B.thing_nature,H=B.taste,q=B.strength,V=B.temperature,Y=B.nutrition,_=B.recipe_data;return(0,e.jsxs)(i.wn,{fill:!0,height:"80%",style:{overflowY:"auto"},children:[(0,e.jsx)(i.az,{fontSize:2,bold:!0,children:R}),(0,e.jsx)(i.az,{children:N}),(0,e.jsx)(i.az,{children:H}),(0,e.jsx)(i.az,{fontSize:1.5,bold:!0,mt:1,children:"Specifications"}),(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Type",children:W}),!!q&&(0,e.jsx)(i.Ki.Item,{label:"Alcohol Strength",children:q}),!!V&&(0,e.jsx)(i.Ki.Item,{label:"Served",children:V}),!!Y&&(0,e.jsx)(i.Ki.Item,{label:"Nourishment",children:Y}),!!_&&(0,e.jsx)(i.Ki.Item,{label:"Recipe",children:_.map(function(te,Q){return(0,e.jsx)(i.az,{style:{borderRadius:"5px",border:"1px solid #4972a1",overflowY:"auto"},p:1,height:10,children:(0,e.jsx)(T,{recipe_data:te})},Q)})})]})]})},A=function(b){var B=(0,a.Oc)().act,R=b.selected_entry,N=R.name,W=R.description,H=R.taste,q=R.scannable,V=R.reagent_type,Y=R.reagent_state,_=R.color,te=R.metabolism_blood,Q=R.metabolism_stomach,oe=R.nsa,ne=R.addiction_threshold,ae=R.addiction_chance,$=R.overdose,ie=R.result_of_decomposition_in,fe=R.recipe_data,ye=R.heating_decompose,ge=R.heating_point,De=R.chilling_decompose,Be=R.chilling_point,Je=R.can_be_used_in;return(0,e.jsxs)(i.wn,{fill:!0,height:"80%",style:{overflowY:"auto"},children:[(0,e.jsx)(i.az,{fontSize:2,bold:!0,children:N}),(0,e.jsx)(i.az,{children:W}),(0,e.jsx)(i.az,{children:H}),!q&&(0,e.jsx)(i.az,{children:"Impossible to scan."}),(0,e.jsx)(i.az,{fontSize:1.5,bold:!0,mt:1,children:"Specifications"}),(0,e.jsxs)(i.Ki,{children:[!!V&&(0,e.jsx)(i.Ki.Item,{label:"Type",children:V}),!!Y&&(0,e.jsxs)(i.Ki.Item,{label:"Phase",children:[Y," at STP"]}),!!_&&(0,e.jsx)(i.Ki.Item,{label:"Color",children:(0,e.jsx)(i.BK,{color:_,width:3})}),!!te&&(0,e.jsxs)(i.Ki.Item,{label:"Metabolism",children:[(0,e.jsxs)(i.az,{children:[te,"u/s in blood"]}),Q?(0,e.jsxs)(i.az,{children:[Q,"u/s in stomach"]}):(0,e.jsxs)(i.az,{children:[te/2,"u/s in stomach"]})]}),(0,e.jsxs)(i.Ki.Item,{label:"NSA",children:[oe," units"]}),!!ne&&(0,e.jsxs)(i.Ki.Item,{label:"Addiction Threshold",children:[ne,"u"]}),!!ae&&(0,e.jsx)(i.Ki.Item,{label:"Addiction Chance",children:ae}),!!$&&(0,e.jsxs)(i.Ki.Item,{label:"Overdose At",children:[$,"u"]}),!!ye&&ye.types.length&&(0,e.jsx)(i.Ki.Item,{label:"Decomposition Above "+ge+"K",labelColor:"red",children:(0,e.jsx)(i.az,{p:1,style:{borderRadius:"5px",border:"1px solid #4972a1"},children:ye.types.map(function(be){return(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:be.type})},children:be.name},be.type)})})}),!!De&&De.types.length&&(0,e.jsx)(i.Ki.Item,{label:"Decomposition Below "+Be+"K",labelColor:"blue",children:(0,e.jsx)(i.az,{p:1,style:{borderRadius:"5px",border:"1px solid #4972a1"},children:De.types.map(function(be){return(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:be.type})},children:be.name},be.type)})})}),!!ie&&(0,e.jsx)(i.Ki.Item,{label:"Result Of Decomposition",children:(0,e.jsx)(i.az,{p:1,style:{borderRadius:"5px",border:"1px solid #4972a1"},children:ie.map(function(be){return(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:be.type})},children:be.name},be.type)})})}),!!fe&&(0,e.jsx)(i.Ki.Item,{label:"Recipe",children:fe.map(function(be,Ae){return(0,e.jsx)(i.az,{style:{borderRadius:"5px",border:"1px solid #4972a1",overflowY:"auto"},p:1,height:10,children:(0,e.jsx)(T,{recipe_data:be})},Ae)})}),!!Je&&(0,e.jsx)(i.Ki.Item,{label:"Takes Part In Reactions",children:(0,e.jsx)(i.az,{p:1,style:{borderRadius:"5px",border:"1px solid #4972a1"},children:Je.map(function(be){return(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:be.type})},children:be.name},be.type)})})})]})]})},T=function(b){var B=(0,a.Oc)().act,R=b.recipe_data,N=R.reagents,W=R.catalyst,H=R.inhibitors,q=R.byproducts,V=R.result_amount,Y=R.minimum_temperature,_=R.maximum_temperature,te=R.required_object,Q;return Y&&_?Q=(0,e.jsxs)(i.az,{children:["At temperatures between ",Y,"K and ",_,"K"]}):Y?Q=(0,e.jsxs)(i.az,{children:["At temperatures above ",Y,"K"]}):_&&(Q=(0,e.jsxs)(i.az,{children:["At temperatures belo",_,"K"]})),(0,e.jsxs)(i.az,{children:[!!N&&N.map(function(oe){return(0,e.jsxs)(i.az,{children:[oe.parts," of"," ",(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:oe.type})},children:oe.reagent})]},oe.reagent)}),!!W&&W.map(function(oe){return(0,e.jsxs)(i.az,{children:["In presence of ",oe.units,"u of"," ",(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:oe.type})},children:oe.reagent})]},oe.reagent)}),!!H&&H.map(function(oe){return(0,e.jsxs)(i.az,{children:["Without presence of",(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:oe.type})},children:oe.reagent})]},oe.reagent)}),!!q&&q.map(function(oe){return(0,e.jsxs)(i.az,{children:["Additional Creation of",(0,e.jsx)(i.$n,{onClick:function(){return B("state_machine_enter_entry",{entry:oe.type})},children:oe.reagent})]},oe.reagent)}),Q,te&&(0,e.jsxs)(i.az,{children:["Should take place inside of ",te]}),(0,e.jsxs)(i.az,{children:["Results in ",V," of substance"]})]})}},86813:function(S,j,t){"use strict";t.r(j),t.d(j,{Changelog:function(){return ze}});var e=t(62161),a=t(65380),i=t(28496),o=t.n(i);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function l(d){return typeof d=="undefined"||d===null}function u(d){return typeof d=="object"&&d!==null}function E(d){return Array.isArray(d)?d:l(d)?[]:[d]}function y(d,K){var G,ee,J,ce;if(K)for(ce=Object.keys(K),G=0,ee=ce.length;Gde&&(ce=" ... ",K=ee-de+ce.length),G-ee>de&&(re=" ...",G=ee+de-re.length),{str:ce+d.slice(K,G).replace(/\t/g,"\u2192")+re,pos:ee-K+ce.length}}function b(d,K){return C.repeat(" ",K-d.length)+d}function B(d,K){if(K=Object.create(K||null),!d.buffer)return null;K.maxLength||(K.maxLength=79),typeof K.indent!="number"&&(K.indent=1),typeof K.linesBefore!="number"&&(K.linesBefore=3),typeof K.linesAfter!="number"&&(K.linesAfter=2);for(var G=/\r?\n|\r|\0/g,ee=[0],J=[],ce,re=-1;ce=G.exec(d.buffer);)J.push(ce.index),ee.push(ce.index+ce[0].length),d.position<=ce.index&&re<0&&(re=ee.length-2);re<0&&(re=ee.length-1);var de="",ve,je,He=Math.min(d.line+K.linesAfter,J.length).toString().length,we=K.maxLength-(K.indent+He+3);for(ve=1;ve<=K.linesBefore&&!(re-ve<0);ve++)je=T(d.buffer,ee[re-ve],J[re-ve],d.position-(ee[re]-ee[re-ve]),we),de=C.repeat(" ",K.indent)+b((d.line-ve+1).toString(),He)+" | "+je.str+"\n"+de;for(je=T(d.buffer,ee[re],J[re],d.position,we),de+=C.repeat(" ",K.indent)+b((d.line+1).toString(),He)+" | "+je.str+"\n",de+=C.repeat("-",K.indent+He+3+je.pos)+"^\n",ve=1;ve<=K.linesAfter&&!(re+ve>=J.length);ve++)je=T(d.buffer,ee[re+ve],J[re+ve],d.position-(ee[re]-ee[re+ve]),we),de+=C.repeat(" ",K.indent)+b((d.line+ve+1).toString(),He)+" | "+je.str+"\n";return de.replace(/\n$/,"")}var R=B,N=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],W=["scalar","sequence","mapping"];function H(d){var K={};return d!==null&&Object.keys(d).forEach(function(G){d[G].forEach(function(ee){K[String(ee)]=G})}),K}function q(d,K){if(K=K||{},Object.keys(K).forEach(function(G){if(N.indexOf(G)===-1)throw new A('Unknown option "'+G+'" is met in definition of "'+d+'" YAML type.')}),this.options=K,this.tag=d,this.kind=K.kind||null,this.resolve=K.resolve||function(){return!0},this.construct=K.construct||function(G){return G},this.instanceOf=K.instanceOf||null,this.predicate=K.predicate||null,this.represent=K.represent||null,this.representName=K.representName||null,this.defaultStyle=K.defaultStyle||null,this.multi=K.multi||!1,this.styleAliases=H(K.styleAliases||null),W.indexOf(this.kind)===-1)throw new A('Unknown kind "'+this.kind+'" is specified for "'+d+'" YAML type.')}var V=q;function Y(d,K){var G=[];return d[K].forEach(function(ee){var J=G.length;G.forEach(function(ce,re){ce.tag===ee.tag&&ce.kind===ee.kind&&ce.multi===ee.multi&&(J=re)}),G[J]=ee}),G}function _(){var d={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},K,G;function ee(J){J.multi?(d.multi[J.kind].push(J),d.multi.fallback.push(J)):d[J.kind][J.tag]=d.fallback[J.tag]=J}for(K=0,G=arguments.length;K=0?"0b"+d.toString(2):"-0b"+d.toString(2).slice(1)},octal:function(d){return d>=0?"0o"+d.toString(8):"-0o"+d.toString(8).slice(1)},decimal:function(d){return d.toString(10)},hexadecimal:function(d){return d>=0?"0x"+d.toString(16).toUpperCase():"-0x"+d.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Nt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Bt(d){return!(d===null||!Nt.test(d)||d[d.length-1]==="_")}function pt(d){var K,G;return K=d.replace(/_/g,"").toLowerCase(),G=K[0]==="-"?-1:1,"+-".indexOf(K[0])>=0&&(K=K.slice(1)),K===".inf"?G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:K===".nan"?NaN:G*parseFloat(K,10)}var Ct=/^[-+]?[0-9]+e/;function gt(d,K){var G;if(isNaN(d))switch(K){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===d)switch(K){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===d)switch(K){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(C.isNegativeZero(d))return"-0.0";return G=d.toString(10),Ct.test(G)?G.replace("e",".e"):G}function qe(d){return Object.prototype.toString.call(d)==="[object Number]"&&(d%1!==0||C.isNegativeZero(d))}var Ke=new V("tag:yaml.org,2002:float",{kind:"scalar",resolve:Bt,construct:pt,predicate:qe,represent:gt,defaultStyle:"lowercase"}),Ze=$.extend({implicit:[ge,be,Lt,Ke]}),Ue=Ze,nt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),et=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function st(d){return d===null?!1:nt.exec(d)!==null||et.exec(d)!==null}function It(d){var K,G,ee,J,ce,re,de,ve=0,je=null,He,we,Ye;if(K=nt.exec(d),K===null&&(K=et.exec(d)),K===null)throw new Error("Date resolve error");if(G=+K[1],ee=+K[2]-1,J=+K[3],!K[4])return new Date(Date.UTC(G,ee,J));if(ce=+K[4],re=+K[5],de=+K[6],K[7]){for(ve=K[7].slice(0,3);ve.length<3;)ve+="0";ve=+ve}return K[9]&&(He=+K[10],we=+(K[11]||0),je=(He*60+we)*6e4,K[9]==="-"&&(je=-je)),Ye=new Date(Date.UTC(G,ee,J,ce,re,de,ve)),je&&Ye.setTime(Ye.getTime()-je),Ye}function Qt(d){return d.toISOString()}var Zt=new V("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:st,construct:It,instanceOf:Date,represent:Qt});function nn(d){return d==="<<"||d===null}var xt=new V("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nn}),it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function _e(d){if(d===null)return!1;var K,G,ee=0,J=d.length,ce=it;for(G=0;G64)){if(K<0)return!1;ee+=6}return ee%8===0}function ct(d){var K,G,ee=d.replace(/[\r\n=]/g,""),J=ee.length,ce=it,re=0,de=[];for(K=0;K>16&255),de.push(re>>8&255),de.push(re&255)),re=re<<6|ce.indexOf(ee.charAt(K));return G=J%4*6,G===0?(de.push(re>>16&255),de.push(re>>8&255),de.push(re&255)):G===18?(de.push(re>>10&255),de.push(re>>2&255)):G===12&&de.push(re>>4&255),new Uint8Array(de)}function Ot(d){var K="",G=0,ee,J,ce=d.length,re=it;for(ee=0;ee>18&63],K+=re[G>>12&63],K+=re[G>>6&63],K+=re[G&63]),G=(G<<8)+d[ee];return J=ce%3,J===0?(K+=re[G>>18&63],K+=re[G>>12&63],K+=re[G>>6&63],K+=re[G&63]):J===2?(K+=re[G>>10&63],K+=re[G>>4&63],K+=re[G<<2&63],K+=re[64]):J===1&&(K+=re[G>>2&63],K+=re[G<<4&63],K+=re[64],K+=re[64]),K}function Ht(d){return Object.prototype.toString.call(d)==="[object Uint8Array]"}var fn=new V("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_e,construct:ct,predicate:Ht,represent:Ot}),En=Object.prototype.hasOwnProperty,jn=Object.prototype.toString;function Dn(d){if(d===null)return!0;var K=[],G,ee,J,ce,re,de=d;for(G=0,ee=de.length;G>10)+55296,(d-65536&1023)+56320)}for(var zi=new Array(256),Rn=new Array(256),er=0;er<256;er++)zi[er]=$r(er)?1:0,Rn[er]=$r(er);function ji(d,K){this.input=d,this.filename=K.filename||null,this.schema=K.schema||Kn,this.onWarning=K.onWarning||null,this.legacy=K.legacy||!1,this.json=K.json||!1,this.listener=K.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=d.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function le(d,K){var G={name:d.filename,buffer:d.input.slice(0,-1),position:d.position,line:d.line,column:d.position-d.lineStart};return G.snippet=R(G),new A(K,G)}function Z(d,K){throw le(d,K)}function me(d,K){d.onWarning&&d.onWarning.call(null,le(d,K))}var Me={YAML:function(K,G,ee){var J,ce,re;K.version!==null&&Z(K,"duplication of %YAML directive"),ee.length!==1&&Z(K,"YAML directive accepts exactly one argument"),J=/^([0-9]+)\.([0-9]+)$/.exec(ee[0]),J===null&&Z(K,"ill-formed argument of the YAML directive"),ce=parseInt(J[1],10),re=parseInt(J[2],10),ce!==1&&Z(K,"unacceptable YAML version of the document"),K.version=ee[0],K.checkLineBreaks=re<2,re!==1&&re!==2&&me(K,"unsupported YAML version of the document")},TAG:function(K,G,ee){var J,ce;ee.length!==2&&Z(K,"TAG directive accepts exactly two arguments"),J=ee[0],ce=ee[1],yi.test(J)||Z(K,"ill-formed tag handle (first argument) of the TAG directive"),$n.call(K.tagMap,J)&&Z(K,'there is a previously declared suffix for "'+J+'" tag handle'),Dr.test(ce)||Z(K,"ill-formed tag prefix (second argument) of the TAG directive");try{ce=decodeURIComponent(ce)}catch(re){Z(K,"tag prefix is malformed: "+ce)}K.tagMap[J]=ce}};function Re(d,K,G,ee){var J,ce,re,de;if(K1&&(d.result+=C.repeat("\n",K-1))}function Ft(d,K,G){var ee,J,ce,re,de,ve,je,He,we=d.kind,Ye=d.result,Qe;if(Qe=d.input.charCodeAt(d.position),vn(Qe)||Sr(Qe)||Qe===35||Qe===38||Qe===42||Qe===33||Qe===124||Qe===62||Qe===39||Qe===34||Qe===37||Qe===64||Qe===96||(Qe===63||Qe===45)&&(J=d.input.charCodeAt(d.position+1),vn(J)||G&&Sr(J)))return!1;for(d.kind="scalar",d.result="",ce=re=d.position,de=!1;Qe!==0;){if(Qe===58){if(J=d.input.charCodeAt(d.position+1),vn(J)||G&&Sr(J))break}else if(Qe===35){if(ee=d.input.charCodeAt(d.position-1),vn(ee))break}else{if(d.position===d.lineStart&&dt(d)||G&&Sr(Qe))break;if(bn(Qe))if(ve=d.line,je=d.lineStart,He=d.lineIndent,Ne(d,!1,-1),d.lineIndent>=K){de=!0,Qe=d.input.charCodeAt(d.position);continue}else{d.position=re,d.line=ve,d.lineStart=je,d.lineIndent=He;break}}de&&(Re(d,ce,re,!1),Xe(d,d.line-ve),ce=re=d.position,de=!1),cr(Qe)||(re=d.position+1),Qe=d.input.charCodeAt(++d.position)}return Re(d,ce,re,!1),d.result?!0:(d.kind=we,d.result=Ye,!1)}function kt(d,K){var G,ee,J;if(G=d.input.charCodeAt(d.position),G!==39)return!1;for(d.kind="scalar",d.result="",d.position++,ee=J=d.position;(G=d.input.charCodeAt(d.position))!==0;)if(G===39)if(Re(d,ee,d.position,!0),G=d.input.charCodeAt(++d.position),G===39)ee=d.position,d.position++,J=d.position;else return!0;else bn(G)?(Re(d,ee,J,!0),Xe(d,Ne(d,!1,K)),ee=J=d.position):d.position===d.lineStart&&dt(d)?Z(d,"unexpected end of the document within a single quoted scalar"):(d.position++,J=d.position);Z(d,"unexpected end of the stream within a single quoted scalar")}function Tt(d,K){var G,ee,J,ce,re,de;if(de=d.input.charCodeAt(d.position),de!==34)return!1;for(d.kind="scalar",d.result="",d.position++,G=ee=d.position;(de=d.input.charCodeAt(d.position))!==0;){if(de===34)return Re(d,G,d.position,!0),d.position++,!0;if(de===92){if(Re(d,G,d.position,!0),de=d.input.charCodeAt(++d.position),bn(de))Ne(d,!1,K);else if(de<256&&zi[de])d.result+=Rn[de],d.position++;else if((re=Wi(de))>0){for(J=re,ce=0;J>0;J--)de=d.input.charCodeAt(++d.position),(re=Fo(de))>=0?ce=(ce<<4)+re:Z(d,"expected hexadecimal character");d.result+=Ei(ce),d.position++}else Z(d,"unknown escape sequence");G=ee=d.position}else bn(de)?(Re(d,G,ee,!0),Xe(d,Ne(d,!1,K)),G=ee=d.position):d.position===d.lineStart&&dt(d)?Z(d,"unexpected end of the document within a double quoted scalar"):(d.position++,ee=d.position)}Z(d,"unexpected end of the stream within a double quoted scalar")}function Gt(d,K){var G=!0,ee,J,ce,re=d.tag,de,ve=d.anchor,je,He,we,Ye,Qe,ke=Object.create(null),ot,St,qt,Rt;if(Rt=d.input.charCodeAt(d.position),Rt===91)He=93,Qe=!1,de=[];else if(Rt===123)He=125,Qe=!0,de={};else return!1;for(d.anchor!==null&&(d.anchorMap[d.anchor]=de),Rt=d.input.charCodeAt(++d.position);Rt!==0;){if(Ne(d,!0,K),Rt=d.input.charCodeAt(d.position),Rt===He)return d.position++,d.tag=re,d.anchor=ve,d.kind=Qe?"mapping":"sequence",d.result=de,!0;G?Rt===44&&Z(d,"expected the node content, but found ','"):Z(d,"missed comma between flow collection entries"),St=ot=qt=null,we=Ye=!1,Rt===63&&(je=d.input.charCodeAt(d.position+1),vn(je)&&(we=Ye=!0,d.position++,Ne(d,!0,K))),ee=d.line,J=d.lineStart,ce=d.position,Ut(d,K,_n,!1,!0),St=d.tag,ot=d.result,Ne(d,!0,K),Rt=d.input.charCodeAt(d.position),(Ye||d.line===ee)&&Rt===58&&(we=!0,Rt=d.input.charCodeAt(++d.position),Ne(d,!0,K),Ut(d,K,_n,!1,!0),qt=d.result),Qe?rt(d,de,ke,St,ot,qt,ee,J,ce):we?de.push(rt(d,null,ke,St,ot,qt,ee,J,ce)):de.push(ot),Ne(d,!0,K),Rt=d.input.charCodeAt(d.position),Rt===44?(G=!0,Rt=d.input.charCodeAt(++d.position)):G=!1}Z(d,"unexpected end of the stream within a flow collection")}function wt(d,K){var G,ee,J=qn,ce=!1,re=!1,de=K,ve=0,je=!1,He,we;if(we=d.input.charCodeAt(d.position),we===124)ee=!1;else if(we===62)ee=!0;else return!1;for(d.kind="scalar",d.result="";we!==0;)if(we=d.input.charCodeAt(++d.position),we===43||we===45)qn===J?J=we===43?ur:ri:Z(d,"repeat of a chomping mode identifier");else if((He=on(we))>=0)He===0?Z(d,"bad explicit indentation width of a block scalar; it cannot be less than one"):re?Z(d,"repeat of an indentation width identifier"):(de=K+He-1,re=!0);else break;if(cr(we)){do we=d.input.charCodeAt(++d.position);while(cr(we));if(we===35)do we=d.input.charCodeAt(++d.position);while(!bn(we)&&we!==0)}for(;we!==0;){for($e(d),d.lineIndent=0,we=d.input.charCodeAt(d.position);(!re||d.lineIndentde&&(de=d.lineIndent),bn(we)){ve++;continue}if(d.lineIndentK)&&ve!==0)Z(d,"bad indentation of a sequence entry");else if(d.lineIndentK)&&(St&&(re=d.line,de=d.lineStart,ve=d.position),Ut(d,K,Ir,!0,J)&&(St?ke=d.result:ot=d.result),St||(rt(d,we,Ye,Qe,ke,ot,re,de,ve),Qe=ke=ot=null),Ne(d,!0,-1),Rt=d.input.charCodeAt(d.position)),(d.line===ce||d.lineIndent>K)&&Rt!==0)Z(d,"bad indentation of a mapping entry");else if(d.lineIndentK?ve=1:d.lineIndent===K?ve=0:d.lineIndentK?ve=1:d.lineIndent===K?ve=0:d.lineIndent tag; it should be "scalar", not "'+d.kind+'"'),we=0,Ye=d.implicitTypes.length;we"),d.result!==null&&ke.kind!==d.kind&&Z(d,"unacceptable node kind for !<"+d.tag+'> tag; it should be "'+ke.kind+'", not "'+d.kind+'"'),ke.resolve(d.result,d.tag)?(d.result=ke.construct(d.result,d.tag),d.anchor!==null&&(d.anchorMap[d.anchor]=d.result)):Z(d,"cannot resolve a node with !<"+d.tag+"> explicit tag")}return d.listener!==null&&d.listener("close",d),d.tag!==null||d.anchor!==null||He}function Kt(d){var K=d.position,G,ee,J,ce=!1,re;for(d.version=null,d.checkLineBreaks=d.legacy,d.tagMap=Object.create(null),d.anchorMap=Object.create(null);(re=d.input.charCodeAt(d.position))!==0&&(Ne(d,!0,-1),re=d.input.charCodeAt(d.position),!(d.lineIndent>0||re!==37));){for(ce=!0,re=d.input.charCodeAt(++d.position),G=d.position;re!==0&&!vn(re);)re=d.input.charCodeAt(++d.position);for(ee=d.input.slice(G,d.position),J=[],ee.length<1&&Z(d,"directive name must not be less than one character in length");re!==0;){for(;cr(re);)re=d.input.charCodeAt(++d.position);if(re===35){do re=d.input.charCodeAt(++d.position);while(re!==0&&!bn(re));break}if(bn(re))break;for(G=d.position;re!==0&&!vn(re);)re=d.input.charCodeAt(++d.position);J.push(d.input.slice(G,d.position))}re!==0&&$e(d),$n.call(Me,ee)?Me[ee](d,ee,J):me(d,'unknown document directive "'+ee+'"')}if(Ne(d,!0,-1),d.lineIndent===0&&d.input.charCodeAt(d.position)===45&&d.input.charCodeAt(d.position+1)===45&&d.input.charCodeAt(d.position+2)===45?(d.position+=3,Ne(d,!0,-1)):ce&&Z(d,"directives end mark is expected"),Ut(d,d.lineIndent-1,Ir,!1,!0),Ne(d,!0,-1),d.checkLineBreaks&&xi.test(d.input.slice(K,d.position))&&me(d,"non-ASCII line breaks are interpreted as content"),d.documents.push(d.result),d.position===d.lineStart&&dt(d)){d.input.charCodeAt(d.position)===46&&(d.position+=3,Ne(d,!0,-1));return}if(d.position=55296&&G<=56319&&K+1=56320&&ee<=57343)?(G-55296)*1024+ee-56320+65536:G}function Wo(d){var K=/^\n* /;return K.test(d)}var po=1,Pi=2,go=3,Gi=4,ai=5;function da(d,K,G,ee,J,ce,re,de){var ve,je=0,He=null,we=!1,Ye=!1,Qe=ee!==-1,ke=-1,ot=ca(Xr(d,0))&&Hi(Xr(d,d.length-1));if(K||re)for(ve=0;ve=65536?ve+=2:ve++){if(je=Xr(d,ve),!Lr(je))return ai;ot=ot&&Ji(je,He,de),He=je}else{for(ve=0;ve=65536?ve+=2:ve++){if(je=Xr(d,ve),je===tn)we=!0,Qe&&(Ye=Ye||ve-ke-1>ee&&d[ke+1]!==" ",ke=ve);else if(!Lr(je))return ai;ot=ot&&Ji(je,He,de),He=je}Ye=Ye||Qe&&ve-ke-1>ee&&d[ke+1]!==" "}return!we&&!Ye?ot&&!re&&!J(d)?po:ce===Ln?ai:Pi:G>9&&Wo(d)?ai:re?ce===Ln?ai:Pi:Ye?Gi:go}function fa(d,K,G,ee,J){d.dump=function(){if(K.length===0)return d.quotingType===Ln?'""':"''";if(!d.noCompatMode&&(Hn.indexOf(K)!==-1||Si.test(K)))return d.quotingType===Ln?'"'+K+'"':"'"+K+"'";var ce=d.indent*Math.max(1,G),re=d.lineWidth===-1?-1:Math.max(Math.min(d.lineWidth,40),d.lineWidth-ce),de=ee||d.flowLevel>-1&&G>=d.flowLevel;function ve(je){return Ci(d,je)}switch(da(K,de,d.indent,re,ve,d.quotingType,d.forceQuotes&&!ee,J)){case po:return K;case Pi:return"'"+K.replace(/'/g,"''")+"'";case go:return"|"+zo(K,d.indent)+Ti(Hr(K,ce));case Gi:return">"+zo(K,d.indent)+Ti(Hr(Yi(K,re),ce));case ai:return'"'+Ai(K)+'"';default:throw new A("impossible error: invalid scalar style")}}()}function zo(d,K){var G=Wo(d)?String(K):"",ee=d[d.length-1]==="\n",J=ee&&(d[d.length-2]==="\n"||d==="\n"),ce=J?"+":ee?"":"-";return G+ce+"\n"}function Ti(d){return d[d.length-1]==="\n"?d.slice(0,-1):d}function Yi(d,K){for(var G=/(\n+)([^\n]*)/g,ee=function(){var je=d.indexOf("\n");return je=je!==-1?je:d.length,G.lastIndex=je,$o(d.slice(0,je),K)}(),J=d[0]==="\n"||d[0]===" ",ce,re;re=G.exec(d);){var de=re[1],ve=re[2];ce=ve[0]===" ",ee+=de+(!J&&!ce&&ve!==""?"\n":"")+$o(ve,K),J=ce}return ee}function $o(d,K){if(d===""||d[0]===" ")return d;for(var G=/ [^ ]/g,ee,J=0,ce,re=0,de=0,ve="";ee=G.exec(d);)de=ee.index,de-J>K&&(ce=re>J?re:de,ve+="\n"+d.slice(J,ce),J=ce+1),re=de;return ve+="\n",d.length-J>K&&re>J?ve+=d.slice(J,re)+"\n"+d.slice(re+1):ve+=d.slice(J),ve.slice(1)}function Ai(d){for(var K="",G=0,ee,J=0;J=65536?J+=2:J++)G=Xr(d,J),ee=Xt[G],!ee&&Lr(G)?(K+=d[J],G>=65536&&(K+=d[J+1])):K+=ee||hr(G);return K}function ko(d,K,G){var ee="",J=d.tag,ce,re,de;for(ce=0,re=G.length;ce1024&&(He+="? "),He+=d.dump+(d.condenseFlow?'"':"")+":"+(d.condenseFlow?"":" "),Pr(d,K,je,!1,!1)&&(He+=d.dump,ee+=He));d.tag=J,d.dump="{"+ee+"}"}function xo(d,K,G,ee){var J="",ce=d.tag,re=Object.keys(G),de,ve,je,He,we,Ye;if(d.sortKeys===!0)re.sort();else if(typeof d.sortKeys=="function")re.sort(d.sortKeys);else if(d.sortKeys)throw new A("sortKeys must be a boolean or a function");for(de=0,ve=re.length;de1024,we&&(d.dump&&tn===d.dump.charCodeAt(0)?Ye+="?":Ye+="? "),Ye+=d.dump,we&&(Ye+=Gr(d,K)),Pr(d,K+1,He,!0,we)&&(d.dump&&tn===d.dump.charCodeAt(0)?Ye+=":":Ye+=": ",Ye+=d.dump,J+=Ye));d.tag=ce,d.dump=J||"{}"}function Jo(d,K,G){var ee,J,ce,re,de,ve;for(J=G?d.explicitTypes:d.implicitTypes,ce=0,re=J.length;ce tag resolver accepts not "'+ve+'" style');d.dump=ee}return!0}return!1}function Pr(d,K,G,ee,J,ce,re){d.tag=null,d.dump=G,Jo(d,G,!1)||Jo(d,G,!0);var de=en.call(d.dump),ve=ee,je;ee&&(ee=d.flowLevel<0||d.flowLevel>K);var He=de==="[object Object]"||de==="[object Array]",we,Ye;if(He&&(we=d.duplicates.indexOf(G),Ye=we!==-1),(d.tag!==null&&d.tag!=="?"||Ye||d.indent!==2&&K>0)&&(J=!1),Ye&&d.usedDuplicates[we])d.dump="*ref_"+we;else{if(He&&Ye&&!d.usedDuplicates[we]&&(d.usedDuplicates[we]=!0),de==="[object Object]")ee&&Object.keys(d.dump).length!==0?(xo(d,K,d.dump,J),Ye&&(d.dump="&ref_"+we+d.dump)):(Vo(d,K,d.dump),Ye&&(d.dump="&ref_"+we+" "+d.dump));else if(de==="[object Array]")ee&&d.dump.length!==0?(d.noArrayIndent&&!re&&K>0?va(d,K-1,d.dump,J):va(d,K,d.dump,J),Ye&&(d.dump="&ref_"+we+d.dump)):(ko(d,K,d.dump),Ye&&(d.dump="&ref_"+we+" "+d.dump));else if(de==="[object String]")d.tag!=="?"&&fa(d,d.dump,K,ce,ve);else{if(de==="[object Undefined]")return!1;if(d.skipInvalid)return!1;throw new A("unacceptable kind of an object to dump "+de)}d.tag!==null&&d.tag!=="?"&&(je=encodeURI(d.tag[0]==="!"?d.tag.slice(1):d.tag).replace(/!/g,"%21"),d.tag[0]==="!"?je="!"+je:je.slice(0,18)==="tag:yaml.org,2002:"?je="!!"+je.slice(18):je="!<"+je+">",d.dump=je+" "+d.dump)}return!0}function yo(d,K){var G=[],ee=[],J,ce;for(Eo(d,G,ee),J=0,ce=ee.length;J0&&J[J.length-1])&&(je[0]===6||je[0]===2)){re=0;continue}if(je[0]===3&&(!J||je[1]>J[0]&&je[1]je)return J.setData("Failed to load data after "+je+" attempts");de("get_month",{date:ce}),fetch((0,U.l)(ce+".yml")).then(Oe(function(He){var we,Ye,Qe;return Ce(this,function(ke){switch(ke.label){case 0:return[4,He.text()];case 1:return we=ke.sent(),Ye=/^Cannot find/,Ye.test(we)?(Qe=50+re*50,ve.setData("Loading changelog data"+".".repeat(re+3)),setTimeout(function(){ve.getData(ce,re+1)},Qe)):ve.setData(Co.load(we,{schema:Co.CORE_SCHEMA})),[2]}})}))},J.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},J.dateChoices=[],J}var G=K.prototype;return G.setData=function(J){this.setState({data:J})},G.setSelectedDate=function(J){this.setState({selectedDate:J})},G.setSelectedIndex=function(J){this.setState({selectedIndex:J})},G.componentDidMount=function(){var J=this,ce=(0,z.Oc)(),re=ce.data,de=re.dates,ve=de===void 0?[]:de;ve&&(ve.forEach(function(je){return J.dateChoices.push(o()(je,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(ve[0]))},G.render=function(){var J=this,ce=this.state,re=ce.data,de=ce.selectedDate,ve=ce.selectedIndex,je=(0,z.Oc)(),He=je.data.dates,we=this.dateChoices,Ye=we.length>0&&(0,e.jsxs)(F.BJ,{mb:1,children:[(0,e.jsx)(F.BJ.Item,{children:(0,e.jsx)(F.$n,{className:"Changelog__Button",disabled:ve===0,icon:"chevron-left",onClick:function(){var St=ve-1;return J.setData("Loading changelog data..."),J.setSelectedIndex(St),J.setSelectedDate(we[St]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),J.getData(He[St])}})}),(0,e.jsx)(F.BJ.Item,{children:(0,e.jsx)(F.ms,{autoScroll:!1,options:we,onSelected:function(St){var qt=we.indexOf(St);return J.setData("Loading changelog data..."),J.setSelectedIndex(qt),J.setSelectedDate(St),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),J.getData(He[qt])},selected:de,width:"150px"})}),(0,e.jsx)(F.BJ.Item,{children:(0,e.jsx)(F.$n,{className:"Changelog__Button",disabled:ve===we.length-1,icon:"chevron-right",onClick:function(){var St=ve+1;return J.setData("Loading changelog data..."),J.setSelectedIndex(St),J.setSelectedDate(we[St]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),J.getData(He[St])}})})]}),Qe=(0,e.jsxs)(F.wn,{children:[(0,e.jsx)("h1",{children:"Traditional Games Space Station 13"}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Thanks to: "}),"Baystation 12, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original Space Station 13 developers, Invisty for the title image and the countless others who have contributed to the game, issue tracker or wiki over the years."]}),(0,e.jsxs)("p",{children:["Current organization members can be found ",(0,e.jsx)("a",{href:"https://github.com/orgs/tgstation/people",children:"here"}),", recent GitHub contributors can be found ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/pulse/monthly",children:"here"}),"."]}),(0,e.jsxs)("p",{children:["You can also join our discord ",(0,e.jsx)("a",{href:"https://tgstation13.org/phpBB/viewforum.php?f=60",children:"here"}),"."]}),Ye]}),ke=(0,e.jsxs)(F.wn,{children:[Ye,(0,e.jsx)("h3",{children:"GoonStation 13 Development Team"}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Coders: "}),"Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion"]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Spriters: "}),"Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No"]}),(0,e.jsxs)("p",{children:["Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"," r4407 release. The changelog for changes up to r4407 can be seen ",(0,e.jsx)("a",{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010",children:"here"}),"."]}),(0,e.jsxs)("p",{children:["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.jsx)("a",{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/",children:"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License"}),". Rights are currently extended to ",(0,e.jsx)("a",{href:"http://forums.somethingawful.com/",children:"SomethingAwful Goons"})," only."]}),(0,e.jsx)("h3",{children:"Traditional Games Space Station 13 License"}),(0,e.jsxs)("p",{children:["All code after ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/commit/333c566b88108de218d882840e61928a9b759d8f",children:"commit 333c566b88108de218d882840e61928a9b759d8f on 2014/31/12 at 4:38 PM PST"})," is licensed under ",(0,e.jsx)("a",{href:"https://www.gnu.org/licenses/agpl-3.0.html",children:"GNU AGPL v3"}),". All code before that commit is licensed under ",(0,e.jsx)("a",{href:"https://www.gnu.org/licenses/gpl-3.0.html",children:"GNU GPL v3"}),", including tools unless their readme specifies otherwise. See ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/blob/master/LICENSE",children:"LICENSE"})," and ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/blob/master/GPLv3.txt",children:"GPLv3.txt"})," for more details."]}),(0,e.jsxs)("p",{children:["The TGS DMAPI API is licensed as a subproject under the MIT license."," See the footer of ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/blob/master/code/__DEFINES/tgs.dm",children:"code/__DEFINES/tgs.dm"})," and ",(0,e.jsx)("a",{href:"https://github.com/tgstation/tgstation/blob/master/code/modules/tgs/LICENSE",children:"code/modules/tgs/LICENSE"})," for the MIT license."]}),(0,e.jsxs)("p",{children:["All assets including icons and sound are under a ",(0,e.jsx)("a",{href:"https://creativecommons.org/licenses/by-sa/3.0/",children:"Creative Commons 3.0 BY-SA license"})," unless otherwise indicated."]})]}),ot=typeof re=="object"&&Object.keys(re).length>0&&Object.entries(re).reverse().map(function(St){var qt=St[0],Rt=St[1];return(0,e.jsx)(F.wn,{title:o()(qt,"d mmmm yyyy",!0),children:(0,e.jsx)(F.az,{ml:3,children:Object.entries(Rt).map(function(Gn){var ui=Gn[0],Di=Gn[1];return(0,e.jsxs)(P.Fragment,{children:[(0,e.jsxs)("h4",{children:[ui," changed:"]}),(0,e.jsx)(F.az,{ml:3,children:(0,e.jsx)(F.XI,{children:Di.map(function(zt){var Pn=Object.keys(zt)[0];return(0,e.jsxs)(F.XI.Row,{children:[(0,e.jsx)(F.XI.Cell,{className:(0,a.Ly)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.jsx)(F.In,{color:Le[Pn]?Le[Pn].color:Le.unknown.color,name:Le[Pn]?Le[Pn].icon:Le.unknown.icon})}),(0,e.jsx)(F.XI.Cell,{className:"Changelog__Cell",children:zt[Pn]})]},Pn+zt[Pn])})})})]},ui)})})},qt)});return(0,e.jsx)(L.p8,{title:"Changelog",width:675,height:650,children:(0,e.jsxs)(L.p8.Content,{scrollable:!0,children:[Qe,ot,typeof re=="string"&&(0,e.jsx)("p",{children:re}),ke]})})},K}(P.Component)},43970:function(S,j,t){"use strict";t.r(j),t.d(j,{ChemDispenser:function(){return u}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=function(p){var h=(0,i.Oc)().data,c=h.accept_beaker,f=h.chemicals,v=h.beaker,O=h.use_smaller_units;return(0,e.jsx)(l.p8,{width:430,height:560,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsxs)(o.BJ,{vertical:!0,height:"100%",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(E,{})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(x,{chemicals:f,use_smaller_units:O})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(m,{beaker:v,accept_beaker:c})})]})})})},E=function(p){var h=(0,i.Oc)(),c=h.act,f=h.data,v=f.amount,O=f.energy,C=f.maxEnergy,I=f.use_smaller_units;return(0,e.jsx)(o.wn,{title:"Settings",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Energy",children:(0,e.jsx)(o.z2,{value:O,maxValue:C,ranges:{good:[C*.75,Number.POSITIVE_INFINITY],average:[C*.25,C*.75],bad:[Number.NEGATIVE_INFINITY,C*.25]},children:(0,e.jsx)(o.zv,{value:O,format:function(M){return(0,a.LI)(M,1)+" Unit"+(M>1?"s":"")}})})}),(0,e.jsx)(o.Ki.Item,{label:"Dispense",verticalAlign:"top",children:(0,e.jsxs)(o.BJ,{vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(y,{amount:v,use_smaller_units:I})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:"minus",onClick:function(){return c("amount",{amount:v-1})}})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.Ap,{animated:!0,value:v,minValue:0,maxValue:120,format:function(M){return(0,a.LI)(M,1)+" Unit"+(M>1?"s":"")},stepPixelSize:3,onChange:function(M,A){return c("amount",{amount:A})}})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:"plus",onClick:function(){return c("amount",{amount:v+1})}})})]})})]})})]})})},y=function(p){var h=(0,i.Oc)().act,c=p.amount,f=p.use_smaller_units?[1,2,5,10,15,20]:[5,10,20,30,40,60];return(0,e.jsx)(o.BJ,{children:f.map(function(v){return(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{selected:c===v,fluid:!0,icon:"eye-dropper",textAlign:"center",onClick:function(){return h("amount",{amount:v})},children:v})},v)})})},x=function(p){for(var h=(0,i.Oc)().act,c=p.chemicals,f=p.use_smaller_units,v=[],O=0;O<(c.length+1)%3;O++)v.push();return(0,e.jsx)(o.wn,{title:"Dispenser",children:(0,e.jsxs)(o.so,{direction:"row",wrap:"wrap",height:"100%",spacingPrecise:"2",align:"flex-start",alignContent:"flex-start",children:[c.map(function(C,I){return(0,e.jsx)(o.so.Item,{grow:"1",basis:f?"45%":"30%",pl:I%(f?2:3)===0?0:.5,pb:.5,children:(0,e.jsx)(o.$n,{icon:"arrow-circle-down",fluid:!0,onClick:function(){return h("dispense",{reagent:C.id})},children:C.title})},I)}),v.map(function(C,I){return(0,e.jsx)(o.so.Item,{grow:"1",basis:"25%",height:"20px"},I)})]})})},m=function(p){var h=(0,i.Oc)().act,c=p.beaker,f=p.accept_beaker,v=(0,e.jsx)(o.az,{color:"average",children:"No beaker loaded"}),O=f?"Beaker":"Container";return c&&(O+=" ("+c.total_volume+"/"+c.maximum_volume+")",v=(0,e.jsx)(o.BJ,{vertical:!0,children:c.contents.map(function(C){return(0,e.jsxs)(o.BJ.Item,{color:"label",children:[C.volume," unit",C.volume>1?"s":""," of ",C.name]},C.id)})})),(0,e.jsx)(o.wn,{fill:!0,title:O,scrollable:!0,buttons:(0,e.jsx)(o.$n,{icon:"eject",disabled:!c,onClick:function(){return h("eject")},children:"Eject"}),children:v})}},51288:function(S,j,t){"use strict";t.r(j),t.d(j,{ChemHeater:function(){return u}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.target_temperature,h=m.on,c=m.beaker;return(0,e.jsx)(l.p8,{width:275,height:400,children:(0,e.jsxs)(l.p8.Content,{scrollable:!0,style:{overflowY:"auto"},children:[(0,e.jsx)(o.wn,{title:"Controls",children:(0,e.jsxs)(o.Wx,{justify:"space-around",children:[(0,e.jsx)(o.Wx.Item,{label:"Power",children:(0,e.jsx)(o.$n,{fontSize:2,icon:"power-off",selected:h,onClick:function(){return x("power")}})}),(0,e.jsxs)(o.Wx.Item,{label:"Temperature",children:[(0,e.jsx)(o.N6,{value:p,minValue:0,maxValue:1e3,onChange:function(f,v){return x("temperature",{temp:v})},size:2,format:function(f){return(0,a.LI)(f,1)+"K"},className:"ChemHeater--knob"}),(0,e.jsx)(o.zv,{value:p,format:function(f){return(0,a.LI)(f,1)+"K"}})]})]})}),(0,e.jsx)(o.wn,{title:"Beaker "+(c?" ("+c.total_volume+"/"+c.maximum_volume+")":""),buttons:(0,e.jsx)(o.$n,{icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:c?(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Temperature",children:(0,e.jsx)(o.zv,{value:c.chem_temp,format:function(f){return(0,a.LI)(f,1)+"K"}})})}),c.contents.length?c.contents.map(function(f){return(0,e.jsxs)(o.az,{color:"label",children:[f.volume," unit",f.volume===1?"":"s"," ",f.name]},f.id)}):(0,e.jsx)(o.az,{color:"bad",children:"Beaker Empty"})]}):(0,e.jsx)(o.az,{color:"average",children:"No Beaker Loaded."})})]})})}},3889:function(S,j,t){"use strict";t.r(j),t.d(j,{ChemMaster:function(){return y}});var e=t(62161),a=t(65380),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E;(function(v){v.Pill="pill",v.Bottle="bottle",v.Syrette="syrette",v.SuperSyrette="supeyrette",v.PillBottle="pill_bottle"})(E||(E={}));var y=function(v){var O=(0,o.Oc)().data,C=O.analyze_reagent,I=O.beaker,M=(0,i.useState)(null),A=M[0],T=M[1],b=(0,e.jsx)(x,{});return A?b=(0,e.jsx)(m,{type:A,setSpriteMenu:T}):C?b=(0,e.jsx)(p,{analyze_reagent:C}):I&&(b=(0,e.jsx)(h,{setSpriteMenu:T})),(0,e.jsx)(u.p8,{width:440,height:560,children:(0,e.jsx)(u.p8.Content,{scrollable:!0,children:b})})},x=function(v){return(0,e.jsx)(l.wn,{title:"No Beaker Present",children:"Please insert beaker."})},m=function(v){var O=(0,o.Oc)(),C=O.act,I=O.data,M=v.type,A=v.setSpriteMenu,T,b,B=function(R){return C("set_sprite",{type:M,sprite:R})};switch(M){case"pill":T=I.available_sprites.pill,b="pill"+I.set_sprites.pill,B=function(R){return C("set_sprite",{type:M,sprite:R.replace("pill","")})};break;case"bottle":T=I.available_sprites.bottle,b=I.set_sprites.bottle;break;case"syrette":T=I.available_sprites.syrette,b=I.set_sprites.syrette;break;case"supeyrette":T=I.available_sprites.syrette,b=I.set_sprites.supeyrette;break;case"pill_bottle":T=I.available_sprites.pill_bottle,b=I.set_sprites.pill_bottle;break}return(0,e.jsx)(l.wn,{title:"Select Sprite",buttons:(0,e.jsx)(l.$n,{color:"bad",icon:"window-close",onClick:function(){return A(null)},children:"Close"}),children:T.map(function(R){return(0,e.jsx)(l.$n,{tooltip:R,selected:R===b,p:1,onClick:function(){B(R)},children:(0,e.jsx)(l.az,{style:{transform:"scale(1.5)"},className:(0,a.Ly)(["chem_master32x32",R])})},R)})})},p=function(v){var O=(0,o.Oc)().act,C=v.analyze_reagent;return typeof C=="string"?(0,e.jsx)(l.wn,{title:"Chemical Analysis",buttons:(0,e.jsx)(l.$n,{icon:"window-close",color:"bad",onClick:function(){return O("analyze",{reagent:null})},children:"Close"}),children:(0,e.jsx)(l.az,{color:"bad",children:C})}):(0,e.jsx)(l.wn,{title:"Chemical Analysis",buttons:(0,e.jsx)(l.$n,{icon:"window-close",color:"bad",onClick:function(){return O("analyze",{reagent:null})},children:"Close"}),children:(0,e.jsxs)(l.Ki,{children:[(0,e.jsx)(l.Ki.Item,{label:"Name",children:C.name}),(0,e.jsx)(l.Ki.Item,{label:"Description",children:C.desc}),!!C.blood_type&&(0,e.jsx)(l.Ki.Item,{label:"Blood Type",children:C.blood_type}),!!C.blood_DNA&&(0,e.jsx)(l.Ki.Item,{label:"Blood DNA",children:C.blood_DNA})]})})},h=function(v){var O=(0,o.Oc)(),C=O.act,I=O.data,M=I.beaker,A=I.buffer,T=I.set_sprites,b=I.mode,B=I.condi,R=v.setSpriteMenu;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l.wn,{title:"Beaker",buttons:M&&(0,e.jsxs)(l.az,{children:[(0,e.jsxs)(l.az,{inline:!0,color:"label",mr:2,children:[(0,e.jsx)(l.zv,{value:M.total_volume,initial:0})," /"," ",M.maximum_volume," units"]}),(0,e.jsx)(l.$n,{icon:"eject",onClick:function(){return C("eject")},children:"Eject"})]}),children:M?M.contents.length===0?(0,e.jsx)(l.az,{color:"label",children:"Beaker is empty"}):(0,e.jsx)(l.XI,{children:M.contents.map(function(N){return(0,e.jsx)(c,{reagent:N,transferTo:"buffer"},N.id)})}):(0,e.jsx)(l.az,{color:"label",children:"No beaker lodaed"})}),(0,e.jsx)(l.wn,{title:"Buffer",buttons:(0,e.jsxs)(l.az,{children:[(0,e.jsxs)(l.az,{inline:!0,color:"label",mr:1,children:[(0,e.jsx)(l.zv,{value:A.total_volume,initial:0})," /"," ",A.maximum_volume," units"]}),(0,e.jsxs)(l.$n,{icon:b?"flask":"trash-alt",onClick:function(){return C("toggle_mode")},color:b?"":"bad",children:["Transfering To ",b?"Beaker":"Disposal"]})]}),children:A.contents.length===0?(0,e.jsx)(l.az,{color:"label",children:"Buffer is empty."}):(0,e.jsx)(l.XI,{children:A.contents.map(function(N){return(0,e.jsx)(c,{reagent:N,transferTo:"beaker"},N.id)})})}),(0,e.jsxs)(l.wn,{title:"Packaging",children:[!B&&(0,e.jsx)(f,{name:"Create Pills (24 units max)",icon:"pill"+T.pill,onClick:function(){return C("print",{type:"pill"})},onIconChange:function(){return R("pill")}}),(0,e.jsx)(f,{name:"Create Bottle (60 units max)",icon:T.bottle,onClick:function(){return C("print",{type:"bottle"})},onIconChange:function(){return R("bottle")}}),!B&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{name:"Create Syrette (5 units max)",icon:T.syrette,onClick:function(){return C("print",{type:"syrette"})},onIconChange:function(){return R("syrette")}}),(0,e.jsxs)(l.BJ,{align:"center",mb:1,children:[(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{disabled:!0,tooltip:"Change Icon (No icons available)",children:(0,e.jsx)(l.az,{className:(0,a.Ly)(["chem_master32x32","supeyrette"])})})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{onClick:function(){return C("print",{type:"supeyrette"})},children:"Create Advanced Syrette (10 units max)"})})]}),(0,e.jsxs)(l.BJ,{align:"center",children:[(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{tooltip:"Change Icon",onClick:function(){return R("pill_bottle")},children:(0,e.jsx)(l.az,{className:(0,a.Ly)(["chem_master32x32",T.pill_bottle])})})}),(0,e.jsx)(l.BJ.Item,{children:"Change Pill Bottle Sprite"})]})]})]})]})},c=function(v){var O=(0,o.Oc)().act,C=v.reagent,I=v.transferTo;return(0,e.jsxs)(l.XI.Row,{children:[(0,e.jsxs)(l.XI.Cell,{children:[C.name," ",(0,e.jsx)(l.zv,{value:C.volume,initial:0}),"u"]}),(0,e.jsxs)(l.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(l.$n,{onClick:function(){return O("transfer",{id:C.id,amount:1,target:I})},children:"1"}),(0,e.jsx)(l.$n,{onClick:function(){return O("transfer",{id:C.id,amount:5,target:I})},children:"5"}),(0,e.jsx)(l.$n,{onClick:function(){return O("transfer",{id:C.id,amount:10,target:I})},children:"10"}),(0,e.jsx)(l.$n,{onClick:function(){return O("transfer",{id:C.id,amount:1e3,target:I})},children:"All"}),(0,e.jsx)(l.$n,{icon:"ellipsis-h",tooltip:"Custom amount",onClick:function(){return O("transfer",{id:C.id,amount:-1,target:I})}}),(0,e.jsx)(l.$n,{icon:"question",tooltip:"Analyze",onClick:function(){return O("analyze",{reagent:C.id})}})]})]})},f=function(v){var O=v.icon,C=v.name,I=v.onClick,M=v.onIconChange;return(0,e.jsxs)(l.BJ,{align:"center",mb:1,children:[(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{tooltip:"Change Icon",onClick:function(){return M()},children:(0,e.jsx)(l.az,{className:(0,a.Ly)(["chem_master32x32",O])})})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{onClick:I,children:C})})]})}},29965:function(S,j,t){"use strict";t.r(j),t.d(j,{CraftMenu:function(){return h},CraftingRecipe:function(){return p},CraftingStep:function(){return x}});var e=t(62161),a=t(28277),i=t(7402),o=t(88716),l=t(7081),u=t(34995),E=t(85242),y=function(c){var f=c.title;return(0,e.jsxs)(u.BJ,{my:1,children:[(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.cG,{})}),(0,e.jsx)(u.BJ.Item,{color:"gray",children:f}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.cG,{})})]})},x=function(c){var f=(0,l.Oc)().config,v=c.step,O=v.amt,C=v.tool_name,I=v.icon,M=v.reqed_material;return O===0?(0,e.jsxs)(u.BJ,{align:"center",children:[!f.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u._V,{src:I})}),(0,e.jsxs)(u.BJ.Item,{children:["Apply ",C]})]}):O===1&&!M?(0,e.jsxs)(u.BJ,{align:"center",children:[!f.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u._V,{src:I})}),(0,e.jsxs)(u.BJ.Item,{children:["Attach ",C]})]}):(0,e.jsxs)(u.BJ,{align:"center",children:[!f.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u._V,{src:I})}),(0,e.jsxs)(u.BJ.Item,{children:["Attach ",O," ",C]})]})},m=function(c){var f=c.amt,v=c.tool_name,O=c.icon,C=c.reqed_material;return f===0||f===1&&!C?v:f+" "+v},p=function(c){var f=(0,l.Oc)(),v=f.act,O=f.config,C=c.recipe,I=c.compact,M=c.admin;return(0,e.jsx)(u.wn,{children:(0,e.jsxs)(u.BJ,{children:[!O.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u._V,{src:C.icon})}),(0,e.jsxs)(u.BJ.Item,{grow:!0,children:[(0,e.jsx)(u.az,{style:{textTransform:"capitalize"},children:C.name}),!I&&(0,e.jsx)(u.az,{color:"grey",children:C.desc}),(0,e.jsxs)(u.az,{color:I?"grey":"",children:[!I&&(0,e.jsx)(y,{title:"Steps"}),C.steps.map(function(A,T){return I?(0,e.jsxs)(e.Fragment,{children:[m(A),T!==C.steps.length?", ":""]}):(0,e.jsx)(x,{step:A},T)})]})]}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{vertical:!I,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{icon:"hammer",tooltip:"Craft",onClick:function(){return v("build",{ref:C.ref})}})}),(0,e.jsx)(u.BJ.Item,{children:M&&(0,e.jsx)(u.$n,{icon:"bug",tooltip:"View Variables",onClick:function(){return v("view_variables",{ref:C.ref})}})})]})}),C.batch?I?(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 5",onClick:function(){return v("build",{ref:C.ref,amount:5})},children:"5"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 10",onClick:function(){return v("build",{ref:C.ref,amount:10})},children:"10"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 25",onClick:function(){return v("build",{ref:C.ref,amount:25})},children:"25"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 50",onClick:function(){return v("build",{ref:C.ref,amount:50})},children:"50"})})]})}):(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 5",onClick:function(){return v("build",{ref:C.ref,amount:5})},children:"5"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 10",onClick:function(){return v("build",{ref:C.ref,amount:10})},children:"10"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 25",onClick:function(){return v("build",{ref:C.ref,amount:25})},children:"25"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{fluid:!0,textAlign:"right",tooltip:"Craft 50",onClick:function(){return v("build",{ref:C.ref,amount:50})},children:"50"})})]})}):""]})})},h=function(c){var f=(0,l.Oc)(),v=f.act,O=f.data,C=O.crafting_recipes,I=O.is_admin,M=Object.keys(C).filter(function($){return C[$].length!==0}),A=M.map(function($){return C[$].length}).reduce(function($,ie){return $+ie},0),T=(0,a.useState)(!1),b=T[0],B=T[1],R=(0,l.QY)("searchText",""),N=R[0],W=R[1],H=(0,o.XZ)(N,function($){return $.name}),q=(0,a.useState)(1),V=q[0],Y=q[1],_=N.length>0?b?20:10:b?60:30,te=_*V,Q=(0,a.useState)(M[0]),oe=Q[0],ne=Q[1],ae=C[oe];return N!==""&&(ae=M.flatMap(function($){return C[$]}).filter(H)),ae=(0,i.Ul)(ae,function($){return $.name.toUpperCase()}),(0,e.jsx)(E.p8,{width:800,height:450,children:(0,e.jsx)(E.p8.Content,{children:(0,e.jsxs)(u.BJ,{fill:!0,children:[(0,e.jsx)(u.BJ.Item,{width:"30%",children:(0,e.jsx)(u.wn,{fill:!0,children:(0,e.jsxs)(u.BJ,{fill:!0,vertical:!0,justify:"space-between",children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.pd,{placeholder:"Search in "+A+" recipes...",fluid:!0,value:N,onInput:function($,ie){Y(1),W(ie)}})}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.az,{height:"100%",pt:1,pr:1,overflowY:"auto",children:(0,e.jsx)(u.tU,{fluid:!0,vertical:!0,children:M.map(function($){return(0,e.jsxs)(u.tU.Tab,{selected:$===oe,onClick:function(){Y(1),ne($),N.length>0&&W("")},children:[$," (",C[$].length,")"]},$)})})})}),(0,e.jsxs)(u.BJ.Item,{children:[(0,e.jsx)(u.cG,{}),(0,e.jsx)(u.$n.Checkbox,{fluid:!0,content:"Compact List",checked:b,onClick:function(){return B(!b)}})]})]})})}),(0,e.jsx)(u.BJ.Item,{grow:!0,my:-1,children:(0,e.jsxs)(u.az,{height:"100%",pr:1,pt:1,mr:-1,overflowY:"auto",children:[ae.slice(0,te).map(function($){return(0,e.jsx)(p,{recipe:$,compact:b,admin:!!I},$.ref)}),ae.length>te&&(0,e.jsxs)(u.wn,{mb:2,textAlign:"center",style:{cursor:"pointer"},onClick:function(){return Y(V+1)},children:["Load ",Math.min(_,ae.length-te)," ","more..."]})]})})]})})})}},9884:function(S,j,t){"use strict";t.r(j),t.d(j,{CraftingStation:function(){return p},PointCount:function(){return h},Recipe:function(){return c}});var e=t(62161),a=t(7402),i=t(4089),o=t(88716),l=t(7081),u=t(34995),E=t(85242),y=t(78377),x=["barrels","grips","mechanisms","small arms ammo","long arms ammo","misc ammo"],m=["9mm","10mm magnum","12mm heavy pistol","shotgun shell","6.5mm carbine","7.62mm rifle","8.6mm heavy rifle","14.5mm anti materiel","flare shell","17mm rolled shot","19mm explosive","small arms","long arms","cheap small arms","cheap long arms"],p=function(f){var v=(0,l.Oc)(),O=v.act,C=v.data,I=C.craftable_recipes,M=C.recipes,A=C.materials,T=C.perk_no_obfuscation;if(!Array.isArray(I))return(0,e.jsx)(E.p8,{width:400,height:400,children:(0,e.jsx)(E.p8.Content,{children:(0,e.jsx)(u.wn,{title:"ERROR",color:"bad",children:(0,e.jsx)(u.az,{fontSize:1.5,children:"No recipes were found."})})})});var b=(0,a.sb)(M.map(function(te){return te.category})).sort(function(te,Q){var oe=te.toLowerCase(),ne=Q.toLowerCase();return x.includes(oe)&&x.includes(ne)?x.indexOf(oe)-x.indexOf(ne):oe.localeCompare(ne)}),B=(0,l.QY)("selectedCategory",b[0]),R=B[0],N=B[1],W=M.filter(function(te){return te.category===R}),H=(0,a.sb)(W.map(function(te){return te.subcategory||"Other"})).sort(function(te,Q){var oe=te.toLowerCase(),ne=Q.toLowerCase();return m.includes(oe)&&m.includes(ne)?m.indexOf(oe)-m.indexOf(ne):oe.localeCompare(ne)}),q=(0,l.QY)("selectedSubCategory",H[0]),V=q[0],Y=q[1],_=W.filter(function(te){return V===(te.subcategory||"Other")});return(0,e.jsx)(E.p8,{width:620,height:600,children:(0,e.jsxs)(E.p8.Content,{children:[(0,e.jsx)(u.wn,{title:"Crafting",fill:!0,height:A&&A.length>0?"85%":"100%",children:(0,e.jsxs)(u.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(u.BJ.Item,{children:[(0,e.jsx)(u.tU,{fluid:!0,children:b.map(function(te){return(0,e.jsx)(u.tU.Tab,{selected:te===R,onClick:function(){N(te),Y(M.filter(function(Q){return Q.category===te}).map(function(Q){return Q.subcategory||"Other"}).sort(function(Q,oe){var ne=Q.toLowerCase(),ae=oe.toLowerCase();return m.includes(ne)&&m.includes(ae)?m.indexOf(ne)-m.indexOf(ae):ne.localeCompare(ae)})[0])},children:te},te)})}),H.length>1&&(0,e.jsx)(u.tU,{fluid:!0,mt:-.5,mb:0,children:H.map(function(te){return(0,e.jsx)(u.tU.Tab,{selected:te===V,onClick:function(){return Y(te)},children:te},te)})})]}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.wn,{fill:!0,style:{overflowY:"auto"},children:_.map(function(te){return(0,e.jsxs)(u.BJ,{className:"candystripe",p:1,align:"center",children:[(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(c,{recipe:te,available:I.includes(te.type),perk_no_obfuscation:T})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{icon:"hammer",disabled:!I.includes(te.type),onClick:function(){return O("craft",{type:te.type})},children:"Craft"})})]},te.name)})})})]})}),A.length>0&&(0,e.jsx)(u.wn,{children:(0,e.jsx)(y.MaterialAccessBar,{availableMaterials:A,disableStackEjection:!0,onEjectRequested:function(te,Q){O("eject",{material:te.name})}})})]})})},h=function(f){var v=f.point_cost,O=f.available_points,C=f.perk_no_obfuscation;if(C)return(0,e.jsxs)(u.az,{inline:!0,color:O>=v?"good":"bad",children:["(",v," / ",O," points)"]});var I=O/v;return I<.8||I>=1?null:(0,e.jsx)(u.az,{inline:!0,color:"good",children:"(Unlock Close)"})},c=function(f){var v=f.recipe,O=f.available,C=f.perk_no_obfuscation;return(0,e.jsxs)(u.BJ,{vertical:!0,children:[(0,e.jsxs)(u.BJ.Item,{fontSize:1.2,color:"label",children:[v.name," ",v.point_cost&&v.available_points?(0,e.jsx)(h,{point_cost:v.point_cost,available_points:v.available_points,perk_no_obfuscation:C}):null]}),(0,e.jsx)(u.BJ.Item,{textColor:O?"":"bad",children:v.cost===-1?"Cannot Craft: Lacking mechanical skill or improved stock parts.":typeof v.cost=="object"&&Object.entries(v.cost).map(function(I,M,A){var T=I[0],b=I[1];return(0,e.jsxs)(u.az,{inline:!0,mr:M===A.length-1?0:.5,children:[(0,o.Sn)(T)," (",(0,i.LI)(b,2),")",M===A.length-1?"":", "]},T)})})]})}},58044:function(S,j,t){"use strict";t.r(j),t.d(j,{CrewManifest:function(){return x},CrewManifestContent:function(){return m}});var e=t(62161),a=t(7402),i=t(88716),o=t(7081),l=t(34995),u=t(85242),E=t(65380),y=t(40289),x=function(p){return(0,e.jsx)(u.p8,{width:450,height:600,children:(0,e.jsx)(u.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(p){var h=(0,o.Oc)().data,c=h.manifest;if(!c||c.length===0)return(0,e.jsx)(l.wn,{title:"No Crew Found",children:"There doesn't seem to be anyone here."});var f=(0,a.sb)(c.flatMap(function(O){return O.departments})).sort(function(O,C){return Object.keys(y.departmentData).indexOf(O)-Object.keys(y.departmentData).indexOf(C)}),v=c.filter(function(O){return O.departments.length===0});return(0,e.jsxs)(e.Fragment,{children:[f.map(function(O){var C=c.filter(function(I){return I.departments.indexOf(O)!==-1});return(0,e.jsx)(l.wn,{className:"CrewManifest--"+O,title:y.departmentData[O].name,children:(0,e.jsx)(l.XI,{children:C.map(function(I){return(0,e.jsxs)(l.XI.Row,{children:[(0,e.jsx)(l.XI.Cell,{className:"CrewManifest__Cell",maxWidth:"135px",overflow:"hidden",width:"40%",children:(0,i.jT)(I.name)}),(0,e.jsx)(l.XI.Cell,{className:(0,E.Ly)(["CrewManifest__Cell","CrewManifest__Cell--Rank"]),maxWidth:"135px",overflow:"hidden",width:"40%",children:(0,i.jT)(I.rank)}),(0,e.jsx)(l.XI.Cell,{className:"CrewManifest__Cell",maxWidth:"40px",overflow:"hidden",width:"20%",children:I.status||"Unknown"})]},I.name+I.rank)})})},O)}),v.length!==0&&(0,e.jsx)(l.wn,{className:"CrewManifest--misc",title:"Misc",children:(0,e.jsx)(l.XI,{children:v.map(function(O){return(0,e.jsxs)(l.XI.Row,{children:[(0,e.jsx)(l.XI.Cell,{className:"CrewManifest__Cell",maxWidth:"135px",overflow:"hidden",width:"40%",children:(0,i.jT)(O.name)}),(0,e.jsx)(l.XI.Cell,{className:(0,E.Ly)(["CrewManifest__Cell","CrewManifest__Cell--Rank"]),maxWidth:"135px",overflow:"hidden",width:"40%",children:(0,i.jT)(O.rank)}),(0,e.jsx)(l.XI.Cell,{className:"CrewManifest__Cell",maxWidth:"40px",overflow:"hidden",width:"20%",children:O.status||"Unknown"})]},O.name+O.rank)})})})]})}},32839:function(S,j,t){"use strict";t.r(j),t.d(j,{Cryo:function(){return E}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=t(78924),u=[{label:"Brute",type:"bruteLoss"},{label:"Respiratory",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Burn",type:"fireLoss"}],E=function(){return(0,e.jsx)(o.p8,{width:400,height:550,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(y,{})})})},y=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.wn,{title:"Occupant",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Occupant",children:h.occupant.name||"No Occupant"}),!!h.hasOccupant&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Ki.Item,{label:"State",color:h.occupant.statstate,children:h.occupant.stat}),(0,e.jsxs)(i.Ki.Item,{label:"Temperature",color:h.occupant.temperaturestatus,children:[(0,e.jsx)(i.zv,{value:h.occupant.bodyTemperature})," K"]}),(0,e.jsx)(i.Ki.Item,{label:"Health",children:(0,e.jsx)(i.z2,{value:h.occupant.health/h.occupant.maxHealth,color:h.occupant.health>0?"good":"average",children:(0,e.jsx)(i.zv,{value:h.occupant.health})})}),u.map(function(c){return(0,e.jsx)(i.Ki.Item,{label:c.label,children:(0,e.jsx)(i.z2,{value:h.occupant[c.type]/100,children:(0,e.jsx)(i.zv,{value:h.occupant[c.type]})})},c.type)})]})]})}),(0,e.jsx)(i.wn,{title:"Cell",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Power",children:(0,e.jsx)(i.$n,{icon:h.isOperating?"power-off":"times",disabled:h.isOpen,onClick:function(){return p("power")},color:h.isOperating&&"green",children:h.isOperating?"On":"Off"})}),(0,e.jsxs)(i.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(i.zv,{value:h.cellTemperature})," K"]}),(0,e.jsxs)(i.Ki.Item,{label:"Door",children:[(0,e.jsx)(i.$n,{icon:h.isOpen?"unlock":"lock",onClick:function(){return p("door")},children:h.isOpen?"Open":"Closed"}),(0,e.jsx)(i.$n,{icon:h.autoEject?"sign-out-alt":"sign-in-alt",onClick:function(){return p("autoeject")},children:h.autoEject?"Auto":"Manual"})]})]})}),(0,e.jsx)(i.wn,{title:"Beaker",buttons:(0,e.jsx)(i.$n,{icon:"eject",disabled:!h.isBeakerLoaded,onClick:function(){return p("ejectbeaker")},children:"Eject"}),children:(0,e.jsx)(l.BeakerContents,{beakerLoaded:h.isBeakerLoaded,beakerContents:h.beakerContents})})]})}},68919:function(S,j,t){"use strict";t.r(j),t.d(j,{DisposalUnit:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l={Off:"bad",Panel:"bad",Ready:"good",Pressurizing:"average"},u=function(E){var y=(0,a.Oc)(),x=y.act,m=y.data,p=m.isai,h=m.mode,c=m.handle,f=m.panel,v=m.eject,O=l[f?"Panel":h],C=f?"Power Disabled":h;return(0,e.jsx)(o.p8,{width:300,height:155,title:"Waste Disposal Unit",children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Status",color:O,children:C}),(0,e.jsx)(i.Ki.Item,{label:"Handle",children:(0,e.jsx)(i.$n,{icon:c?"toggle-on":"toggle-off",content:c?"Disengage":"Engage",onClick:function(){x("toggle",{handle:!0})},disabled:p})}),(0,e.jsx)(i.Ki.Item,{label:"Pump",children:(0,e.jsx)(i.$n,{icon:"power-off",selected:h!=="Off",onClick:function(){x("toggle",{pump:!0})},disabled:f})})]})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{fluid:!0,icon:"eject",disabled:!v,content:"Eject",textAlign:"center",style:{fontSize:"15px"},onClick:function(){x("eject")}})})]})})})})}},75083:function(S,j,t){"use strict";t.r(j),t.d(j,{DownloadScreen:function(){return m},EmailClient:function(){return E},EmailClientContent:function(){return x},Folder:function(){return y},LoginScreen:function(){return p},MainMenuScreen:function(){return f},SendMessageScreen:function(){return c},ViewMessageScreen:function(){return h}});var e=t(62161),a=t(28277),i=t(7081),o=t(34995),l=t(85242),u=t(44390),E=function(v){return(0,e.jsx)(l.p8,{width:800,height:500,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsx)(x,{})})})},y;(function(v){v.Inbox="Inbox",v.Sent="Sent",v.Spam="Spam",v.Deleted="Deleted"})(y||(y={}));var x=function(v){var O=(0,i.Oc)(),C=O.act,I=O.data,M=I.account_data,A=I.download,T=I.error,b=(0,a.useState)(!1),B=b[0],R=b[1],N=(0,a.useState)(""),W=N[0],H=N[1],q=(0,a.useState)(""),V=q[0],Y=q[1],_=(0,a.useState)(""),te=_[0],Q=_[1];(0,a.useEffect)(function(){T&&T.toLowerCase().includes("email successfully sent")&&(H(""),Y(""),Q(""))},[T]);var oe=(0,e.jsx)(p,{data:I});return T?oe=(0,e.jsx)(o.wn,{title:"System Message",color:"bad",buttons:(0,e.jsx)(o.$n,{icon:"times",onClick:function(){return C("reset_error")},children:"Dismiss"}),children:T}):A?oe=(0,e.jsx)(m,{download:A}):M&&(B?oe=(0,e.jsx)(c,{data:M,recipient:te,setSubject:Y,setRecipient:Q,state:{body:W,setBody:H,subject:V,setSubject:Y},setSendMessageScreen:R}):M.current_message?oe=(0,e.jsx)(h,{data:M,setSubject:Y,setRecipient:Q,setSendMessageScreen:R}):oe=(0,e.jsx)(f,{data:I,setSubject:Y,setRecipient:Q,setSendMessageScreen:R})),oe},m=function(v){var O=(0,i.Oc)().act,C=v.download;return(0,e.jsx)(o.wn,{title:"Download Helper v4.3",buttons:(0,e.jsx)(o.$n,{icon:"times",color:"bad",onClick:function(){return O("cancel_download")},children:"Cancel Download"}),children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Filename",children:C.filename}),(0,e.jsxs)(o.Ki.Item,{label:"Speed",children:[(0,e.jsx)(o.zv,{value:C.speed})," GQ/s"]}),(0,e.jsx)(o.Ki.Item,{label:"Completion",children:(0,e.jsxs)(o.z2,{value:C.progress,maxValue:C.size,children:[(0,e.jsx)(o.zv,{value:C.progress}),"/",(0,e.jsx)(o.zv,{value:C.size})," GQ"]})})]})})},p=function(v){var O=(0,i.Oc)().act,C=v.data,I=C.stored_login,M=C.stored_password,A=C.id_available;return(0,e.jsxs)(o.wn,{title:"Please Log In",children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Email Address",children:(0,e.jsx)(o.pd,{fluid:!0,autoUpdateValue:!0,value:I,onChange:function(T,b){return O("set_stored_login",{login:b})}})}),(0,e.jsx)(o.Ki.Item,{label:"Password",children:(0,e.jsx)(o.pd,{fluid:!0,autoUpdateValue:!0,value:M,onChange:function(T,b){return O("set_stored_password",{password:b})}})})]}),(0,e.jsx)(o.$n,{mt:1,icon:"sign-in-alt",onClick:function(){return O("log_in")},children:"Log In"}),!!A&&(0,e.jsx)(o.$n,{mt:1,icon:"id-card",onClick:function(){return O("autofill_id")},children:"Autofill From ID"})]})},h=function(v){var O=(0,i.Oc)().act,C=v.data,I=v.setSendMessageScreen,M=v.setRecipient,A=v.setSubject,T=C.current_message,b=C.login,B=T.body,R=T.source,N=T.timestamp,W=T.title,H=T.uid,q=T.attachment;return(0,e.jsx)(o.wn,{scrollable:!0,fill:!0,title:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{color:"transparent",icon:"arrow-left",tooltip:"Back to Inbox",tooltipPosition:"left",pt:.5,mr:1,onClick:function(){return O("clear_current_message")}})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:W}),(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsx)(o.$n,{color:"transparent",icon:"save",onClick:function(){return O("save_message",{uid:H})}}),(0,e.jsx)(o.$n,{color:"transparent",icon:"print",onClick:function(){return O("print_message",{uid:H})}}),(0,e.jsx)(o.$n,{color:"transparent",icon:"reply",onClick:function(){M(R),A("RE: "+W),I(!0)}}),(0,e.jsx)(o.$n,{color:"transparent",icon:"trash",onClick:function(){return O("delete_message",{uid:H})}})]})]}),children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.In,{mt:.5,name:"user",p:1.25,size:.75,backgroundColor:"gray",style:{borderRadius:"50%"}})}),(0,e.jsxs)(o.BJ.Item,{grow:!0,children:[(0,e.jsxs)(o.BJ,{align:"center",justify:"space-between",children:[(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsx)(o.az,{bold:!0,fontSize:1.3,children:R}),(0,e.jsxs)(o.az,{color:"gray",ml:1,fontSize:.9,children:["to ",b]})]}),(0,e.jsx)(o.BJ.Item,{color:"gray",mr:1,children:N})]}),(0,e.jsx)(o.az,{mt:2,children:!!B&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:B}})}),!!q&&(0,e.jsxs)(o.$n,{icon:"save",mt:2,color:"grey",style:{borderRadius:"5px"},onClick:function(){return O("download_message_attachment",{uid:H})},children:[q.filename," (",q.size,"GQ)"]})]})]})})},c=function(v){var O=(0,i.Oc)().act,C=v.data,I=v.setSendMessageScreen,M=v.recipient,A=v.setRecipient,T=v.state,b=T.body,B=T.setBody,R=T.subject,N=T.setSubject,W=C.addressbook,H=C.attachment,q=(0,a.useState)(!1),V=q[0],Y=q[1];return(0,e.jsxs)(e.Fragment,{children:[V&&(0,e.jsx)(o.Rr,{children:(0,e.jsx)(o.wn,{className:"Section--force-background",fillPositionedParent:!0,m:2,title:"Address Book",scrollable:!0,fill:!0,height:"90%",buttons:(0,e.jsx)(o.$n,{icon:"times",tooltip:"Close Address Book",tooltipPosition:"left",color:"bad",onClick:function(){return Y(!1)}}),children:W.map(function(_){return(0,e.jsx)(o.$n,{icon:"user",fluid:!0,onClick:function(){A(_),Y(!1)},children:_},_)})})}),(0,e.jsx)(o.wn,{fill:!0,title:"Send Message",buttons:(0,e.jsx)(o.$n,{color:"bad",icon:"times",tooltip:"Close (Work will be lost)",onClick:function(){return I(!1)}}),children:(0,e.jsxs)(o.BJ,{vertical:!0,fill:!0,ml:1,mr:1,children:[(0,e.jsx)(o.BJ.Item,{ml:1,children:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{fontSize:1.25,children:"To"}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.pd,{fluid:!0,style:{background:"none",border:"none"},autoUpdateValue:!0,value:M,onChange:function(_,te){return A(te)}})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{color:"transparent",icon:"address-book",onClick:function(){return Y(!0)}})})]})}),(0,e.jsx)(o.BJ.Divider,{}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.pd,{placeholder:"Subject",fluid:!0,style:{background:"none",border:"none"},value:R,onChange:function(_,te){return N(te)}})}),(0,e.jsx)(o.BJ.Divider,{}),(0,e.jsx)(o.BJ.Item,{ml:1,grow:!0,children:(0,e.jsx)(o.fs,{scrollbar:!0,height:"100%",maxLength:2e4,multilineEnter:!0,style:{background:"none",border:"none"},placeholder:"Write your message here (pencode is supported)",onInput:function(_,te){return B(te)},onChange:function(_,te){return B(te)},value:b})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{align:"center",justify:"space-between",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{bold:!0,style:{borderRadius:"25px"},pt:1,pl:3,pr:3,pb:1,fontSize:1.25,onClick:function(){O("send_message",{body:b.replaceAll("\n","[br]"),recipient:M,title:R})},children:"Send"})}),(0,e.jsxs)(o.BJ.Item,{children:[!!H&&(0,e.jsxs)(o.az,{backgroundColor:"gray",inline:!0,pl:1,style:{borderRadius:"5px"},children:[H.filename," (",H.size,"GQ)",(0,e.jsx)(o.$n,{color:"transparent",icon:"times",onClick:function(){return O("clear_attachment")}})]}),!H&&(0,e.jsx)(o.$n,{color:"transparent",icon:"plus",tooltip:"Add Attachment",tooltipPosition:"left",onClick:function(){return O("add_attachment")}})]})]})})]})})]})},f=function(v){var O=(0,i.Oc)().act,C=v.data,I=v.setSendMessageScreen,M=v.setRecipient,A=v.setSubject,T=C.account_data,b=C.id_available,B=C.id_matches;if(T){var R=T.login,N=T.main_menu,W=T.ringtone;if(N){var H=N.label_inbox,q=N.label_outbox,V=N.label_spam,Y=N.label_deleted,_=N.folder,te=N.messages,Q=(0,a.useState)(""),oe=Q[0],ne=Q[1],ae=oe!==""?te.filter(function($){return $.title.includes(oe)||$.source.includes(oe)}):te;return(0,e.jsx)(o.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:W?"volume-up":"volume-mute",selected:W,tooltip:W?"Ringtone Enabled":"Ringtone Disabled",tooltipPosition:"bottom",onClick:function(){return O("ringtone_toggle")}}),(0,e.jsx)(o.$n,{icon:"key",tooltip:"Change Password",tooltipPosition:"bottom",onClick:function(){return O("change_password")}}),!!b&&!B&&(0,e.jsx)(o.$n,{icon:"id-card",tooltip:"Email mismatch with ID Card Detected. Synchronize ID with account?",tooltipPosition:"bottom",onClick:function(){return O("sync_id")}}),(0,e.jsxs)(o.$n,{icon:"sign-out-alt",onClick:function(){return O("log_out")},children:["Sign out of ",R]})]}),fill:!0,children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsxs)(o.BJ.Item,{basis:"15%",children:[(0,e.jsx)(o.$n,{icon:"envelope-open-text",fluid:!0,onClick:function(){return I(!0)},children:"Compose"}),(0,e.jsxs)(o.tU,{vertical:!0,children:[(0,e.jsx)(o.tU.Tab,{onClick:function(){return O("set_folder",{folder:"Inbox"})},selected:_==="Inbox",children:H}),(0,e.jsx)(o.tU.Tab,{onClick:function(){return O("set_folder",{folder:"Sent"})},selected:_==="Sent",children:q}),(0,e.jsx)(o.tU.Tab,{onClick:function(){return O("set_folder",{folder:"Spam"})},selected:_==="Spam",children:V}),(0,e.jsx)(o.tU.Tab,{onClick:function(){return O("set_folder",{folder:"Deleted"})},selected:_==="Deleted",children:Y})]})]}),(0,e.jsx)(o.BJ.Item,{grow:!0,pl:4,children:(0,e.jsx)(o.wn,{title:"Messages",buttons:(0,e.jsx)(o.az,{width:25,children:(0,e.jsx)(u.SearchBar,{searchText:oe,onSearchTextChanged:function($){return ne($)}})}),fill:!0,scrollable:!0,children:(0,e.jsx)(o.BJ,{vertical:!0,children:(0,e.jsx)(o.wj,{children:ae.length===0?(0,e.jsx)(o.az,{p:1,children:"No Messages :)"}):ae.map(function($){return(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsxs)(o.BJ,{align:"center",pt:2,children:[(0,e.jsx)(o.BJ.Item,{basis:"3%",children:(0,e.jsx)(o.$n,{inline:!0,pt:.5,color:"transparent",icon:"times",tooltip:"Delete",tooltipPosition:"right",onClick:function(){return O("delete_message",{uid:$.uid})}})}),(0,e.jsx)(o.BJ.Item,{basis:"3%",children:(0,e.jsx)(o.$n,{inline:!0,pt:.5,color:"transparent",icon:"reply",tooltip:"Reply",tooltipPosition:"right",onClick:function(){M($.source),A("RE: "+$.title),I(!0)}})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{color:"transparent",fluid:!0,width:"100%",onClick:function(){return O("set_current_message",{uid:$.uid})},children:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{bold:!0,basis:"45%",textColor:"white",children:$.source}),(0,e.jsxs)(o.BJ.Item,{grow:!0,children:[$.title.substring(0,30),$.title.length>30?"...":""]}),(0,e.jsx)(o.BJ.Item,{children:$.timestamp})]})})})]}),(0,e.jsx)(o.cG,{})]},$.uid)})})})})})]})})}}}},78377:function(S,j,t){"use strict";t.r(j),t.d(j,{MaterialAccessBar:function(){return x}});var e=t(62161),a=t(65380),i=t(88716),o=t(28277),l=t(34995),u=t(41242),E=t(7933),y=function(c){return(0,u.QL)(c,0)},x=function(c){var f=c.availableMaterials,v=c.onEjectRequested,O=c.disableStackEjection,C=c.showAllButton;return(0,e.jsxs)(l.so,{wrap:!0,children:[f.map(function(I){return(0,e.jsx)(l.so.Item,{grow:!0,basis:4.5,children:(0,e.jsx)(m,{material:I,onEjectRequested:function(M){return v&&v(I,M)},disableStackEjection:O})},I.name)}),C&&(0,e.jsx)(l.so.Item,{grow:!0,basis:4.5,children:(0,e.jsx)(p,{onEjectRequested:function(){return v&&v({name:"all",icon:"",count:0},0)}})})]})},m=function(c){var f=c.material,v=c.onEjectRequested,O=c.disableStackEjection,C=(0,o.useState)(!1),I=C[0],M=C[1];return(0,e.jsx)("div",{onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},className:(0,a.Ly)(["MaterialDock",I&&"MaterialDock--active",f.count<1&&"MaterialDock--disabled"]),children:(0,e.jsxs)(l.so,{direction:"column-reverse",children:[(0,e.jsxs)(l.so,{direction:"column",textAlign:"center",onClick:function(){return v(1)},className:"MaterialDock__Label",children:[(0,e.jsx)(l.so.Item,{children:(0,e.jsx)(E.MaterialIcon,{material:f})}),(0,e.jsx)(l.so.Item,{children:(0,e.jsx)(l.zv,{value:f.count,format:y})})]}),I&&(0,e.jsx)("div",{className:"MaterialDock__Dock",children:(0,e.jsxs)(l.so,{vertical:!0,direction:"column-reverse",children:["Eject "+(0,i.Sn)(f.name),!O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{sheets:f.count,amount:5,onEject:v}),(0,e.jsx)(h,{sheets:f.count,amount:10,onEject:v}),(0,e.jsx)(h,{sheets:f.count,amount:25,onEject:v}),(0,e.jsx)(h,{sheets:f.count,amount:50,onEject:v})]})]})})]})})},p=function(c){var f=c.onEjectRequested,v=(0,o.useState)(!1),O=v[0],C=v[1];return(0,e.jsx)("div",{onMouseEnter:function(){return C(!0)},onMouseLeave:function(){return C(!1)},className:(0,a.Ly)(["MaterialDock",O&&"MaterialDock--active"]),style:{height:"100%"},children:(0,e.jsx)(l.so,{direction:"column-reverse",height:"100%",children:(0,e.jsxs)(l.so,{direction:"column",textAlign:"center",justify:"center",onClick:function(){return f()},className:"MaterialDock__Label",height:"100%",children:[(0,e.jsx)(l.so.Item,{children:(0,e.jsx)(l.In,{name:"eject",className:"FabricatorMaterialIcon"})}),(0,e.jsx)(l.so.Item,{children:"Eject All"})]})})})},h=function(c){var f=c.amount,v=c.sheets,O=c.onEject;return(0,e.jsxs)(l.$n,{fluid:!0,color:"transparent",className:(0,a.Ly)(["Fabricator__PrintAmount",f>v&&"Fabricator__PrintAmount--disabled"]),onClick:function(){return O(f)},children:["\xD7",f]})}},7933:function(S,j,t){"use strict";t.r(j),t.d(j,{MaterialIcon:function(){return i}});var e=t(62161),a=t(34995),i=function(o){var l=o.material;return l.icon?(0,e.jsx)(a._V,{className:"FabricatorMaterialIcon",src:l.icon}):(0,e.jsx)(a.In,{name:"question-circle"})}},44390:function(S,j,t){"use strict";t.r(j),t.d(j,{SearchBar:function(){return u}});var e=t(62161),a=t(28277),i=t(34995);function o(E,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(y&&y.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),y&&l(E,y)}function l(E,y){return l=Object.setPrototypeOf||function(m,p){return m.__proto__=p,m},l(E,y)}var u=function(E){"use strict";o(y,E);function y(){return E.apply(this,arguments)}var x=y.prototype;return x.onInput=function(p){var h=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){return h.props.onSearchTextChanged(p)},200)},x.render=function(){var p=this,h=this.props,c=h.searchText,f=h.hint;return(0,e.jsxs)(i.BJ,{align:"baseline",children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.In,{name:"search"})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.pd,{fluid:!0,placeholder:f||"Search for...",onInput:function(v,O){return p.onInput(O)},value:c})})]})},y}(a.Component)},72546:function(S,j,t){"use strict";t.r(j)},99303:function(S,j,t){"use strict";t.r(j),t.d(j,{FilingCabinet:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.cabinet_name,p=x.hex_code_for_backround,h=x.contents,c=x.contents_ref;return(0,e.jsx)(o.p8,{title:m||"Filing Cabinet",width:350,height:300,children:(0,e.jsxs)(o.p8.Content,{backgroundColor:p||"#7f7f7f",scrollable:!0,children:[h.map(function(f,v){return(0,e.jsxs)(i.so,{color:"black",backgroundColor:"white",style:{padding:"2px"},mb:.5,children:[(0,e.jsx)(i.so.Item,{align:"center",grow:1,children:(0,e.jsx)(i.az,{align:"center",children:f})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return y("remove_object",{ref:c[v]})}})})]},c[v])}),h.length===0&&(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.az,{color:"white",align:"center",children:["The ",m," is empty!"]})})]})})}},17789:function(S,j,t){"use strict";t.r(j),t.d(j,{FireAlarm:function(){return E}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=t(9478),E=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.seclevel,c=p.time,f=p.timing,v=p.active;return(0,e.jsx)(l.p8,{width:275,height:300,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsxs)(o.wn,{fill:!0,title:(0,e.jsxs)(o.az,{inline:!0,children:["Current alert level:"," ",(0,e.jsx)(u.ColoredSecurityLevel,{security_level:h})]}),children:[(0,e.jsx)(o.BJ,{mt:1,mb:3,align:"center",justify:"center",children:(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:"fire",fontSize:8,color:v?"bad":"",iconSpin:v,onClick:function(){return m("alarm_toggle")}})})}),(0,e.jsx)(o.Ki,{children:!v&&(0,e.jsx)(o.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(o.$n,{onClick:function(){return m("timer_toggle")},children:f?"Stop":"Start"}),children:(0,e.jsx)(o.Ap,{animated:!0,value:c,minValue:0,maxValue:120,step:1,stepPixelSize:2,format:function(O){return""+(0,a.LI)(O,0)+" seconds"},onChange:function(O,C){return m("timer_set",{time:C})}})})})]})})})}},17532:function(S,j,t){"use strict";t.r(j),t.d(j,{Folder:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.theme,p=x.bg_color,h=x.folder_name,c=x.contents,f=x.contents_ref;return(0,e.jsx)(o.p8,{title:h||"Folder",theme:m,width:400,height:500,children:(0,e.jsxs)(o.p8.Content,{backgroundColor:p||"#7f7f7f",scrollable:!0,children:[!c.length&&(0,e.jsx)(i.wn,{children:(0,e.jsx)(i.az,{color:"lightgrey",align:"center",children:"This folder is empty!"})}),c.map(function(v,O){return(0,e.jsxs)(i.BJ,{color:"black",backgroundColor:"white",style:{padding:"2px 2px 0 2px"},children:[(0,e.jsx)(i.BJ.Item,{align:"center",grow:!0,children:(0,e.jsx)(i.az,{align:"center",children:v})}),(0,e.jsxs)(i.BJ.Item,{children:[(0,e.jsx)(i.$n,{icon:"search",onClick:function(){return y("examine",{ref:f[O]})}}),(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return y("remove",{ref:f[O]})}})]})]},f[O])})]})})}},11932:function(S,j,t){"use strict";t.r(j),t.d(j,{GasTemperatureControl:function(){return u}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.on,h=m.gasPressure,c=m.gasTemperature,f=m.minGasTemperature,v=m.maxGasTemperature,O=m.targetGasTemperature,C=m.powerSetting,I=m.gasTemperatureClass;return(0,e.jsx)(l.p8,{width:280,height:290,children:(0,e.jsxs)(l.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Controls",buttons:(0,e.jsx)(o.$n,{icon:"power-off",selected:p,onClick:function(){return x("toggleStatus")},children:p?"On":"Off"}),children:(0,e.jsxs)(o.Wx,{justify:"space-around",children:[(0,e.jsx)(o.Wx.Item,{label:"Power Level",children:(0,e.jsxs)(o.BJ,{vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.N6,{size:1.5,minValue:0,maxValue:100,value:C,format:function(M){return""+M+"%"},onChange:function(M,A){return x("setPower",{setPower:A})}})}),(0,e.jsxs)(o.BJ.Item,{children:[C,"%"]})]})}),(0,e.jsx)(o.Wx.Item,{label:"Gas Pressure",children:(0,e.jsx)(o.zv,{value:h,format:function(M){return""+(0,a.LI)(M,2)+" kPa"}})})]})}),(0,e.jsxs)(o.wn,{title:"Gas Temperature",children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Current Temperature",children:(0,e.jsx)(o.zv,{value:c,format:function(M){return""+(0,a.LI)(M,2)+" K"}})}),(0,e.jsx)(o.Ki.Item,{label:"Target Temperature",children:(0,e.jsx)(o.zv,{value:O,format:function(M){return""+(0,a.LI)(M,2)+" K"}})})]}),(0,e.jsxs)(o.Ap,{mt:1,color:I,value:O,minValue:f,maxValue:v,fillValue:c,onChange:function(M,A){return x("temp",{temp:A})},children:[(0,e.jsx)(o.zv,{value:c,format:function(M){return(0,a.LI)(M,2)}})," ","/"," ",(0,e.jsx)(o.zv,{value:O,format:function(M){return(0,a.LI)(M,2)}})," ","K"]})]})]})})}},2741:function(S,j,t){"use strict";t.r(j),t.d(j,{GeneralAirControl:function(){return l},Sensors:function(){return E}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(y){var x=(0,a.Oc)(),m=x.act,p=x.data;return(0,e.jsx)(o.p8,{width:350,height:230,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(E,{})})})},u=function(y){return y.oxygen!==null||y.plasma!==null||y.nitrogen!==null||y.carbon_dioxide!==null},E=function(y){var x=(0,a.Oc)().data,m=x.sensors,p=x.waiting_on_signal;return(0,e.jsx)(i.wn,{title:"Sensor Data",buttons:!!p&&(0,e.jsx)(i.$n,{color:"transparent",icon:"sync",iconSpin:!0,tooltip:"Waiting on return signal..."}),children:m&&m.length>0?m.map(function(h){return(0,e.jsx)(i.wn,{title:h.long_name,children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Pressure",children:[h.pressure!==null?(0,e.jsx)(i.zv,{value:h.pressure}):"UNK"," ","kPa"]}),(0,e.jsxs)(i.Ki.Item,{label:"Temperature",children:[h.temperature!==null?(0,e.jsx)(i.zv,{value:h.temperature}):"UNK"," ","K"]}),(0,e.jsxs)(i.Ki.Item,{label:"Gas Composition",children:[!u(h.gas)&&(0,e.jsx)(i.az,{color:"average",children:"Unavailable"}),h.gas.oxygen!==null&&(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.zv,{value:h.gas.oxygen}),"% O2"]}),h.gas.nitrogen!==null&&(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.zv,{value:h.gas.nitrogen}),"% N"]}),h.gas.carbon_dioxide!==null&&(0,e.jsxs)(i.az,{color:"average",children:[(0,e.jsx)(i.zv,{value:h.gas.carbon_dioxide}),"% CO2"]}),h.gas.plasma!==null&&(0,e.jsxs)(i.az,{color:"average",children:[(0,e.jsx)(i.zv,{value:h.gas.plasma}),"% TX"]})]})]})},h.long_name)}):(0,e.jsx)(i.az,{color:"average",children:"No Sensors Detected"})})}},30178:function(S,j,t){"use strict";t.r(j),t.d(j,{GeneralAirControlFuelInjection:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=t(2741),u=function(E){var y=(0,a.Oc)(),x=y.act,m=y.data,p=m.automation,h=m.device;return(0,e.jsx)(o.p8,{width:350,height:500,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(l.Sensors,{}),(0,e.jsx)(i.wn,{title:(0,e.jsx)(i.az,{inline:!0,color:h?"":"bad",children:h?"Injector":"Injector - NOT FOUND"}),buttons:(0,e.jsxs)(e.Fragment,{children:[h&&(0,e.jsx)(i.$n,{icon:"power-off",selected:h.power,onClick:function(){return x("toggle_injector")},children:h.power?"Injecting":"On Hold"}),(0,e.jsx)(i.$n,{ml:1,icon:h?"sync":"search",onClick:function(){return x("refresh_status")},tooltip:h?"Refresh":"",children:!h&&"Search"})]}),children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Automated Fuel Injection",children:(0,e.jsx)(i.$n,{icon:"robot",selected:p,onClick:function(){return x("toggle_automation")},children:p?"Engaged":"Disengaged"})}),h&&(0,e.jsx)(i.Ki.Item,{label:"Injector",buttons:!p&&(0,e.jsx)(i.$n,{icon:"syringe",onClick:function(){return x("injection")},tooltip:"Inject (1 Cycle)"}),children:p?(0,e.jsx)(i.az,{color:"average",children:"Injector Controls Locked Out"}):(0,e.jsx)(i.zv,{value:h.volume_rate,format:function(c){return""+c+" L/s"}})})]})})]})})}},47662:function(S,j,t){"use strict";t.r(j),t.d(j,{GeneralAirControlInputOutput:function(){return u},InputPort:function(){return E},OutputPort:function(){return y}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=t(2741),u=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data;return(0,e.jsx)(o.p8,{width:350,height:420,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(l.Sensors,{}),(0,e.jsxs)(i.wn,{title:"Controls",children:[(0,e.jsx)(E,{}),(0,e.jsx)(y,{})]})]})})},E=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data,c=h.input;return(0,e.jsx)(i.wn,{title:(0,e.jsx)(i.az,{inline:!0,color:c?"":"bad",children:c?c.name:"Input - NOT DETECTED"}),buttons:(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(i.$n,{icon:"power-off",selected:c.power,onClick:function(){return p("in_toggle_injector")},children:c.power?"Injecting":"On Hold"}),(0,e.jsx)(i.$n,{ml:1,icon:c?"sync":"search",onClick:function(){return p("in_refresh_status")},tooltip:c?"Refresh":"",children:!c&&"Search"})]}),children:c?(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Flow Rate",buttons:(0,e.jsx)(i.$n,{ml:1,icon:"plus",onClick:function(){return p("in_set_flowrate",{value:c.max})},children:"Max"}),children:(0,e.jsx)(i.Ap,{value:c.volume_rate,fillValue:c.volume_rate,minValue:0,maxValue:c.max,format:function(f){return""+f+" L/s"},onChange:function(f,v){p("in_set_flowrate",{value:v})}})})}):(0,e.jsx)(i.az,{color:"bad",children:"No Input Detected"})})},y=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data,c=h.output;return(0,e.jsx)(i.wn,{title:(0,e.jsx)(i.az,{inline:!0,color:c?"":"bad",children:c?c.name:"Output - NOT DETECTED"}),buttons:(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(i.$n,{icon:"power-off",selected:c.power,onClick:function(){return p("out_toggle_power")},children:c.power?"Open":"On Hold"}),(0,e.jsx)(i.$n,{ml:1,icon:c?"sync":"search",onClick:function(){return p("out_refresh_status")},tooltip:c?"Refresh":"",children:!c&&"Search"})]}),children:c?(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Output Pressure",buttons:(0,e.jsx)(i.$n,{ml:1,icon:"plus",onClick:function(){return p("out_set_pressure",{value:c.max})},children:"Max"}),children:(0,e.jsx)(i.Ap,{value:c.pressure,fillValue:c.pressure,minValue:0,maxValue:c.max,format:function(f){return""+f+" kPa"},onChange:function(f,v){p("out_set_pressure",{value:v})}})})}):(0,e.jsx)(i.az,{color:"bad",children:"No Output Detected"})})}},80590:function(S,j,t){"use strict";t.r(j),t.d(j,{HydroelectricControl:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(41242),l=t(85242),u=function(E){var y=(0,a.Oc)(),x=y.act,m=y.data,p=m.waterheld,h=m.watermax,c=m.hydrostatus,f=m.is_open,v=m.generated;return(0,e.jsx)(l.p8,{width:350,height:300,children:(0,e.jsxs)(l.p8.Content,{children:[(0,e.jsxs)(i.wn,{title:"Stored Capacity",children:[(0,e.jsx)(i.z2,{value:p,maxValue:h}),(0,e.jsx)(i.wn,{title:"Flood Gates",children:(0,e.jsx)(i.BJ,{mt:1,align:"center",justify:"center",children:(0,e.jsx)(i.BJ.Item,{basis:"50%",children:(0,e.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:f,fontSize:1.2,icon:f?"door-open":"door-closed",onClick:function(){return x("togglegate")},children:f?"Opened":"Closed"})})})})]}),(0,e.jsxs)(i.wn,{title:"Turbines",buttons:(0,e.jsx)(i.$n,{icon:"search",tooltip:"Detect Connected Turbines",onClick:function(){return x("detect_turbines")}}),children:[(0,e.jsx)(i.az,{color:"label",fontSize:1.2,mb:1,children:c}),(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Generated Power",children:(0,e.jsx)(i.zv,{value:v,format:function(O){return(0,o.d5)(O)}})})})]})]})})}},98309:function(S,j,t){"use strict";t.r(j),t.d(j,{IDCard:function(){return E}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l={"Blackshield Commander":["user-tie","flag"],Sergeant:"flag",Corpsman:"shield-virus","Corpsman Cadet":["shield-virus","school"],"Combat Medic":"shield-virus","Blackshield Trooper":"fighter-jet","Blackshield Cadet":["fighter-jet","school"],Premier:"user-tie",Steward:["user-tie","shield-alt"],Prime:"sun",Vector:"place-of-worship",Divisor:"place-of-worship",Factorial:"place-of-worship",Monomial:"place-of-worship",Lemniscate:"place-of-worship",Tessellate:"place-of-worship",Colonist:"user",Freelancer:"user",Journalist:"newspaper",Visitor:"user","Chief Executive Officer":["user-tie","box-open"],Bartender:"cocktail",Barkeep:"glass-whiskey",Barista:"coffee",Mixologist:"cocktail",Chef:"cookie-bite","Culinary Artist":"cookie-bite",Cook:"cookie-bite","Line Chef":"cookie-bite",Gardener:"seedling",Hydroponicist:"seedling",Artist:"paint-brush",Clown:"blender-phone",Entertainer:"person-booth",Mime:"volume-mute",Janitor:"soap",Custodian:"soap","Sanitation Technician":"soap","Cargo Technician":"box-open","Cargo Specialist":"box-open","Lonestar Sales Technician":"box-open","Lonestar Retail Assistant":["box-open","school"],"Lonestar Miner":"hard-hat","Lonestar Drill Technician":"hard-hat","Junior Lonestar Miner":"hard-hat","Guild Master":["user-tie","toolbox"],"Guild Adept":"toolbox","Guild Trainee":["toolbox","school"],"Guild Electrician":"bolt","Guild Mechanical Engineer":"toolbox","Chief Biolab Overseer":["user-tie","user-md"],"Soteria Doctor":"user-md","Soteria Medical Student":["user-md","school"],"Soteria Nurse":"user-nurse","Soteria Emergency Physician":["user-md","hospital"],"Soteria Surgeon":"user-md","Soteria Lifeline Technician":"ambulance","Soteria Psychiatrist":["user-md","brain"],"Soteria Psychologist":["user-md","brain"],"Soteria Empath":["user-md","brain"],"Lodge Hunt Master":["user-tie","campground"],"Lodge Hunter":"campground","Lodge Herbalist":["campground","user-md"],Outsider:"campground",Foreman:["user-tie","truck-pickup"],Fence:["truck-pickup","money-bill-wave"],Salvager:["truck-pickup","user-md"],Sawbones:["truck-pickup","user-md"],"Rookie Salvager":["truck-pickup","user-md","school"],Prospector:"truck-pickup","Rookie Prospector":["truck-pickup","school"],"Hired Muscle":"truck-pickup","Chief Research Overseer":"user-graduate","Soteria Scientist":"flask","Soteria Research Student":["flask","school"],"Soteria Xenobiologist":"meteor","Soteria Xenoarcheologist":"meteor","Soteria Xenobotanist":["biohazard","seedling"],"Soteria Research Fabricator":["flask","hammer"],"Soteria Geneticist":"dna","Soteria Roboticist":"robot","Soteria Roboticist Trainee":["robot","school"],"Soteria Cyberneticist":"robot","Soteria Mechanist":"robot","Soteria Biomechanical Engineer":"robot","Warrant Officer":["user-tie","user-shield"],"Supply Specialist":["hat-cowboy","user-shield"],Ranger:["user-shield","search"],"Junior Ranger":["user-shield","search","school"],Detective:["user-shield","search"],"Forensics Specialist":["user-shield","search"],"Marshal Officer":"user-shield","Junior Marshal Officer":["user-shield","school"],"Marshal Civil Servant":"user-shield"},u=function(y){var x=y.rank,m=l[x];return typeof m=="string"?(0,e.jsx)(i.In,{inline:!0,color:"label",name:m,size:2}):Array.isArray(m)?m.map(function(p){return(0,e.jsx)(i.In,{inline:!0,color:"label",name:p,size:2,ml:.5,mr:.5},p)}):(0,e.jsx)(i.In,{inline:!0,color:"label",name:"user",size:2})},E=function(y){var x=(0,a.Oc)().data,m=x.registered_name,p=x.sex,h=x.age,c=x.assignment,f=x.fingerprint_hash,v=x.blood_type,O=x.dna_hash,C=[{name:"Sex",val:p},{name:"Age",val:h},{name:"Blood Type",val:v},{name:"Fingerprint",val:f},{name:"DNA Hash",val:O}];return(0,e.jsx)(o.p8,{width:470,height:230,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsxs)(i.wn,{fill:!0,children:[(0,e.jsxs)(i.so,{children:[(0,e.jsx)(i.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(i.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:(0,e.jsx)(i._V,{src:"front.png",width:20,ml:-11,mt:1.2})})}),(0,e.jsx)(i.so.Item,{basis:0,grow:1,children:(0,e.jsx)(i.Ki,{children:C.map(function(I){return(0,e.jsx)(i.Ki.Item,{label:I.name,children:I.val},I.name)})})})]}),(0,e.jsxs)(i.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.az,{textAlign:"center",children:m})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.az,{textAlign:"center",children:(0,e.jsx)(u,{rank:c})})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.az,{textAlign:"center",children:c})})]})]})})})}},38860:function(S,j,t){"use strict";t.r(j),t.d(j,{Attachments:function(){return y},Firemodes:function(){return x},ItemStats:function(){return u},StatDisplay:function(){return E}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l;(function(m){m.AnimatedNumber="AnimatedNumber",m.ProgressBar="ProgressBar",m.String="String"})(l||(l={}));var u=function(m){var p=(0,a.Oc)(),h=p.act,c=p.data,f=c.stats,v=c.attachments,O=c.max_upgrades,C=c.firemodes;return(0,e.jsx)(o.p8,{width:650,height:550,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[C&&(0,e.jsx)(x,{firemodes:C}),Object.entries(f).filter(function(I){var M=I[0],A=I[1];return Array.isArray(A)&&A.length!==0}).map(function(I){var M=I[0],A=I[1];return(0,e.jsx)(i.wn,{title:M,children:(0,e.jsx)(i.Ki,{children:A.map(function(T){return(0,e.jsx)(E,{stats:T},T.name)})})},M)}),v&&(0,e.jsx)(y,{attachments:v,max_upgrades:O})]})})},E=function(m){var p=m.stats,h=p.type,c=p.name,f=p.value,v=p.unit,O;switch(h){case"AnimatedNumber":if(typeof f!="number"){O=(0,e.jsx)(i.IC,{danger:!0,children:"Invalid Data"});break}O=(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.zv,{value:f}),v]});break;case"ProgressBar":{var C=p.min,I=p.max,M=p.ranges,A=p.color;if(I===void 0||typeof f!="number"){O=(0,e.jsx)(i.IC,{danger:!0,children:"Invalid Data"});break}var T;v?T=f+""+v:T=f+" / "+I,O=(0,e.jsx)(i.z2,{value:f,minValue:C,maxValue:I,ranges:M,color:A,children:T});break}case"String":O=f;break}return(0,e.jsx)(i.Ki.Item,{label:c,children:O})},y=function(m){var p=m.attachments,h=m.max_upgrades;return p===void 0?(0,e.jsx)(i.wn,{title:"Attachments",children:(0,e.jsx)(i.IC,{danger:!0,children:"Attachment Data Invalid"})}):(0,e.jsx)(i.wn,{title:"Attachments ("+p.length+" / "+h+")",children:(0,e.jsxs)(i.BJ,{vertical:!0,children:[p.length===0&&"None attached.",p.map(function(c){return(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.BJ,{align:"center",children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i._V,{style:{border:"1px solid #3e6189",borderRadius:"5%"},src:c.icon})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:c.name})]})},c.name)})]})})},x=function(m){var p=(0,a.Oc)().act,h=m.firemodes;if(h.modes.length!==0)return(0,e.jsx)(i.wn,{title:"Firemodes: "+h.modes.length,children:h.modes.map(function(c){return(0,e.jsx)(i.az,{as:"span",children:(0,e.jsxs)(i.wn,{p:1,title:c.name,buttons:(0,e.jsx)(i.$n,{selected:c.index===h.sel_mode,onClick:function(){return p("firemode",{index:c.index})},children:"Select"}),children:[(0,e.jsx)(i.az,{pb:2,children:c.desc}),(0,e.jsxs)(i.BJ,{children:[(0,e.jsx)(i.BJ.Item,{grow:!0,pr:1,children:(0,e.jsx)(i.wn,{children:(0,e.jsx)(i.Ki,{children:c.stats.map(function(f){return(0,e.jsx)(E,{stats:f},f.name)})})})}),c.projectile&&(0,e.jsx)(i.BJ.Item,{grow:!0,pl:1,children:(0,e.jsx)(i.wn,{children:(0,e.jsx)(i.Ki,{children:c.projectile.map(function(f){return(0,e.jsx)(E,{stats:f},f.name)})})})})]}),(0,e.jsx)(i.cG,{})]},c.index)},c.index)})})}},1086:function(S,j,t){"use strict";t.r(j),t.d(j,{Evacuation:function(){return y},LateChoices:function(){return E}});var e=t(62161),a=t(7402),i=t(7081),o=t(34995),l=t(85242),u=t(40289),E=function(x){var m=(0,i.Oc)(),p=m.act,h=m.data,c=h.name,f=h.duration,v=h.evac,O=h.jobs,C=(0,a.sb)(O.flatMap(function(M){return M.departments})).sort(function(M,A){return Object.keys(u.departmentData).indexOf(M)-Object.keys(u.departmentData).indexOf(A)}),I=O.filter(function(M){return M.departments.length===0});return(0,e.jsx)(l.p8,{width:400,height:640,children:(0,e.jsx)(l.p8.Content,{scrollable:!0,children:(0,e.jsxs)(o.wn,{children:[(0,e.jsxs)(o.az,{fontSize:1.4,bold:!0,textAlign:"center",children:["Welcome, ",c]}),(0,e.jsxs)(o.az,{fontSize:1.2,textAlign:"center",children:["Round Duration: ",f]}),(0,e.jsx)(o.cG,{}),(0,e.jsx)(y,{data:v}),(0,e.jsx)(o.az,{children:"Choose one of the following open/valid positions."}),C.map(function(M){var A=O.filter(function(T){return T.departments.indexOf(M)!==-1});return(0,e.jsx)(o.wn,{className:"CrewManifest--"+M,title:u.departmentData[M].name,children:A.map(function(T){return(0,e.jsx)(o.$n,{fluid:!0,onClick:function(){return p("join",{job:T.title})},children:(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{grow:!0,children:T.title}),(0,e.jsxs)(o.BJ.Item,{children:["(",T.current_positions,") (Active: ",T.active,")"]})]})},T.title)})},M)}),I.length!==0&&(0,e.jsx)(o.wn,{title:"Misc",children:I.map(function(M){return(0,e.jsx)(o.$n,{fluid:!0,onClick:function(){return p("join",{job:M.title})},children:(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{grow:!0,children:M.title}),(0,e.jsxs)(o.BJ.Item,{children:["(",M.current_positions,") (Active: ",M.active,")"]})]})},M.title)})})]})})})},y=function(x){var m=x.data;switch(m){case"None":return"";case"CrewTransfer":return(0,e.jsx)(o.IC,{danger:!0,children:"The vessel is currently undergoing crew transfer procedures."});case"Emergency":return(0,e.jsx)(o.IC,{danger:!0,children:"The vessel is currently undergoing evacuation procedures."});case"Gone":return(0,e.jsx)(o.IC,{danger:!0,children:"The vessel has been evacuated."})}}},48562:function(S,j,t){"use strict";t.r(j),t.d(j,{AutolatheItem:function(){return p},AutolatheItemDetails:function(){return m},AutolatheQueue:function(){return h},LoadedMaterials:function(){return x},Matterforge:function(){return f}});var e=t(62161),a=t(28277),i=t(4089),o=t(88716),l=t(7081),u=t(34995),E=t(85242),y=t(44390),x=function(v){var O=(0,l.Oc)().act,C=v.materials,I=v.mat_capacity;return(0,e.jsx)(u.wn,{fill:!0,scrollable:!0,height:C.length<=1?5:18,title:"Loaded Materials",buttons:(0,e.jsx)(u.$n,{icon:"arrow-up",tooltip:"Load Materials From Hand",onClick:function(){return O("insert_material")}}),children:C.length>0&&(0,e.jsx)(u.Ki,{children:C.map(function(M){return(0,e.jsxs)(u.Ki.Item,{buttons:M.ejectable&&(0,e.jsx)(u.$n,{icon:"eject",onClick:function(){return O("eject_material",{id:M.id})}}),label:(0,o.Sn)(M.name),children:[M.amount," / ",I]},M.id)})})||(0,e.jsx)(u.az,{children:"None loaded."})})},m=function(v){var O=v.design,C=v.mat_efficiency;return(0,e.jsxs)(e.Fragment,{children:[O.materials?(0,e.jsx)(u.wn,{title:"Materials",children:O.materials.map(function(I){return(0,e.jsx)(u.Ki.Item,{label:I.name,children:(0,i.LI)(I.req*C,2)},I.id)})}):null,O.chemicals?(0,e.jsx)(u.wn,{title:"Chemicals",children:O.chemicals.map(function(I){return(0,e.jsx)(u.Ki.Item,{label:I.name,children:I.req},I.id)})}):null,(0,e.jsx)(u.wn,{title:"Other information",children:(0,e.jsxs)(u.Ki,{children:[(0,e.jsx)(u.Ki.Item,{label:"Build time",children:O.time}),O.point_cost?(0,e.jsx)(u.Ki.Item,{label:"Point cost",children:O.point_cost}):null]})})]})},p=function(v){var O=(0,l.Oc)(),C=O.act,I=O.config,M=v.design,A=v.mat_efficiency,T=(0,a.useState)(!1),b=T[0],B=T[1];return(0,e.jsx)(u.az,{style:{borderBottom:"2px solid #444",padding:"4px"},children:(0,e.jsxs)(u.BJ,{vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{align:"center",children:[!I.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.BJ,{width:"32px",height:"32px",align:"center",justify:"center",backgroundColor:"black",overflow:"hidden",style:{border:"1px solid #3e6189 "},children:(0,e.jsx)(u.BJ.Item,{className:M.icon})})}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:M.name}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{icon:"print",tooltip:"Print",onClick:function(){C("add_to_queue",{id:M.id,filename:M.filename,several:!1})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{icon:"th",tooltip:"Print Several",onClick:function(){C("add_to_queue",{id:M.id,filename:M.filename,several:!0})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{tooltip:"Show Details",icon:b?"arrow-up":"arrow-down",onClick:function(){return B(!b)}})})]})}),b&&(0,e.jsx)(u.BJ.Item,{backgroundColor:"black",style:{padding:"10px"},children:(0,e.jsx)(m,{design:M,mat_efficiency:A})})]})})},h=function(v){var O=(0,l.Oc)(),C=O.act,I=O.config,M=v.error,A=v.current,T=v.progress,b=v.queue,B=v.queue_max,R=v.paused,N=v.mat_efficiency;return(0,e.jsxs)(u.BJ,{vertical:!0,height:"100%",children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.wn,{title:"Current Item",children:A?(0,e.jsxs)(u.BJ,{vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{align:"center",children:[!I.window.toaster&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.BJ,{width:"32px",height:"32px",align:"center",justify:"center",backgroundColor:"black",overflow:"hidden",style:{border:"1px solid #3e6189 "},children:(0,e.jsx)(u.BJ.Item,{className:A.icon})})}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsxs)(u.BJ,{vertical:!0,children:[(0,e.jsxs)(u.BJ.Item,{children:["Printing ",A.name]}),M?(0,e.jsx)(u.BJ.Item,{textColor:"bad",children:M}):(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.z2,{value:T/A.time,color:"good"})})]})}),(0,e.jsxs)(u.BJ.Item,{children:[(0,e.jsx)(u.$n,{icon:R?"play":"pause",onClick:function(){C("pause")}}),(0,e.jsx)(u.$n,{icon:"times",onClick:function(){C("abort_print")}})]})]})}),(0,e.jsx)(u.BJ.Item,{backgroundColor:"black",style:{padding:"10px"},children:(0,e.jsx)(m,{design:A,mat_efficiency:N})})]}):(0,e.jsx)(e.Fragment,{children:"Nothing printing."})})}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.wn,{fill:!0,title:"Queue",buttons:(0,e.jsxs)(u.BJ,{align:"center",children:[(0,e.jsxs)(u.BJ.Item,{children:["Queue: ",b.length," / ",B]}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{color:"bad",icon:"times",tooltip:"Clear Queue",onClick:function(){C("clear_queue")}})})]}),scrollable:!0,children:(0,e.jsx)(u.BJ,{vertical:!0,children:b.map(function(W){return(0,e.jsx)(u.BJ.Item,{style:{borderBottom:"2px solid #444"},children:(0,e.jsxs)(u.BJ,{align:"center",children:[(0,e.jsx)(u.BJ.Item,{grow:!0,color:c(W.error),children:W.name}),W.ind>1&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{icon:"arrow-up",onClick:function(){C("move_up_queue",{index:W.ind})}})}),W.ind=2?"bad":v===1?"average":"good"},f=function(v){var O=(0,l.Oc)(),C=O.act,I=O.data,M=I.error,A=I.designs,T=I.current,b=I.progress,B=I.queue,R=I.queue_max,N=I.paused,W=I.mat_efficiency,H=(0,l.QY)("search_text",""),q=H[0],V=H[1];return(0,e.jsx)(E.p8,{width:720,height:700,children:(0,e.jsxs)(E.p8.Content,{children:[(0,e.jsx)(x,{mat_capacity:I.mat_capacity,materials:I.materials}),(0,e.jsxs)(u.BJ,{height:"85%",children:[(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsxs)(u.wn,{title:"Recipes",fill:!0,children:[(0,e.jsx)(u.az,{style:{paddingBottom:"8px"},children:(0,e.jsx)(y.SearchBar,{searchText:q,onSearchTextChanged:V,hint:"Search all designs..."})}),(0,e.jsx)(u.wn,{style:{paddingRight:"4px",paddingBottom:"30px"},fill:!0,scrollable:!0,children:(0,e.jsx)(u.BJ,{vertical:!0,children:(0,e.jsx)(u.wj,{children:q.length>0?A.filter(function(Y){return Y.name.toLowerCase().includes(q)}).map(function(Y){return(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(p,{design:Y,mat_efficiency:W})},Y.id)}):A.map(function(Y){return(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(p,{design:Y,mat_efficiency:W})},Y.id)})})})})]})}),(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{current:T,error:M,paused:N,progress:b,queue:B,queue_max:R,mat_efficiency:W})})]})]})})}},4418:function(S,j,t){"use strict";t.r(j),t.d(j,{NoticeBoard:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.allowed,p=x.items,h=p===void 0?[]:p;return(0,e.jsx)(o.p8,{width:425,height:176,children:(0,e.jsx)(o.p8.Content,{backgroundColor:"#704D25",children:h.length?h.map(function(c){return(0,e.jsxs)(i.BJ,{color:"black",backgroundColor:"white",style:{padding:"2px 2px 0 2px"},children:[(0,e.jsx)(i.BJ.Item,{align:"center",grow:!0,children:(0,e.jsx)(i.az,{align:"center",children:c.name})}),(0,e.jsxs)(i.BJ.Item,{children:[(0,e.jsx)(i.$n,{icon:"eye",onClick:function(){return y("examine",{ref:c.ref})}}),(0,e.jsx)(i.$n,{icon:"eject",disabled:!m,onClick:function(){return y("remove",{ref:c.ref})}})]})]},c.ref)}):(0,e.jsx)(i.wn,{children:(0,e.jsx)(i.az,{color:"white",align:"center",children:"The notice board is empty!"})})})})}},65376:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosCatalog:function(){return o}});var e=t(62161),a=t(85242),i=t(81979),o=function(l){return(0,e.jsx)(a.Zm,{width:640,height:700,children:(0,e.jsx)(a.Zm.Content,{children:(0,e.jsx)(i.CatalogContent,{})})})}},244:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosComputerConfig:function(){return E}});var e=t(62161),a=t(88716),i=t(7081),o=t(34995),l=t(41242),u=t(85242),E=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.disk_size,c=p.disk_used,f=p.power_usage,v=p.battery_exists,O=p.battery_rating,C=p.battery_percent,I=p.available_themes,M=p.PC_device_theme,A=p.print_language,T=p.hardware,b=[].concat(["Default"],I);return(0,e.jsx)(u.Zm,{width:700,height:700,children:(0,e.jsxs)(u.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(o.wn,{title:"Power Supply",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Battery Status",children:v?"Active":"Not Available"}),v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Ki.Item,{label:"Battery Rating",children:O}),(0,e.jsx)(o.Ki.Item,{label:"Battery Charge",children:(0,e.jsx)(o.z2,{ranges:{bad:[0,25],average:[25,50],good:[50,Number.POSITIVE_INFINITY]},value:C,maxValue:100})}),(0,e.jsx)(o.Ki.Item,{label:"Power Usage",children:(0,l.d5)(f)})]})]})}),(0,e.jsx)(o.wn,{title:"File System",children:(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Used Capacity",children:(0,e.jsxs)(o.z2,{ranges:{good:[0,h*.75],average:[h*.75,h*.9],bad:[h*.9,Number.POSITIVE_INFINITY]},value:c,maxValue:h,children:[c,"/",h," GQ"]})})})}),(0,e.jsx)(o.wn,{title:"Customization",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Theme",verticalAlign:"middle",children:(0,e.jsx)(o.ms,{width:"100%",options:b,onSelected:function(B){B==="Default"?m("set_device_theme",{theme:""}):m("set_device_theme",{theme:B})},selected:M||"Default"})}),!!A&&(0,e.jsx)(o.Ki.Item,{label:"Printer Language",children:(0,e.jsx)(o.$n,{onClick:function(){return m("edit_language")},children:A})})]})}),(0,e.jsx)(o.wn,{title:"Computer Components",children:T.map(function(B){return(0,e.jsxs)(o.wn,{title:(0,a.Sn)(B.name),buttons:!B.critical&&(0,e.jsx)(o.$n,{icon:"power-off",selected:B.enabled,tooltip:B.enabled?"Turn Off":"Turn On",onClick:function(){return m("PC_toggle_component",{component:B.name})},children:B.enabled?"On":"Off"}),children:[(0,e.jsx)(o.az,{italic:!0,mb:1,children:B.desc}),(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Power Usage",children:(0,l.d5)(B.powerusage)})})]},B.name)})}),(0,e.jsx)(o.wn,{children:"NTOS v2.0.4b Copyright NanoTrasen 2557 - 2559"})]})})}},51729:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosCrewManifest:function(){return o}});var e=t(62161),a=t(85242),i=t(58044),o=function(l){return(0,e.jsx)(a.Zm,{width:450,height:700,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:(0,e.jsx)(i.CrewManifestContent,{})})})}},91644:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosDownloader:function(){return u},SoftwareRepository:function(){return E}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.error,c=p.downloaded_file,f=p.download_paused,v=p.disk_size,O=p.disk_used,C=p.downloads_queue,I=p.hackedavailable,M=p.hacked_programs,A=p.downloadable_programs;return(0,e.jsx)(l.Zm,{width:600,height:700,children:(0,e.jsxs)(l.Zm.Content,{scrollable:!0,children:[h?(0,e.jsxs)(o.wn,{title:"ERROR",color:"bad",children:[(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Information",children:h})}),(0,e.jsx)(o.$n,{icon:"power-off",onClick:function(){return m("reset_error")},children:"Reset Program"})]}):(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(o.wn,{title:"Download In Progress",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"File Name",children:c.downloadname}),(0,e.jsx)(o.Ki.Item,{label:"File Description",children:c.downloaddesc}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Rate",children:(0,e.jsx)(o.zv,{value:c.downloadspeed,format:function(T){return""+(0,a.LI)(T,2)+" GQ/s"}})}),(0,e.jsx)(o.Ki.Item,{label:"Download Progress",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:f?"play":"pause",tooltip:f?"Resume Download":"Pause Download",onClick:function(){return m("download_pause")}}),(0,e.jsx)(o.$n,{icon:"stop",tooltip:"Stop Download",onClick:function(){return m("download_stop")}})]}),children:(0,e.jsxs)(o.z2,{value:c.downloadcompletion,maxValue:c.downloadsize,children:[(0,e.jsx)(o.zv,{value:c.downloadcompletion}),"/",(0,e.jsx)(o.zv,{value:c.downloadsize}),"GQ"]})})]})}),C.length>0&&(0,e.jsx)(o.wn,{title:"Download Queue",children:(0,e.jsx)(o.BJ,{vertical:!0,children:C.map(function(T){return(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsx)(o.$n,{inline:!0,icon:"times",pr:1,onClick:function(){return m("remove_queued",{file:T})}})," ",T]},T)})})}),(0,e.jsx)(E,{title:"Primary software repository",show_disk:!0,downloadable_programs:A}),M.length>0&&(0,e.jsx)(E,{title:"*UNKNOWN* software repository",evil:!0,downloadable_programs:M})]}),(0,e.jsx)(o.wn,{children:"NTOS v2.0.4b Copyright NanoTrasen 2557 - 2559"})]})})},E=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.disk_size,c=p.disk_used,f=p.downloaded_file,v=y.downloadable_programs,O=y.title,C=y.show_disk,I=y.evil;return(0,e.jsxs)(o.wn,{title:O,className:I?"theme-malfunction":"",children:[C&&(0,e.jsxs)(o.z2,{ranges:{good:[0,h*.75],average:[h*.75,h*.9],bad:[h*.9,Number.POSITIVE_INFINITY]},value:c,maxValue:h,children:[c,"/",h," GQ"]}),(0,e.jsxs)(o.BJ,{pt:1,vertical:!0,zebra:!0,children:[(0,e.jsx)(o.BJ.Item,{pl:1,pr:1,children:(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{basis:"5%"}),(0,e.jsx)(o.BJ.Item,{basis:"20%",children:"Name"}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:"Description"}),(0,e.jsx)(o.BJ.Item,{shrink:!0,children:"Size"})]})}),v.map(function(M){return(0,e.jsx)(o.BJ.Item,{p:1,children:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{shrink:!0,children:(0,e.jsx)(o.$n,{disabled:M.in_queue||M.filename===(f==null?void 0:f.downloadname),icon:"download",tooltipPosition:"left",tooltip:"Download",onClick:function(){return m("download_file",{file:M.filename})}})}),(0,e.jsx)(o.BJ.Item,{basis:"20%",children:M.filedesc}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:M.fileinfo}),(0,e.jsxs)(o.BJ.Item,{shrink:!0,children:[M.size,"GQ"]})]})},M.filename)})]})]})}},91988:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosEmailClient:function(){return l}});var e=t(62161),a=t(7081),i=t(49347),o=t(75083),l=function(u){var E=(0,a.Oc)().data;return(0,e.jsx)(i.Z,{title:E.account_data&&"Email Client - "+E.account_data.login||"",width:800,height:500,children:(0,e.jsx)(i.Z.Content,{children:(0,e.jsx)(o.EmailClientContent,{})})})}},55070:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosFileManager:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data,c=h.error,f=h.open_file,v=h.internal_disk,O=h.portable_disk,C=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{disk:v,title:"Available Files (Local)"}),!!O&&(0,e.jsx)(u,{disk:O,title:"Available Files ("+(O.disk_name||"Portable Device")+")",portable:!0})]});return c?C=(0,e.jsxs)(i.wn,{textColor:"bad",title:"An error has occured",children:[(0,e.jsxs)(i.az,{children:["Additional information: ",c]}),(0,e.jsx)(i.az,{italic:!0,children:"Please try again. If the problem persists contact your system administrator for assistance."}),(0,e.jsx)(i.$n,{mt:1,fluid:!0,onClick:function(){return p("close_file")},children:"Back To Menu"})]}):f&&(C=(0,e.jsx)(y,{file:f})),(0,e.jsx)(o.Zm,{width:600,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:C})})},u=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data,c=x.disk,f=x.title,v=x.portable,O=[];return!c.read_only&&!v&&O.push((0,e.jsx)(i.$n,{icon:"file-upload",ml:1,onClick:function(){return p("new_text_file")},children:"New File"})),v&&O.push((0,e.jsx)(i.$n,{icon:"eject",tooltip:"Eject Disk",onClick:function(){return p("PC_eject_disk")},children:"Eject"})),(0,e.jsxs)(i.wn,{title:f,buttons:O.map(function(C){return C}),children:[(0,e.jsxs)(i.z2,{ranges:{good:[0,c.max_capacity*.75],average:[c.max_capacity*.75,c.max_capacity*.9],bad:[c.max_capacity*.9,Number.POSITIVE_INFINITY]},color:c.read_only?"bad":"",value:c.used_capacity,maxValue:c.max_capacity,children:[c.used_capacity,"/",c.max_capacity," GQ"," ",c.read_only?"(READ ONLY)":""]}),(0,e.jsxs)(i.XI,{mt:1,children:[(0,e.jsxs)(i.XI.Row,{header:!0,children:[(0,e.jsx)(i.XI.Cell,{children:"Name"}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",collapsing:!0,children:"Type"}),(0,e.jsx)(i.XI.Cell,{textAlign:"center",collapsing:!0,children:"Size"}),(0,e.jsx)(i.XI.Cell,{textAlign:"right",collapsing:!0,children:"Operations"})]}),c.files.map(function(C){return(0,e.jsx)(E,{file:C,portable:v,disk:c},C.filename)})]})]})},E=function(x){var m=(0,a.Oc)(),p=m.act,h=m.data,c=x.file,f=x.portable,v=x.disk,O=c.filename==="AUTORUN"&&c.filetype==="DAT",C=v.read_only||c.undeletable;return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsxs)(i.XI.Cell,{color:O?"gray":"",verticalAlign:"middle",children:[c.filename," ",!!O&&(0,e.jsx)(i.az,{inline:!0,color:"bad",children:"[System File]"})]}),(0,e.jsx)(i.XI.Cell,{color:O?"gray":"",textAlign:"center",verticalAlign:"middle",children:c.filetype}),(0,e.jsxs)(i.XI.Cell,{color:O?"gray":"",textAlign:"center",verticalAlign:"middle",children:[c.size,"GQ"]}),(0,e.jsx)(i.XI.Cell,{textAlign:"right",verticalAlign:"middle",ml:1,pb:.5,children:(0,e.jsxs)(i.BJ,{justify:"flex-end",children:[!f&&(0,e.jsxs)(e.Fragment,{children:[c.filetype==="PRG"&&(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n.Checkbox,{checked:c.filename===v.autorun,tooltip:"Autorun",tooltipPosition:"left",onClick:function(){return p("PC_setautorun",{program:c.filename})},children:"AR"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"book-open",tooltip:"View",tooltipPosition:"left",onClick:function(){return p("set_open_file",{file:c.filename})}})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"edit",tooltip:C?"READ ONLY":"Rename",tooltipPosition:"left",disabled:C,onClick:function(){return p("rename_file",{file:c.filename})}})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"copy",tooltip:C?"READ ONLY":c.clone_able?"Clone":"CLONING DISABLED",tooltipPosition:"left",disabled:!c.clone_able||C,onClick:function(){return p("clone_file",{file:c.filename})}})})]}),!!h.portable_disk&&(f?!h.internal_disk.read_only:!h.portable_disk.read_only)&&(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:!c.clone_able||c.undeletable,icon:"copy-o",tooltip:c.undeletable?"READ ONLY":c.clone_able?"Copy to "+(f?"Hard Drive":"Portable Drive"):"CLONING DISABLED",onClick:function(){return p(f?"copy_from_usb":"copy_to_usb",{file:c.filename})}})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{color:"red",icon:"trash-alt",tooltip:C?"READ ONLY":"Delete",tooltipPosition:"left",disabled:C,onClick:function(){return p("delete_file",{file:c.filename,portable:f})}})})]})})]})},y=function(x){var m=(0,a.Oc)().act,p=x.file;return(0,e.jsx)(i.wn,{fill:!0,title:"Viewing file "+p.filename,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"edit",tooltip:"Edit",onClick:function(){return m("edit_file")}}),(0,e.jsx)(i.$n,{icon:"print",tooltip:"Print",onClick:function(){return m("print_file")}}),(0,e.jsx)(i.$n,{icon:"window-close-o",tooltip:"Close",onClick:function(){return m("close_file")}})]}),children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:p.filedata}})})}},63822:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosMain:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l={},u=function(y){var x=(0,a.Oc)(),m=x.act,p=x.data,h=p.PC_device_theme,c=p.hard_drive,f=p.portable_drive;return(0,e.jsx)(o.Zm,{title:h==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",width:400,height:500,resizable:!0,children:(0,e.jsxs)(o.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(E,{drive:c}),f&&(0,e.jsx)(E,{drive:f,removable:!0})]})})},E=function(y){var x=(0,a.Oc)().act,m=y.drive,p=y.removable,h=m.name||(p?"Data Disk":"Programs");return(0,e.jsx)(i.wn,{title:h,buttons:p&&(0,e.jsx)(i.$n,{icon:"eject",tooltip:"Eject Disk",onClick:function(){return x("PC_eject_disk")}}),children:(0,e.jsx)(i.XI,{children:m.programs.map(function(c){return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsx)(i.XI.Cell,{pb:.5,children:(0,e.jsx)(i.$n,{fluid:!0,color:"dark-grey",icon:c.icon||l[c.name]||"window-maximize-o",content:c.desc,onClick:function(){return x("PC_runprogram",{program:c.name,disk:m.ref})}})}),(0,e.jsx)(i.XI.Cell,{collapsing:!0,width:"18px",children:!!c.running&&(0,e.jsx)(i.$n,{color:"dark-grey",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return x("PC_killprogram",{program:c.name,disk:m.ref})}})})]},c.name)})})})}},32887:function(S,j,t){"use strict";t.r(j),t.d(j,{NtosRcon:function(){return y}});var e=t(62161),a=t(7402),i=t(4089),o=t(7081),l=t(34995),u=t(41242),E=t(85242),y=function(m){var p=(0,o.Oc)(),h=p.act,c=p.data,f=c.smeses,v=c.breakers,O=(0,a.Ul)(f,function(C){return C.RCON_tag});return(0,e.jsx)(E.Zm,{width:660,height:600,children:(0,e.jsxs)(E.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(l.wn,{title:"Detected SMES Units",children:(0,e.jsx)(l.Ki,{children:O.map(function(C){return(0,e.jsx)(x,{smes:C},C.RCON_tag)})})}),(0,e.jsx)(l.wn,{title:"Detected Breakers",children:(0,e.jsx)(l.Ki,{children:v.map(function(C){return(0,e.jsxs)(l.Ki.Item,{label:C.RCON_tag,children:["[",(0,e.jsx)(l.az,{inline:!0,color:C.enabled?"good":"bad",children:C.enabled?"ENABLED":"DISABLED"}),"]"," ",(0,e.jsx)(l.$n,{icon:"power-off",tooltip:C.enabled?"Turn Off?":"Turn On?",onClick:function(){return h("toggle_breaker",{breaker:C.RCON_tag})}})]},C.RCON_tag)})})})]})})},x=function(m){var p=(0,o.Oc)().act,h=m.smes;return(0,e.jsxs)(l.Ki.Item,{label:h.RCON_tag,children:[(0,e.jsx)(l.az,{mb:1,children:(0,e.jsx)(l.z2,{value:h.charge,minValue:0,maxValue:100,ranges:{good:[50,Number.POSITIVE_INFINITY],average:[25,50],bad:[Number.NEGATIVE_INFINITY,25]}})}),(0,e.jsx)(l.az,{children:(0,e.jsxs)(l.Ki,{children:[(0,e.jsx)(l.Ki.Item,{label:"Input",buttons:(0,e.jsx)(l.$n,{icon:"power-off",selected:h.input_set,tooltip:h.input_set?"AUTO":"OFF",onClick:function(){return p("smes_in_toggle",{smes:h.RCON_tag})}}),children:(0,e.jsxs)(l.Ap,{value:h.input_val/1e3,minValue:0,maxValue:h.input_max/1e3,fillValue:h.input_load/1e3,step:1,format:function(c){return(0,u.d5)((0,i.LI)(c*1e3,2))},onChange:function(c,f){return p("smes_in_set",{smes:h.RCON_tag,value:f*1e3})},children:[(0,u.d5)((0,i.LI)(h.input_load,2))," Load /"," ",(0,u.d5)((0,i.LI)(h.input_val,2))," Set"]})}),(0,e.jsx)(l.Ki.Item,{label:"Output",buttons:(0,e.jsx)(l.$n,{icon:"power-off",selected:h.output_set,tooltip:h.output_set?"ONLINE":"OFFLINE",onClick:function(){return p("smes_out_toggle",{smes:h.RCON_tag})}}),children:(0,e.jsxs)(l.Ap,{value:h.output_val/1e3,minValue:0,maxValue:h.output_max/1e3,fillValue:h.output_load/1e3,step:1,format:function(c){return(0,u.d5)((0,i.LI)(c*1e3,2))},onChange:function(c,f){return p("smes_out_set",{smes:h.RCON_tag,value:f*1e3})},children:[(0,u.d5)((0,i.LI)(h.output_load,2))," Load /"," ",(0,u.d5)((0,i.LI)(h.output_val,2))," Set"]})})]})})]})}},41285:function(S,j,t){"use strict";t.r(j),t.d(j,{FileBrowser:function(){return E},NtosWord:function(){return u},Word:function(){return y}});var e=t(62161),a=t(28277),i=t(7081),o=t(34995),l=t(85242),u=function(x){var m=(0,i.Oc)(),p=m.act,h=m.data,c=h.error,f=(0,a.useState)(!1),v=f[0],O=f[1],C=(0,i.QY)("edited-flag",!1),I=C[0],M=C[1],A={setShowFileBrowser:O,edited:I,setEdited:M},T=(0,e.jsx)(y,{uiControl:A});return c?T=(0,e.jsx)(o.wn,{title:"Notice",buttons:(0,e.jsx)(o.$n,{icon:"times",onClick:function(){return p("PRG_reseterror")}}),children:c}):v&&(T=(0,e.jsx)(E,{uiControl:A})),(0,e.jsx)(l.Zm,{width:550,height:700,children:(0,e.jsx)(l.Zm.Content,{children:T})})},E=function(x){var m=(0,i.Oc)(),p=m.act,h=m.data,c=x.uiControl,f=c.setShowFileBrowser,v=c.edited,O=c.setEdited,C=h.open_file,I=h.files,M=h.usbfiles;return(0,e.jsx)(o.wn,{title:"File Browser"+(v?" (Unsaved Changes In Editor)":""),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"file-upload",tooltip:v?"New File (Unsaved Changes)":"New File",color:v?"bad":"",onClick:function(){p("PRG_newfile"),O(!0)}}),(0,e.jsx)(o.$n,{icon:"arrow-left",tooltip:"Return to editor",onClick:function(){return f(!1)}})]}),children:(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Name"}),(0,e.jsx)(o.XI.Cell,{collapsing:!0,textAlign:"right",children:"Size (GQ)"}),(0,e.jsx)(o.XI.Cell,{collapsing:!0})]}),I.map(function(A){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{color:C===A.name?"good":"",children:A.name}),(0,e.jsx)(o.XI.Cell,{color:C===A.name?"good":"",textAlign:"right",collapsing:!0,children:A.size}),(0,e.jsx)(o.XI.Cell,{ml:1,collapsing:!0,children:(0,e.jsx)(o.$n,{icon:"pen",color:v?"bad":"",tooltip:v?"(Unsaved Changes)":"",selected:C===A.name,onClick:function(){p("PRG_openfile",{file:A.name}),f(!1)},children:"Edit"})})]},A.name)})]})})},y=function(x){var m=(0,i.Oc)(),p=m.act,h=m.data,c=x.uiControl,f=c.setShowFileBrowser,v=c.edited,O=c.setEdited,C=h.open_file,I=h.loaded_data,M=h.loaded_data_html,A=h.max_length,T=(0,a.useState)(!1),b=T[0],B=T[1],R=(0,a.useState)(!1),N=R[0],W=R[1];return(0,e.jsx)(o.wn,{title:"Document: "+(C||"Untitled")+(v?"*":""),fill:!0,scrollable:b,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"file-upload",tooltip:"New File",color:v?"bad":"",onClick:function(){p("PRG_newfile"),O(!0)}}),(0,e.jsx)(o.$n,{icon:"columns",tooltip:"Browse Files",pr:1,onClick:function(){return f(!0)}}),(0,e.jsx)(o.$n,{icon:"save",tooltip:"Save File",onClick:function(){p("PRG_savefile"),O(!1)}}),(0,e.jsx)(o.$n,{icon:"save-o",tooltip:"Save File As",onClick:function(){p("PRG_saveasfile"),O(!1)}}),(0,e.jsx)(o.$n,{icon:"print",tooltip:"Print File",onClick:function(){return p("PRG_printfile")}}),(0,e.jsx)(o.$n.Checkbox,{checked:b,onClick:function(){return B(!b)},children:"Preview"}),(0,e.jsx)(o.$n,{icon:"question",selected:N,onClick:function(){return W(!N)},tooltip:"Help"})]}),children:b?(0,e.jsx)(o.az,{dangerouslySetInnerHTML:{__html:M}}):N?(0,e.jsxs)(o.az,{color:"label",children:[(0,e.jsx)(o.az,{fontSize:1.4,children:"Formatting Help"}),(0,e.jsx)(o.az,{children:"[br] : Creates a linebreak."}),(0,e.jsx)(o.az,{children:"[center] - [/center] : Centers the text."}),(0,e.jsx)(o.az,{children:"[h1] - [/h1] : First level heading."}),(0,e.jsx)(o.az,{children:"[h2] - [/h2] : Second level heading."}),(0,e.jsx)(o.az,{children:"[h3] - [/h3] : Third level heading."}),(0,e.jsx)(o.az,{children:"[b] - [/b] : Bold."}),(0,e.jsx)(o.az,{children:"[i] - [/i] : Italic."}),(0,e.jsx)(o.az,{children:"[u] - [/u] : Underlined."}),(0,e.jsx)(o.az,{children:"[small] - [/small] : Decreases the size of the text."}),(0,e.jsx)(o.az,{children:"[large] - [/large] : Increases the size of the text."}),(0,e.jsx)(o.az,{children:"[field] : Inserts a blank text field, which can be filled later. Useful for forms."}),(0,e.jsx)(o.az,{children:"[date] : Current station date."}),(0,e.jsx)(o.az,{children:"[time] : Current station time."}),(0,e.jsx)(o.az,{children:"[list] - [/list] : Begins and ends a list."}),(0,e.jsx)(o.az,{children:"[*] : A list item."}),(0,e.jsx)(o.az,{children:"[hr] : Horizontal rule."}),(0,e.jsx)(o.az,{children:"[table] - [/table] : Creates table using [row] and [cell] tags."}),(0,e.jsx)(o.az,{children:"[grid] - [/grid] : Table without visible borders, for layouts."}),(0,e.jsx)(o.az,{children:"[row] - New table row."}),(0,e.jsx)(o.az,{children:"[cell] - New table cell."}),(0,e.jsx)(o.az,{children:"[logo] - Inserts corporate logo image."}),(0,e.jsx)(o.az,{children:"[logolonestar] - Inserts Lonestar Logo"})]}):(0,e.jsx)(o.fs,{scrollbar:!0,fluid:!0,height:"100%",maxLength:A,multilineEnter:!0,value:I,onInput:function(H,q){O(!0)},onChange:function(H,q){p("PRG_editfile",{text:q}),O(!0)}})})}},13919:function(S,j,t){"use strict";t.r(j),t.d(j,{OreBox:function(){return E}});var e=t(62161),a=t(88716),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E=function(x){var m=(0,o.Oc)(),p=m.act,h=m.data,c=h.materials;return(0,e.jsx)(u.p8,{width:460,height:265,children:(0,e.jsx)(u.p8.Content,{children:(0,e.jsx)(l.wn,{fill:!0,scrollable:!0,title:"Ores",buttons:(0,e.jsx)(l.$n,{content:"Eject All Ores",onClick:function(){return p("ejectallores")}}),children:(0,e.jsx)(l.BJ,{direction:"column",children:(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.wn,{children:(0,e.jsxs)(l.BJ,{vertical:!0,children:[(0,e.jsxs)(l.BJ,{align:"start",children:[(0,e.jsx)(l.BJ.Item,{basis:"30%",children:(0,e.jsx)(l.az,{bold:!0,children:"Ore"})}),(0,e.jsx)(l.BJ.Item,{basis:"20%",children:(0,e.jsx)(l.wn,{align:"center",children:(0,e.jsx)(l.az,{bold:!0,children:"Amount"})})})]}),c.map(function(f){return(0,e.jsx)(y,{material:f,onRelease:function(v,O){return p("eject",{type:v,qty:O})},onReleaseAll:function(v){return p("ejectall",{type:v})}},f.type)})]})})})})})})})},y=function(x){var m=x.material,p=x.onRelease,h=x.onReleaseAll,c=(0,i.useState)(1),f=c[0],v=c[1],O=Math.floor(m.amount);return(0,e.jsx)(l.BJ.Item,{children:(0,e.jsxs)(l.BJ,{align:"center",children:[(0,e.jsx)(l.BJ.Item,{basis:"30%",children:(0,a.Sn)(m.name)}),(0,e.jsx)(l.BJ.Item,{basis:"20%",children:(0,e.jsx)(l.wn,{align:"center",children:(0,e.jsx)(l.az,{mr:0,color:"label",inline:!0,children:O})})}),(0,e.jsxs)(l.BJ.Item,{basis:"50%",children:[(0,e.jsx)(l.Q7,{width:"32px",step:1,stepPixelSize:5,minValue:1,maxValue:100,value:f,onChange:function(C){return v(C)}}),(0,e.jsx)(l.$n,{content:"Eject Amount",onClick:function(){return p(m.type,f)}}),(0,e.jsx)(l.$n,{content:"Eject All",onClick:function(){return h(m.type)}})]})]})})}},59722:function(S,j,t){"use strict";t.r(j),t.d(j,{PortableGenerator:function(){return E}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=t(41242),E=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.active,c=p.is_ai,f=p.fuel_is_reagent,v=p.fuel_type,O=p.fuel_stored,C=p.fuel_capacity,I=p.fuel_usage,M=p.anchored,A=p.connected,T=p.ready_to_boot,b=p.power_generated,B=p.max_power_output,R=p.power_output,N=p.unsafe_output,W=p.power_available,H=p.temperature_current,q=p.temperature_max,V=p.temperature_overheat,Y=O/C,_=Y>=.5&&"good"||Y>.15&&"average"||"bad";return(0,e.jsx)(l.p8,{width:400,height:280,children:(0,e.jsxs)(l.p8.Content,{children:[!M&&(0,e.jsx)(o.IC,{children:"Generator must be anchored to operate."}),(0,e.jsx)(o.wn,{title:"Status",buttons:(0,e.jsx)(o.$n,{icon:"power-off",onClick:function(){return m("toggle_power")},selected:h,disabled:!T,children:h?"Stop":"Start"}),children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Current fuel level",children:(0,e.jsx)(o.z2,{value:O/C,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:f?(0,e.jsxs)(e.Fragment,{children:[(0,a.LI)(O/1e3,1),"u / ",C/1e3,"u"]}):(0,e.jsxs)(e.Fragment,{children:[(0,a.LI)(O,1),"cm\xB3 / ",C,"cm\xB3"]})})}),(0,e.jsx)(o.Ki.Item,{label:"Fuel Type",buttons:O>=1&&(0,e.jsx)(o.$n,{ml:1,icon:"eject",disabled:h||c,onClick:function(){return m("eject")},children:"Eject"}),children:f?(0,e.jsxs)(o.az,{color:_,children:[(0,a.LI)(O/1e3,1),"u ",v]}):(0,e.jsxs)(o.az,{color:_,children:[(0,a.LI)(O,1),"cm\xB3 ",v]})}),(0,e.jsx)(o.Ki.Item,{label:"Fuel Usage",children:f?(0,e.jsxs)(e.Fragment,{children:[(0,a.LI)(I,3)/1e3,"L/s"]}):(0,e.jsxs)(e.Fragment,{children:[(0,a.LI)(I,3)," cm\xB3/s"]})}),(0,e.jsx)(o.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(o.z2,{value:H,maxValue:q+30,color:V?"bad":"good",children:[(0,a.LI)(H,1),"\xB0C"]})})]})}),(0,e.jsx)(o.wn,{title:"Output",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"Current output",color:N?"bad":"",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"minus",onClick:function(){return m("lower_power")}}),(0,e.jsx)(o.$n,{icon:"plus",onClick:function(){return m("higher_power")}})]}),children:[R/b," / ",B," (",(0,u.d5)(R),")"]}),(0,e.jsx)(o.Ki.Item,{label:"Power available",children:(0,e.jsx)(o.az,{inline:!0,color:!A&&"bad",children:A?(0,u.d5)(W):"Unconnected"})})]})})]})})}},56794:function(S,j,t){"use strict";t.r(j),t.d(j,{Processor:function(){return u}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l;(function(E){E[E.Storing=0]="Storing",E[E.Smelting=1]="Smelting",E[E.Compressing=2]="Compressing",E[E.Alloying=3]="Alloying"})(l||(l={}));var u=function(E){var y=(0,a.Oc)(),x=y.act,m=y.data,p=m.materials_data,h=p===void 0?[]:p,c=m.alloy_data,f=c===void 0?[]:c,v=m.currently_alloying,O=m.running,C=m.sheet_rate,I=m.machine;if(I)return(0,e.jsx)(o.p8,{children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsxs)(i.so,{"frex-wrap":"wrap",children:[(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.$n,{onClick:function(){return x("set_running")},width:5,height:5,mb:2,color:O?"green":"red",icon:"power-off",fontSize:2,tooltipPosition:"right",tooltip:O?"Turn off":"Turn on",verticalAlignContent:"middle",textAlign:"center"}),(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.N6,{size:2,minValue:5,maxValue:30,value:C,unit:"Sheets",step:1,stepPixelSize:2,onDrag:function(M,A){return x("set_rate",{sheets:A})}}),(0,e.jsx)("br",{}),(0,e.jsx)("center",{children:"Melting Rate"})]})]}),(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.wn,{title:"Loaded Materials",children:(0,e.jsx)(i.Ki,{children:h.map(function(M){return(0,e.jsx)(i.Ki.Item,{label:M.name,buttons:(0,e.jsx)(i.$n,{onClick:function(){return x("set_smelting",{id:M.id,action_type:M.current_action+1})},children:M.current_action_string},M.name),children:M.amount},M.name)})})}),(0,e.jsx)(i.wn,{title:"Alloy Menu",children:(0,e.jsx)(i.Ki,{children:f.map(function(M){return(0,e.jsx)(i.Ki.Item,{label:M.name,buttons:(0,e.jsx)(i.$n,{selected:M.name===v,onClick:function(){return x("set_alloying",{id:M.name})},children:M.name},M.name)},M.name)})})})]})]})})});o.p8,o.p8.Content,i.$n}},16655:function(S,j,t){"use strict";t.r(j),t.d(j,{RIGSuit:function(){return u}});var e=t(62161),a=t(88716),i=t(7081),o=t(34995),l=t(85242),u=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.interfacelock,v=c.malf,O=c.aicontrol,C=c.ai,I;return f||v?I=(0,e.jsx)(o.az,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!C&&O&&(I=(0,e.jsx)(o.az,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,e.jsx)(l.p8,{height:480,width:550,children:(0,e.jsx)(l.p8.Content,{scrollable:!0,children:I||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(E,{}),(0,e.jsx)(y,{}),(0,e.jsx)(x,{})]})})})},E=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.chargestatus,v=c.charge,O=c.maxcharge,C=c.tank,I=c.aioverride,M=c.sealing,A=c.sealed,T=c.emagged,b=c.securitycheck,B=c.coverlock,R=(0,e.jsx)(o.$n,{icon:M?"redo":A?"power-off":"lock-open",iconSpin:M,disabled:M,selected:A,onClick:function(){return h("toggle_seals")},children:"Suit "+(M?"seals working...":A?"is Active":"is Inactive")}),N=(0,e.jsx)(o.$n,{selected:I,icon:"robot",onClick:function(){return h("toggle_ai_control")},children:"AI Control "+(I?"Enabled":"Disabled")});return(0,e.jsx)(o.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[R,N]}),children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Power Supply",children:(0,e.jsxs)(o.z2,{minValue:0,maxValue:50,value:f,ranges:{good:[35,1/0],average:[15,35],bad:[-1/0,15]},children:[v," / ",O]})}),(0,e.jsx)(o.Ki.Item,{label:"Cover Status",children:T||!b?(0,e.jsx)(o.az,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,e.jsx)(o.$n,{icon:B?"lock":"lock-open",onClick:function(){return h("toggle_suit_lock")},children:B?"Locked":"Unlocked"})}),C&&(0,e.jsx)(o.Ki.Item,{label:"Suit Tank Pressure",buttons:(0,e.jsx)(o.$n,{icon:"wind",onClick:function(){return h("tank_settings")},children:"Tank Settings"}),children:(0,e.jsx)(o.z2,{value:C.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:C.tankPressure+" kPa"})})]})})},y=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.sealing,v=c.helmet,O=c.helmetDeployed,C=c.gauntlets,I=c.gauntletsDeployed,M=c.boots,A=c.bootsDeployed,T=c.chest,b=c.chestDeployed;return(0,e.jsx)(o.wn,{title:"Hardware",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Helmet",buttons:(0,e.jsx)(o.$n,{icon:O?"sign-out-alt":"sign-in-alt",disabled:f,selected:O,onClick:function(){return h("toggle_piece",{piece:"helmet"})},children:O?"Deployed":"Deploy"}),children:v?(0,a.ZH)(v):"ERROR"}),(0,e.jsx)(o.Ki.Item,{label:"Gauntlets",buttons:(0,e.jsx)(o.$n,{icon:I?"sign-out-alt":"sign-in-alt",disabled:f,selected:I,onClick:function(){return h("toggle_piece",{piece:"gauntlets"})},children:I?"Deployed":"Deploy"}),children:C?(0,a.ZH)(C):"ERROR"}),(0,e.jsx)(o.Ki.Item,{label:"Boots",buttons:(0,e.jsx)(o.$n,{icon:A?"sign-out-alt":"sign-in-alt",disabled:f,selected:A,onClick:function(){return h("toggle_piece",{piece:"boots"})},children:A?"Deployed":"Deploy"}),children:M?(0,a.ZH)(M):"ERROR"}),(0,e.jsx)(o.Ki.Item,{label:"Chestpiece",buttons:(0,e.jsx)(o.$n,{icon:b?"sign-out-alt":"sign-in-alt",disabled:f,selected:b,onClick:function(){return h("toggle_piece",{piece:"chest"})},children:b?"Deployed":"Deploy"}),children:T?(0,a.ZH)(T):"ERROR"})]})})},x=function(m){var p=(0,i.Oc)(),h=p.act,c=p.data,f=c.sealed,v=c.sealing,O=c.primarysystem,C=c.modules;return!f||v?(0,e.jsx)(o.wn,{title:"Modules",children:(0,e.jsx)(o.az,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,e.jsxs)(o.wn,{title:"Modules",children:[(0,e.jsxs)(o.az,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,a.ZH)(O||"None")]}),C&&C.map(function(I,M){return(0,e.jsxs)(o.wn,{title:(0,a.Sn)(I.name)+(I.damage?" (damaged)":""),buttons:(0,e.jsxs)(e.Fragment,{children:[I.can_select?(0,e.jsx)(o.$n,{selected:I.name===O,icon:"arrow-circle-right",onClick:function(){return h("interact_module",{module:I.index,module_mode:"select"})},children:I.name===O?"Selected":"Select"}):null,I.can_use?(0,e.jsx)(o.$n,{icon:"arrow-circle-down",onClick:function(){return h("interact_module",{module:I.index,module_mode:"engage"})},children:I.engagestring}):null,I.can_toggle?(0,e.jsx)(o.$n,{selected:I.is_active,icon:"arrow-circle-down",onClick:function(){return h("interact_module",{module:I.index,module_mode:"toggle"})},children:I.is_active?I.deactivatestring:I.activatestring}):null]}),children:[I.damage>=2?(0,e.jsx)(o.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(o.so,{spacing:1,children:[(0,e.jsxs)(o.so.Item,{grow:1,children:[(0,e.jsxs)(o.az,{color:"average",children:["Engage: ",I.engagecost]}),(0,e.jsxs)(o.az,{color:"average",children:["Active: ",I.activecost]}),(0,e.jsxs)(o.az,{color:"average",children:["Passive: ",I.passivecost]})]}),(0,e.jsx)(o.so.Item,{grow:1,children:I.desc})]}),I.charges?(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.wn,{title:"Module Charges",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Selected",children:(0,a.ZH)(I.chargetype)}),I.charges.map(function(A,T){return(0,e.jsx)(o.Ki.Item,{label:(0,a.ZH)(A.caption),children:(0,e.jsx)(o.$n,{selected:I.realchargetype===A.index,icon:"arrow-right",onClick:function(){return h("interact_module",{module:I.index,module_mode:"select_charge_type",charge_type:A.index})}})},A.caption)})]})})}):null]},I.name)})]})}},36863:function(S,j,t){"use strict";t.r(j),t.d(j,{Radio:function(){return E}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(79500),u=t(85242),E=function(y){var x=(0,i.Oc)(),m=x.act,p=x.data,h=p.rawfreq,c=p.minFrequency,f=p.maxFrequency,v=p.listening,O=p.broadcasting,C=p.subspace,I=p.subspaceSwitchable,M=p.chan_list,A=p.loudspeaker,T=p.loudspeakerSwitchable,b=p.mic_cut,B=p.spk_cut,R=p.useSyndMode,N=l.Fo.find(function(H){return H.freq===Number(h)}),W=156;return M&&M.length>0?W+=M.length*28+6:W+=24,I&&(W+=19),T&&(W+=19),(0,e.jsx)(u.p8,{width:310,height:W,theme:R?"syndicate":"",children:(0,e.jsxs)(u.p8.Content,{children:[(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(o.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:c/10,maxValue:f/10,value:h/10,format:function(H){return(0,a.Mg)(H,1)},onDrag:function(H){return m("setFrequency",{freq:(0,a.LI)(H*10,1)})}}),N&&(0,e.jsxs)(o.az,{inline:!0,color:N.color,ml:2,children:["[",N.name,"]"]})]}),(0,e.jsxs)(o.Ki.Item,{label:"Audio",children:[(0,e.jsx)(o.$n,{textAlign:"center",width:"37px",icon:v?"volume-up":"volume-mute",selected:v,disabled:B,onClick:function(){return m("listen")}}),(0,e.jsx)(o.$n,{textAlign:"center",width:"37px",icon:O?"microphone":"microphone-slash",selected:O,disabled:b,onClick:function(){return m("broadcast")}}),!!I&&(0,e.jsx)(o.az,{children:(0,e.jsxs)(o.$n,{icon:"bullhorn",selected:C,onClick:function(){return m("subspace")},children:["Subspace Tx ",C?"ON":"OFF"]})}),!!T&&(0,e.jsx)(o.az,{children:(0,e.jsx)(o.$n,{icon:A?"volume-up":"volume-mute",selected:A,onClick:function(){return m("toggleLoudspeaker")},children:"Loudspeaker"})})]})]})}),(0,e.jsxs)(o.wn,{title:"Channels",children:[(!M||M.length===0)&&(0,e.jsx)(o.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(o.Ki,{children:M?M.map(function(H){var q=l.Fo.find(function(Y){return Y.freq===Number(H.freq)}),V="default";return q&&(V=q.color),(0,e.jsx)(o.Ki.Item,{label:H.display_name,labelColor:V,textAlign:"right",children:H.secure_channel&&C?(0,e.jsx)(o.$n,{icon:H.sec_channel_listen?"square-o":"check-square-o",selected:!H.sec_channel_listen,content:H.sec_channel_listen?"Off":"On",onClick:function(){return m("channel",{channel:H.chan})}}):(0,e.jsx)(o.$n,{content:"Switch",selected:H.freq===h,onClick:function(){return m("specFreq",{channel:H.chan})}})},H.chan)}):null})]})]})})}},29232:function(S,j,t){"use strict";t.r(j),t.d(j,{TRAIT_ASSET:function(){return i},TRAIT_DESCRIPTION:function(){return e},TRAIT_LABEL:function(){return a},TRAIT_NAME:function(){return o}});var e={Sanity:"Sanity is gained or lost depending on your environment. For example being around oddities increases your sanity slightly, as well as taking drugs or smoking. Seeing people die, being around blood and grime and being hurt yourself lowers your sanity.",Insight:"Insight is gained by activies such as smoking, taking drugs, hurting people or seeing them get hurt, seeing blood and grime and exploring maintenance.",Desires:"Once you have gained enough insight, you should rest. While you rest you will have certain wishes to fulfill."},a={Sanity:"Sanity level",Insight:"Insight progress",Desires:"Rest progress"},i={Sanity:"sanity.png",Insight:"insight.png",Desires:"desire.png"},o={Sanity:"Sanity",Insight:"Insight",Desires:"Desires"}},49307:function(S,j,t){"use strict";t.r(j),t.d(j,{DesiresTraitFluff:function(){return x},Sanity:function(){return p},Trait:function(){return m},TraitBar:function(){return E},TraitFluff:function(){return y}});var e=t(62161),a=t(31200),i=t(7081),o=t(34995),l=t(85242),u=t(29232),E=function(h){var c=h.maxValue,f=h.minValue,v=h.value,O=h.label,C=c||100;return(0,e.jsx)(o.Ki.Item,{textAlign:"right",label:O,children:(0,e.jsx)(o.z2,{width:"55vw",value:v,minValue:f||0,maxValue:c||100,ranges:{good:[C*.6,1/0],average:[C*.3,C*.6],bad:[-1/0,C*.3]}})})},y=function(h){var c=h.bar,f=h.desc;return(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{grow:!0,style:{overflow:"hidden",whiteSpace:"wrap",textOverflow:"ellipsis"},children:(0,e.jsx)(o.Y0,{children:f})}),(0,e.jsx)(o.BJ.Item,{children:c})]})},x=function(h){var c=h.bar,f=h.desc,v=h.active,O=h.desires;return(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{grow:!0,style:{overflow:"hidden",whiteSpace:"wrap",textOverflow:"ellipsis"},children:(0,e.jsx)(o.Y0,{children:f})}),(0,e.jsx)(o.BJ.Item,{}),(0,e.jsx)(o.BJ.Item,{children:v?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Ki.Item,{label:"Desires",children:O.join(", ")}),c]}):(0,e.jsx)(o.Y0,{children:"Currently you don't have desires."})})]})},m=function(h){var c=h.fluff,f=h.title,v=h.img;return(0,e.jsx)(o.wn,{title:f,children:(0,e.jsxs)(o.BJ,{height:"100px",fill:!0,children:[(0,e.jsx)(o.BJ.Item,{shrink:!0,children:(0,e.jsx)(o._V,{width:"100px",src:(0,a.l)(v)})}),(0,e.jsx)(o.BJ.Item,{grow:!0,basis:0,children:c})]})})},p=function(h){var c=(0,i.Oc)().data,f=c.sanity,v=c.desires,O=c.insight;return(0,e.jsx)(l.p8,{width:650,height:510,children:(0,e.jsx)(l.p8.Content,{style:{backgroundImage:"none"},scrollable:!0,children:(0,e.jsxs)(o.BJ,{vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(m,{fluff:(0,e.jsx)(y,{desc:u.TRAIT_DESCRIPTION.Sanity,bar:(0,e.jsx)(E,{maxValue:f.max,value:f.value,label:u.TRAIT_LABEL.Sanity})}),title:u.TRAIT_NAME.Sanity,img:u.TRAIT_ASSET.Sanity})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(m,{fluff:(0,e.jsx)(y,{desc:u.TRAIT_DESCRIPTION.Insight,bar:(0,e.jsx)(E,{value:O,label:u.TRAIT_LABEL.Insight})}),title:u.TRAIT_NAME.Insight,img:u.TRAIT_ASSET.Insight})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(m,{fluff:(0,e.jsx)(x,{active:v.resting,desires:v==null?void 0:v.desires,desc:u.TRAIT_DESCRIPTION.Desires,bar:v.resting?(0,e.jsx)(E,{value:v.value,label:u.TRAIT_LABEL.Desires}):void 0}),title:u.TRAIT_NAME.Desires,img:u.TRAIT_ASSET.Desires})})]})})})}},76372:function(){},5378:function(S,j,t){"use strict";t.r(j),t.d(j,{Smartfridge:function(){return y}});var e=t(62161),a=t(7402),i=t(88716),o=t(28277),l=t(7081),u=t(34995),E=t(85242),y=function(p){var h=(0,l.Oc)(),c=h.act,f=h.data,v=f.allowed,O=f.emagged,C=f.secure,I=f.items,M=(0,a.Ul)(Object.entries(I),function(T){var b=T[0],B=T[1];return b.toUpperCase()}),A=!1;return C&&!O&&(A=!v),(0,e.jsx)(E.p8,{width:400,height:500,children:(0,e.jsx)(E.p8.Content,{scrollable:!0,children:(0,e.jsxs)(u.wn,{title:"Storage",fill:!0,children:[(0,e.jsx)(x,{secure:C,emagged:O,allowed:v}),M.length===0?(0,e.jsx)(u.az,{color:"average",children:"No items loaded."}):(0,e.jsxs)(u.XI,{children:[(0,e.jsxs)(u.XI.Row,{header:!0,children:[(0,e.jsx)(u.XI.Cell,{children:"Item"}),(0,e.jsx)(u.XI.Cell,{collapsing:!0,textAlign:"right",children:"Amount"}),(0,e.jsx)(u.XI.Cell,{collapsing:!0,textAlign:"center",children:"Vend"})]}),M.map(function(T){var b=T[0],B=T[1];return(0,e.jsxs)(u.XI.Row,{className:"candystripe",children:[(0,e.jsx)(u.XI.Cell,{p:1,verticalAlign:"middle",color:"label",children:(0,i.Sn)(b)}),(0,e.jsx)(u.XI.Cell,{p:1,verticalAlign:"middle",textAlign:"right",collapsing:!0,children:B}),(0,e.jsx)(u.XI.Cell,{p:1,verticalAlign:"middle",textAlign:"center",collapsing:!0,children:(0,e.jsx)(m,{name:b,count:B,disabled:A})})]},b)})]})]})})})},x=function(p){var h=p.secure,c=p.emagged,f=p.allowed,v="Secure Access: Please have your identification ready.",O=["*","^","&","%","$","_","#","!"],C=100,I=(0,o.useState)(v),M=I[0],A=I[1];return(0,o.useEffect)(function(){if(c){var T=setInterval(function(){for(var b="",B=0;B.9?b+=O[Math.floor(Math.random()*O.length)]:b+=v[B];A(b)},C);return function(){clearInterval(T),A(v)}}},[c]),h?c?(0,e.jsx)(u.IC,{danger:!0,children:M}):f?(0,e.jsx)(u.IC,{info:!0,children:M}):(0,e.jsx)(u.IC,{danger:!0,children:"Unauthorized access, vending is unavailable."}):null},m=function(p){var h=(0,l.Oc)().act,c=p.name,f=p.count,v=p.disabled;return(0,e.jsxs)(u.so,{direction:"column",children:[(0,e.jsx)(u.so.Item,{children:(0,e.jsxs)(u.so,{children:[(0,e.jsx)(u.so.Item,{grow:!0,minWidth:3,children:(0,e.jsx)(u.$n,{fluid:!0,disabled:v,textAlign:"center",onClick:function(){return h("vend",{name:c,count:1})},children:"x1"})}),f>=5&&(0,e.jsx)(u.so.Item,{grow:!0,minWidth:3,ml:.2,children:(0,e.jsx)(u.$n,{fluid:!0,disabled:v,textAlign:"center",onClick:function(){return h("vend",{name:c,count:5})},children:"x5"})})]})}),f>=10&&(0,e.jsx)(u.so.Item,{mt:.2,children:(0,e.jsxs)(u.so,{children:[(0,e.jsx)(u.so.Item,{grow:!0,minWidth:3,children:(0,e.jsx)(u.$n,{fluid:!0,disabled:v,textAlign:"center",onClick:function(){return h("vend",{name:c,count:10})},children:"x10"})}),f>=25&&(0,e.jsx)(u.so.Item,{grow:!0,minWidth:3,ml:.2,children:(0,e.jsx)(u.$n,{fluid:!0,disabled:v,textAlign:"center",onClick:function(){return h("vend",{name:c,count:25})},children:"x25"})})]})}),f>1&&(0,e.jsx)(u.so.Item,{mt:.2,children:(0,e.jsx)(u.$n,{fluid:!0,disabled:v,textAlign:"center",onClick:function(){return h("vend",{name:c,count:f})},children:"All"})})]})}},78082:function(S,j,t){"use strict";t.r(j),t.d(j,{AnimatedArrows:function(){return v},RollyIcon:function(){return C},ShakingElement:function(){return O},Smelter:function(){return m}});var e=t(62161),a=t(4089),i=t(88716),o=t(28277),l=t(7081),u=t(34995),E=t(85242),y=t(78377);function x(){return x=Object.assign||function(I){for(var M=1;M30?T>60?"#c00":"#880":"#0c0",transition:"color 1s ease"}})})})}),(0,e.jsxs)(u.so,{width:"100%",align:"center",justify:"center",position:"absolute",bottom:-.5,left:0,children:[(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(C,{name:"fire",color:"bad",size:1.5,rotMin:0,rotMax:45})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(C,{name:"fire",color:"bad",size:1.5,rotMin:-30,rotMax:30})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(C,{name:"fire",color:"bad",size:1.5,rotMin:-45,rotMax:0})})]})]}):(0,e.jsx)(u.az,{width:5,height:5,style:{borderRadius:"5%",border:"3px dotted #4972a1"}})},f=function(I){var M=(0,l.Oc)(),A=M.act,T=M.data,b=T.input_side,B=T.output_side,R=T.refuse_side;return(0,e.jsx)(u.wn,{title:"Sides Config",fill:!0,children:(0,e.jsxs)(u.so,{align:"center",justify:"space-around",height:"100%",children:[(0,e.jsx)(u.so.Item,{children:(0,e.jsxs)(u.BJ,{align:"center",vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:b==="North",onClick:function(){return A("setside_input",{side:"NORTH"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:b==="West",onClick:function(){return A("setside_input",{side:"WEST"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,backgroundColor:"good",textAlign:"center",verticalAlignContent:"middle",children:"Input"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:b==="East",onClick:function(){return A("setside_input",{side:"EAST"})}})})]})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:b==="South",onClick:function(){return A("setside_input",{side:"SOUTH"})}})})]})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(v,{on:!0})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsxs)(u.BJ,{align:"center",vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:B==="North",onClick:function(){return A("setside_output",{side:"NORTH"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:B==="West",onClick:function(){return A("setside_output",{side:"WEST"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,backgroundColor:"bad",textAlign:"center",verticalAlignContent:"middle",children:"Output"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:B==="East",onClick:function(){return A("setside_output",{side:"EAST"})}})})]})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:B==="South",onClick:function(){return A("setside_output",{side:"SOUTH"})}})})]})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsxs)(u.BJ,{align:"center",vertical:!0,children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:R==="North",onClick:function(){return A("setside_refuse",{side:"NORTH"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{children:[(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:R==="West",onClick:function(){return A("setside_refuse",{side:"WEST"})}})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,backgroundColor:"brown",textAlign:"center",verticalAlignContent:"middle",children:"Refuse"})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:R==="East",onClick:function(){return A("setside_refuse",{side:"EAST"})}})})]})}),(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.$n,{width:4.3,height:4.3,textAlign:"center",verticalAlignContent:"middle",icon:"hand-paper",selected:R==="South",onClick:function(){return A("setside_refuse",{side:"SOUTH"})}})})]})})]})})},v=function(I){var M=I.on,A=(0,o.useState)(0),T=A[0],b=A[1],B=200;return(0,o.useEffect)(function(){var R=setInterval(function(){b(function(N){return(N+1)%3})},B);return function(){return clearInterval(R)}},[]),(0,e.jsxs)(u.az,{children:[(0,e.jsx)(u.In,{color:M?T===0?"green":"white":"gray",name:"chevron-right"}),(0,e.jsx)(u.In,{color:M?T===1?"green":"white":"gray",name:"chevron-right"}),(0,e.jsx)(u.In,{color:M?T===2?"green":"white":"gray",name:"chevron-right"})]})},O=function(I){var M=I.children,A=I.speed||100,T=I.bounds||[1,1],b=(0,o.useState)(0),B=b[0],R=b[1],N=(0,o.useState)(0),W=N[0],H=N[1];return(0,o.useEffect)(function(){var q=setInterval(function(){R(function(V){var Y=Math.random()-.5,_=V+Y;return(_>T[0]||_<-T[0])&&(_=V-Y),_}),H(function(V){var Y=Math.random()-.5,_=V+Y;return(_>T[0]||_<-T[0])&&(_=V-Y),_})},A);return function(){return clearInterval(q)}},[A,T]),(0,e.jsx)(u.az,{ml:B,mt:W,children:M})},C=function(I){var M=I.speed!==void 0?I.speed:90,A=I.stepSize!==void 0?I.stepSize:5,T=I.rotMin!==void 0?I.rotMin:0,b=I.rotMax!==void 0?I.rotMax:360,B=(0,o.useState)(T),R=B[0],N=B[1],W=(0,o.useState)(A),H=W[0],q=W[1];return(0,o.useEffect)(function(){var V=setInterval(function(){N(function(Y){return Y+H})},M);return function(){return clearInterval(V)}},[M,H]),(0,o.useEffect)(function(){var V=setInterval(function(){q(function(Y){return R>b&&Y>0||R=100&&"good"||O&&"average"||"bad",W=T&&"good"||f>0&&"average"||"bad";return(0,e.jsx)(l.p8,{width:340,height:350,children:(0,e.jsxs)(l.p8.Content,{children:[(0,e.jsx)(i.wn,{title:"Stored Energy",children:(0,e.jsx)(i.z2,{value:h*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.jsx)(i.wn,{title:"Input",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(i.$n,{icon:v?"sync-alt":"times",selected:v,onClick:function(){return m("tryinput")},children:v?"Auto":"Off"}),children:(0,e.jsx)(i.az,{color:N,children:h>=100&&"Fully Charged"||O&&"Charging"||"Not Charging"})}),(0,e.jsx)(i.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(i.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.$n,{icon:"fast-backward",disabled:C===0,onClick:function(){return m("input",{target:"min"})}}),(0,e.jsx)(i.$n,{icon:"backward",disabled:C===0,onClick:function(){return m("input",{adjust:-1e4})}})]}),(0,e.jsx)(i.so.Item,{grow:1,mx:1,children:(0,e.jsx)(i.Ap,{value:C/u,fillValue:M/u,minValue:0,maxValue:I/u,step:5,stepPixelSize:4,format:function(H){return(0,o.d5)(H*u,1)},onDrag:function(H,q){return m("input",{target:q*u})}})}),(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.$n,{icon:"forward",disabled:C===I,onClick:function(){return m("input",{adjust:1e4})}}),(0,e.jsx)(i.$n,{icon:"fast-forward",disabled:C===I,onClick:function(){return m("input",{target:"max"})}})]})]})}),(0,e.jsx)(i.Ki.Item,{label:"Available",children:(0,o.d5)(M)})]})}),(0,e.jsx)(i.wn,{title:"Output",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(i.$n,{icon:A?"power-off":"times",selected:A,onClick:function(){return m("tryoutput")},children:A?"On":"Off"}),children:(0,e.jsx)(i.az,{color:W,children:T?"Sending":f>0?"Not Sending":"No Charge"})}),(0,e.jsx)(i.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(i.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.$n,{icon:"fast-backward",disabled:b===0,onClick:function(){return m("output",{target:"min"})}}),(0,e.jsx)(i.$n,{icon:"backward",disabled:b===0,onClick:function(){return m("output",{adjust:-1e4})}})]}),(0,e.jsx)(i.so.Item,{grow:1,mx:1,children:(0,e.jsx)(i.Ap,{value:b/u,minValue:0,maxValue:B/u,step:5,stepPixelSize:4,format:function(H){return(0,o.d5)(H*u,1)},onDrag:function(H,q){return m("output",{target:q*u})}})}),(0,e.jsxs)(i.so.Item,{children:[(0,e.jsx)(i.$n,{icon:"forward",disabled:b===B,onClick:function(){return m("output",{adjust:1e4})}}),(0,e.jsx)(i.$n,{icon:"fast-forward",disabled:b===B,onClick:function(){return m("output",{target:"max"})}})]})]})}),(0,e.jsx)(i.Ki.Item,{label:"Outputting",children:(0,o.d5)(R)})]})})]})})}},24854:function(S,j,t){"use strict";t.r(j),t.d(j,{SolarControl:function(){return u}});var e=t(62161),a=t(4089),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.generated,h=m.generated_ratio,c=m.azimuth_current,f=m.azimuth_rate,v=m.max_rotation_rate,O=m.tracking_state,C=m.connected_panels,I=m.connected_tracker;return(0,e.jsx)(l.p8,{width:380,height:230,children:(0,e.jsxs)(l.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Status",buttons:(0,e.jsx)(o.$n,{icon:"sync",onClick:function(){return x("refresh")},children:"Scan for new hardware"}),children:(0,e.jsxs)(o.xA,{children:[(0,e.jsx)(o.xA.Column,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Solar tracker",color:I?"good":"bad",children:I?"OK":"N/A"}),(0,e.jsx)(o.Ki.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.jsx)(o.xA.Column,{size:1.5,children:(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Power output",children:(0,e.jsx)(o.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:h,children:p+" W"})})})})]})}),(0,e.jsx)(o.wn,{title:"Controls",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(o.$n,{icon:"times",selected:O===0,onClick:function(){return x("tracking",{mode:0})},children:"Off"}),(0,e.jsx)(o.$n,{icon:"clock-o",selected:O===1,onClick:function(){return x("tracking",{mode:1})},children:"Timed"}),(0,e.jsx)(o.$n,{icon:"sync",selected:O===2,disabled:!I,onClick:function(){return x("tracking",{mode:2})},children:"Auto"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Azimuth",children:[(O===0||O===1)&&(0,e.jsx)(o.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:0,maxValue:360,value:c,onChange:function(M){return x("azimuth",{value:M})}}),O===1&&(0,e.jsx)(o.Q7,{width:"80px",unit:"\xB0/m",step:.01,stepPixelSize:1,minValue:-v-.01,maxValue:v+.01,value:f,format:function(M){var A=Math.sign(M)>0?"+":"-";return(0,a.LI)(A+Math.abs(M),1)},onChange:function(M){return x("azimuth_rate",{value:M})}}),O===2&&(0,e.jsxs)(o.az,{inline:!0,color:"label",mt:"3px",children:[c+" \xB0"," (auto)"]})]})]})})]})})}},65511:function(S,j,t){"use strict";t.r(j),t.d(j,{Stats:function(){return c}});var e=t(62161),a=t(65380),i=t(88716),o=t(28277),l=t(7081),u=t(34995),E=t(85242),y;(function(f){f[f.stats=0]="stats",f[f.perks=1]="perks"})(y||(y={}));var x=function(f){var v=f.name,O=f.icon,C=f.desc;return(0,e.jsx)(u.BJ.Item,{children:(0,e.jsx)(u.m_,{position:"bottom",content:C,children:(0,e.jsxs)(u.BJ,{position:"relative",fill:!0,children:[(0,e.jsx)(u.BJ.Item,{className:(0,a.Ly)(["Stats__box--icon","Stats__content"]),children:(0,e.jsx)(u.az,{className:(0,a.Ly)(["perks32x32",O])})}),(0,e.jsx)(u.BJ.Item,{grow:!0,className:(0,a.Ly)(["Stats__box--text","Stats__content"]),children:(0,i.ZH)(v)})]})})})},m=function(f){var v=(0,l.Oc)().data,O=v.perks;return(0,e.jsx)(u.BJ,{fill:!0,vertical:!0,justify:"start",children:O.map(function(C,I){return x(C)})})},p=function(f){var v=f.name,O=f.value;return(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.BJ,{fill:!0,children:[(0,e.jsx)(u.BJ.Item,{grow:2,className:(0,a.Ly)(["Stats__box--skill","Stats__content"]),children:(0,i.ZH)(v)}),(0,e.jsx)(u.BJ.Item,{grow:1,className:(0,a.Ly)(["Stats__box--text","Stats__content"]),children:O})]})})},h=function(f){var v=(0,l.Oc)().data,O=v.stats;return(0,e.jsx)(u.BJ,{fill:!0,vertical:!0,justify:"space-around",children:O.map(function(C,I){return p(C)})})},c=function(f){var v=(0,l.Oc)().data,O=v.name,C=v.hasPerks,I=(0,o.useState)(0),M=I[0],A=I[1];return(0,e.jsx)(E.p8,{width:285,height:320,title:""+O+"'s Stats",children:(0,e.jsx)(E.p8.Content,{style:{backgroundImage:"none"},children:(0,e.jsxs)(u.BJ,{fill:!0,vertical:!0,children:[C&&(0,e.jsx)(u.BJ.Item,{children:(0,e.jsxs)(u.tU,{fluid:!0,children:[(0,e.jsx)(u.tU.Tab,{selected:M===0,onClick:function(){return A(0)},children:"Stats"}),(0,e.jsx)(u.tU.Tab,{selected:M===1,onClick:function(){return A(1)},children:"Perks"})]})})||null,(0,e.jsx)(u.BJ.Item,{grow:!0,children:(0,e.jsx)(u.wn,{fill:!0,scrollable:M===1,children:C&&M===1&&(0,e.jsx)(m,{})||(0,e.jsx)(h,{})})})]})})})}},28742:function(S,j,t){"use strict";t.r(j),t.d(j,{MainMenu:function(){return x},MaintenancePanel:function(){return y},StorageRow:function(){return m},StorageSlot:function(){return p},SuitStorageUnit:function(){return u},UVInProgress:function(){return E}});var e=t(62161),a=t(28277),i=t(7081),o=t(34995),l=t(85242),u=function(h){var c=(0,i.Oc)(),f=c.act,v=c.data,O=v.panel_open,C=v.isUV,I=(0,e.jsx)(x,{});return C?I=(0,e.jsx)(E,{}):O&&(I=(0,e.jsx)(y,{})),(0,e.jsx)(l.p8,{width:360,height:340,children:(0,e.jsx)(l.p8.Content,{children:I})})},E=function(h){var c=(0,i.Oc)().data,f=c.isSuperUV,v=c.occupied,O=(0,a.useState)(0),C=O[0],I=O[1],M=(0,a.useState)(1),A=M[0],T=M[1],b=.6,B=5;return(0,a.useEffect)(function(){var R=setInterval(function(){I(function(N){var W=N+b*A;return W>80?T(-1):W<0&&T(1),W})},B);return function(){return clearInterval(R)}}),(0,e.jsxs)(o.wn,{title:"UV Cauterization In Progress",position:"relative",fill:!0,children:[(0,e.jsx)(o.az,{position:"absolute",left:0,top:C+"%",height:6,width:"100%",className:f?"SuitStorageUnit__gradient-35":"SuitStorageUnit__gradient-185"}),(0,e.jsx)(o.BJ,{fill:!0,align:"center",justify:"center",children:(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.In,{name:v?"user":"user-astronaut",color:v?"bad":"",size:8})})})]})},y=function(h){var c=(0,i.Oc)(),f=c.act,v=c.data,O=v.isSuperUV,C=v.safeties;return(0,e.jsx)(o.wn,{title:"Maintenance Panel",fill:!0,children:(0,e.jsxs)(o.BJ,{vertical:!0,align:"center",justify:"space-around",height:"100%",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{align:"flex-end",children:[(0,e.jsx)(o.BJ.Item,{children:"185nm"}),(0,e.jsxs)(o.BJ.Item,{children:[(0,e.jsx)(o.az,{textAlign:"center",fontSize:1.5,children:"\u03BB"}),(0,e.jsx)(o.N6,{color:O?"bad":"good",size:2,value:O?1:0,minValue:0,maxValue:1,step:1,format:function(I){return I?"15nm":"185nm"},onChange:function(I,M){f("toggle_super_UV",{on:M})}})]}),(0,e.jsx)(o.BJ.Item,{children:"15nm"})]})}),(0,e.jsx)(o.BJ.Item,{mt:2,children:(0,e.jsxs)(o.BJ,{align:"center",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{color:"bad",fontSize:2,width:4,height:4,style:{borderRadius:"50px"},onClick:function(){return f("toggle_safeties")},children:(0,e.jsx)(o.In,{name:"exclamation-triangle",inline:!0,ml:-.5,mt:.3})})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.In,{size:2,name:C?"circle-o":"circle",color:C?"":"bad"})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.In,{size:2,name:C?"circle":"circle-o",color:C?"green":""})})]})})]})})},x=function(h){var c=(0,i.Oc)(),f=c.act,v=c.data,O=v.isOpen,C=v.occupied,I=v.locked,M=v.helmet,A=v.helmet_icon,T=v.suit,b=v.suit_icon,B=v.mask,R=v.mask_icon;return(0,e.jsxs)(o.BJ,{height:"100%",fill:!0,children:[(0,e.jsx)(o.BJ.Item,{height:"100%",basis:"50%",children:(0,e.jsx)(o.wn,{title:"Storage",fill:!0,height:"100%",children:(0,e.jsxs)(o.BJ,{vertical:!0,fill:!0,align:"center",justify:"space-around",children:[(0,e.jsx)(o.BJ.Item,{width:"100%",children:(0,e.jsx)(m,{name:M,icon:A,emptyText:"No Helmet Detected",toasterIcon:"hard-hat",isOpen:O,onEject:function(){return f("dispense_helmet")}})}),(0,e.jsx)(o.BJ.Item,{width:"100%",children:(0,e.jsx)(m,{name:B,icon:R,emptyText:"No Mask Detected",toasterIcon:"lungs",isOpen:O,onEject:function(){return f("dispense_mask")}})}),(0,e.jsx)(o.BJ.Item,{width:"100%",children:(0,e.jsx)(m,{name:T,icon:b,emptyText:"No Suit Detected",toasterIcon:"user-astronaut",isOpen:O,onEject:function(){return f("dispense_suit")}})})]})})}),(0,e.jsxs)(o.BJ.Item,{basis:"50%",children:[(0,e.jsxs)(o.wn,{title:"Controls",fill:!0,height:"32%",children:[(0,e.jsx)(o.$n,{fluid:!0,fontSize:1.25,textAlign:"center",disabled:I,icon:O?"door-open":"door-closed",selected:O,onClick:function(){return f("toggle_open")},children:O?"Unit Opened":"Unit Closed"}),(0,e.jsx)(o.$n,{fluid:!0,fontSize:1.1,disabled:O,textAlign:"center",icon:I?"lock":"lock-open",selected:I,onClick:function(){return f("toggle_lock")},children:I?"Unit Locked":"Unit Unlocked"})]}),(0,e.jsxs)(o.wn,{title:"Disinfection",fill:!0,height:"66%",children:[!!C&&(0,e.jsxs)(o.az,{color:"bad",textAlign:"center",children:[(0,e.jsx)(o.az,{children:(0,e.jsx)(o.In,{name:"user",size:4})}),"WARNING: Biological Entity detected inside Unit's storage.",(0,e.jsx)("br",{}),(0,e.jsx)(o.$n,{color:"bad",inline:!0,onClick:function(){return f("eject_guy")},mt:.5,icon:"eject",children:"Remove?"}),(0,e.jsx)(o.cG,{})]}),(0,e.jsx)(o.$n.Confirm,{fluid:!0,color:"bad",disabled:O,icon:"pump-medical",confirmIcon:"virus-slash",textAlign:"center",onClick:function(){return f("start_UV")},children:"Start Disinfection"})]})]})]})},m=function(h){var c=h.name,f=h.icon,v=h.emptyText,O=h.toasterIcon,C=h.isOpen,I=h.onEject;return(0,e.jsx)(o.BJ,{align:"center",justify:"space-around",width:"100%",children:(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(p,{name:c,icon:f,emptyText:v,toasterIcon:O,isOpen:C,onEject:I})})})},p=function(h){var c=h.name,f=h.icon,v=h.emptyText,O=h.toasterIcon,C=h.isOpen,I=h.onEject;return(0,e.jsxs)(o.BJ,{align:"center",vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:C?(0,e.jsx)(o.$n,{disabled:!c,width:4,height:4,style:{border:"1px solid #3e6189",borderRadius:"5%"},onClick:I,textAlign:"center",children:f?(0,e.jsx)(o._V,{src:f,mt:-.5,ml:-1,width:4,height:4}):(0,e.jsx)(o.In,{name:O,ml:.25,size:2,mt:2})}):(0,e.jsx)(o.az,{backgroundColor:"black",width:4,height:4,style:{border:"1px solid #3e6189",borderRadius:"5%"},textAlign:"center",children:f?(0,e.jsx)(o._V,{src:f,mt:-.5,width:4,height:4}):(0,e.jsx)(o.In,{name:O,size:2,mt:2})})}),(0,e.jsx)(o.BJ.Item,{color:c?"good":"label",children:c||v})]})}},27136:function(S,j,t){"use strict";t.r(j),t.d(j,{Tank:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.connected,p=x.showToggle,h=p===void 0?!0:p,c=x.maskConnected,f=x.tankPressure,v=x.releasePressure,O=x.defaultReleasePressure,C=x.minReleasePressure,I=x.maxReleasePressure;return(0,e.jsx)(o.p8,{width:400,height:320,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(i.wn,{title:"Status",buttons:!!h&&(0,e.jsx)(i.$n,{icon:m?"air-freshener":"lock-open",selected:m,disabled:!c,onClick:function(){return y("toggle")},children:"Mask Release Valve"}),children:(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Mask Connected",children:c?"Yes":"No"})})}),(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Pressure",children:(0,e.jsx)(i.z2,{value:f/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:x.tankPressure+" kPa"})}),(0,e.jsxs)(i.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(i.$n,{icon:"fast-backward",disabled:v===C,onClick:function(){return y("pressure",{pressure:"min"})}}),(0,e.jsx)(i.Q7,{animated:!0,value:v,width:"65px",unit:"kPa",step:1,minValue:C,maxValue:I,onChange:function(M){return y("pressure",{pressure:M})}}),(0,e.jsx)(i.$n,{icon:"fast-forward",disabled:v===I,onClick:function(){return y("pressure",{pressure:"max"})}}),(0,e.jsx)(i.$n,{icon:"undo",disabled:v===O,onClick:function(){return y("pressure",{pressure:"reset"})}})]})]})})]})})}},10351:function(S,j,t){"use strict";t.r(j),t.d(j,{TankDispenser:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.plasma,p=x.oxygen;return(0,e.jsx)(o.p8,{width:275,height:103,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(i.wn,{children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Plasma",buttons:(0,e.jsx)(i.$n,{icon:m?"square":"square-o",disabled:!m,onClick:function(){return y("plasma")},children:"Dispense"}),children:m}),(0,e.jsx)(i.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(i.$n,{icon:p?"square":"square-o",disabled:!p,onClick:function(){return y("oxygen")},children:"Dispense"}),children:p})]})})})})}},76952:function(S,j,t){"use strict";t.r(j),t.d(j,{Terminal:function(){return u}});var e=t(62161),a=t(28277),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.history,h=(0,a.useRef)(null),c=(0,a.useState)(!0),f=c[0],v=c[1];return(0,a.useEffect)(function(){f&&(v(!1),h.current&&(h.current.scrollTop=h.current.scrollHeight))},[p]),(0,e.jsx)(l.p8,{width:500,height:460,children:(0,e.jsx)(l.p8.Content,{children:(0,e.jsxs)(o.wn,{fill:!0,scrollable:!0,className:"Terminal__Monospace",ref:h,children:[p.map(function(O){var C="gray";return O.startsWith(">")?C="label":O.includes("ACCESS DENIED")&&(C="bad"),(0,e.jsx)(o.az,{color:C,children:O},O)}),(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{children:">"}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.pd,{autoFocus:!0,autoSelect:!0,selfClear:!0,fluid:!0,className:"Terminal__Monospace",style:{backgroundColor:"transparent",border:"none"},onEnter:function(O,C){x("command",{input:C}),v(!0)}})})]})]})})})}},8360:function(S,j,t){"use strict";t.r(j),t.d(j,{TguiInputAlertModal:function(){return x}});var e=t(62161),a=t(87239),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E=t(44149),y;(function(h){h[h.Increment=1]="Increment",h[h.Decrement=-1]="Decrement"})(y||(y={}));function x(h){var c=(0,o.Oc)(),f=c.act,v=c.data,O=v.autofocus,C=v.buttons,I=C===void 0?[]:C,M=v.large_buttons,A=v.message,T=A===void 0?"":A,b=v.timeout,B=v.title,R=(0,i.useState)(0),N=R[0],W=R[1],H=I.some(function(Q){return Q.length>10}),q=H&&M?20:15,V=120+(H?q*I.length:0)+(T.length>30?Math.ceil(T.length/4):0)+(T.length&&M?5:0),Y=345+(I.length>2?55:0);function _(Q){switch(Q.key){case a._.Space:case a._.Enter:f("choose",{choice:I[N]});return;case a._.Left:Q.preventDefault(),te(-1);return;case a._.Tab:case a._.Right:Q.preventDefault(),te(1);return;default:if((0,a.K)(Q.key)){f("cancel");return}}}function te(Q){var oe=(N+Q+I.length)%I.length;W(oe)}return(0,e.jsxs)(u.p8,{height:V,title:B,width:Y,children:[!!b&&(0,e.jsx)(E.Loader,{value:b}),(0,e.jsx)(u.p8.Content,{onKeyDown:_,children:(0,e.jsx)(l.wn,{fill:!0,children:(0,e.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l.BJ.Item,{m:1,children:(0,e.jsx)(l.az,{color:"label",overflow:"hidden",children:T})}),(0,e.jsxs)(l.BJ.Item,{grow:!0,children:[!!O&&(0,e.jsx)(l.y5,{}),H?(0,e.jsx)(p,{selected:N}):(0,e.jsx)(m,{selected:N})]})]})})})]})}function m(h){var c=(0,o.Oc)(),f=c.act,v=c.data,O=v.buttons,C=O===void 0?[]:O,I=v.large_buttons,M=v.swapped_buttons,A=h.selected;return(0,e.jsx)(l.BJ,{fill:!0,justify:"space-around",reverse:!M,children:C.map(function(T,b){return(0,e.jsx)(l.BJ.Item,{grow:I?1:void 0,children:(0,e.jsx)(l.$n,{fluid:!!I,minWidth:5,onClick:function(){return f("choose",{choice:T})},overflowX:"hidden",px:2,py:I?.5:0,selected:A===b,textAlign:"center",children:I?T.toUpperCase():T})},b)})})}function p(h){var c=(0,o.Oc)(),f=c.act,v=c.data,O=v.buttons,C=O===void 0?[]:O,I=v.large_buttons,M=v.swapped_buttons,A=h.selected;return(0,e.jsx)(l.BJ,{align:"center",fill:!0,justify:"space-around",reverse:!M,vertical:!0,children:C.map(function(T,b){return(0,e.jsx)(l.BJ.Item,{grow:!0,width:I?"100%":void 0,m:0,children:(0,e.jsx)(l.$n,{fluid:!0,minWidth:20,onClick:function(){return f("choose",{choice:T})},overflowX:"hidden",px:2,py:I?.5:0,selected:A===b,textAlign:"center",children:I?T.toUpperCase():T})},b)})})}},15293:function(S,j,t){"use strict";t.r(j),t.d(j,{TguiInputKeyComboModal:function(){return c}});var e=t(62161),a=t(87239),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E=t(5335),y=t(44149),x=function(f){return f.key!==a._.Alt&&f.key!==a._.Control&&f.key!==a._.Shift&&!(0,a.K)(f.key)},m={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},p=3,h=function(f){var v="";if(f.altKey&&(v+="Alt"),f.ctrlKey&&(v+="Ctrl"),f.shiftKey&&(v+="Shift"),f.location===p&&(v+="Numpad"),x(f)){var O=f.key.toUpperCase();v+=m[O]||O}return v},c=function(f){var v=(0,o.Oc)(),O=v.act,C=v.data,I=C.init_value,M=C.large_buttons,A=C.message,T=A===void 0?"":A,b=C.title,B=C.timeout,R=(0,i.useState)(I),N=R[0],W=R[1],H=(0,o.Ul)("binding",!0),q=H[0],V=H[1],Y=function(te){te!==N&&W(te)},_=130+(T.length>30?Math.ceil(T.length/3):0)+(T.length&&M?5:0);return(0,e.jsxs)(u.p8,{title:b,width:240,height:_,children:[B&&(0,e.jsx)(y.Loader,{value:B}),(0,e.jsx)(u.p8.Content,{onKeyDown:function(te){if(!q){te.key===a._.Enter&&O("submit",{entry:N}),(0,a.K)(te.key)&&O("cancel");return}if(te.preventDefault(),x(te)){Y(h(te)),V(!1);return}else if((0,a.K)(te.key)){Y(I),V(!1);return}},children:(0,e.jsxs)(l.wn,{fill:!0,children:[(0,e.jsx)(l.y5,{}),(0,e.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(l.az,{color:"label",children:T})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{disabled:q,content:q&&q!==null?"Awaiting input...":""+N,width:"100%",textAlign:"center",onClick:function(){Y(I),V(!0)}})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(E.InputButtons,{input:N})})]})]})})]})}},29089:function(S,j,t){"use strict";t.r(j),t.d(j,{ListInputModal:function(){return E}});var e=t(62161),a=t(28277),i=t(6544),o=t(7081),l=t(34995),u=t(5335),E=function(m){var p=m.items,h=p===void 0?[]:p,c=m.default_item,f=m.message,v=m.on_selected,O=m.on_cancel,C=(0,a.useState)(h.indexOf(c)),I=C[0],M=C[1],A=(0,a.useState)(h.length>9),T=A[0],b=A[1],B=(0,a.useState)(""),R=B[0],N=B[1],W=function(Q){var oe=te.length-1;if(Q===i.R)if(I===null||I===oe){var ne;M(0),(ne=document.getElementById("0"))==null||ne.scrollIntoView()}else{var ae;M(I+1),(ae=document.getElementById((I+1).toString()))==null||ae.scrollIntoView()}else if(Q===i.gf)if(I===null||I===0){var $;M(oe),($=document.getElementById(oe.toString()))==null||$.scrollIntoView()}else{var ie;M(I-1),(ie=document.getElementById((I-1).toString()))==null||ie.scrollIntoView()}},H=function(Q){Q!==I&&M(Q)},q=function(){b(!1),b(!0)},V=function(Q){var oe=String.fromCharCode(Q),ne=h.find(function(ie){return ie==null?void 0:ie.toLowerCase().startsWith(oe==null?void 0:oe.toLowerCase())});if(ne){var ae,$=h.indexOf(ne);M($),(ae=document.getElementById($.toString()))==null||ae.scrollIntoView()}},Y=function(Q){var oe;Q!==R&&(N(Q),M(0),(oe=document.getElementById("0"))==null||oe.scrollIntoView())},_=function(){b(!T),N("")},te=h.filter(function(Q){return Q==null?void 0:Q.toLowerCase().includes(R.toLowerCase())});return T||setTimeout(function(){var Q;return(Q=document.getElementById(I.toString()))==null?void 0:Q.focus()},1),(0,e.jsx)(l.wn,{onKeyDown:function(Q){var oe=window.event?Q.which:Q.keyCode;(oe===i.R||oe===i.gf)&&(Q.preventDefault(),W(oe)),oe===i.Ri&&(Q.preventDefault(),v(te[I])),!T&&oe>=i.W8&&oe<=i.bh&&(Q.preventDefault(),V(oe)),oe===i.s6&&(Q.preventDefault(),O())},buttons:(0,e.jsx)(l.$n,{compact:!0,icon:T?"search":"font",selected:!0,tooltip:T?"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(){return _()}}),className:"ListInput__Section",fill:!0,title:f,children:(0,e.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(y,{filteredItems:te,onClick:H,onFocusSearch:q,searchBarVisible:T,selected:I})}),T&&(0,e.jsx)(x,{filteredItems:te,onSearch:Y,searchQuery:R,selected:I}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(u.InputButtons,{input:te[I],on_submit:function(){return v(te[I])},on_cancel:O})})]})})},y=function(m){var p=(0,o.Oc)().act,h=m.filteredItems,c=m.onClick,f=m.onFocusSearch,v=m.searchBarVisible,O=m.selected;return(0,e.jsxs)(l.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(l.y5,{}),h.map(function(C,I){return(0,e.jsx)(l.$n,{color:"transparent",fluid:!0,onClick:function(){return c(I)},onDoubleClick:function(M){M.preventDefault(),p("submit",{entry:h[O]})},onKeyDown:function(M){var A=window.event?M.which:M.keyCode;v&&A>=i.W8&&A<=i.bh&&(M.preventDefault(),f())},selected:I===O,style:{animation:"none",transition:"none"},children:C.replace(/^\w/,function(M){return M.toUpperCase()})},I)})]})},x=function(m){var p=(0,o.Oc)().act,h=m.filteredItems,c=m.onSearch,f=m.searchQuery,v=m.selected;return(0,e.jsx)(l.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(O){O.preventDefault(),p("submit",{entry:h[v]})},onInput:function(O,C){return c(C)},placeholder:"Search...",value:f})}},73688:function(S,j,t){"use strict";t.r(j),t.d(j,{TguiInputListInputWindow:function(){return u}});var e=t(62161),a=t(7081),i=t(85242),o=t(44149),l=t(29089),u=function(){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.items,p=m===void 0?[]:m,h=x.message,c=h===void 0?"":h,f=x.init_value,v=x.large_buttons,O=x.timeout,C=x.title,I=325+Math.ceil(c.length/3)+(v?5:0);return(0,e.jsxs)(i.p8,{title:C,width:325,height:I,children:[O&&(0,e.jsx)(o.Loader,{value:O}),(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(l.ListInputModal,{items:p,default_item:f,message:c,on_selected:function(M){return y("submit",{entry:M})},on_cancel:function(){return y("cancel")}})})]})}},49845:function(S,j,t){"use strict";t.r(j),t.d(j,{TguiInputNumberInputModal:function(){return x}});var e=t(62161),a=t(87239),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E=t(5335),y=t(44149),x=function(p){var h=(0,o.Oc)(),c=h.act,f=h.data,v=f.init_value,O=f.large_buttons,C=f.message,I=C===void 0?"":C,M=f.timeout,A=f.title,T=(0,i.useState)(v),b=T[0],B=T[1],R=function(W){W!==b&&B(W)},N=140+(I.length>30?Math.ceil(I.length/3):0)+(I.length&&O?5:0);return(0,e.jsxs)(u.p8,{title:A,width:270,height:N,children:[M&&(0,e.jsx)(y.Loader,{value:M}),(0,e.jsx)(u.p8.Content,{onKeyDown:function(W){W.key===a._.Enter&&c("submit",{entry:b}),(0,a.K)(W.key)&&c("cancel")},children:(0,e.jsx)(l.wn,{fill:!0,children:(0,e.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(l.az,{color:"label",children:I})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(m,{input:b,onClick:R,onChange:R,onBlur:R})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(E.InputButtons,{input:b})})]})})})]})},m=function(p){var h=(0,o.Oc)(),c=h.act,f=h.data,v=f.min_value,O=f.max_value,C=f.init_value,I=f.round_value,M=p.input,A=p.onClick,T=p.onChange,b=p.onBlur;return(0,e.jsxs)(l.BJ,{fill:!0,children:[(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{disabled:M===v,icon:"angle-double-left",onClick:function(){return A(v)},tooltip:v?"Min ("+v+")":"Min"})}),(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(l.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!I,minValue:v,maxValue:O,onChange:function(B,R){return T(R)},onBlur:function(B,R){return b(R)},onEnter:function(B,R){return c("submit",{entry:R})},value:M})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{disabled:M===O,icon:"angle-double-right",onClick:function(){return A(O)},tooltip:O?"Max ("+O+")":"Max"})}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.$n,{disabled:M===C,icon:"redo",onClick:function(){return A(C)},tooltip:C?"Reset ("+C+")":"Reset"})})]})}},66579:function(S,j,t){"use strict";t.r(j),t.d(j,{TguiInputTextInputModal:function(){return p},removeAllSkiplines:function(){return m},sanitizeMultiline:function(){return x}});var e=t(62161),a=t(87239),i=t(28277),o=t(7081),l=t(34995),u=t(85242),E=t(5335),y=t(44149),x=function(c){return c.replace(/(\n|\r\n){3,}/,"\n\n")},m=function(c){return c.replace(/[\r\n]+/,"")},p=function(c){var f=(0,o.Oc)(),v=f.act,O=f.data,C=O.large_buttons,I=O.max_length,M=O.message,A=M===void 0?"":M,T=O.multiline,b=O.placeholder,B=b===void 0?"":b,R=O.timeout,N=O.title,W=(0,i.useState)(B||""),H=W[0],q=W[1],V=function(te){if(te!==H){var Q=T?x(te):m(te);q(Q)}},Y=T||H.length>=30,_=135+(A.length>30?Math.ceil(A.length/4):0)+(Y?75:0)+(A.length&&C?5:0);return(0,e.jsxs)(u.p8,{title:N,width:325,height:_,children:[R&&(0,e.jsx)(y.Loader,{value:R}),(0,e.jsx)(u.p8.Content,{onKeyDown:function(te){te.key===a._.Enter&&(!Y||!te.shiftKey)&&v("submit",{entry:H}),(0,a.K)(te.key)&&v("cancel")},children:(0,e.jsx)(l.wn,{fill:!0,children:(0,e.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(l.az,{color:"label",children:A})}),(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{input:H,onType:V},N)}),(0,e.jsx)(l.BJ.Item,{children:(0,e.jsx)(E.InputButtons,{input:H,message:H.length+"/"+I})})]})})})]})},h=function(c){var f=(0,o.Oc)(),v=f.act,O=f.data,C=O.max_length,I=O.multiline,M=c.input,A=c.onType,T=I||M.length>=30;return(0,e.jsx)(l.fs,{autoFocus:!0,autoSelect:!0,height:I||M.length>=30?"100%":"1.8rem",maxLength:C,onEscape:function(){return v("cancel")},onEnter:function(b){T&&b.shiftKey||(b.preventDefault(),v("submit",{entry:M}))},onChange:function(b,B){return A(B)},onInput:function(b,B){return A(B)},placeholder:"Type something...",value:M})}},2965:function(S,j,t){"use strict";t.r(j),t.d(j,{Circulator:function(){return x},ThermoelectricGenerator:function(){return y}});var e=t(62161),a=t(4089),i=t(28277),o=t(7081),l=t(34995),u=t(41242),E=t(85242),y=function(p){var h=(0,o.Oc)(),c=h.act,f=h.data,v=f.totalOutput,O=f.maxTotalOutput,C=f.thermalOutput,I=f.circConnected,M=f.primary,A=f.secondary;return(0,e.jsx)(E.p8,{width:500,height:360,children:(0,e.jsxs)(E.p8.Content,{children:[(0,e.jsx)(l.wn,{title:"Output",children:(0,e.jsxs)(l.Ki,{children:[(0,e.jsx)(l.Ki.Item,{label:"Total Output",children:(0,e.jsx)(l.z2,{value:v,maxValue:O,children:(0,e.jsx)(l.zv,{value:v,format:function(T){return(0,u.d5)(T)}})})}),(0,e.jsx)(l.Ki.Item,{label:"Thermal Output",children:(0,e.jsx)(l.zv,{value:C,format:function(T){return(0,u.d5)(T)}})})]})}),I?(0,e.jsxs)(l.BJ,{children:[M&&(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(x,{name:"Primary Circulator",circulator:M})}),A&&(0,e.jsx)(l.BJ.Item,{grow:!0,children:(0,e.jsx)(x,{name:"Secondary Circulator",circulator:A})})]}):(0,e.jsx)(l.IC,{danger:!0,children:"ERROR: Both circulators must be connected!"})]})})},x=function(p){var h=(0,o.Oc)().config,c=p.circulator,f=p.name;return(0,e.jsxs)(l.wn,{title:f+" ("+c.dir+")",children:[(0,e.jsxs)(l.BJ,{justify:"space-around",align:"center",children:[(0,e.jsx)(l.BJ.Item,{children:h.window.toaster?(0,e.jsx)(l.In,{size:4,name:"fan",spin:c.flowCapacity>0,color:c.flowCapacity>80?"good":c.flowCapacity>50?"average":"bad"}):(0,e.jsx)(m,{value:c.flowCapacity})}),(0,e.jsxs)(l.BJ.Item,{children:[(0,e.jsx)(l.az,{color:"label",fontSize:1.2,children:"Flow Capacity"}),(0,e.jsx)(l.az,{children:(0,e.jsx)(l.zv,{value:c.flowCapacity,format:function(v){return(0,a.LI)(v,2)+"%"}})})]})]}),(0,e.jsx)(l.cG,{}),(0,e.jsxs)(l.Ki,{children:[(0,e.jsx)(l.Ki.Item,{label:"Turbine Output",children:(0,e.jsx)(l.zv,{value:c.output,format:function(v){return(0,u.d5)(v)}})}),(0,e.jsx)(l.Ki.Item,{label:"Inlet Pressure",children:(0,e.jsx)(l.zv,{value:c.inletPressure,format:function(v){return""+(0,a.LI)(v,2)+" kPa"}})}),(0,e.jsx)(l.Ki.Item,{label:"Inlet Temperature",children:(0,e.jsx)(l.zv,{value:c.inletTemperature,format:function(v){return""+(0,a.LI)(v,1)+" K"}})}),(0,e.jsx)(l.Ki.Item,{label:"Outlet Pressure",children:(0,e.jsx)(l.zv,{value:c.outletPressure,format:function(v){return""+(0,a.LI)(v,2)+" kPa"}})}),(0,e.jsx)(l.Ki.Item,{label:"Outlet Temperature",children:(0,e.jsx)(l.zv,{value:c.outletTemperature,format:function(v){return""+(0,a.LI)(v,1)+" K"}})})]})]})},m=function(p){var h=p.value,c=(0,i.useState)(0),f=c[0],v=c[1],O=.2,C=4,I=4;return(0,i.useEffect)(function(){var M=setInterval(function(){v(function(A){return(A+I)%359})},O*(100*C-h*C));return function(){return clearInterval(M)}},[h]),(0,e.jsx)(l.In,{rotation:f,size:4,name:"fan",color:h>80?"good":h>50?"average":"bad"})}},13101:function(S,j,t){"use strict";t.r(j),t.d(j,{Turbolift:function(){return l}});var e=t(62161),a=t(7081),i=t(34995),o=t(85242),l=function(u){var E=(0,a.Oc)(),y=E.act,x=E.data,m=x.floors,p=x.doors_open,h=x.fire_mode;return(0,e.jsx)(o.p8,{width:480,height:260+(h?1:0)*25,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsxs)(i.wn,{fill:!0,title:"Floor Selection",className:h?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:p?"door-open":"door-closed",selected:p&&!h,color:h?"red":null,onClick:function(){return y("toggle_doors")},children:p?h?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed"}),(0,e.jsx)(i.$n,{icon:"exclamation-triangle",color:"bad",onClick:function(){return y("emergency_stop")},children:"Emergency Stop"})]}),children:[!h||(0,e.jsx)(i.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(i.so,{wrap:"wrap",children:m.map(function(c){return(0,e.jsx)(i.so.Item,{basis:"100%",children:(0,e.jsxs)(i.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(i.so.Item,{basis:"40%",textAlign:"right",mr:2,children:c.label||"Floor #"+c.id}),(0,e.jsx)(i.so.Item,{basis:"8%",children:(0,e.jsx)(i.$n,{icon:"circle",color:c.current?"red":c.target?"green":c.queued?"yellow":null,onClick:function(){return y("move_to_floor",{ref:c.ref})}})}),(0,e.jsx)(i.so.Item,{basis:"50%",grow:1,children:c.name})]})},c.id)})})]})})})}},21037:function(S,j,t){"use strict";t.r(j),t.d(j,{Vending:function(){return h}});var e=t(62161),a=t(88716),i=t(7081),o=t(34995);function l(){return l=Object.assign||function(c){for(var f=1;f0&&(0,e.jsx)(o.IC,{style:{overflow:"hidden",wordBreak:"break-all"},children:c.message})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{justify:"space-between",textAlign:"center",children:[(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{fluid:!0,ellipsis:!0,icon:"building",onClick:function(){return f("setdepartment")},children:"Organization"})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{fluid:!0,ellipsis:!0,icon:"id-card",onClick:function(){return f("setaccount")},children:"Account"})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{fluid:!0,ellipsis:!0,icon:"tags",onClick:function(){return f("markup")},children:"Markup"})})]})})]})},x=function(c){var f=(0,i.Oc)(),v=f.act,O=f.data,C=O.ownerData;return(0,e.jsx)(o.wn,{title:O.isManaging?"Managment":"Commercial Info",children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{align:"center",children:(0,e.jsx)(o.In,{name:"toolbox",size:3,mx:1})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Owner",children:(C==null?void 0:C.name)||"Unknown"}),(0,e.jsx)(o.Ki.Item,{label:"Department",children:(C==null?void 0:C.dept)||"Not Specified"}),(0,e.jsx)(o.Ki.Item,{label:"Murkup",children:(O==null?void 0:O.markup)&&(O==null?void 0:O.markup)>0&&(0,e.jsx)(o.az,{children:O.markup})||"None"})]})})]}),O.isManaging&&y(O.managingData)||null]})})},m=function(c){var f=(0,i.Oc)(),v=f.act,O=f.config,C=f.data;return(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n,{fluid:!0,ellipsis:!0,onClick:function(){return v("vend",{key:c.key})},children:(0,e.jsxs)(o.BJ,{fill:!0,align:"center",children:[!O.window.toaster&&(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(u,{html:c.icon})}),(0,e.jsx)(o.BJ.Item,{grow:4,textAlign:"left",className:"Vending--text",children:c.name}),(0,e.jsxs)(o.BJ.Item,{grow:!0,textAlign:"right",className:"Vending--text",children:[c.amount,(0,e.jsx)(o.In,{name:"box",pl:"0.6em"})]}),c.price>0&&(0,e.jsxs)(o.BJ.Item,{grow:!0,textAlign:"right",className:"Vending--text",children:[c.price,(0,e.jsx)(o.In,{name:"money-bill",pl:"0.6em"})]})||null]})})}),C.isManaging&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:"tag",tooltip:"Change Price",color:"yellow",className:"Vending--icon",verticalAlignContent:"middle",onClick:function(){return v("setprice",{key:c.key})}})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{icon:"eject",tooltip:"Remove",color:"red",className:"Vending--icon",verticalAlignContent:"middle",onClick:function(){return v("remove",{key:c.key})}})})]})||null]})})},p=function(c){var f=(0,i.Oc)().act;return(0,e.jsx)(o.aF,{className:"Vending--modal",children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,justify:"space-between",children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",children:(0,a.ZH)(c.name)}),(0,e.jsx)(o.Ki.Item,{label:"Description",children:c.desc}),(0,e.jsx)(o.Ki.Item,{label:"Price",children:c.price})]})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.IC,{color:c.isError?"red":"",children:c.message})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{fluid:!0,icon:"ban",color:"red",content:"Cancel",className:"Vending--cancel",verticalAlignContent:"middle",onClick:function(){return f("cancelpurchase")}})})]})})},h=function(c){var f=(0,i.Oc)(),v=f.act,O=f.data;return(0,e.jsxs)(E.p8,{width:450,height:600,title:"Vending Machine - "+O.name,children:[(0,e.jsx)(E.p8.Content,{children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[O.isCustom&&(0,e.jsx)(o.BJ.Item,{children:x(O)})||null,O.panel&&(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{fluid:!0,bold:!0,my:1,py:1,icon:O.speaker?"comment":"comment-slash",content:"Speaker "+(O.speaker?"Enabled":"Disabled"),textAlign:"center",color:O.speaker?"green":"red",onClick:function(){return v("togglevoice")}})})||null,O.advertisement&&O.advertisement.length>0&&(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.wn,{children:(0,e.jsx)(o.Y0,{children:O.advertisement})})})||null,(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.wn,{scrollable:!0,fill:!0,title:"Products",children:(0,e.jsx)(o.BJ,{fill:!0,vertical:!0,children:O.products&&O.products.map(function(C,I){return m(C)})})})})]})}),O.isVending&&p(O.vendingData)||null]})}},33368:function(S,j,t){"use strict";t.r(j),t.d(j,{Wires:function(){return u}});var e=t(62161),a=t(88716),i=t(7081),o=t(34995),l=t(85242),u=function(E){var y=(0,i.Oc)(),x=y.act,m=y.data,p=m.wires||[],h=m.status||[];return(0,e.jsx)(l.p8,{width:350,height:150+p.length*30,children:(0,e.jsxs)(l.p8.Content,{children:[(0,e.jsx)(o.wn,{children:(0,e.jsx)(o.Ki,{children:p.map(function(c){return(0,e.jsx)(o.Ki.Item,{className:"candystripe",label:(0,a.ZH)(c.color_name),labelColor:c.color,color:c.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{onClick:function(){return x("cut",{wire:c.color})},children:c.cut?"Mend":"Cut"}),(0,e.jsx)(o.$n,{onClick:function(){return x("pulse",{wire:c.color})},children:"Pulse"}),(0,e.jsx)(o.$n,{onClick:function(){return x("attach",{wire:c.color})},children:c.attached?"Detach":"Attach"})]}),children:!!c.desc&&(0,e.jsxs)("i",{children:["(",c.desc,")"]})},c.color)})})}),!!h.length&&(0,e.jsx)(o.wn,{children:h.map(function(c){return(0,e.jsx)(o.az,{color:"lightgray",mt:.1,children:c},c)})})]})})}},27936:function(S,j,t){"use strict";t.r(j),t.d(j,{PortConnector:function(){return l},PressureRegulator:function(){return u}});var e=t(62161),a=t(4089),i=t(34995),o=t(41242),l=function(E){var y=E.connected;return(0,e.jsxs)(i.BJ,{align:"center",children:[(0,e.jsx)(i.BJ.Item,{mt:y?0:.3,children:(0,e.jsx)(i.In,{color:y?"good":"bad",name:y?"plug":"times",size:1.25})}),(0,e.jsx)(i.BJ.Item,{color:y?"good":"bad",children:y?"Connected":"Disconnected"})]})},u=function(E){var y=E.highlightRing,x=E.pressure,m=E.minPressure,p=E.maxPressure,h=E.onChange,c=E.onMax,f=E.onDefault,v=E.unit,O=v===void 0?"kPa":v,C=E.format,I=C===void 0?function(M){return(0,o.Pz)((0,a.LI)(M,2))}:C;return(0,e.jsxs)(i.BJ,{vertical:!0,align:"center",children:[(0,e.jsx)(i.BJ.Item,{color:"label",children:"Regulator"}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.BJ,{children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.N6,{className:"Canister--knob",size:1.25,color:y,value:x,fillValue:x,minValue:m,maxValue:p,unit:O,stepPixelSize:1,onChange:h})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.BJ,{vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{mb:-1,children:(0,e.jsx)(i.$n,{fluid:!0,color:"transparent",icon:"fast-forward",tooltip:"Set to max",onClick:c})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{fluid:!0,color:"transparent",icon:"undo",tooltip:"Reset to default",onClick:f})})]})})]})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.zv,{value:x,format:I})})]})}},78924:function(S,j,t){"use strict";t.r(j),t.d(j,{BeakerContents:function(){return i}});var e=t(62161),a=t(34995),i=function(o){var l=o.beakerLoaded,u=o.beakerContents;return(0,e.jsxs)(a.az,{children:[!l&&(0,e.jsx)(a.az,{color:"label",children:"No beaker loaded."})||u.length===0&&(0,e.jsx)(a.az,{color:"label",children:"Beaker is empty."}),u.map(function(E){return(0,e.jsxs)(a.az,{color:"label",children:[(0,e.jsx)(a.zv,{initial:0,value:E.volume})," units of "+E.name]},E.name)})]})}},9478:function(S,j,t){"use strict";t.r(j),t.d(j,{ColoredSecurityLevel:function(){return y},DeltaSecurityLevel:function(){return x},SecurityLevelData:function(){return E},SecurityLevelEnum:function(){return l}});var e=t(62161),a=t(88716),i=t(28277),o=t(34995),l;(function(m){m.GREEN="code green",m.BLUE="code blue",m.RED="code red",m.DELTA="code delta"})(l||(l={}));var u,E=(u={},u["code green"]={color:"#23e870"},u["code blue"]={color:"#45b6ea"},u["code red"]={color:"#fa4c41"},u),y=function(m){var p=m.security_level;if(p==="code delta")return(0,e.jsx)(x,{});var h=E[p];return(0,e.jsx)(o.az,{inline:!0,color:h.color,children:(0,a.Sn)(p)})},x=function(m){var p="CODE DELTA",h=(0,i.useState)(0),c=h[0],f=h[1],v=200;return(0,i.useEffect)(function(){var O=setInterval(function(){f(function(C){var I=(C+1)%p.length;return p[I]===" "&&(I+=1),I})},v);return function(){return clearInterval(O)}},[]),(0,e.jsxs)(o.az,{as:"span",inline:!0,color:"#f00",bold:!0,children:[p.substring(0,c),(0,e.jsx)(o.az,{as:"span",inline:!0,color:"#45b6ea",bold:!0,children:p.substring(c,c+1)}),p.substring(c+1)]})}},5335:function(S,j,t){"use strict";t.r(j),t.d(j,{InputButtons:function(){return o}});var e=t(62161),a=t(7081),i=t(34995),o=function(l){var u=(0,a.Oc)(),E=u.act,y=u.data,x=y.large_buttons,m=y.swapped_buttons,p=l.input,h=l.message,c=l.on_submit,f=l.on_cancel,v=c;v||(v=function(){E("submit",{entry:p})});var O=f;O||(O=function(){E("cancel")});var C=(0,e.jsx)(i.$n,{color:"good",fluid:!!x,height:!!x&&2,onClick:v,m:.5,pl:2,pr:2,pt:x?.33:0,textAlign:"center",tooltip:x&&h,width:!x&&6,children:x?"SUBMIT":"Submit"}),I=(0,e.jsx)(i.$n,{color:"bad",fluid:!!x,height:!!x&&2,onClick:O,m:.5,pl:2,pr:2,pt:x?.33:0,textAlign:"center",width:!x&&6,children:x?"CANCEL":"Cancel"});return(0,e.jsxs)(i.so,{align:"center",direction:m?"row-reverse":"row",fill:!0,justify:"space-around",children:[x?(0,e.jsx)(i.so.Item,{grow:!0,children:I}):(0,e.jsx)(i.so.Item,{children:I}),!x&&h&&(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.az,{color:"label",textAlign:"center",children:h})}),x?(0,e.jsx)(i.so.Item,{grow:!0,children:C}):(0,e.jsx)(i.so.Item,{children:C})]})}},98071:function(S,j,t){"use strict";t.r(j),t.d(j,{InterfaceLockNoticeBox:function(){return o}});var e=t(62161),a=t(7081),i=t(34995),o=function(l){var u=(0,a.Oc)(),E=u.act,y=u.data,x=l.siliconUser,m=x===void 0?y.siliconUser:x,p=l.locked,h=p===void 0?y.locked:p,c=l.onLockStatusChange,f=c===void 0?function(){return E("lock")}:c,v=l.accessText,O=v===void 0?"an ID card":v,C=l.preventLocking,I=C===void 0?y.preventLocking:C;return m?(0,e.jsx)(i.IC,{color:"grey",children:(0,e.jsxs)(i.so,{align:"center",children:[(0,e.jsx)(i.so.Item,{children:"Interface lock status:"}),(0,e.jsx)(i.so.Item,{grow:1}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{m:0,color:h?"red":"green",icon:h?"lock":"unlock",disabled:I,onClick:function(){f&&f(!h)},children:h?"Locked":"Unlocked"})})]})}):(0,e.jsxs)(i.IC,{children:["Swipe ",O," to ",h?"unlock":"lock"," this interface."]})}},44149:function(S,j,t){"use strict";t.r(j),t.d(j,{Loader:function(){return o}});var e=t(62161),a=t(4089),i=t(34995),o=function(l){var u=l.value;return(0,e.jsx)("div",{className:"AlertModal__Loader",children:(0,e.jsx)(i.az,{className:"AlertModal__LoaderProgress",style:{width:(0,a.J$)(u)*100+"%"}})})}},96825:function(S,j,t){"use strict";t.r(j),t.d(j,{LoadingScreen:function(){return i}});var e=t(62161),a=t(34995),i=function(o){return(0,e.jsx)(a.Rr,{children:(0,e.jsxs)(a.BJ,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.In,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.jsx)(a.BJ.Item,{children:"Please wait..."})]})})}},17561:function(S,j,t){"use strict";t.r(j)},40289:function(S,j,t){"use strict";t.r(j),t.d(j,{departmentData:function(){return e}});var e={heads:{name:"Command Staff"},sec:{name:"Security - Marshals"},bls:{name:"Security - Blackshield"},med:{name:"Soteria Medical"},sci:{name:"Soteria Research"},chr:{name:"Church of the Absolute"},sup:{name:"Lonestar Shipping Solutions"},eng:{name:"Artificers Guild"},pro:{name:"Prospector"},civ:{name:"Civilian"},bot:{name:"Silicon"},ldg:{name:"Lodge"}}},85653:function(S,j,t){"use strict";t.d(j,{P:function(){return x}});var e=t(62161),a=t(65380),i=t(28277),o=t(7081),l=t(96781),u=t(37912);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT