From fbcc41ef0206198b4a93e3f8080404e498eaad0e Mon Sep 17 00:00:00 2001 From: GhostActual Date: Wed, 23 Mar 2022 02:17:48 -0400 Subject: [PATCH 01/14] Base Commit --- code/modules/stockmarket/articles.dm | 124 +++++++++ code/modules/stockmarket/computer.dm | 319 ++++++++++++++++++++++++ code/modules/stockmarket/events.dm | 233 +++++++++++++++++ code/modules/stockmarket/industries.dm | 233 +++++++++++++++++ code/modules/stockmarket/logs.dm | 14 ++ code/modules/stockmarket/stockmarket.dm | 170 +++++++++++++ code/modules/stockmarket/stocks.dm | 308 +++++++++++++++++++++++ icons/obj/computer.dmi | Bin 169063 -> 172343 bytes vorestation.dme | 9 +- 9 files changed, 1409 insertions(+), 1 deletion(-) create mode 100644 code/modules/stockmarket/articles.dm create mode 100644 code/modules/stockmarket/computer.dm create mode 100644 code/modules/stockmarket/events.dm create mode 100644 code/modules/stockmarket/industries.dm create mode 100644 code/modules/stockmarket/logs.dm create mode 100644 code/modules/stockmarket/stockmarket.dm create mode 100644 code/modules/stockmarket/stocks.dm diff --git a/code/modules/stockmarket/articles.dm b/code/modules/stockmarket/articles.dm new file mode 100644 index 0000000000..b1de25741b --- /dev/null +++ b/code/modules/stockmarket/articles.dm @@ -0,0 +1,124 @@ +/proc/consonant() + return pick("B","C","D","F","G","H","J","K","L","M","N","P","Q","R","S","T","V","W","X","Y","Z") + +/proc/vowel() + return pick("A", "E", "I", "O", "U") + +/proc/ucfirst(var/S) + return "[uppertext(ascii2text(text2ascii(S, 1)))][copytext(S, 2)]" + +/proc/ucfirsts(var/S) + var/list/L = splittext(S, " ") + var/list/M = list() + for (var/P in L) + M += ucfirst(P) + return jointext(M, " ") + +GLOBAL_LIST_EMPTY(FrozenAccounts) + +/proc/list_frozen() + for (var/A in GLOB.FrozenAccounts) + to_chat(usr, "[A]: [length(GLOB.FrozenAccounts[A])] borrows") + +/datum/article + var/headline = "Something big is happening" + var/subtitle = "Investors panic as stock market collapses" + var/article = "God, it's going to be fun to randomly generate this." + var/author = "P. Pubbie" + var/spacetime = "" + var/opinion = 0 + var/ticks = 0 + var/datum/stock/about = null + var/outlet = "" + var/static/list/outlets = list() + var/static/list/default_tokens = list( \ + "buy" = list("buy!", "buy, buy, buy!", "get in now!", "ride the share value to the stars!"), \ + "company" = list("company", "corporation", "conglomerate", "enterprise", "venture"), \ + "complete" = list("complete", "total", "absolute", "incredible"), \ + "country" = list("Space", "Argentina", "Hungary", "United States of America", "United Space", "Space Federation", "Nanotrasen", "The Wizard Federation", "United Kingdom", "Poland", "The Syndicate", "Australia", "Serbia", "The European Union", "The Illuminati", "The New World Order", "Eurasian Union", "Asian Union", "United Arab Emirates", "Arabian League", "United States of Africa", "Mars Federation", "Allied Colonies of Jupiter", "Saturn's Ring", "Fringe Republic of Formerly Planet Pluto"), \ + "development" = list("development", "unfolding of events", "turn of events", "new shit"), \ + "dip" = list("dip", "fall", "plunge", "decrease"), \ + "excited" = list("excited", "euphoric", "exhilarated", "thrilled", "stimulated"), \ + "expand_influence" = list("expands their influence over", "continues to dominate", "gains traction in", "rolls their new product line out in"), \ + "failure" = list("failure", "meltdown", "breakdown", "crash", "defeat", "wreck"), \ + "famous" = list("famous", "prominent", "leading", "renowned", "expert"), \ + "hit_shelves" = list("hit the shelves", "appeared on the market", "came out", "was released"), \ + "industry" = list("industry", "sector"), \ + "industrial" = list("industrial"), \ + "jobs" = list("workers"), \ + "negative_outcome" = list("it's not leaving the shelves", "nobody seems to care", "it's a huge money sink", "they have already pulled all advertising and marketing support"), \ + "neutral_outcome" = list("it's not lifting off as expected", "it's not selling according to expectations", "it's only generating enough profit to cover the marketing and manufacturing costs", "it does not look like it will become a massive success", "it's experiencing modest sales"), \ + "positive_outcome" = list("it's already sold out", "it has already sold over one billion units", "suppliers cannot keep up with the wild demand", "several companies using this new technology are already reporting a projected increase in profits"), \ + "resounding" = list("resounding", "tremendous", "total", "massive", "terrific", "colossal"), \ + "rise" = list("rise", "increase", "fly off the positive side of the charts", "skyrocket", "lift off"), \ + "sell" = list("sell!", "sell, sell, sell!", "bail!", "abandon ship!", "get out before it's too late!", "evacuate!", "withdraw!"), \ + "signifying" = list("signifying", "indicating", "implying", "displaying", "suggesting"), \ + "sneak_peek" = list("review", "sneak peek", "preview", "exclusive look"), \ + "stock_market" = list("stock market", "stock exchange"), \ + "stockholder" = list("stockholder", "shareholder"), \ + "success" = list("success", "triumph", "victory"), \ + "this_time" = list("this week", "last week", "this month", "yesterday", "today", "a few days ago") \ + ) + +/datum/article/New() + ..() + if ((outlets.len && !prob(100 / (outlets.len + 1))) || !outlets.len) + var/ON = generateOutletName() + if (!(ON in outlets)) + outlets[ON] = list() + outlet = ON + else + outlet = pick(outlets) + + var/list/authors = outlets[outlet] + if ((authors.len && !prob(100 / (authors.len + 1))) || !authors.len) + var/AN = generateAuthorName() + outlets[outlet] += AN + author = AN + else + author = pick(authors) + + ticks = world.time + +/datum/article/proc/generateOutletName() + var/list/locations = list("Earth", "Luna", "Mars", "Saturn", "Jupiter", "Uranus", "Pluto", "Europa", "Io", "Phobos", "Deimos", "Space", "Venus", "Neptune", "Mercury", "Kalliope", "Ganymede", "Callisto", "Amalthea", "Himalia", "Orion", "Sybil", "Basil", "Badger", "Terry", "Artyom") + var/list/nouns = list("Post", "Herald", "Sun", "Tribune", "Mail", "Times", "Journal", "Report") + var/list/timely = list("Daily", "Hourly", "Weekly", "Biweekly", "Monthly", "Yearly") + + switch(rand(1,2)) + if (1) + return "The [pick(locations)] [pick(nouns)]" + if (2) + return "The [pick(timely)] [pick(nouns)]" + +/datum/article/proc/generateAuthorName() + var/name_part1 + var/name_part2 + + name_part1 = pick("John ", "Jack ", "Jill ", "Peter ", "James ", "Lois ", "Zoey ") + name_part2 = pick("Bull", "Palmer", "Glass", "Ruin", "McCory", "Batty", "Lane") + author = (name_part1 + name_part2) + +/datum/article/proc/formatSpacetime() + var/ticksc = round(ticks/100) + ticksc = ticksc % 100000 + var/ticksp = "[ticksc]" + while (length(ticksp) < 5) + ticksp = "0[ticksp]" + spacetime = "[ticksp][time2text(world.realtime, "MM")][time2text(world.realtime, "DD")][text2num(time2text(world.realtime, "YYYY"))+540]" + +/datum/article/proc/formatArticle() + if (spacetime == "") + formatSpacetime() + var/output = "
[headline]
[subtitle]
[article]
[author]
[spacetime]
" + return output + +/datum/article/proc/detokenize(var/token_string, var/list/industry_tokens, var/list/product_tokens = list()) + var/list/T_list = default_tokens.Copy() + for (var/I in industry_tokens) + T_list[I] = industry_tokens[I] + for (var/I in product_tokens) + T_list[I] = list(product_tokens[I]) + for (var/I in T_list) + token_string = replacetext(token_string, "%[I]%", pick(T_list[I])) + return ucfirst(token_string) \ No newline at end of file diff --git a/code/modules/stockmarket/computer.dm b/code/modules/stockmarket/computer.dm new file mode 100644 index 0000000000..b4debdfb25 --- /dev/null +++ b/code/modules/stockmarket/computer.dm @@ -0,0 +1,319 @@ +/obj/machinery/computer/stockexchange + name = "stock exchange computer" + desc = "A console that connects to the galactic stock market. Stocks trading involves substantial risk of loss and is not suitable for every cargo technician." + icon = 'icons/obj/computer.dmi' + icon_state = "computer" + icon_screen = "stock_computer" + icon_keyboard = "stock_key" + var/logged_in = "Cargo Department" + var/vmode = 1 + //circuit = /obj/item/circuitboard/computer/stockexchange TODO: Make buildable + + light_color = LIGHT_COLOR_GREEN + +/obj/machinery/computer/stockexchange/Initialize() + . = ..() + logged_in = "SS13 Cargo Department" + +/obj/machinery/computer/stockexchange/proc/balance() + if (!logged_in) + return 0 + return SSsupply.points + +/obj/machinery/computer/stockexchange/tgui_interact(mob/living/user) + . = ..() + var/css={""} + var/dat = "[station_name()] Stock Exchange[css]" + + dat += "Welcome, [station_name()] Cargo Department
Credits: [balance()]
" + for (var/datum/stock/S in GLOB.stockExchange.last_read) + var/list/LR = GLOB.stockExchange.last_read[S] + if (!(logged_in in LR)) + LR[logged_in] = 0 + dat += "View mode: [vmode ? "Compact" : "Full"] " + dat += "Stock Transaction Log: Check
" + + dat += "This is a work in progress. Certain features may not be available." + + dat += "

Listed stocks

" + + if (vmode == 0) + for (var/datum/stock/S in GLOB.stockExchange.stocks) + var/mystocks = 0 + if (logged_in && (logged_in in S.shareholders)) + mystocks = S.shareholders[logged_in] + dat += "
[S.name] ([S.short_name])[S.bankrupt ? " BANKRUPT" : null]
" + if (S.last_unification) + dat += "Unified shares [DisplayTimeText(world.time - S.last_unification)] ago.
" + dat += "Current value per share: [S.current_value] | View history

" + dat += "You currently own [mystocks] shares in this company. There are [S.available_shares] purchasable shares on the market currently.
" + if (S.bankrupt) + dat += "You cannot buy or sell shares in a bankrupt company!

" + else + dat += "Buy shares | Sell shares

" + dat += "Prominent products:
" + for (var/prod in S.products) + dat += "[prod]
" + var/news = 0 + if (logged_in) + var/list/LR = GLOB.stockExchange.last_read[S] + var/lrt = LR[logged_in] + for (var/datum/article/A in S.articles) + if (A.ticks > lrt) + news = 1 + break + if (!news) + for (var/datum/stockEvent/E in S.events) + if (E.last_change > lrt && !E.hidden) + news = 1 + break + dat += "View news archives[news ? " (updated)" : null]
" + else if (vmode == 1) + dat += "Actions: + Buy, - Sell, (A)rchives, (H)istory

" + dat += "" + dat += "" + + for (var/datum/stock/S in GLOB.stockExchange.stocks) + var/mystocks = 0 + if (logged_in && (logged_in in S.shareholders)) + mystocks = S.shareholders[logged_in] + + if(S.bankrupt) + dat += "" + else + dat += "" + + if(S.disp_value_change > 0) + dat += "" + else if(S.disp_value_change < 0) + dat += "" + else + dat += "" + + dat += "" + dat += "" + + if(!S.bankrupt) + dat += "" + else + dat += "" + + if(mystocks) + dat += "" + else + dat += "" + + dat += "" + var/news = 0 + if (logged_in) + var/list/LR = GLOB.stockExchange.last_read[S] + var/lrt = LR[logged_in] + for (var/datum/article/A in S.articles) + if (A.ticks > lrt) + news = 1 + break + if (!news) + for (var/datum/stockEvent/E in S.events) + if (E.last_change > lrt && !E.hidden) + news = 1 + break + dat += "" + + dat += "" + + dat += "
 IDNameValueOwnedAvailActions
+-=[S.short_name][S.name][S.current_value]0[mystocks]0[S.available_shares]" + if (S.bankrupt) + dat += "+ - " + else + dat += "+ - " + dat += "(A) (H)
" + + dat += "" + var/datum/browser/popup = new(user, "computer", "Stock Exchange", 600, 600) + popup.set_content(dat) + popup.set_title_image(user.browse_rsc_icon(src.icon, src.icon_state)) + popup.open() + +/obj/machinery/computer/stockexchange/proc/sell_some_shares(var/datum/stock/S, var/mob/user) + if (!user || !S) + return + var/li = logged_in + if (!li) + to_chat(user, "No active account on the console!") + return + var/b = SSsupply.points + var/avail = S.shareholders[logged_in] + if (!avail) + to_chat(user, "This account does not own any shares of [S.name]!") + return + var/price = S.current_value + var/amt = round(input(user, "How many shares? \n(Have: [avail], unit price: [price])", "Sell shares in [S.name]", 0) as num|null) + amt = min(amt, S.shareholders[logged_in]) + + if (!user || (!(user in range(1, src)) && iscarbon(user))) + return + if (!amt) + return + if (li != logged_in) + return + b = SSsupply.points + if (!isnum(b)) + to_chat(user, "No active account on the console!") + return + + var/total = amt * S.current_value + if (!S.sellShares(logged_in, amt)) + to_chat(user, "Could not complete transaction.") + return + to_chat(user, "Sold [amt] shares of [S.name] at [S.current_value] a share for [total] credits.") + GLOB.stockExchange.add_log(/datum/stock_log/sell, user.name, S.name, amt, S.current_value, total) + +/obj/machinery/computer/stockexchange/proc/buy_some_shares(var/datum/stock/S, var/mob/user) + if (!user || !S) + return + var/li = logged_in + if (!li) + to_chat(user, "No active account on the console!") + return + var/b = balance() + if (!isnum(b)) + to_chat(user, "No active account on the console!") + return + var/avail = S.available_shares + var/price = S.current_value + var/canbuy = round(b / price) + var/amt = round(input(user, "How many shares? \n(Available: [avail], unit price: [price], can buy: [canbuy])", "Buy shares in [S.name]", 0) as num|null) + if (!user || (!(user in range(1, src)) && iscarbon(user))) + return + if (li != logged_in) + return + b = balance() + if (!isnum(b)) + to_chat(user, "No active account on the console!") + return + + amt = min(amt, S.available_shares, round(b / S.current_value)) + if (!amt) + return + if (!S.buyShares(logged_in, amt)) + to_chat(user, "Could not complete transaction.") + return + + var/total = amt * S.current_value + to_chat(user, "Bought [amt] shares of [S.name] at [S.current_value] a share for [total] credits.") + GLOB.stockExchange.add_log(/datum/stock_log/buy, user.name, S.name, amt, S.current_value, total) + +/obj/machinery/computer/stockexchange/proc/do_borrowing_deal(var/datum/borrow/B, var/mob/user) + if (B.stock.borrow(B, logged_in)) + to_chat(user, "You successfully borrowed [B.share_amount] shares. Deposit: [B.deposit].") + GLOB.stockExchange.add_log(/datum/stock_log/borrow, user.name, B.stock.name, B.share_amount, B.deposit) + else + to_chat(user, "Could not complete transaction. Check your account balance.") + +/obj/machinery/computer/stockexchange/Topic(href, href_list) + if (..()) + return 1 + + if (!usr || (!(usr in range(1, src)) && iscarbon(usr))) + usr.machine = src + + if (href_list["viewhistory"]) + var/datum/stock/S = locate(href_list["viewhistory"]) in GLOB.stockExchange.stocks + if (S) + S.displayValues(usr) + + if (href_list["logout"]) + logged_in = null + + if (href_list["buyshares"]) + var/datum/stock/S = locate(href_list["buyshares"]) in GLOB.stockExchange.stocks + if (S) + buy_some_shares(S, usr) + + if (href_list["sellshares"]) + var/datum/stock/S = locate(href_list["sellshares"]) in GLOB.stockExchange.stocks + if (S) + sell_some_shares(S, usr) + + if (href_list["show_logs"]) + var/dat = "Stock Transaction Logs

Stock Transaction Logs

Refresh

" + for(var/D in GLOB.stockExchange.logs) + var/datum/stock_log/L = D + if(istype(L, /datum/stock_log/buy)) + dat += "[L.time] | [L.user_name] bought [L.stocks] stocks at [L.shareprice] a share for [L.money] total credits in [L.company_name].
" + continue + if(istype(L, /datum/stock_log/sell)) + dat += "[L.time] | [L.user_name] sold [L.stocks] stocks at [L.shareprice] a share for [L.money] total credits from [L.company_name].
" + continue + if(istype(L, /datum/stock_log/borrow)) + dat += "[L.time] | [L.user_name] borrowed [L.stocks] stocks with a deposit of [L.money] credits in [L.company_name].
" + continue + var/datum/browser/popup = new(usr, "stock_logs", "Stock Transaction Logs", 600, 400) + popup.set_content(dat) + popup.set_title_image(usr.browse_rsc_icon(src.icon, src.icon_state)) + popup.open() + + if (href_list["archive"]) + var/datum/stock/S = locate(href_list["archive"]) + if (logged_in && logged_in != "") + var/list/LR = GLOB.stockExchange.last_read[S] + LR[logged_in] = world.time + var/dat = "News feed for [S.name]

News feed for [S.name]

Refresh
" + dat += "

Events

" + var/p = 0 + for (var/datum/stockEvent/E in S.events) + if (E.hidden) + continue + if (p > 0) + dat += "
" + dat += "
[E.current_title]
[E.current_desc]
" + p++ + dat += "

Articles

" + p = 0 + for (var/datum/article/A in S.articles) + if (p > 0) + dat += "
" + dat += "
[A.headline]
[A.subtitle]

[A.article]
- [A.author], [A.spacetime] (via [A.outlet])
" + p++ + dat += "
" + var/datum/browser/popup = new(usr, "archive_[S.name]", "Stock News", 600, 400) + popup.set_content(dat) + popup.set_title_image(usr.browse_rsc_icon(src.icon, src.icon_state)) + popup.open() + + if (href_list["cycleview"]) + vmode++ + if (vmode > 1) + vmode = 0 + + src.add_fingerprint(usr) + src.updateUsrDialog() \ No newline at end of file diff --git a/code/modules/stockmarket/events.dm b/code/modules/stockmarket/events.dm new file mode 100644 index 0000000000..37e0dfad43 --- /dev/null +++ b/code/modules/stockmarket/events.dm @@ -0,0 +1,233 @@ +#define TIME_MULTIPLIER 0.7 // so I can speed up/slow down shit + +/datum/stockEvent + var/name = "event" + var/next_phase = 0 + var/datum/stock/company = null + var/current_title = "A company holding a pangalactic conference in the Seattle Conference Center, Seattle, Earth" + var/current_desc = "We will continue to monitor their stocks as the situation unfolds." + var/phase_id = 0 + var/hidden = 0 + var/finished = 0 + var/last_change = 0 + +/datum/stockEvent/process() + if (finished) + return + if (world.time > next_phase) + transition() + +/datum/stockEvent/proc/transition() + return + +/datum/stockEvent/proc/spacetime(var/ticks) + var/seconds = round(ticks / 10) + var/minutes = round(seconds / 60) + seconds -= minutes * 60 + return "[minutes] minute(s) and [seconds] second(s)" + +/datum/stockEvent/product + name = "product" + var/product_name = "" + var/datum/article/product_article = null + var/effect = 0 + +/datum/stockEvent/product/New(var/datum/stock/S) + company = S + var/mins = rand(5*TIME_MULTIPLIER,20*TIME_MULTIPLIER) + next_phase = mins * (600*TIME_MULTIPLIER) + world.time + current_title = "Product demo" + current_desc = S.industry.detokenize("[S.name] will unveil a new product on an upcoming %industrial% conference held at spacetime [spacetime(next_phase)]") + S.addEvent(src) + + +/datum/stockEvent/product/transition() + last_change = world.time + switch (phase_id) + if (0) + next_phase = world.time + rand(300*TIME_MULTIPLIER, 600*TIME_MULTIPLIER) * (10*TIME_MULTIPLIER) + product_name = company.industry.generateProductName(company.name) + current_title = "Product release: [product_name]" + current_desc = "[company.name] unveiled their newest product, [product_name], at a conference. Product release is expected to happen at spacetime [spacetime(next_phase)]." + var/datum/article/A = company.industry.generateInCharacterProductArticle(product_name, company) + product_article = A + effect = A.opinion + rand(-1, 1) + company.affectPublicOpinion(effect) + phase_id = 1 + if (1) + finished = 1 + hidden = 1 + company.addArticle(product_article) + effect += product_article.opinion * 5 + company.affectPublicOpinion(effect) + phase_id = 2 + company.generateEvent(type) + +/datum/stockEvent/bankruptcy + name = "bankruptcy" + var/effect = 0 + var/bailout_millions = 0 + +/datum/stockEvent/bankruptcy/New(var/datum/stock/S) + hidden = 1 + company = S + var/mins = rand(9*TIME_MULTIPLIER,60*TIME_MULTIPLIER) + bailout_millions = rand(70, 190) + next_phase = mins * 300*TIME_MULTIPLIER + world.time + current_title = "" + current_desc = "" + S.addEvent(src) + +/datum/stockEvent/bankruptcy/transition() + switch (phase_id) + if (0) + next_phase = world.time + rand(300*TIME_MULTIPLIER, 600*TIME_MULTIPLIER) * (10*TIME_MULTIPLIER) + var/datum/article/A = generateBankruptcyArticle() + if (!A.opinion) + effect = rand(5) * (prob(50) ? -1 : 1) + else + effect = prob(25) ? -A.opinion * rand(8) : A.opinion * rand(4) + company.addArticle(A) + company.affectPublicOpinion(rand(-6, -3)) + hidden = 0 + current_title = "Bailout pending due to bankruptcy" + current_desc = "The government prepared a press release, which will occur at spacetime [spacetime(next_phase)]." + phase_id = 1 + if (1) + next_phase = world.time + rand(300*TIME_MULTIPLIER, 600*TIME_MULTIPLIER) * (10*TIME_MULTIPLIER) + finished = 1 + if (effect <= -5 && prob(10)) + current_title = "[company.name]: Complete crash" + current_desc = "The company had gone bankrupt, was not bailed out and could not recover. No further stock trade will take place. All shares in the company are effectively worthless." + company.bankrupt = 1 + for (var/X in company.shareholders) + var/amt = company.shareholders[X] + GLOB.stockExchange.balanceLog(X, -amt * company.current_value) + company.shareholders = list() + company.current_value = 0 + company.borrow_brokers = list() + GLOB.stockExchange.generateStocks(1) + + var/bailout = (effect > 0 && prob(80)) || (effect < 0 && prob(20)) + current_title = "[company.name] [bailout ? "bailed out" : "on a painful rebound"]" + if (bailout) + current_desc = "The company has been bailed out by the government. Investors are highly optimistic." + company.affectPublicOpinion(abs(effect) * 2) + else + current_desc = "The company was not bailed out, but managed to crawl out of bankruptcy. Stockholder trust is severely dented." + company.affectPublicOpinion(-abs(effect) / 2) + company.generateEvent(type) + +/datum/stockEvent/bankruptcy/proc/generateBankruptcyArticle() + var/datum/article/A = new + var/list/bankrupt_reason = list("investor pessimism", "failure of product lines", "economic recession", "overblown inflation", "overblown deflation", "collapsed pyramid schemes", "a Ponzi scheme", "economic terrorism", "extreme hedonism", "unfavourable economic climate", "rampant government corruption", "divine conspiracy", "some total bullshit", "volatile plans") + A.about = company + A.headline = pick( "[company.name] filing for bankruptcy", \ + "[company.name] unable to pay, investors run", \ + "[company.name] crashes, in foreclosure", \ + "[company.name] in dire need of credits") + A.subtitle = "Investors panic, bailout pending" + if (prob(15)) + A.opinion = rand(-1, 1) + var/article = "Another one might bite the dust: [company.current_trend > 0 ? "despite their positive trend" : "in line with their failing model"], [company.name] files for bankruptcy citing [pick(bankrupt_reason)]. The president of %country% has been asked to bail the company out, " + if (!A.opinion) + article += "but no answer has been given by the government to date. Our tip to stay safe is: %sell%" + else if (A.opinion > 0) + article += "and the government responded positively. When the share value hits its lowest, it is a safe bet to %buy%" + else + article += "but the outlook is not good. For investors, now would be an ideal time to %sell%" + A.article = A.detokenize(article, company.industry.tokens) + return A + +/datum/stockEvent/arrest + name = "arrest" + var/female = 0 + var/tname = "Elvis Presley" + var/position = "CEO" + var/offenses = "murder" + var/effect = 0 + +/datum/stockEvent/arrest/New(var/datum/stock/S) + hidden = 1 + company = S + var/mins = rand(10*TIME_MULTIPLIER, 35*TIME_MULTIPLIER) + next_phase = mins * 600*TIME_MULTIPLIER + world.time + current_title = "" + current_desc = "" + female = prob(50) + if (prob(50)) + position = "C[prob(20) ? vowel() : consonant()]O" + else + position = ucfirsts(company.industry.detokenize("Lead %industrial% Engineer")) + offenses = "" + var/list/O = list("corruption", "murder", "grand theft", "assault", "battery", "drug possession", "burglary", "theft", "grand sabotage", "bribery", + "disorderly conduct", "treason", "sedition", "shoplifting", "tax evasion", "tax fraud", "insurance fraud", "perjury", "kidnapping", "manslaughter", "vandalism", "forgery", "extortion", "embezzlement", + "public indecency", "public intoxication", "trespassing", "loitering", "littering", "vigilantism", "squatting", "panhandling", "arson", "spacepodjacking", "shuttlejacking", "carjacking", "singularityjacking", + "dereliction of duty", "spacecraft piracy", "music piracy", "tabletop game piracy", "software piracy", "escaping from space prison", "seniornapping", "clownnapping", "corginapping", "catnapping", + "sleeping on the job", "terrorism", "counterterrorism", "drug distribution", "insubordination", "jaywalking", "owning a computer", "owning a cellphone", "owning a PDA", "owning a pAI", "adultery", + "committing an unnatural act with another person", "corrupting public morals", "skateboarding without a license", "shitcurity", "bestiality", "erotic roleplay", "accidentally strangling a prostitute") + while (prob(60) && O.len > 2) + var/offense = pick(O) + O -= offense + offense = "[prob(20) ? "attempted " : (prob(20) ? "being accessory to " : null)][offense][prob(5) ? " of the [pick("first", "second", "third", "fourth", "fifth", "sixth")] degree" : null]" + if (offenses == "") + offenses = offense + else + offenses += ", [offense]" + offenses += " and [prob(20) ? "attempted " : null][pick(O)]" // lazy + S.addEvent(src) + +/datum/stockEvent/arrest/transition() + switch (phase_id) + if (0) + var/name_part1 + var/name_part2 + + name_part1 = pick("John ", "Jack ", "Jill ", "Peter ", "James ", "Lois ", "Zoey ") + name_part2 = pick("Bull", "Palmer", "Glass", "Ruin", "McCory", "Batty", "Lane") + tname = (name_part1 + name_part2) + next_phase = world.time + rand(300*TIME_MULTIPLIER, 600*TIME_MULTIPLIER) * (10*TIME_MULTIPLIER) + var/datum/article/A = generateArrestArticle() + if (!A.opinion) + effect = rand(5) * (prob(50) ? -1 : 1) + else + effect = prob(25) ? -A.opinion * rand(5) : A.opinion * rand(3) + company.addArticle(A) + company.affectPublicOpinion(rand(-3, -1)) + hidden = 0 + current_title = "Trial of [tname] ([position]) scheduled" + current_desc = "[female ? "She": "He"] has been charged with [offenses]; the trial is scheduled to occur at spacetime [spacetime(next_phase)]." + phase_id = 1 + if (1) + next_phase = world.time + rand(300*TIME_MULTIPLIER, 600*TIME_MULTIPLIER) * (10*TIME_MULTIPLIER) + finished = 1 + current_title = "[tname] [effect > 0 ? "acquitted" : "found guilty"]" + if (effect > 0) + current_desc = "The accused has been acquitted of all charges. Investors optimistic." + else + current_desc = "The accused has been found guilty of all charges. Investor trust takes massive hit." + company.affectPublicOpinion(effect) + company.generateEvent(type) + +/datum/stockEvent/arrest/proc/generateArrestArticle() + var/datum/article/A = new + A.about = company + A.headline = company.industry.detokenize(pick( \ + "[tname], [position] of [company.name] arrested", \ + "[position] of [company.name] facing jail time", \ + "[tname] behind bars", \ + "[position] of %industrial% company before trial", \ + "Police arrest [tname] in daring raid", \ + "Job vacancy ahead: [company.name]'s [position] in serious trouble")) + A.subtitle = "[A.author] reporting directly from the courtroom" + if (prob(15)) + A.opinion = rand(-1, 1) + var/article = "[pick("Security", "Law enforcement")] forces issued a statement that [tname], the [position] of [company.name], the %famous% %industrial% %company% was arrested %this_time%. The trial has been scheduled and the statement reports that the arrested individual is being charged with [offenses]. " + if (!A.opinion) + article += "While we cannot predict the outcome of this trial, our tip to stay safe is: %sell%" + else if (A.opinion > 0) + article += "Our own investigation shows that these charges are baseless and the arrest is most likely a publicity stunt. Our advice? You should %buy%" + else + article += "[tname] has a prior history of similar misdeeds and we're confident the charges will stand. For investors, now would be an ideal time to %sell%" + A.article = A.detokenize(article, company.industry.tokens) + return A \ No newline at end of file diff --git a/code/modules/stockmarket/industries.dm b/code/modules/stockmarket/industries.dm new file mode 100644 index 0000000000..a175373c8c --- /dev/null +++ b/code/modules/stockmarket/industries.dm @@ -0,0 +1,233 @@ +/datum/industry + var/name = "Industry" + var/list/tokens = list() + + var/list/title_templates = list("The brand new %product_name% by %company_name% will revolutionize %industry%", \ + "%jobs% rejoice as %product_name% hits shelves", \ + "Does %product_name% threaten to reorganize the %industrial% status quo?", \ + "%company_name% headed toward corporate renaissance with %product_name%") + + var/list/title_templates_neutral = list("%product_name%: as if nothing happened", \ + "Nothing new but the name: %product_name% not quite exciting %jobs%", \ + "Same old %company_name%, same old product", \ + "%product_name% underwhelms, but sells") + + var/list/title_templates_bad = list("%product_name% shaping up to be the disappointment of the century", \ + "Recipe for disaster: %company_name% releases %product_name%", \ + "Atrocious quality - %jobs% boycott %product_name%", \ + "%product_name%: Inside the worst product launch in recent history") + + var/list/title_templates_ooc = list("%company_name% is looking to enter the %industry% playing field with %product_name%", \ + "%company_name% broadens spectrum, %product_name% is their latest and greatest") + var/list/subtitle_templates = list( "%author% investigates whether or not you should invest!", \ + "%outlet%'s very own %author% takes it to the magnifying glass", \ + "%outlet% lets you know if you should use it", \ + "Read our top tips for investors", \ + "%author% wants you to know if it's a safe bet to buy") + +/datum/industry/proc/generateProductName(var/company_name) + return + +/datum/industry/proc/generateInCharacterProductArticle(var/product_name, var/datum/stock/S) + var/datum/article/A = new + var/list/add_tokens = list("company_name" = S.name, "product_name" = product_name, "outlet" = A.outlet, "author" = A.author) + A.about = S + A.opinion = rand(-1, 1) + + A.subtitle = A.detokenize(pick(subtitle_templates), tokens, add_tokens) + var/article = {"%company_name% %expand_influence% %industry%. [ucfirst(product_name)] %hit_shelves% %this_time% "} + if (A.opinion > 0) + A.headline = A.detokenize(pick(title_templates), tokens, add_tokens) + article += "but %positive_outcome%, %signifying% the %resounding% %success% the product is. The %stock_market% is %excited% over this %development%, and %stockholder% optimism is expected to %rise% as well as the stock value. Our advice: %buy%." + else if (A.opinion == 0) + A.headline = A.detokenize(pick(title_templates_neutral), tokens, add_tokens) + article += "but %neutral_outcome%. For the average %stockholder%, no significant change on the market will be apparent over this %development%. Our advice is to continue investing as if this product was never released." + else + A.headline = A.detokenize(pick(title_templates_bad), tokens, add_tokens) + article += "but %negative_outcome%. Following this %complete% %failure%, %stockholder% optimism and stock value are projected to %dip%. Our advice: %sell%." + A.article = A.detokenize(article, tokens, add_tokens) + return A + +/datum/industry/proc/detokenize(var/str) + for (var/T in tokens) + str = replacetext(str, "%[T]%", pick(tokens[T])) + return str + +/datum/industry/agriculture + name = "Agriculture" + tokens = list( \ + "industry" = list("agriculture", "farming", "botany", "horticulture", "hydroponics"), \ + "industrial" = list("agricultural", "horticultural", "botanical"), \ + "jobs" = list("farmers", "agricultural experts", "botanists", "assistant gardeners") + ) + title_templates = list( "The brand new %product_name% by %company_name% will revolutionize %industry%", \ + "%jobs% rejoice as %product_name% hits shelves", \ + "Does %product name% threaten to reorganize the %industrial% status quo?", \ + "Took it for a field trip: our first %sneak_peek% of %product_name%.", \ + "Reaping the fruits of %product_name% - %sneak_peek% by %author%", \ + "Cultivating a new %industrial% future with %product_name%", \ + "%company_name% grows and thrives: %product_name% now on the farmer's market", \ + "It's almost harvest season: %product_name% promises to ease your life", \ + "Become the best on the farmer's market with %product_name%", \ + "%product_name%: a gene-modified reimagination of an age-old classic") + + title_templates_ooc = list( "%company_name% is looking to enter the %industry% playing field with %product_name%", \ + "A questionable decision: %product_name% grown on the soil of %company_name%", \ + "%company_name% broadens spectrum, %product_name% is their latest and greatest", \ + "Will %company_name% grow on %industrial% wasteland? Owners of %product_name% may decide", \ + "%company_name% looking to reap profits off the %industrial% sector with %product_name%") + +/datum/industry/agriculture/generateProductName(var/company_name) + var/list/products = list("water tank", "cattle prod", "scythe", "plough", "sickle", "cultivator", "loy", "spade", "hoe", "daisy grubber", "cotton gin") + var/list/prefix = list("[company_name]'s ", "the [company_name] ", "the fully automatic ", "the full-duplex ", "the semi-automatic ", "the drone-mounted ", "the industry-leading ", "the world-class ") + var/list/suffix = list(" of farming", " multiplex", " +[rand(1,15)]", " [consonant()][rand(1000, 9999)]", " hybrid", " maximus", " extreme") + return "[pick(prefix)][pick(products)][pick(suffix)]" + + + +/datum/industry/it + name = "Information Technology" + tokens = list( \ + "industry" = list("information technology", "computing", "computer industry"), \ + "industrial" = list("information technological", "computing", "computer industrial"), \ + "jobs" = list("coders", "electricians", "engineers", "programmers", "devops experts", "developers") + ) + +/datum/industry/it/proc/latin_number(n) + if (n < 20 || !(n % 10)) + switch(n) + if (0) + return "Nihil" + if (1) + return "Unus" + if (2) + return "Duo" + if (3) + return "Tres" + if (4) + return "Quattour" + if (5) + return "Quinque" + if (6) + return "Sex" + if (7) + return "Septem" + if (8) + return "Octo" + if (9) + return "Novem" + if (10) + return "Decim" + if (11) + return "Undecim" + if (12) + return "Duodecim" + if (13) + return "Tredecim" + if (14) + return "Quattourdecim" + if (15) + return "Quindecim" + if (16) + return "Sedecim" + if (17) + return "Septdecim" + if (18) + return "Duodeviginti" + if (19) + return "Undeviginti" + if (20) + return "Viginti" + if (30) + return "Triginta" + if (40) + return "Quadriginta" + if (50) + return "Quinquaginta" + if (60) + return "Sexaginta" + if (70) + return "Septuaginta" + if (80) + return "Octoginta" + if (90) + return "Nonaginta" + else + return "[latin_number(n - (n % 10))] [lowertext(latin_number(n % 10))]" + +/datum/industry/it/generateProductName(var/company_name) + var/list/products = list("generator", "laptop", "keyboard", "memory card", "display", "operating system", "processor", "graphics card", "nanobots", "power supply", "pAI", "mech", "capacitor", "cell") + var/list/prefix = list("the [company_name] ", "the high performance ", "the mobile ", "the portable ", "the professional ", "the extreme ", "the incredible ", "the blazing fast ", "the bleeding edge ", "the bluespace-powered ", null) + var/L = pick(consonant(), "Seed ", "Radiant ", "Robust ", "Pentathon ", "Athlete ", "Phantom ", "Semper Fi ") + var/N = rand(1, 99) + var/prefix2 = "[L][N][prob(5) ? " " + latin_number(N) : null]" + return "[pick(prefix)][prefix2] [pick(products)]" + +/datum/industry/communications + name = "Communications" + tokens = list( \ + "industry" = list("telecommunications", "telecomms"), \ + "industrial" = list("telecommunicational"), \ + "jobs" = list("electrical engineers", "microengineers", "developers") + ) + +/datum/industry/communications/generateProductName(var/company_name) + var/list/products = list("mobile phone", "PDA", "tablet computer", "newscaster", "social network") + var/list/prefix = list("the [company_name] ", "the high performance ", "the mobile ", "the portable ", "the professional ", "the extreme ", "the incredible ", "the blazing fast ", "the bleeding edge ", null) + var/L = pick("[lowertext(consonant())]Phone ", "Universe ", "Xperience ", "Next ", "Engin Y ", "Cyborg ", "[consonant()]") + var/N = rand(1,99) + var/prefix2 = "[L][N][prob(25) ? pick(" Tiny", " Mini", " Micro", " Slim", " Water", " Air", " Fire", " Earth", " Nano", " Pico", " Femto", " Planck") : null]" + return "[pick(prefix)][prefix2] [pick(products)]" + +/datum/industry/health + name = "Medicine" + tokens = list( \ + "industry" = list("medicine"), \ + "industrial" = list("medicinal"), \ + "jobs" = list("medical doctors", "nurses", "paramedics", "psychologists", "psychiatrists", "chemists") + ) + +/datum/industry/health/generateProductName(var/company_name) + var/list/prefix = list("amino", "nucleo", "nitro", "panto", "meth", "eth", "as", "algo", "coca", "hero", "lotsu", "opiod", "morph", "trinitro", "prop", "but", "acet", "acyclo", "lansop", "dyclo", "hydro", "oxycod", "vicod", "cannabi", "cryo", "dex", "chloro") + var/list/suffix = list("phen", "pirin", "pyrine", "ane", "amphetamine", "prazoline", "ine", "yl", "amine", "aminophen", "one", "ide", "phenate", "anol", "toulene", "glycerine", "vir", "tol", "trinic", "oxide") + var/list/uses = list("antidepressant", "analgesic", "anesthetic", "antiretroviral", "antiviral", "antibiotic", "cough drop", "depressant", "hangover cure", "homeopathic", "fertility drug", "hypnotic", "narcotic", "laxative", "multivitamin", "patch", "purgative", "relaxant", "steroid", "sleeping pill", "suppository", "tranquilizer") + return "[pick(prefix)][pick(suffix)], the [pick(uses)]" + +/datum/industry/consumer + name = "Consumer" + tokens = list( \ + "industry" = list("shops", "stores"), \ + "industrial" = list("consumer industrial"), \ + "jobs" = list("shopkeepers", "assistants", "manual daytime hygiene engineers", "janitors", "chefs", "cooks") + ) + +/datum/industry/consumer/generateProductName(var/company) + var/list/meat = list("chicken", "lizard", "corgi", "monkey", "goat", "fly", "xenomorph", "human", "walrus", "wendigo", "bear", "clown", "turkey", "pork", "carp", "crab", "mimic", "mystery") + var/list/qualifier = list("synthetic", "organic", "bio", "diet", "sugar-free", "paleolithic", "homeopathic", "recycled", "reclaimed", "vat-grown") + return "the [pick(qualifier)] [pick(meat)] meat product line" + +/datum/industry/mining + name = "Mining" + tokens = list( \ + "industry" = list("mines", "large scale mining operations"), \ + "industrial" = list("resource acquisitional"), \ + "jobs" = list("shaft miners", "drill operators", "mining foremen", "gibtonite handlers") + ) + +/datum/industry/mining/generateProductName(var/company) + var/list/equipment = list("drill", "pickaxe", "shovel", "jackhammer", "mini-pickaxe", "power hammer", "power gloves", "power armor", "hardsuit", "kinetic accelerator", "resonator", "oxygen tank", "emergency bike horn") + var/list/material = list("mauxite", "pharosium", "molitz", "adamantium", "mithril", "cobryl", "bohrum", "claretine", "viscerite", "syreline", "cerenkite", "plasmastone", "gold", "koshmarite", "phoron", "carbon dioxide") + return "the [pick(material)] [pick(equipment)]" + +/datum/industry/defense + name = "Defense" + tokens = list ( \ + "industry" = list("defense", "warfare", "security", "law enforcement"), \ + "industrial" = list("defense"), \ + "jobs" = list("security officers", "government officials", "soldiers", "weapons engineers") + ) + +/datum/industry/defense/generateProductName(var/company) + var/list/equipment = list("energy gun", "laser gun", "machine gun", "grenade", "stun baton", "artillery", "bomb", "attack drone", "missile", "chem sprayer") + var/list/material = list("bluespace", "stealth", "heat-seeking", "crime-seeking", "wide-range", "bioterror", "auto-reloading", "smart", "sentient", "rapid-fire", "species-targeting", "gibtonite", "mass-market", "perpetual-motion", "nuclear", "fission", "fusion") + return "the [pick(material)] [pick(equipment)]" \ No newline at end of file diff --git a/code/modules/stockmarket/logs.dm b/code/modules/stockmarket/logs.dm new file mode 100644 index 0000000000..e76831032a --- /dev/null +++ b/code/modules/stockmarket/logs.dm @@ -0,0 +1,14 @@ +/datum/stock_log + var/user_name = "" + var/company_name = "" + var/shareprice + var/money + var/stocks + var/time + + +/datum/stock_log/buy + +/datum/stock_log/sell + +/datum/stock_log/borrow \ No newline at end of file diff --git a/code/modules/stockmarket/stockmarket.dm b/code/modules/stockmarket/stockmarket.dm new file mode 100644 index 0000000000..95d456d67a --- /dev/null +++ b/code/modules/stockmarket/stockmarket.dm @@ -0,0 +1,170 @@ + + +/datum/stockMarket + var/list/stocks = list() + var/list/balances = list() + var/list/last_read = list() + var/list/stockBrokers = list() + var/list/logs = list() + +/datum/stockMarket/New() + ..() + generateBrokers() + generateStocks() + START_PROCESSING(SSobj, src) + +/datum/stockMarket/proc/balanceLog(var/whose, var/net) + if (!(whose in balances)) + balances[whose] = net + else + balances[whose] += net +/datum/stockMarket/proc/generateBrokers() + stockBrokers = list() + var/list/fnames = list("Goldman", "Edward", "James", "Luis", "Alexander", "Walter", "Eugene", "Mary", "Morgan", "Jane", "Elizabeth", "Xavier", "Hayden", "Samuel", "Lee") + var/list/names = list("Johnson", "Rothschild", "Sachs", "Stanley", "Hepburn", "Brown", "McColl", "Fischer", "Edwards", "Becker", "Witter", "Walker", "Lambert", "Smith", "Montgomery", "Lynch", "Roosevelt", "Lehman") + var/list/locations = list("Earth", "Luna", "Mars", "Saturn", "Jupiter", "Uranus", "Pluto", "Europa", "Io", "Phobos", "Deimos", "Space", "Venus", "Neptune", "Mercury", "Kalliope", "Ganymede", "Callisto", "Amalthea", "Himalia", "Sybil", "Basil", "Badger", "Terry", "Artyom") + var/list/first = list("The", "First", "Premier", "Finest", "Prime") + var/list/company = list("Investments", "Securities", "Corporation", "Bank", "Brokerage", "& Co.", "Brothers", "& Sons", "Investement Firm", "Union", "Partners", "Capital", "Trade", "Holdings") + for(var/i in 1 to 5) + var/pname = "" + switch (rand(1,5)) + if (1) + pname = "[prob(10) ? pick(first) + " " : null][pick(names)] [pick(company)]" + if (2) + pname = "[pick(names)] & [pick(names)][prob(25) ? " " + pick(company) : null]" + if (3) + pname = "[prob(45) ? pick(first) + " " : null][pick(locations)] [pick(company)]" + if (4) + pname = "[prob(10) ? "The " : null][pick(names)] [pick(locations)] [pick(company)]" + if (5) + pname = "[prob(10) ? "The " : null][pick(fnames)] [pick(names)][prob(10) ? " " + pick(company) : null]" + if (pname in stockBrokers) + i-- + continue + stockBrokers += pname + +/datum/stockMarket/proc/generateDesignation(var/name) + if (length(name) <= 4) + return uppertext(name) + var/list/w = splittext(name, " ") + if (w.len >= 2) + var/d = "" + for(var/i in 1 to min(5, w.len)) + d += uppertext(ascii2text(text2ascii(w[i], 1))) + return d + else + var/d = uppertext(ascii2text(text2ascii(name, 1))) + for(var/i in 2 to length(name)) + if (prob(100 / i)) + d += uppertext(ascii2text(text2ascii(name, i))) + return d + +/datum/stockMarket/proc/generateStocks(var/amt = 15) + var/list/fruits = list("Banana", "Mimana", "Watermelon", "Ambrosia", "Pomegranate", "Reishi", "Papaya", "Mango", "Tomato", "Conkerberry", "Wood", "Lychee", "Mandarin", "Harebell", "Pumpkin", "Rhubarb", "Tamarillo", "Yantok", "Ziziphus", "Oranges", "Gatfruit", "Daisy", "Kudzu") + var/list/tech_prefix = list("Nano", "Cyber", "Funk", "Astro", "Fusion", "Tera", "Exo", "Star", "Virtual", "Plasma", "Robust", "Bit", "Future", "Hugbox", "Carbon", "Nerf", "Buff", "Nova", "Space", "Meta", "Cyber") + var/list/tech_short = list("soft", "tech", "prog", "tec", "tek", "ware", "", "gadgets", "nics", "tric", "trasen", "tronic", "coin") + var/list/random_nouns = list("Johnson", "Cluwne", "General", "Specific", "Master", "King", "Queen", "Table", "Rupture", "Dynamic", "Massive", "Mega", "Giga", "Certain", "Singulo", "State", "National", "International", "Interplanetary", "Sector", "Planet", "Burn", "Robust", "Exotic", "Solar", "Lunar", "Chelp", "Corgi", "Lag", "Lizard") + var/list/company = list("Company", "Factory", "Incorporated", "Industries", "Group", "Consolidated", "GmbH", "LLC", "Ltd", "Inc.", "Association", "Limited", "Software", "Technology", "Programming", "IT Group", "Electronics", "Nanotechnology", "Farms", "Stores", "Mobile", "Motors", "Electric", "Designs", "Energy", "Pharmaceuticals", "Communications", "Wholesale", "Holding", "Health", "Machines", "Astrotech", "Gadgets", "Kinetics") + for (var/i = 1, i <= amt, i++) + var/datum/stock/S = new + var/sname = "" + switch (rand(1,6)) + if(1) + while (sname == "" || sname == "FAG") // honestly it's a 0.6% chance per round this happens - or once in 166 rounds - so i'm accounting for it before someone yells at me + sname = "[consonant()][vowel()][consonant()]" + if (2) + sname = "[pick(tech_prefix)][pick(tech_short)][prob(20) ? " " + pick(company) : null]" + if (3 to 4) + var/fruit = pick(fruits) + fruits -= fruit + sname = "[prob(10) ? "The " : null][fruit][prob(40) ? " " + pick(company): null]" + if (5 to 6) + var/pname = pick(random_nouns) + random_nouns -= pname + switch (rand(1,3)) + if (1) + sname = "[pname] & [pname]" + if (2) + sname = "[pname] [pick(company)]" + if (3) + sname = "[pname]" + S.name = sname + S.short_name = generateDesignation(S.name) + S.current_value = rand(10, 125) + var/dv = rand(10, 40) / 10 + S.fluctuational_coefficient = prob(50) ? (1 / dv) : dv + S.average_optimism = rand(-10, 10) / 100 + S.optimism = S.average_optimism + (rand(-40, 40) / 100) + S.current_trend = rand(-200, 200) / 10 + S.last_trend = S.current_trend + S.disp_value_change = rand(-1, 1) + S.speculation = rand(-20, 20) + S.average_shares = round(rand(500, 10000) / 10) + S.outside_shareholders = rand(1000, 30000) + S.available_shares = rand(200000, 800000) + S.fluctuation_rate = rand(6, 20) + S.generateIndustry() + S.generateEvents() + stocks += S + last_read[S] = list() + +/datum/stockMarket/process() + for (var/stock in stocks) + var/datum/stock/S = stock + S.process() + +/datum/stockMarket/proc/add_log(var/log_type, var/user, var/company_name, var/stocks, var/shareprice, var/money) + var/datum/stock_log/L = new log_type + L.user_name = user + L.company_name = company_name + L.stocks = stocks + L.shareprice = shareprice + L.money = money + L.time = time2text(world.timeofday, "hh:mm") + logs += L + +GLOBAL_DATUM_INIT(stockExchange, /datum/stockMarket, new) + +/proc/plotBarGraph(var/list/points, var/base_text, var/width=400, var/height=400) + var/output = "" + if (points.len && height > 20 && width > 20) + var/min = points[1] + var/max = points[1] + for (var/v in points) + if (v < min) + min = v + if (v > max) + max = v + var/cells = (height - 20) / 20 + if (cells > round(cells)) + cells = round(cells) + 1 + var/diff = max - min + var/ost = diff / cells + if (min > 0) + min = max(min - ost, 0) + diff = max - min + ost = diff / cells + var/cval = max + var/cwid = width / (points.len + 1) + for (var/y = cells, y > 0, y--) + if (y == cells) + output += "" + else + output += "" + for (var/x = 0, x <= points.len, x++) + if (x == 0) + output += "" + else + var/v = points[x] + if (v >= cval) + output += "" + else + output += "" + output += "" + cval -= ost + output += "" + else + output += "" + output += "" + + return "[output]
[round(cval - ost)]  
[base_text]
[base_text]
" \ No newline at end of file diff --git a/code/modules/stockmarket/stocks.dm b/code/modules/stockmarket/stocks.dm new file mode 100644 index 0000000000..c03c6aab2b --- /dev/null +++ b/code/modules/stockmarket/stocks.dm @@ -0,0 +1,308 @@ +/datum/borrow + var/broker = "" + var/borrower = "" + var/datum/stock/stock = null + var/lease_expires = 0 + var/lease_time = 0 + var/grace_time = 0 + var/grace_expires = 0 + var/share_amount = 0 + var/share_debt = 0 + var/deposit = 0 + var/offer_expires = 0 + +/datum/stock + var/name = "Stock" + var/short_name = "STK" + var/desc = "A company that does not exist." + var/list/values = list() + var/current_value = 10 + var/last_value = 10 + var/list/products = list() + + var/performance = 0 // The current performance of the company. Tends itself to 0 when no events happen. + + // These variables determine standard fluctuational patterns for this stock. + var/fluctuational_coefficient = 1 // How much the price fluctuates on an average daily basis + var/average_optimism = 0 // The history of shareholder optimism of this stock + var/current_trend = 0 + var/last_trend = 0 + var/speculation = 0 + var/bankrupt = 0 + + var/disp_value_change = 0 + var/optimism = 0 + var/last_unification = 0 + var/average_shares = 100 + var/outside_shareholders = 10000 // The amount of offstation people holding shares in this company. The higher it is, the more fluctuation it causes. + var/available_shares = 500000 + + var/list/borrow_brokers = list() + var/list/shareholders = list() + var/list/borrows = list() + var/list/events = list() + var/list/articles = list() + var/fluctuation_rate = 15 + var/fluctuation_counter = 0 + var/datum/industry/industry = null + +/datum/stock/proc/addEvent(var/datum/stockEvent/E) + events |= E + +/datum/stock/proc/addArticle(var/datum/article/A) + if (!(A in articles)) + articles.Insert(1, A) + A.ticks = world.time + +/datum/stock/proc/generateEvents() + var/list/types = typesof(/datum/stockEvent) - /datum/stockEvent + for (var/T in types) + generateEvent(T) + +/datum/stock/proc/generateEvent(var/T) + var/datum/stockEvent/E = new T(src) + addEvent(E) + +/datum/stock/proc/affectPublicOpinion(var/boost) + optimism += rand(0, 500) / 500 * boost + average_optimism += rand(0, 150) / 5000 * boost + speculation += rand(-1, 50) / 10 * boost + performance += rand(0, 150) / 100 * boost + +/datum/stock/proc/generateIndustry() + if (findtext(name, "Farms")) + industry = new /datum/industry/agriculture + else if (findtext(name, "Software") || findtext(name, "Programming") || findtext(name, "IT Group") || findtext(name, "Electronics") || findtext(name, "Electric") || findtext(name, "Nanotechnology")) + industry = new /datum/industry/it + else if (findtext(name, "Mobile") || findtext(name, "Communications")) + industry = new /datum/industry/communications + else if (findtext(name, "Pharmaceuticals") || findtext(name, "Health")) + industry = new /datum/industry/health + else if (findtext(name, "Wholesale") || findtext(name, "Stores")) + industry = new /datum/industry/consumer + else + var/ts = typesof(/datum/industry) - /datum/industry + var/in_t = pick(ts) + industry = new in_t + for (var/i = 0, i < rand(2, 5), i++) + products += industry.generateProductName(name) + +/datum/stock/proc/frc(amt) + var/shares = available_shares + outside_shareholders * average_shares + var/fr = amt / 100 / shares * fluctuational_coefficient * fluctuation_rate * max(-(current_trend / 100), 1) + if ((fr < 0 && speculation < 0) || (fr > 0 && speculation > 0)) + fr *= max(abs(speculation) / 5, 1) + else + fr /= max(abs(speculation) / 5, 1) + return fr + +/datum/stock/proc/supplyGrowth(amt) + var/fr = frc(amt) + available_shares += amt + if (abs(fr) < 0.0001) + return + current_value -= fr * current_value + +/datum/stock/proc/supplyDrop(amt) + supplyGrowth(-amt) + +/datum/stock/proc/fluctuate() + var/change = rand(-100, 100) / 10 + optimism * rand(200) / 10 + optimism -= (optimism - average_optimism) * (rand(10,80) / 1000) + var/shift_score = change + current_trend + var/as_score = abs(shift_score) + var/sh_change_dev = rand(-10, 10) / 10 + var/sh_change = shift_score / (as_score + 100) + sh_change_dev + var/shareholder_change = round(sh_change) + outside_shareholders += shareholder_change + var/share_change = shareholder_change * average_shares + if (as_score > 20 && prob(as_score / 4)) + var/avg_change_dev = rand(-10, 10) / 10 + var/avg_change = shift_score / (as_score + 100) + avg_change_dev + average_shares += avg_change + share_change += outside_shareholders * avg_change + + var/cv = last_value + supplyDrop(share_change) + available_shares += share_change // temporary + + if (prob(25)) + average_optimism = max(min(average_optimism + (rand(-3, 3) - current_trend * 0.15) / 100, 1), -1) + + var/aspec = abs(speculation) + if (prob((aspec - 75) * 2)) + speculation += rand(-4, 4) + else + if (prob(50)) + speculation += rand(-4, 4) + else + speculation += rand(-400, 0) / 1000 * speculation + if (prob(1) && prob(5)) // pop that bubble + speculation += rand(-4000, 0) / 1000 * speculation + + if (current_value < 5) + current_value = 5 + + if (performance != 0) + performance = rand(900,1050) / 1000 * performance + if (abs(performance) < 0.2) + performance = 0 + + disp_value_change = (cv < current_value) ? 1 : ((cv > current_value) ? -1 : 0) + last_value = current_value + if (values.len >= 50) + values.Cut(1,2) + values += current_value + + if (current_value < 10) + unifyShares() + + last_trend = current_trend + current_trend += rand(-200, 200) / 100 + optimism * rand(200) / 10 + max(50 - abs(speculation), 0) / 50 * rand(0, 200) / 1000 * (-current_trend) + max(speculation - 50, 0) * rand(0, 200) / 1000 * speculation / 400 + +/datum/stock/proc/unifyShares() + for (var/I in shareholders) + var/shr = shareholders[I] + if (shr % 2) + sellShares(I, 1) + shr -= 1 + shareholders[I] /= 2 + if (!shareholders[I]) + shareholders -= I + for (var/datum/borrow/B in borrow_brokers) + B.share_amount = round(B.share_amount / 2) + B.share_debt = round(B.share_debt / 2) + for (var/datum/borrow/B in borrows) + B.share_amount = round(B.share_amount / 2) + B.share_debt = round(B.share_debt / 2) + average_shares /= 2 + available_shares /= 2 + current_value *= 2 + last_unification = world.time + +/datum/stock/process() + for (var/B in borrows) + var/datum/borrow/borrow = B + if (world.time > borrow.grace_expires) + modifyAccount(borrow.borrower, -max(current_value * borrow.share_debt, 0), 1) + borrows -= borrow + if (borrow.borrower in GLOB.FrozenAccounts) + GLOB.FrozenAccounts[borrow.borrower] -= borrow + if (length(GLOB.FrozenAccounts[borrow.borrower]) == 0) + GLOB.FrozenAccounts -= borrow.borrower + qdel(borrow) + else if (world.time > borrow.lease_expires) + if (borrow.borrower in shareholders) + var/amt = shareholders[borrow.borrower] + if (amt > borrow.share_debt) + shareholders[borrow.borrower] -= borrow.share_debt + borrows -= borrow + if (borrow.borrower in GLOB.FrozenAccounts) + GLOB.FrozenAccounts[borrow.borrower] -= borrow + if (length(GLOB.FrozenAccounts[borrow.borrower]) == 0) + GLOB.FrozenAccounts -= borrow.borrower + qdel(borrow) + else + shareholders -= borrow.borrower + borrow.share_debt -= amt + if (bankrupt) + return + for (var/B in borrow_brokers) + var/datum/borrow/borrow = B + if (borrow.offer_expires < world.time) + borrow_brokers -= borrow + qdel(borrow) + if (prob(5)) + generateBrokers() + fluctuation_counter++ + if (fluctuation_counter >= fluctuation_rate) + for (var/E in events) + var/datum/stockEvent/EV = E + EV.process() + fluctuation_counter = 0 + fluctuate() + +/datum/stock/proc/generateBrokers() + if (borrow_brokers.len > 2) + return + if (!GLOB.stockExchange.stockBrokers.len) + GLOB.stockExchange.generateBrokers() + var/broker = pick(GLOB.stockExchange.stockBrokers) + var/datum/borrow/B = new + B.broker = broker + B.stock = src + B.lease_time = rand(4, 7) * 600 + B.grace_time = rand(1, 3) * 600 + B.share_amount = rand(1, 10) * 100 + B.deposit = rand(20, 70) / 100 + B.share_debt = B.share_amount + B.offer_expires = rand(5, 10) * 600 + world.time + borrow_brokers += B + +/datum/stock/proc/modifyAccount(whose, by, force=0) + if (SSsupply.points) + if (by < 0 && SSsupply.points + by < 0 && !force) + return 0 + SSsupply.points += by + GLOB.stockExchange.balanceLog(whose, by) + return 1 + return 0 + +/datum/stock/proc/borrow(var/datum/borrow/B, var/who) + if (B.lease_expires) + return 0 + B.lease_expires = world.time + B.lease_time + var/old_d = B.deposit + var/d_amt = B.deposit * current_value * B.share_amount + if (!modifyAccount(who, -d_amt)) + B.lease_expires = 0 + B.deposit = old_d + return 0 + B.deposit = d_amt + if (!(who in shareholders)) + shareholders[who] = B.share_amount + else + shareholders[who] += B.share_amount + borrow_brokers -= B + borrows += B + B.borrower = who + B.grace_expires = B.lease_expires + B.grace_time + if (!(who in GLOB.FrozenAccounts)) + GLOB.FrozenAccounts[who] = list(B) + else + GLOB.FrozenAccounts[who] += B + return 1 + +/datum/stock/proc/buyShares(var/who, var/howmany) + if (howmany <= 0) + return + howmany = round(howmany) + var/loss = howmany * current_value + if (available_shares < howmany) + return 0 + if (modifyAccount(who, -loss)) + supplyDrop(howmany) + if (!(who in shareholders)) + shareholders[who] = howmany + else + shareholders[who] += howmany + return 1 + return 0 + +/datum/stock/proc/sellShares(var/whose, var/howmany) + if (howmany < 0) + return + howmany = round(howmany) + var/gain = howmany * current_value + if (shareholders[whose] < howmany) + return 0 + if (modifyAccount(whose, gain)) + supplyGrowth(howmany) + shareholders[whose] -= howmany + if (shareholders[whose] <= 0) + shareholders -= whose + return 1 + return 0 + +/datum/stock/proc/displayValues(var/mob/user) + user << browse(plotBarGraph(values, "[name] share value per share"), "window=stock_[name];size=450x450") \ No newline at end of file diff --git a/icons/obj/computer.dmi b/icons/obj/computer.dmi index 8ae5c06b72f1e62ccc7160fd0ddad650c24ae233..219e10bd5570af5c493e33fd603ae7e0288305b6 100644 GIT binary patch delta 18547 zcmZ^~cU%-r&@MU)A}ErxL=^-D1VjZSEP^OV77-*ZK?EdAjspS$f*_J}5ELZm%py_A zIp>_iE@@%ey~F#y-#O==-@X0M%ueX(>aMPO>Z#h*?5mYcSHCilH~0!6_UvcMBzZb^d}f26wtt8LQ=E!j{*k$0yrut%(LgV94b8}Co;M!FW! z52~~*HyhwGU73SEbFLD}Q=>}G3D+i`kC2BRC&4M~v_j~-zI%PAW&J|6>t5r~+xNuF z#AU!oTK{KvtMcQZYNDR1(X|2l>OZj|J~@r2g&_yzSM%^SoC}{V)_py`ge^&EasKtV z^j=b#+Gw8Ei0^WkBNnXY&rRpdacPT);w1~0pXk2rMipV}aGv`|{LS;2!IG%VJKXCv z7Cg^CF6I;>madFMK1*oc`;cg3wKN@$yIy8eC!;Vi;!4o@;QG1=lNgW7re|^?+R491 zW$M|7ms=-#!>)yfaR+1QQv>^VD%wHOW5w5}uPO_z&?%H;$#V695_4o#!O=H}9_qmL z4@e`mw`~j)2sp0unv~yD($w=?j__xHe0UqNG98|F<>U>oBZ^V%9C=zC;nJ{^b$gui z(xBDAQ2C2O%X#Ewy``t4BARUIO`5Om_f<%4<(RKm_k7H*k_5hQvuC`?J9j0QJ&)P< zORKDE4$6A$ru{17E?C+S^0oH1o`Z1lH0n%8U-%PsC@fyOWGs7kY{ZI!r`Mf|BSN zDMlPD9x%c~y)#$bzzv!n$^@MosoFOL_y*K>qa|J$q!q+}^qLUT#gaIC=27)MuNQa5 zkhjno^4#h{hncLYeDwIN#;q-E__aBZDW!*%jrMDYD$!@b;k7WgMwU!p$D89KY0q{Y zrxj}!%G(pDI_ILl-g~2Axb%1|uQV)j8@M`_dY1)=`WzKtPd ziA`Lp_l+46p3+4BOnE9VG~f8;liBs~;)={cX+9)vu#1y-s)y~q?rAw||2LflT~{G8 z6~@+z&fE6pT`51J?BLd_z2LG|JX~GWdw{doR=%F&XWbuyT4gmpxO> z23(5>23NI1K7BO0ev|bb1@Q{y`o2e_c`j{Klv6{Gmdk?)LA?i|9$)@SPVB1&KCgcn z{OJphg*heU`9AJ9qF(o&#ZC7oVexAYN89a+N2qfr99;MKIZ>LFgNvBo*`>gbJ({ZjGL(dzA; z)pPg#iOH?5(zCyO;2U zx9(2@rHKSr5y=U*KEq}=iX0|00+MG<#4GuA#xRl<|LZ6CfBoi9P?8cu*w>cX3Q_lH zzUNc!|Ac9Ow8B1_@etqW;nN+hk63A_SK3|im$y=U}8eT?mj#X}djPB9eb|C}Ts&5lq=-$D8c-WPQIg+u^nR2vA(<+r((QS0(? znzk_L`C0XKpbH*D2c2SHtgwf)^!k{O;|WsU-X4Z{WCH}|DOi6z^L9dH2ta_H+j zXT)RQPv(O`!nR<4EDT4+*t(O7|KNN+8T!__8(|4wo%PxItTpD)F*kB=JkIk&!@@UX zVrYK4;1vOp;2a+OZfdDF5s^GepR<*Kd@a5;&|q#fiiLTUbLosf1Z&H=FAj|<)}J3a z_ple))@I1hux|fJjSj=US#NyY%|4?%db(f-NT20mcnqk*lWw`uSMod-0tx()ge&Zc z7Xti+*WCWi03Mch7Dm36!pt_-zkcM;*NniM1df1aUR*xcgqdYx=JChHA+s2zK_RRu zH{fy27v|&7?E=Wh+K{3LwMSFT-&NjF1JEKgXl|hKOMe7X^6UX|Ct3?x{Yz2(!Qw2i zKZ+k)tWHJSavbg1`kaUuib7YCn)GxJ0m@dm9_N9|jpngp;-DZ5b2x^^CmR};yAK#F zvjtng<_>19y%112+DJM3ft^8B;a#zBw6>#qzc%1%vsuwh_b~00dR1=Wj&Hne-I5B0 zXIBAR!s5`iB%W)j@)9am9$p`f$gHHbesa&hI3TgXE z6-hoF1Pgf=!H2M=baOX;l-aV8Y-JygG7kB8MZge8u)>bJpI+8`w?6@#BNFTtV06Cz zj?)<&{cfGIxwoc+5ML2a8~3_0*VOId?`POsIe=#PBM%pkhBUNGVFqka`y`Fw@d0Kq z;doEt4g>kd%-#T*AY;jt?Xu2zw9JJvY$JWuMwb^cC~WJ3R^u5QJ(@bQ>Xdzk3@0E- ztH&dtiTNOj#fpTd;!FJ&FnZym>*e^`V~-VEs(j}FAtD*YaQi=!Ng>~csDZBq+{t5n z{EJqYtPO|GNYI;U=zc`wj+q8cU}Mw~|1(@(T~VO45XiOCi_N$36X=@N{&z2n3Rr63W6GIGmqdzlx{fVUR8U%8E!>*2@hgGuCx>QlTEzW4t_*1!@4@qK^=7uSi0$Q zTkWM<;M90EkLrdfa94pJMo&hZGL!CVGjL_O=EY1v5&5wx=hfp^=x2(eTES$~cO&e` z2TVl|x)3@z{o|TjkP2dQS5sf17me)LI#kZ`@{1{;{a=d;wGuy_IFLE0f+>KL?KOMy=ji~NZ$SnZ+r0RGVH zJYeA&hw)txn;N$On@WhB8pB0+wMJeNbC8+m$SS}xO>cECMWWRwDjD+y$X!%FQgG(s z1{Pj3IRNzXI0dfobklxCZ*=U{RDP!&kAVZ5f;(}@V;uV{990-57sPQ#OI%)+Pbc|t ziV-Lf{zy6}eXw#NGP*MWJFp?VokPb7q&at(rRNI&$;)I?a-uF6pk=32Q@8~(7?>HOdWj}n{lyyp4gk`5JHoJYmf}$G6gt&D_ zpGVTkHg&*ddX>0(9B66IkgMJT-fUH^pfPR%w|o3hx3TY>z0U<7KGzF!Jj3B*ckwJ`JlGJW% zKX|rz&~KhBb)CO(Ch%XI@2$N#_z)CwSg~ak!mA|CmfGTY1Hdi>=sbf572n0!;YGAX zF~n1ZO4bcD;y3~xw!Dx?TH@|MY#dZr(xM5^=gwV-QzFqJtlt)lnpDz9VpS~UpLL?< z#aMQ`ydA}A24)g>^!jfUpJLcG@OWY&V)MKu_VKEaZUEo_6rMhLbw#rA;i?JQ%YoqT zje%{t#+ckJlqfKppr>n-mLv#ON-bQecwESCeHCVvq7=*g_BtcM!T8{#ImlJFP? zdSTFSTnz6&kSx#Vakc8buJ)!8ZlVLp%X)udhmSnOR|N1ZBp!I=sF%esZdcu>^e&i>3EPT8VmTO{QZJX^ z+re)b@8H3Gyf-F1>D>}?W9*3+LVF)A? z;3Lm7e_Jw=bWJZtayl8DI|HRJV(zm$@C(9t{N`*gBcNm z#Qv+X2SK;k_FU;@rpm}=>J4nU>X6cbqL*&HL}{IUW3z{>esc%B<%Vm-H~1V|0mdr# zK#cO@YCQ7W#2MwoGkDrAj(s^5FHMWZ@BRedo8p|eVH=zGsh3&)%0l~oiRG_`p4KgI zjFz|{RcfRICq=#(lX>^wK2R?l&RoMU-BkU8Qxf}#`ZZ_~BJ2~KnJ%C%(~E8GI_yAN zPfd5t8a`W^_3nICHhVw%47}7Qd;u)HacAx}9Hd!=_ft%eJ zNeYM$0yppAgYZOSy>I0GHeeiD>kR__H|05(cg6HT;f0esuZ6&@>@)1K zFmcxF@OB?mxNk2$sCTxP#Zd>pD~#v)%Pws(Yg~p*pa6ovDiX2hC^g77Us-(|W6}Nh z>!FLy`zlzfTvlT=@Mw}8u4AHp;c~SQuaK)t-5`xp^>k+IsSW&&>3}zc z5K4P!Z$ry606O3q(7m;{4v?@F+X6!rlF#FD(({3bXof2wu{2LA(Lc_&2+r^Id$*3^ z^%bWEvdOC-s13S<5l%^ViI~Jcs<5HaB(2W^=Uwpom^(hF3Ft7)b6*aXru0Wb^`q{N zjaX&cIR)1;6{U37FqJrD^#zd8cCP;y%YYD=2~(pS%htq1Quy0cPjP z@ca+)@A;JXGv*6VQeE$WsW;U*FsZ2rwLT~YVTx5C4wJ~+cYd*33vj8nL~0kbg=L$pw!Q)GYXHL= zu$#(i{0NG=RQ9Xl$aZHNUHOk|uwRda%Kb6AGZkMi^%K6bHg+#u4UPlfk`xhVj|AW0 z?3zVY1pI>H1k?_t_o2Wx=~6Fh2gY%9x|g&!ita?Z&e81n+F8b0<#5Y955KfY@nG8y z_#q;RW)Q;vp|ZniS^KT}?}E?hz&NB^=or44E+0cIrBNj6`K<0*v3UIriAnkeHFn)S zdwNmnxUUtE!~AS?#gt@^VNMM_&>?kzIXIwG#+=>pabGDE-HgX_Xj`++*KxlepInv< z`++^Dm0rdWPZM$u9Y5vu*ukHoH2}>?yuEPfIhJ^+w6fEK1$rBVUf;o|NXl?Qy+lhM zgR-1Sxh z`vNf^3%E4Itn_Y?G5m>jhV1AwXlp=I+!G0t?{kIJNDW*Nf;Eq2q^bh@rtyiAK<8I z`3vRtKQ~fX@Q6D1q>e)&L;EA~RrX(vc;lAA50hDw;_-pwG^OGCI^(^=RjC>5&?#1m z(m?_=qBtx=f6`u+Q8BuQGRxY$zb@id>VfN;(T0MqaY?)ykpWQZ&`Z%9Y_dHCj>u;o zdQU8Sy~C}P4tjK9yG<*P<1vZtVY@Q-xAG@A=b z0>3=P=ke)}IHmo15qn5UMFmo=`w|rab{X|!|A|^0g{<>gbenb%D_?ath%Ia$b;zG- za7``T{u|=|p6CGvz1%90?=+#W+-)Gr;-`+P6e&6pY2F(~CJLg&|DJ5jD!ZQ5n~0_+ zgjE=MX{JtEj8b*Q2@*Yg=n?VuLoGB_L7ql1KIur+9<8Z+;I?k4zk~B*1_`F%|A-Dr zuzVq6WZQ6r?#^T^e6-Y%e$9PZ?m@ncLFQ?HS$CC}7rlW!;`8I}#~(w`tLf;Etw36p z3N&4BpY!<;rMt>WO!N)|0QHMSpJ93tlHy_U-}gRiwcPUNLWf(3+{bHk;@By9Q}H-= zOQKqkTr%X%#hS>(BCY+=HQOus;ce-N)Z6O=8k0e}eCBk}f~)Uo1Eew#?*I&_*WF}m zRLM=eWwHJ33q&^XZ0qvrKhxN~Bu+))v+a2L3ZiP_K&y}ztYjdSj-0jpcc#hE2Rf3C z6Q2&{&c?URkwVHwPD)eU>{G}hvCbq+??4n_3ZJo#P0e?)3&7|(m7r& zYrDUrOg#Hy?qxSd+*a`K7O%7}E+(o7;dyTN!W%Yr0Uy6JT>!{&JAPAx&nhHmTSJw38)4J2) zZ_4qN$ESfAlCytPdCGh-o8RC}Aw)$Sj@Q8PD~)Wjh5*O>UshlM%$k&;05&IRy0;!( zx@w4vDf&w(?}JI~R*_Bf-9y=0D7I8=)Q`QcAB}6vd2tCy+8iRJi=OOv%${knc9Cx| z2KsV{btY5@0rCe)ZGr6331c6h(p1tVBqY@TsdpeRDJgh8h0rW#1?qNU*>?LW9zJ}B zQ+CsB$fwY$(ff4@#x)CR-}O1{?HI7yL|J?7VU?N_)&^Is9~R_bXo|Dk5%RsM32-WC zPO4-iDHU0hJ~ex6W;*@lcgvwXEUy*fn698n`11o+Y<6pB1{leFIyE@%ERs(CU1cbzL>yRI8!(@H$g}osU+|@ z-zF^fBrs%3)-caT;h@BXf|3d?67j{|CpZo%wlzYiP5U1ASL>Qjv(VV;{RJl2q4u-< zxzl*d)<3RJ4KeE6kQ;sm*4R4n-L?O?d7kpHdK1tAO zEq+);8Q2J6aM^y8&QkAHFA`d`Ry&rc3(*K-n-RC8j^1!hpb_}r>|RnS-d{8-O#zo( z-jGR-7Y)WfuR=?HkvR)Ht}KY=x=XG9oo5XFhOD1=0(X)fXe-NO_BH2(bvY!Td}R8; zm}f}tJ?#F8=)3zdE{yqZp~b5e4nAGf_1nuzMN5Fj)_L)1v$4ef*!d4DjV`2h>IV{V zDW)_zYqM*X1%(xve%zDGbEV4Rz4hhms&n+L71dep>=TKqFyI$?1tFj#DMbSpT10y-BxTw^5w+Z|36&U)y~NOFRBatzqqdAZ=lS_J*Tu~ ztlN4+X3NvEii*22RP3rRwiugMtFHkEyR+=X<*Va&Cy3 z*NE+?O3i$-x1o7?x#}p9v~|n*YccSI3MN~x2jt8RFYi@Co+7i|`+>DEWI~?39vKE> z=o>p;h`bn$<#*$sTkZB*xY7C;+Ux%HUO?R8BHj^^NZGd>v*C5a7VfYneX;>7f#$^h zcr(CM(V+Q27yZ!y$ri)!Mpl1z*hGKq`P_Z5W7gqyttne&cL(@8Ymp-g;opfdGZ6;A zpH}`_-L?N?uzX%^xPpV1VCW24K(%r=(y!!YD@xLN%c&1{NM1g3!>6W{%ZX}E{6;Gn zghxnb(>H#gSj||{2mZ+ID5Yhlkyn>GsHY6s1Fyd65b#|mm&j+i8j~sU7 zh;YtlsqdxquB_fIPS@q4?s-ykEieW1oDgCZ%h^nDU9(*k+5NZhD#?#;2!TRW-Q22o zcT|;>{5zLl^4+3$(&I@X)k|Fj!dS&WJ$32->9RYMUAW8hAcqdw zW#d=JZ%n1+xdYi~0B8?mjjXsKrDY|%J5#S-T4@rOROtNKdV3~6vFuv>>QQ@1U!f|E z4MITA{d8lNHT;TMwZvLIH5h41&dNjgx<>Cdmdvudnu}YYEy&@-e`9av@p`Duf?f8Y zf@EL$vcKaUBn3&{&jct*;sZ3suM7^9Yuzd)ZfcPr1Q~y$3c`9u6v~|0~jed-UoH!vd zG3(}=W1HzYJ5k!gfUf=H*k5}i&lmSTKcgs$m{o{j^JoR93A=1AXHvB8|By8}MvT>FAi}!us61p z<=EB?Gey=HGs+=jgoadT7xW)^4!9&_sII`17{Y@o9Z<)0JLZrWKdfB}muvQw;~Hog z9WXJTug&W5Qq|#6E+JdhoK!25xV3SF?@1Q_-q2uh_uiM9Bb}kq(Z!)0jkT%j(y~zP zE+(h#a&sG-XI@^C392biM?3FD#waK$Jxz_GeZV4lHL%&2U$^o_xSR}g4+5<6NvQV_ z+L*8`Hr;%Epr8N)%F4?XIv=D;1fQO|=SWvVmxs2dbItvVbP72L{UbB4-;p-+rO_MERaf zKyP(lR~-G*(Bc?~q_DL|Xfe+Wl*refaP{2KfGkiR?XCtwl~cj>Ltr0G%VkLbNOL+h zpTEydctv$b8j4E`6%zfZlyE%bzM0?Jp|n`}VH8RH_e+3t8s|e06{x@^QB4?Zs+w+n zIQ?3L$mbAa(r>qoO$It{=*d*EtzU2+;yd_(CUH*?S9s~g%lR2R24j0k5)F6Shl-3-oJg!$T$|FCHdA>sGjTc+wJPyT5x4!OauIBlPAATu*lQ}R*(K}~dd`IYsRkMR zZz@)=$xUA}jYO5bbe?^&+n#lpM;m*k`b)*jvO4-$Q#jFBCUMaJki;ZX_;>?Jc;?|# zBV3~$#GP)4hX>?!!YhtI!zycc;I9z42!*o@0tPJsqznMyVT#rX4iAn^2|onwCd zHz~!S&~)hJ`T&fi`SF3y?XikrG(Jh79I?;4Kkg=~QLXd%mUea=h>syYuQ-0J$% zh>eG%&2YbK?swuDR-|Js9={5wS@ki{dYh(U8To+9tI1Srtbt75BTKRKSV7^5u1rZ8 zoBe`!{e(hWXGhI-_9Rh~B-^Jy^`8TPb@Qn^|LCKjShi`jms%gwQxkIF1T)#DIQPvnzeK{>fti`}4O?nxFCs2@cg z1&_9hMIF4CO^ZX?V=BE2+Of)prnm*lt|;~VM!d!f=sCrdG|s8yWcUu339ofBh75`G zUwZOKDYT!4gGOn3G@bbt*^XdUf!^6lO4Acu%vD0<+N&V-J(yv#VsVP0yez`XnG&L~ zVM?d0sPLuqvce7tJ*wMdSen%2pO1x{@|IFhwj>~~@hi=Dj01j`@w5#a4+?%OWCQ|D ziVC*vMK3RgsKV`2^{M3Lftt>W#cIj=N_G`ymayO1IpZNeWDm_{+nH{*d+wgqR7P|S zKIUiM24fA#AW|1E@T*e~D!T&uyq(3VM~35v%Y3Gwy{3I`R6M)Tg>OW+EPdPr=9 zip1Ag_C7Om)*x=ST6VbioCP#-{kg>Qf~^E#8F^lBvRF90u3A39N_R#I^Q4F^4vE2l zg61T4l&({^@L7JJ=IjN*Qtb%*QA_b3R?r201Y{R#_Q2@jJKl52t4iIep+=nq+K}Bk z79>9w7~k1su5n|p3L?h8C%%0_J%6UYK=S+i`{r;hKdj8*;Ylfk@;Q?TsoBW4=l;sO zlX;bd7@`Yw@K?uAUTw@hxG;8rKgI^aOlo?uvw;~`TgN9ej0oQC=Q%Gd4`G7` ze1D4Gs8okCU=(?(+=pK)s()n5JYGzm8A8F6hY0Zzc}aykw!}2XQWv|`*ylOU<;YTQ za@C2EeWhYM3jdX~si@&QZ-DGEAzZub9N*;zIzpQ^yRd%l;Vb*a-_H)F9IiKReXX?C z#J!c!rEh$3M*sbM*b|V(Hp}fGDncUc3QU;xweZ5xxe>ckhIe&#yxyNe*`PGaKegXk zWljdAXRjZ+aE)(Cz;G?yb7t@o?CCW7H zbuGp6CmT`(=%a_OzRG}<`%|T?RFt~)nX$Nw?f9HSVnc<%2hmUI^=@z=EzslM)X~a0 z^dc!hYDk+D#zurnA(}bP0?Ac0k^=Z&T^IpZTm3)8u9j283%`4iG@+0dlU(R`lFCN9 z$G)OOBRxf3t5Zn8Ww%`lVG_))Y-0NoTDQmf6WxV9_*rMtN764NK(wacof zrKT{xRe840rlTP-qc_3VDGRY4>sokj7x`wXA#z*`LD1@<;hNJgx9>s3=L@Dhk}O+K zp+phkoLUG1s!mBv!EE|Mvpa+p%F#x{%e2SvldosLT=GxB@Bg@cjX5Qlw}A12)miKo z!BGHvV6tV2kn@%+b`z1fw_C_dSIOHkVziLSd~uNvw=Dnz27f3wM~4{!KDL(5MuTRl z>oerQ$&U@*b+LSFYwyWnVKK36XV29HE9}|k3l`h=-%{|6N%$rtu3TXv4EtgD*Kv{M z^M{|vdRz9}Oc+Jw&qF}vFURpW|GI7qqriTtTeG{A@=4|Gow#5m?XABeXzil9p@|vgVwPP z#nXZ0^U6f+);WI9Is;_`>@s5g&H^Gk%W6Un-mS93cjShU-=|cM^iV7f8x0g$#Q31~ zCpNw0n8?zsSF9MKN&o)*;~{Z^ zvnVilu~GpTFfkBA9EK4F>qj2CcZqspTHkF=sDD{9@S3x`*4+4nd}~(A4`SWyR}Suo z+Wu+Ac|Fv|P9kn{aS`3Qb0?ceH&AxxhPPy7qS#GmnDg9`*Ns ze+~m6n)<q{rbEQHlZ8rsvUXWtL>Xp~4=_h$QpC)mUI~VntQ3RiJpRbcxHT3#>Bp zV~!Rh(dA(2>+py?*?jZuu_)R1`@}{H>(8144TEK6hi3xS#}rc?!Tkc z(8A?__3*6(JRuuek#$CwTi*0WJ$bj+2gI&Olwl(_NB=-*@YE;2lE;9MN?5fo=1Qj=m3BbuUFn4Yngs&p$yz3GV>0M1OR5Pi(-ONM6E=KVZ(uvN}H*^Ks#l-S`?_qSAP#Mn6!Cs zCEdI9Hb>sMY@X!h%a;IP(tg)0ZCvB~?9$W{LUY*JapH#rofm{sd>U@mfx8-d@Q=UP z&b!Pr5WiWlpCwaUQmEaPTKIOmZ|n}=*d@D}>R=8rp!3q&fu(&I-QEi~U`bmc-Zx!v z#R%!Ve`uXE^HaOB%Aoi-(3OMlNSq)Upm2A!9_m)RB% z(cD;-PjUQoU!2l|`wzJ8wr6&GggpBbbf%kjo2@ zrG+`He6i6s*K)|dON?gObKGO|x6PU1)@Mjf6mv}5(`jnNdO^$!f;!;e`6w-2pxXyf zzJlPVm)95CM58h;K?!*y4#R7c#cT8J5GYtr7Wv{S?{T?XEz{x(#NY4s!6vupq8FU7{ ze}8lnI`geGF(wDnV^yK#Ns9}65FyBYk0&Ntw|s*gm~%MGDAw4Cnh?^d2(8LLuuPIa zcI}3k_f1XB$^F)!sQ}OhLAQYq#437f(+yJ)TiiDw7bk|;_KL22zWp$Gn|AaNtAtDp z)k$gAhYFK?-gk}#2r{V6p-=O$dnTfnuhfr1vDNj*S01J%IqLShfj04=keH3B5AkoE zn7UU%W+_Rm2e36^)t)fj6JuZAK1|dSaVKiiodxT@0-8Y_?4lyYU5Z60LN)K4Me}{_ z4nOa(bX%FdaUI3ISOm~>U|PC-ygoGoz(}<}8xSDP6N!xkoqORB2J4y;b?!|KH9dwB zak7)giR8nI4v2GbouW|TnEm|;J+KFfC@+^JJ(5+P=jqLlaURN+EYK3iTEpX868k#iz|aPLs0a1Ll6L z3j_Y%d+Xzu_c=tPgeL+@y`Yn^)!<#NDq^G#rgB?DoHUaf&G1wgXJF<##JB=6$q`9l zruJTYe8Fsk7vs-IQO~C~A)6(Q3XX?)kooq1Ck8N3x)jQXYD04%*?2JvveWouD?Es` z2den8@B_Jpm;y%-MMrpGZ4&y@gS`?wXX;^*+;dgqeLNd9Vln=?mRf3qr%@$ghynz2 zu2#Zh0+7g80ZW!2nNdt%pezdu!(YkSof`CyssI7{strpQlSZjSf^30@XXKx}fV)x% z36khu%UcG$8xM)&u5fnlT;!QR(fZp+dJ4`jDN4G^Rl5k$G8Fr6v0i)|IvzaPiUFJ5 zmftXh%X+x7qbX9OG0#6^@EDt^9DG>~UHU~950Y^BwrPb9R5(n_PaMK=xfsecPhUtG zN=J$jXYnK4F_lYaLf7w_oQUyBJ zSHcBD23&$4Ump+GCvP;)67idclFcj0cq_$;-`G3XivfCIGF4gmIsvgAV-oJ>4ZK>Q zbOadj70$#>jiPWNIf(yG%!W9BGXL`YI$fMYdp@)AWkBD3L%82F?KP;z=(#Jvv>*Bj z0v~k8?4VWEr9!32(8*D=`DlwoplqM;L(2&17d*SR>h=b)y#fz5jCW3z}sP&38Wn%Q``C0IpEjtCvD31$Ap%v2qt8D428 zBFQEwb9ZpoiJSHKoww^Aw(`s@8or@0dEK~zQ@d&5@}}s@pM=NxGqn-Y$Kpulv5?gucYkBcxC0J~PJ}s$~JK@p6#?EX-^Yh&->RQVHjx3)HQtZ+!A+?Cn@CQL z7X?-el0tIm^j--la$%?sjEbUF!u6Al?Txf+>yHroIQ#N}*CmD8Ypmh!ARTp09NODu z=MgPULH#8pc8^-AihjTpv(FS~XWjmRxssfyXf*24`0p{QWd6w`Y%hBgvO@pqyzGiK zdLxgWz=F-?7oDha`kHCr=t*O4V~_jbqn|D~K1iL_Te7j#e+**yr?g++nPxxc@;MHj zKDt=)DbP>a`H|Y2b+2HnG>PUqKlOc%Dy%_i#oEkH`wq*q#9IBv=eX$Ws(t;C+R%x_ zLP(i;8P32XV(GWwtlWdxnl4`=1O7C{!QidmW(n;cE(VK<7{Fx(w<~+iU8yuP$PCRHeK}f~j(Puvg-OC+y z>!eN(H_|FhhcZ#_z5QI|R4nK2{6+8LQ*w_i4>pGfjy7#3%}??9bl^-w|hc_MVQAs@4_NUIefJJ z1=Baue)Hn{+l~N7dNKWb44@BjJlwDu+dYPlN49ifW9x1lh}KA1ipSKw^#61UX5{P( ze)Gs$h+IfD?k}`yWo%dXRClN}vOa155qz(Bbey|Y1g0JGqpjII8xf*9f&~=Gu|(lB z2-BIOmZ}{Ys)E>gUDSYk!BsM1T(F1~mUJgk-RR`VM&}5)t;ZY)BEWqb&YEx?;laov z7rYxFZTxZHwo)5=T|7g0MhYw17H0nYLf0sMk`h&s#qPE&eY;n6wq&Dm^`**B8mLB} zD7p4c-=_7YuWky|9i3XYZrzf_9|{l-&|jTq{z=Ef{_+|~Sa+2LHTjz!$*Hk=_bM;S z=`SfC$}QWo=S>!r|GvBJcjaX5dpJ-Pc*y`ATCjOsdmgY}vaJgIU|6e#MWW0u?C#A^ zeVb`7?e|C-X9+VUkP-zqXQw9@9{6yT5c5t|sy0W7*&D~d!(BcG_<9AxbF=M^D~xe5 z#g0&=e~cTn53e|s_*AK8&1f|(>qwl3yz>M%5JgL5;M~f7n-zX#pUz(TE?~I-Q5=|> zFZNd>sd4(ePjmw~$-vR+g&_^Qd{TdvwQ3J?Kb#8}NYwH~Z^14D!{z*clvD|TBwHt= z--m_sKk_LUM=qyl538Hk6vJspDOf*xh#GP?PjHA}81x05{r6@b%w5)~xO2VeME6y= z`R~+9a5-JDIc_1*EL}DvgM-MNzJOpwiZFcyJ+uQw5l`Rn7F=#CB>n-6{Z%;e%X*Fz z*uMM3Xq=;awdBIg9%-$o>^}GFmz3Vh{$P{UN7H(>^RBu@SA5a15Gc@vgzf;_Jg-p< zt2iChGx|q$PP{4JNVE0Y;bq*7o_NOb}w;vu46UrB> zTpHC-W|3MI%T%!x*D^b&oXo}L#T8A7-YWU-g?WYiUxZP7 z8&+J6eLbdZh47Ym_h(W z@6cq7Vn1jaKK7Bms8VITxxUF4(GPixM($R)wCuS~+%%yQpVam7MU|a}ztf_#?$M6A zQme7p(+f}Wnu0Ia3t#LGhO*Cge`7PWTx|%hq=1JhCpP%r*gZ}#l}1|D6^2y8(pDeH zt~OAU-ti^RnS_i-^F+pvoi8Fv(h(zw-t57IZ(Q9eQSwDbW>h4nJkM4RC znw|p4^#@zuIsoGE;mS1n3rrm4agt1R z!;qh=X}flEhhCtnd1zG97I$@&Cft)ECnslR8(*%%@QkE+7jRX63hpo2{PO~Ccko)Q z-R-ve9}PQa2$qQef zJkLmJ6%aRHbClIPuj5soy%&NwQZrDeGCN}8fRPYYk_dRiE?gXyT!AFL)gYSI^DXrM zSf~U{NpX!@9Gw#J*?PtHWt`=gt;W0*#B19@5*C7s(!PJ1`WH#?0u%kyczzZCFVOW= z{mX@=|F?a9&*!slcqH_5GyJ&A@y#@ON!yl*%II=rau@s=|H-1#4*uWn9<~2diTFRg z5&s_ri~m5c|GDvheg^!1f9C>rUNrSribWUDv$$j3QD^$nKLg2#`w!w?e2sP(!pWTB z5~taU+qhXI_Cu1v=2a)Jw-PI={|=`AGm#(x2QA-^p13c*=Ng*qq|ROxxFw6>vtxGA z(C2JkL#;Q1>IFgYKOx^y=>iUrBHRTfn(2xAo!={pUOrNlI}|~zzY^7I)|9Gm8)%AjC~qbTB$WOV-QCwM-bwmuhrdy>^xb9= z+Z-l<&u5GY&Hb+^=CsvBg1}f6C8#1{@`kDlLd8vO0ge76r_ z=ygp}i*qq~nW$>Jz{68&*Y9{%eM-t+m3g6HgD*e#tatK@m9w<$A(pIu(1f+02MR{p zuop#+Pz<5?mZ1^gFaeSjN8_X}^;bLoB-P-C{-QkftN4gr^crA}+yNOE`kA*!SqT?> z7abD6evAFMsQl$*?%aj0w|cuEe&EnwCE2d*glCV)M+j&D^h|)3T7d{Y>t+%Sv#!_m zpdtR1MQy`MD)s7bl&4A_C1N+&W1?>{S>bZ zLmcLkwBGAbfnCt3HgTI zlc5Sb6AvFv+u6^mol-I{QX34yS*=Ast}--ixUdqQ{aj$^mB_0O+f`2Zlp~^-tLU-) zt6e;~P9PxH8?EJ4ur(mxmHN-r1eLWw|D~0bcm(o^+^(>QIob@n(#&2cep!z+T_kpr zco&&_LJWw-mh+};cD#RG|3Ef1#jJSs=kwy+BAuF~Z;^pFn(u#2ni||iM@D)W|0%kr z^!Kkuo=LB2c!p|k>Fqj#&E%?|%7@f@smKwBCt#iRcz0qM#5oH?vT z3HNXO^R%DmuDee}!~Go<0=w(d-y9J%KIgML&2jdlyfM@GZ7Hn#nEBkKSIO!xOTo1K z_boG)3#QpilJk1AdPBtlN00KBB>HI9Gziv9uEbu7LQXiec3#$dKVhkMAd#5W{P*<}xbiOVji!%SIF@C2vhq_|*bq+EOG;{S!?O6DCJd?| zk<|gypwA6RysMSb4fkZ-Un7f38m&x!M6HY=>~QNk&?XM~FBFVWE(cbipldh2PbU4C zMc;yS5C(il6cUZ_4LS^afAOx@ned*rj)2qPP#+2IFyC4gy$_n;INb{KC-1&n2(g8? zo2W_z29V+=SDCQhcvPqT#RlJu#~@o36}3o|ASp1 zgu9>&L)Q151T#l{jRVX)!jVUED`--kaO-h3h8GXZEI=>vnfO z1x(A_f7xum`033f7PJ41LBxxCU?uJ%i6_*iM%#HDv9jm3K;6I*Qk?Jd7xgga0!JRBkA-D-C0V ziZhFf`Ny&59>b|l?_V2k%(ylWZCjMzun<5CCG`KZYaeb96(u~BZqu9V4iw+i@%jtZ@l{vnobdP^Dz1w-{=jxj++#9X=t}pm4vRD3<4J(Lt#m(!d z$e)K6nO9c|!=)s9Gv-gSYEr7z^|YYf<@ARAU*Y3b%YoZT`Nag%f=rckG-#d``Kal%O_7g zig`ZnT(@hMt;f5vQ?LI4%bP=U-0S*GS92Z8UAOk+d8W+er9Th-`MUJ^OzBE74@j|o z;(0OO1`l}sya1G_wCgHw{oTCo#?;vzckN$y&7B-AvYj#E!PMptpJU^b>OqX7&(4ef zKf-xn>pW?0V6ol zd*?|v)0<&W_HKK0(fY~PBmXyV&$K=8r0;Gikq9W3Wvj_1m^5t<%4)?^oP+clV6qjALsV8u;(khu43M*{C4&-+$}#ZPGV$ZVOcB zdbaM5UAWeLUth%+Hm`H9ZwK%uP4s>Zu_9W~+IHrV%H4-v?p2LPlsmdvTnQHwfK?I0 zJ=+8S9>3n*%DRnlN9@lz@_%nUKElGV?0%j22HuL-x5D=VR}tUt2;)7je{@24P(yf2 z{k)X^iQ+)mr^QogPp@Eww5{n1HMeY)@bM8d|1#KmU)09(`nB3 zk^hVzcHJn}6g;sf%O~LVihs|z|D+tRKi?ob;o4U|t}j`ObbJ5T@ui*H6aIDMvSp8N z)IZp8zx0iLfy8JEM9lmE|Er)yq2_(xe8T6kQN z=T0zFlB-!=`S-srS5_>j#k2nRym$+>1xgM}Zhi4wdH%TZ`h8{#zOIRle)IWbVg2<# z=?8MT*go_7FL@4aIvq=7Jfj9Ke)pXVxPIr3%#~j?qCOyjWoM_SsnxUgy?Pt{cirNu z-`5(rRjZQzJ?wr0ZE~E5D17?#Y1sBg5Apf6Tko?nsL$$SWVp6Q>qFGB_>b;uIZR8B z5ubvy;SR0@?Zot?1X)f2kfoY-e*0@`N5lxpP(Z%1O+FGeFKh1ZsLFq tWX@E+_lga;)dT`0J5gGkib$iKzyD9@mB@eBAa23{1fH&bF6*2UngByn9LWFx delta 15250 zcmb7rWn2_(7xygP2#A2BfM9^6G%Otgf}#kbfFRN(B@zRIbeD8WHxeqb2r39lcXyY- z0xs;%J9yvETfgVS`+k|3>s&KuuQ=C<|2f;xMz&f+7Q;Z5O+o|!09%XbPXHk3iM=XC zI^#>dPkl9fp(xhMmM+>ZjsL*!>Ed-&L$_<5!7IAIO=4GgL3JA%Q>L9`4H<)QYu<(Z zX9D2;CQ4nbg=aZs>$?8&$x^pU>jP8lsLE?%!V&N(t@F3q!`5b1wU?PUN0sk ztDM3FFX5|6;lQb+VcobP=|%Of#2_{9?HBP)A)O7Ma1WO<%DB3%4etyj#Jf(5CUAZE zJv1t?Pq3-M_3PQIPuk*Q`#WkN<%E!N4!6CnjK9U@$iwOgmV`#PmY&f+Qi_(m4qTGg z-MuSpnjQ&iz25Tlsgw}m<@Z2{v!829)<4y_f)wnsGewJYY$39ZqEe&*2~<@v>VZX(4?K_OuT`y4{8seSSmc2V)N@iqVDG#@s$bA@$EiQ=rfvn z_Vs>-3}1A2yP&^Tzj+M1Gr$FRB(Tc9GbMOK@i){g27@bSS zYjc;xgqkcpW+`eZ;_7gri0|txf)x&b(hBf{8jY2It!JpL*={V5yYFH zL@!6Mt0M0o$be{4OA_t!7@e{hhD+;3$9LFn2) z6HK64_3RLG<^3Y7QbbqAB-lCMPNB0(MNOu@T!^QVY~$J?V@fq3FBQARtefZYdFSfW z-xKD)LM-;~sJ|<_F8Gqwu0J7jj_7Jei0;|@Pet!TA9SC9{8HI9kAEjyeUqR27Nk8N z$IDbruALj&rKiLBKG|tbwOu5#!@y|3nj^_1>}#VGs<*k}gdaN*Wu?LYo4+ZUh&RG) z(js1>HqJGgrOZrvr#WnSMmun(alZ~Z(sb|pC;medsYCnA$*%~+HF!j3)>w?$m~J~C z>~}7_%^`L*1z8?XO`!$#3OP{cV}|^q-`@S^csR~mu`gSCMXY5E z{MTK|RFu95QpQq!2*!5_IXsayt$j##r%TFYwN(1DJ>#v*-Z7JFK zd5Q`QAf-pp-J&tSLi&i3K6LNPV@*Fr+PrK%7N(m%Da8XADONPSR8;$e$(*FHrn<$G z2?cu}O}o1Mu#sdsA)b5p3NF9Dn(Cy1clj16_siR)+>!?!a<-OPK1V&Dw!5WP&swr{ znB9KAHe`TbUTP z@91`kHvoW4;`P?jTg(ApqwdB;hVd7#?b_hUW8+icNA>AD*mxReYV`yhyDwFhb}CXn ziXDk3bYU^OL+<$q`;CbLGpCvD15GYi#qVx}W3pAXNLWgSSH zO41uGX)#SnmjUED<&dvDjU{Z^{N&4=t`5*vbb&_(; zG;f4W+<8)eO(+LPpxZ(`gp{N?_EYXhR>#eS7y8!7WN`Q7VX3CTm4Yi@Z=W0@Jp~&_ zM-j;z@6Vf%oaelwTnA$^u7=o;Mb8vy{qUJaJ__^rht6WAY-og?UN*3?%RQ6@0GF-? z;a+|hRSUxv&)#Ui&mBAO;kUOA?&s{To>6hLpHW@#CAL$O!3x~CnREkBKIXN@C)x}} zJEiX=7ZB(Mc5p)n;EuqB(j$06gz?_*HN0){(|sMgHJo)?uu`9zfI{smm~@NJDD|Y7 zsB~`~JAKLGnV*V09k%~vfBSksxfX$w8>gnwpi~%1jFYR#05oyTT#Ze&9-8In3p=@g ziuy=wwRw9TI$+;YL36PkfelrHyoR;dtYh$9^_sLUcrvM&g@KGYb_mmoP(ucXtk+uB z{T1pC9G+&GJxsCMatSY?*~ByMzWA*FbWGHgPL=hmige z$HT?X!C{li_>mT?0(r^>0PzNmI>M?xKrVbaJEm7tmzRAlZDA-Wa2eiqSZ0-tMmbh( z(F{G6Ri{XF1KWpFw^}TCftbW}2I`&uh^%6pfik$hLR%qyS*54x3fS4%-C~qx@;JQ` zS>Vn+mwVo|j5B-!K+)+suX~XNStGlc4A{Vfoe$~yieFP%z*ErrAgWY;JuEJ{Q2rhy zUxY+^Oa^_)#vR3VVuF`}_&=ff%k^)a{MNEgh$!CFQC%?f<#;TAf1SMzkvj^W-X0W$ zu*P<%7nhy#Dl!SK6dzL01N|E&lsdWu$z*5`f^K{AbAkXTQUxl+^_X`;r|j!Vejx~R;jXISqRw-5EIG6!>;nZyeDto`e~gPZ*#u|$fttD z*h1ZkJsW?!4(He?v&uZxZKyWQ$JzX0ICJZOr4YlsnYGi*F#Ro>INi1Ylu^Q(??S(| zI5*jo@a?K%d>cR(ejL~+?fp17aBRhU@8KC{HCoxhh=e%gB=%-~P>(?C38_0t*I@V9W{LL{b#rVVGHD!s_RpmF zM%i&+D8q)a3yGX~@_JTS(bh?lvaFzmM7qS9UXT@NY2d1=*}(^R@TQ69e5h>3UzyJr z*A=lm@}KD__!B>epZN&sI)1~8$aH?~?}Rqlsf$q?CtGrJNa21P7gm1^@i7!~80}Jo z`i(_SdkK(P-nc8+eu^p*iDI3TU)X>rtOYG9HoAG`%W?%10JYwW&1*LzIPjF2K~mZg zx;cpqTsF9o(T7pHfH14QE!}%)z>?kTlGKL@W#RWD-fVN2H2Rk&wn%$6s^rGbizKS`O8l zsqay1fli0J#>fkQM2c{2h*Xe67evku+&YW(aez7m0HPkvF|0!wjzMgMc!7`KT*$zOnmTI%5gNRe%wj~F><|z ziks{T1nM<=+R52XwZ8`Y_>pX-38s(iz-uwcm0bS(T0j zwLxt3Ve+B)7k8}E*lH3^6>F@DtvmKlK85UYOP1xAl7-rI~C`TA_IpJ)*2X29l$OWw-C^_W>e448L( z;W%k|Y{peutN@?Eo3?ruJuG3@F#v|F7{~mzuBYf;cG8sNHvZgS4OjSSc;;_wpV>TX zv)|a|xWbYhu-rs;(yxPEjK4tD_vPixJ&1tgjfzAB?I7{6Ibvv5q3uavhuyO5{1uRJGcX^`k6tdC%4bM58SLEqJ(7xGa4vzUeuQoqTB4knS256XH7axazN@-`#Qy%-A7K=R)ZU> zBq5K+5SP6!U?pH4rs=*dG+>-$o34It`EAhA5_sGbwq^ygrzmuwliy`DI7Q;M3;9(a z)jU~L9)RuTgINeolXF9V!}0tj{#TzjbZ_V0W!>^0tgOU3ebMjZ_BCZsN^s z<5ZGlrLJ5q0#9HS47*+pVamhEm&A($x${`5D{)*vbT7+hpPNa$5AgUy7O>d$p=>-;QZG5#>f7$C4#kMUUkDV3H z-GL_TlhMlBZzPzWgYVBZG8$@@KNLWLkmM? zUaRVtd#l_-$d^T+s|BY&Mj9U-oo;YQZA-5XT*=akCkUFLL)7UQA5L`BBDA)GCwK*h zGJ&G8xDp=Aq%f81MNQM;ud#+ zTThm0P{~v9=~?|1D_z-SGENe(2N=$rN#qnyNBO; zR>hA)eDin*&9ZNxmY1O~pa-79vUTZXY1a5>?Yn&F-}Wo0fk9;3VjUWq)qiiIZJ$P+ zZz1Vm6kGN69nRJ7v9`>b$$i!7ZBDksM;LHv);}RN^>X+2zcKk&0goxHK!JvSrssZP z1y$5}OkQk1Ks}}YQx{qaf}_sr4IN^T@qdNz8dk}YQU65u=OI3~Xe{p+UO1#zpE`(! z4ngnuLamOLX3EZ=KM4R=S66~9d|earh^X*`+EwOZhV_=G+rhT&rrS0qY1_=h{1tyd zTnCi+GF5e*e>Tk5-Wk6O+G|S4ia-B_AH=Mt=bYm};p>jVQqmK#v67cEShr!`6k`m} zpGQ$jROaPzttB7TwaDeY3`q3I_3@GP$EEi~xuZWG$v9UWvG^GJ82P>Yb-ZowS9Vb= zB~Sb% z3`&tkvRF+V)b$8_kg_N&E@txd{IrLgx3)X^ad8V{%lpFjDt;qwB6QV6CMvUx{p@`5ZTbjFFCX~?t;Y+HPoS*V+mc!5j7*C6tv4wcoTKQ) zKyK;R*sOI4nmt@yMqx3Cmp6>8!$kvr?OAU4K+T<&WgAGmM$MKO%`2=#Y;ZAwZ&Phq zLX$xwEEJB85I6mByqfnA+0PA0OH?~$fv`t`bhR&^4FSn-*H(H+-A`1Y%O*C zKF_3Ob`TQsZ2YXq3H(fPDd*Zwy#j90l!{7O^x_J9qH4|QnI63WB+48f4hYYWyK_`I zJ>~(9Sxrxk4HhSxCa1;?8ax<)tMe$Pn=fk3_xC9)C>QEm?k{(DWiZyH*GG)aV(ugg zBq55djE2N*F@aURzicEz3cDW;nZc&X)&0ARNekle7niq|UZMawi^AP;*7^xP?Uq`F{XtTmbF zg*4o>kM-DeU&J)!uOpDrQvEWJZQFTmXv8O?hpU{bURM75)$!Jtduuz=_<+QaFOdLB ze?6PfnyQ|jRa^VlwU*_(ORFX{PE9R1bAUvuq6KLqlbV`-c9-yj=dpn+^=aI^7kqw7 z@V5rey!DL4ciF<(1sZ;RRT!^s{NdrVF0*AP!8rV9^j%MT)HJBwVnu9b_=(QB_K)A= zcS(`a?{exa*lS$gu&yqgl&#ZUh&t$@5CYhL{(kWdkbYcCg~!G0vE{JOYA<&I&GFP7 z%e!_s8^Q_{p*Z@{k6fv|UsY+lm}KLs*LAjnsj5gW=s<}ieq;^5NIB6vFQJQ!4g4BU zo=2R=n#8f!@IWotDO0E?F;%F=SU!o1Y-*ZP=nkPrlwUJn+RLSUS#72&t$a9?gL%zT zQYp@7>CWQ!8M7G1v~vr%aEJVZu!Hm-!4shG9#rHfV06w1RS*-cK z#1I^T49<$68M^{i)j}E@TQGV}c@ zFwDCquBqwCD`?NP@Arby4#g{b{TG77S%ZOeq_jUozo~~l-?P2QbcvMmRF3)8v%QoT z+F5?u%vo(`xtmXzOvBcqADL9NVvlEb)YBB9mH>Y}4i8_U2h%XVlRXTc{&EROkMlDr zoQaq3Af0-ykS5Jcl?yFd!xBC33&>Z3JDKMjPzrHweeIl1QLvB+mfn-}%RB7_G#R9< z*+}WyNvi%kc2!pO{{&s}VZ3Czdi{4Y+0X{BA76g$<%QoBay&RlRIs<+4S=or?~KEg zf~lC2)@254)(Bh%h|2j@#nyVoOH6DxP2FwmZ`b&bDf!~)_i%`{v+$ZX%N`D6{+1?b z;U!P~m&MMWhhb*UDG@hCVzR)urBqcLT^>VNc!|hPn;ss|((86iF?k9#Py;txj;V3Y zn{5+2@Bwf;9pp6$`T}ywyNj`WUHhFfR{Q%p-=|O93z%}#!S98Fuf2KPF$b)MktsM# znR}XRWySzF{cc6k8Fg*4&V;)V=l-qX@@6G-%_#9KL;4mZq9cd+Nx0#$Mex#ZCU-N& z4zt>8-=1vv1sXi?xS^TPx}!n;I=a(82fyrp1KGg;hO*5)s5)#Vyff#6xMs}O#I7^e zJmg*WkNZlMd8=sB01nKQ{V;mqhvRdMaNrVGSs&OLb46WKv;Bu&AzoBre*Tx$1HuHF zyBYAhFDD*EZm*2VfL79mA`rS!$L;}!F>vAf;}+7_jjqb9^NditMa zSe}HoYh`(-Y#1=P=j^kJb$`lN*^Ho(^v+$jIzYIohzqf9Xko5V?8@ah)OGmnaSkie z+`t0~fSyd5yrf^k>IwWIV#IOx_U)T}+K9NK#MoQ!f#X)3e$Piu*wLc-E}}smS?W^Q zQD32pAE=0_^Gzxrv89W;W=0iwuA`Cha%6gU33YyGiD5k=&*bh4kkt22-YZSeKBdsi z74jR4%E8z2+&3xPVW_-F1EeZ$79wU;O|hWp#me-e1fLyXubI_9(TyDt6ncg1fs-Em zH##0>A6HxBxKI36hpC^|cV!}y6EWn4mQ7Mf!XacAE{j7K>cfm~r4s$Ty|Wai#P7R{ zP=snX*t22y2B6h}nwn%pZ{IGaDr%Z~62T%#%MPAZKYnqz){meniRDr&>EZMTU-|40 zU5|hl*6m{cQzwNdV|_zYWm3b+(in_NEW~qDVi(`9B zuiyS-JFms^Y_Ym0>CPIhrjp+$hf=d1XEhnA(B- zvvwESEt1y2-?)ZY%KXS!6ezyt(>qV~eD&v@8`w~EvZ|i~YthA0u%ng+*t?;F8??OC zo`ybY^;3^-plMaM0EX-{<{kbgayfmDT&f=ui}rJz`NApWR;;roMzrm+U@T`q|SlHUy zno;@%#Y8l#lCd$HyYFEv##m;o&t-=tH8o9Wv!t}@ATL_b{U;+JZ(@@5cx9ylZs!aSlQpGe_Tz3~FB?F3gLT<^3YAq6^F0Zt-Fx>$HE*ZkML* zA8{Lx?-K1(kgEs+epf&z-2<`6M=6R{V$DuzJBHF|-dHm>L_x;P!mN1e%s}%DIQ8f1 z%g$FHnp*Xpe}2q-)%M}@y--x& z527FSvls(bf#NrDg&Lmv;+*9e;x#X{euFk*t_5d+{PhG<1a9lr>mDsWg);v{*FdFj znTb)5BVm)_-Z3}>ZMWXR>VR2tE!TX=kYyrf;jZt)kyJG20@>+0P4dX={FT8u;MODm{ct>|ZI4R-!81aO^w{q$SiZCP4q zH9ytF^{G57%KJt0X6VT;iFmm#C&JGv;S5CqztuatGKzeotR6LhE+TkeNwK3o*9DoN z$Dpw9%|jHI%f%P3R2RmI1txq}vadVmU5 zdUu^BTXm4!BT|OMltYaP&D(Ff252Iyxtwmqf2l1vEKfBz3YdMgIew!{**@<+pmKilHpn9B!~*H|e3q21rf`XQ(}P&L!_`dVVA5(7hydO_sr!vzfA8#ARsTydy#( zi&v>!jeDn|3%qNF{PXA0Ts~c}eG}6(3|b z>P9Abk5s6xmfDdpY&d4&e0JHhaa3~!I5V=9WW(lG2qYhZ4nA2ryEn#dv}(YLvGdYb zJYbDgKbt~K|K_00*OtOkhwKP&f_N?q^DHL$GaMXNT_YS@(W?ilelh6ka2M&Ba5EF2 zFKH95Aj1agX&*$1bhgu5Dwlv00k#x$dc5H{Yw8LF+?mTgoP`BVH<;0dxY!tH4YB?G zmmq%~uYdppd(&w>=%&)Th)}he=x?xeJFOmzdG{{7px}ioo3#o%k$y-zwyx61fy+5+ zhMBAn%D)K!#V9E9S;~R!C;(tkCybf)#OcEPe3$r*{a}}r#L(f#ud8DxALBwE+byyR z#f(y|73#E59M5`5w|I2mGrB)}tV^H{a`(K^O{Oes>^Yiy*IV`|-rjb5km^mjA4a+o z(xl@-1pA-5Vj%A}?kVDp-HQ%ukn;q~#olJtQ$%e&!3v<6;U&G-7|b%9H5QOSRh3&$ z3yD%e@ph2!aLAm0IO7>JrPg^cO)7AHb=JFqX-w69{NjnuwG!2`fI@O`Z;Ew#?#JD- zR17zH?3zG2_yY5ep)R|Yk9b*yU!656IIad4IC!3r(I`iC{wUDVG8xjxOZa1wK*^#b zij__Dih%*zx&3K}G&9ovHOCR?ro$Z-4MSvC_+!BD7^EXgSGkjUgJzrCnEbG#t}^oI zo4!PHpvw=E{+5UCYhZWKps%s9LyQaGVw@cs!{{@jzWrY57wdhK>m4!ES&XWFh}J$g z=05SomxltWYh}-PM7K^U3~>q%^mmlc_EXS6g10yVA!O+YZz3mVH-;MAq~6j+y+yKN~owvG~KkCv;p2>&P@4 z4!g;76O5Bd8j!|ng0)Xa{SBpKrP-NQ99U1x1wwSS_37lPB_}=eR8N{93ctjA4cke$ zufFeH{T{;UYbZV+@EdCE#_H7HoLj$qjVlwARqjQfk3;DFS((dU_X;n-vylH$V~W#}ESS}Kb&^v9wC zl&L0mEemOgHbKCap4;jfS^sL{DF7(@Qil+qZ;0-}4_Z^-wZgBet}NpLQCwbl#%YNn zUb16<+KQhqWz)hET{lg&{XjME=q;FW>aI^Yv0}PSzQ13P4J}y$e)n)sK4N*1N*%Gy zz#706D|F#rb|fE(TvDR6kSTq=RdIzkv056nvTUo@H1a~UD0G+md?QX~SgGgWRqoC( zG4tamn#pyTx9U>`CH!+Cg~Ro@-d)&|O!c95vH1SPJX&P0*5AYG0AyDu!=CD75&=W( zN4y!(ngGsYdL8oeAeuO!|K)Xe1N!q0sdhA^r)D2)$_qDgXn)G z{(;p|w|GOgtBOWzycfC{+E8_y2=1TLk&r(;jWr#f;()HcuX zico{_GrcYdFRecKvr-TnoJ4^|?G78wD;#3Lneou;g9VFmnl(a}J$0{E)*%4!Uhcw! zVHfyAn~| zJdDtuqYaty^|&z|XyE>#06(Q9A+1SgH73vC?O(qqOp(#f3uYwvmsYov_Gi@YaQu-*rw(nTr})nv zba_14hPLav6a|8jdY9gYoemK;6sx`t zl)|+IaTZ;AP?s|ZmwU{S_+?uQ`yL{3b@*8ZL<-IAWJBtK{via%#Hqp*t!3ZuV9Vj8 z5;2;ZeM1LZUb49{?(%z{Sh}jA8o`ue9{Wz5@SS#NyCrd270Q~uCsQ)AjqvKpmMNXs z+19fNCJ`d@?-2_2Xfc-GI=>qwxbRJS(%zt&JxT9oND+bp7nT4z&-%lTucBX^wybO> zN+&p3v~#w|8hqrP+d_Md4)h7XN3aIN+fpKOi_3)%=3hR+m2UUOydw$$z|b*%lqHN8 z8&R9FW{z$MKHuF0BH*Hlu8ZnuY^_#@9k~j3kHGxa_{m4%RpiL<+&O-cp-WUdVHKwv zdliJCCm~x5fnAw*$I*2IGn=A*x8&PCcqMruBwalzEHOw8qhom6qEx}o5{UKl*?sur z6`c;vO2IWbKn$b}$m_T4-}fdiLWUB<8p!j%C3*hlctTUIb`o=Wxhjh4LVG#56gG{vN0mHNVGtXV!Yl-blX7*)9&JNmN?L5+1SoqlwWUI<; z+uH#^x|EwuUp zbdd~x+4a)W6VA@6K^xrCBQrrl=HCHepuMZY9?_r{SE`M`HIcC4|TeO-zI`^vME zhwc*A^$~{zUSClJ$an3NUt90y2lR47jJQImacPBj#|Zb3yy<}b%>&%|3U-YM5`TGN z=iNjB)x5U&ir)tsHVZEoM$4{}i)Y2TSCvgSnC+F0LP@{jC=EJuniGt|P{&wdHXr%R zc5HTE((x5xPXmVEj^6psG7ov-_p|_O_BcHnh33 z0@N^c^+6q|m!_U>jH0~n$ojs=>H)39yDjBX&TYlrWo2Thq{X7J z*6Tns)y5yvM+esCdaYu#HnuiGm4fvIzr^{UChre+WFBabF25c)SRsbOeoy+1oJj(H z-!zl(LVWj%8x$zs++Au(|96&>cb2ba0cD&#%nz|X;vg%*H)H)41O&x%lr zGMnrIWv9b0XL~b|VS^8EJ0E+l1LSn}W-mbbitB><%0SE)IF+jEHy*x)5yAUu{CpHS zfkQ!y$GiA`e_1|g@fxR_T2(|<+4$MOFs`$`j09mmb^FE zrEAt_XXrj|EUXG<&8T6`JG8NjZ|k5v#jbVGX)nJ9&q(3=8C8JLEm0p~iGb5n{Hgm5!S+_s4t7MQ+G|pXEFp!sQGiznmUPUU^@%lrIZ_UDnRAI*8{j!}Ww0FNV=PW`1K zoV4D^nli`-`Jz%@EyL^`(k@)`(ffV{eT-6o<47QThZ+tn{bL}E!I>1 zZGZ%=)R0@iE}W{-+>m-;63q@hkDR&}@wb!e3yI+0^rJ@6WFxtom&Yf2qVsgIdfR_G z&U?r1K6{ok$rHoPGi;9!xBn(z;Y&50RO|n0sw*lH{~x(#*t3OS1^<16l=5#v_}>O-ouRIszWU?Ag7Ml*7fdcvLudv$1qMu~)i&mw$FL8YEYXVsXy%R5XKqMtG@~R`s*z%IA<% zWOLkelXLa{J@<7BDc($n5Zoh1-KD()sj=2~SdeX8^(@U=#H!^OkgLpfr!RGqiPt7ycN5SwoH!D5^)F>HYQ=@}F z_n&wS6K>4*(Zpv6snf3fWZZZ>X*-J|CkG{d)*X?C(*KpkQ05Ie0x~iBYXV}!#T|Nb z1bey7_PuG3)-?az($xiqh6x?-0Yh4Dw>Xt3-qj(^-fPK>+zD}aZUB9dPe zSLiQc?(5$JHw0pFrGA$SFJIi2Dno_rOq_@UOXluJ$JM`)h?BbuIBAACG%NXDxbW%r zHF#S+pp4d}!ou7Si`M|tiNx9OqneqmTTKkrXZ}X4;qqRmXvaKkA85Wf=*1F^cRG0F z*>YThicE27SycCOEPG7^p3i5q!jtU$KIk&g-#0)BAWq%6IQwS|&=i*(KPye+$#13# z;5YiGvRGmu6n{}`VLNoG0aw<$>N;ffOfzTK(TU(8at9B;RlTY0?}>3%%W!Djyjj)I z3=0wa8B%1EEa3~UuHTzCcthp;s9R1F0zD;oDAt}lQ0mGPPIWMic=7G>Te*|Od>rk@ zt}bLdPg|)Y60kfn0Syiu1W~;Mq$3EXR)Nl81$IjTPhP^fngMFkr=6qTV zBdCzg)t0x_4 zloSav>s9fJ*~Si4HyONr`_{^8-JN&CKIkRZ*2X5?G3`RQDFJ-cV?HW`N)-k8o>+Jg zsB2qm-?1-7PApLPMW%||Vk>)FW78#mM1aLOF*RTWK7KN+<|{J(Y_w>5cb`l$re10Z!6bhYVI|ZP!Xm*vGLYp-O!gDV?$HF!BEdNURF0; zOqUdn;ls>=g|u$9zt_DVfU;g9Y_HTqn=Yp{GXhmOHF5JCkq^H~{D|3JGclzY8Z7Hl zRl$4I>h>sxUi#2qFrw0t%*@ToC^89{OIG zQvv+JL=h%SdNF-}A@H5JTxTv|gm(`n*}Ob^K97@5JTu=eca)f^capmyIli@eR_wF3 zjxGi%`KNw_p}Qaz`12 zb?n~{aEsH$Ey!KD=$gh36F1XD%&+0Vbz3hpn}({YKF)BGP?o#?+<_N3Wq*i$ zqzq@k4z~43OqNx){uw4NMj;$FcK0>{hGv0=L)1hiDgbNp&3qj0nP@o6Vu1}{wuR}VWmyrWr`UblC~@r&3nwy= z8#b7a_jGkS-)*Z`Br?yovru{Pz!1_ZOL7$X!j~Ml@zP#(hGmbGEYlWB$+W zb2aM(=cb8un@xeo(B-+P=! z*Jl%cOX$2*?A(6;ct-2}Kh5(PRs0;C__K3;@GoN$4Xb}f{MXjQmizz9^sj(`miDs* V>xaxM@IP+>4VAmf6^f>B{s%&SHPHY7 diff --git a/vorestation.dme b/vorestation.dme index fbe50d4df3..b16eb0e7cb 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -3832,6 +3832,13 @@ #include "code\modules\spells\targeted\projectile\fireball.dm" #include "code\modules\spells\targeted\projectile\magic_missile.dm" #include "code\modules\spells\targeted\projectile\projectile.dm" +#include "code\modules\stockmarket\articles.dm" +#include "code\modules\stockmarket\computer.dm" +#include "code\modules\stockmarket\events.dm" +#include "code\modules\stockmarket\industries.dm" +#include "code\modules\stockmarket\logs.dm" +#include "code\modules\stockmarket\stockmarket.dm" +#include "code\modules\stockmarket\stocks.dm" #include "code\modules\surgery\_defines.dm" #include "code\modules\surgery\bones.dm" #include "code\modules\surgery\encased.dm" @@ -4119,6 +4126,6 @@ #include "maps\submaps\space_submaps\debrisfield\debrisfield.dm" #include "maps\submaps\surface_submaps\wilderness\wilderness.dm" #include "maps\submaps\surface_submaps\wilderness\wilderness_areas.dm" -#include "maps\tether\tether.dm" +#include "maps\virgo_minitest\virgo_minitest.dm" #include "maps\~map_system\maps.dm" // END_INCLUDE From 6540aeb9b4fad088e5ff183e4f093cec5f69faf8 Mon Sep 17 00:00:00 2001 From: ItsSelis Date: Mon, 11 Apr 2022 19:40:22 +0200 Subject: [PATCH 02/14] Added TGUI to Stock Exchange First simple version of handling some data. Responding to acts of button presses and some other things still have to be done. --- code/modules/stockmarket/computer.dm | 370 +++++++++--------- .../packages/tgui/interfaces/StockExchange.js | 98 +++++ tgui/public/tgui.bundle.css | 4 +- tgui/public/tgui.bundle.js | 2 +- 4 files changed, 293 insertions(+), 181 deletions(-) create mode 100644 tgui/packages/tgui/interfaces/StockExchange.js diff --git a/code/modules/stockmarket/computer.dm b/code/modules/stockmarket/computer.dm index b4debdfb25..414a64cc91 100644 --- a/code/modules/stockmarket/computer.dm +++ b/code/modules/stockmarket/computer.dm @@ -15,15 +15,196 @@ . = ..() logged_in = "SS13 Cargo Department" +/obj/machinery/computer/stockexchange/attack_hand(mob/user) + if(..(user)) + return + + //if(!ai_control && issilicon(user)) + // to_chat(user, "Access Denied.") + // return TRUE + + tgui_interact(user) + /obj/machinery/computer/stockexchange/proc/balance() if (!logged_in) return 0 return SSsupply.points -/obj/machinery/computer/stockexchange/tgui_interact(mob/living/user) - . = ..() - var/css={""} - var/dat = "[station_name()] Stock Exchange[css]" - dat += "Welcome, [station_name()] Cargo Department
Credits: [balance()]
" - for (var/datum/stock/S in GLOB.stockExchange.last_read) - var/list/LR = GLOB.stockExchange.last_read[S] - if (!(logged_in in LR)) - LR[logged_in] = 0 - dat += "View mode:
[vmode ? "Compact" : "Full"] " - dat += "Stock Transaction Log: Check
" + */ - dat += "This is a work in progress. Certain features may not be available." + return data - dat += "

Listed stocks

" - - if (vmode == 0) - for (var/datum/stock/S in GLOB.stockExchange.stocks) - var/mystocks = 0 - if (logged_in && (logged_in in S.shareholders)) - mystocks = S.shareholders[logged_in] - dat += "
[S.name] ([S.short_name])[S.bankrupt ? " BANKRUPT" : null]
" - if (S.last_unification) - dat += "Unified shares [DisplayTimeText(world.time - S.last_unification)] ago.
" - dat += "Current value per share: [S.current_value] | View history

" - dat += "You currently own [mystocks] shares in this company. There are [S.available_shares] purchasable shares on the market currently.
" - if (S.bankrupt) - dat += "You cannot buy or sell shares in a bankrupt company!

" - else - dat += "Buy shares | Sell shares

" - dat += "Prominent products:
" - for (var/prod in S.products) - dat += "[prod]
" - var/news = 0 - if (logged_in) - var/list/LR = GLOB.stockExchange.last_read[S] - var/lrt = LR[logged_in] - for (var/datum/article/A in S.articles) - if (A.ticks > lrt) - news = 1 - break - if (!news) - for (var/datum/stockEvent/E in S.events) - if (E.last_change > lrt && !E.hidden) - news = 1 - break - dat += "View news archives[news ? " (updated)" : null]
" - else if (vmode == 1) - dat += "Actions: + Buy, - Sell, (A)rchives, (H)istory

" - dat += "" - dat += "" - - for (var/datum/stock/S in GLOB.stockExchange.stocks) - var/mystocks = 0 - if (logged_in && (logged_in in S.shareholders)) - mystocks = S.shareholders[logged_in] - - if(S.bankrupt) - dat += "" - else - dat += "" - - if(S.disp_value_change > 0) - dat += "" - else if(S.disp_value_change < 0) - dat += "" - else - dat += "" - - dat += "" - dat += "" - - if(!S.bankrupt) - dat += "" - else - dat += "" - - if(mystocks) - dat += "" - else - dat += "" - - dat += "" - var/news = 0 - if (logged_in) - var/list/LR = GLOB.stockExchange.last_read[S] - var/lrt = LR[logged_in] - for (var/datum/article/A in S.articles) - if (A.ticks > lrt) - news = 1 - break - if (!news) - for (var/datum/stockEvent/E in S.events) - if (E.last_change > lrt && !E.hidden) - news = 1 - break - dat += "" - - dat += "" - - dat += "
 IDNameValueOwnedAvailActions
+-=[S.short_name][S.name][S.current_value]0[mystocks]0[S.available_shares]" - if (S.bankrupt) - dat += "+ - " - else - dat += "+ - " - dat += "(A) (H)
" - - dat += "" - var/datum/browser/popup = new(user, "computer", "Stock Exchange", 600, 600) - popup.set_content(dat) - popup.set_title_image(user.browse_rsc_icon(src.icon, src.icon_state)) - popup.open() +/obj/machinery/computer/stockexchange/tgui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "StockExchange") + ui.open() /obj/machinery/computer/stockexchange/proc/sell_some_shares(var/datum/stock/S, var/mob/user) if (!user || !S) @@ -246,74 +326,8 @@ a.updated { if (!usr || (!(usr in range(1, src)) && iscarbon(usr))) usr.machine = src - if (href_list["viewhistory"]) - var/datum/stock/S = locate(href_list["viewhistory"]) in GLOB.stockExchange.stocks - if (S) - S.displayValues(usr) - if (href_list["logout"]) logged_in = null - if (href_list["buyshares"]) - var/datum/stock/S = locate(href_list["buyshares"]) in GLOB.stockExchange.stocks - if (S) - buy_some_shares(S, usr) - - if (href_list["sellshares"]) - var/datum/stock/S = locate(href_list["sellshares"]) in GLOB.stockExchange.stocks - if (S) - sell_some_shares(S, usr) - - if (href_list["show_logs"]) - var/dat = "Stock Transaction Logs

Stock Transaction Logs


" - for(var/D in GLOB.stockExchange.logs) - var/datum/stock_log/L = D - if(istype(L, /datum/stock_log/buy)) - dat += "[L.time] | [L.user_name] bought [L.stocks] stocks at [L.shareprice] a share for [L.money] total credits in [L.company_name].
" - continue - if(istype(L, /datum/stock_log/sell)) - dat += "[L.time] | [L.user_name] sold [L.stocks] stocks at [L.shareprice] a share for [L.money] total credits from [L.company_name].
" - continue - if(istype(L, /datum/stock_log/borrow)) - dat += "[L.time] | [L.user_name] borrowed [L.stocks] stocks with a deposit of [L.money] credits in [L.company_name].
" - continue - var/datum/browser/popup = new(usr, "stock_logs", "Stock Transaction Logs", 600, 400) - popup.set_content(dat) - popup.set_title_image(usr.browse_rsc_icon(src.icon, src.icon_state)) - popup.open() - - if (href_list["archive"]) - var/datum/stock/S = locate(href_list["archive"]) - if (logged_in && logged_in != "") - var/list/LR = GLOB.stockExchange.last_read[S] - LR[logged_in] = world.time - var/dat = "News feed for [S.name]

News feed for [S.name]

" - dat += "

Events

" - var/p = 0 - for (var/datum/stockEvent/E in S.events) - if (E.hidden) - continue - if (p > 0) - dat += "
" - dat += "
[E.current_title]
[E.current_desc]
" - p++ - dat += "

Articles

" - p = 0 - for (var/datum/article/A in S.articles) - if (p > 0) - dat += "
" - dat += "
[A.headline]
[A.subtitle]

[A.article]
- [A.author], [A.spacetime] (via [A.outlet])
" - p++ - dat += "
" - var/datum/browser/popup = new(usr, "archive_[S.name]", "Stock News", 600, 400) - popup.set_content(dat) - popup.set_title_image(usr.browse_rsc_icon(src.icon, src.icon_state)) - popup.open() - - if (href_list["cycleview"]) - vmode++ - if (vmode > 1) - vmode = 0 - src.add_fingerprint(usr) src.updateUsrDialog() \ No newline at end of file diff --git a/tgui/packages/tgui/interfaces/StockExchange.js b/tgui/packages/tgui/interfaces/StockExchange.js new file mode 100644 index 0000000000..d41f772a98 --- /dev/null +++ b/tgui/packages/tgui/interfaces/StockExchange.js @@ -0,0 +1,98 @@ +import { useBackend } from "../backend"; +import { Button, Divider, Section, Table } from "../components"; +import { Window } from "../layouts"; + +export const StockExchange = (props, context) => { + const { act, data } = useBackend(context); + + const { + stationName, + balance, + viewMode, + stocks = [], + } = data; + + return ( + + +
+ Welcome, {stationName} Cargo Department | + Credits: {balance}
+ View mode: +
+
+ Actions: + Buy, - Sell, (A)rchives, (H)istory + + + + +   + + + ID + + + Name + + + Value + + + Owned + + + Avail + + + Actions + + + + {stocks.map(stock => ( + + +   + + + {stock.ID} + + + {stock.Name} + + + {stock.Value} + + + {stock.Owned} + + + {stock.Avail} + + +
+
+
+
+ ); +}; diff --git a/tgui/public/tgui.bundle.css b/tgui/public/tgui.bundle.css index 2eadd38239..83019cc0af 100644 --- a/tgui/public/tgui.bundle.css +++ b/tgui/public/tgui.bundle.css @@ -1,4 +1,4 @@ -html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflow:hidden;cursor:default}body{overflow:auto;font-family:Verdana,Geneva,sans-serif}*,*:before,*:after{box-sizing:inherit}h1,h2,h3,h4,h5,h6{display:block;margin:0;padding:6px 0;padding:.5rem 0}h1{font-size:18px;font-size:1.5rem}h2{font-size:16px;font-size:1.333rem}h3{font-size:14px;font-size:1.167rem}h4{font-size:12px;font-size:1rem}td,th{vertical-align:baseline;text-align:left}.candystripe:nth-child(odd){background-color:rgba(0,0,0,.25)}.color-black{color:#1a1a1a !important}.color-white{color:#fff !important}.color-red{color:#df3e3e !important}.color-orange{color:#f37f33 !important}.color-yellow{color:#fbda21 !important}.color-olive{color:#cbe41c !important}.color-green{color:#25ca4c !important}.color-teal{color:#00d6cc !important}.color-blue{color:#2e93de !important}.color-violet{color:#7349cf !important}.color-purple{color:#ad45d0 !important}.color-pink{color:#e34da1 !important}.color-brown{color:#b97447 !important}.color-grey{color:#848484 !important}.color-good{color:#68c22d !important}.color-average{color:#f29a29 !important}.color-bad{color:#df3e3e !important}.color-label{color:#8b9bb0 !important}.color-bg-black{background-color:#000 !important}.color-bg-white{background-color:#d9d9d9 !important}.color-bg-red{background-color:#bd2020 !important}.color-bg-orange{background-color:#d95e0c !important}.color-bg-yellow{background-color:#d9b804 !important}.color-bg-olive{background-color:#9aad14 !important}.color-bg-green{background-color:#1b9638 !important}.color-bg-teal{background-color:#009a93 !important}.color-bg-blue{background-color:#1c71b1 !important}.color-bg-violet{background-color:#552dab !important}.color-bg-purple{background-color:#8b2baa !important}.color-bg-pink{background-color:#cf2082 !important}.color-bg-brown{background-color:#8c5836 !important}.color-bg-grey{background-color:#646464 !important}.color-bg-good{background-color:#4d9121 !important}.color-bg-average{background-color:#cd7a0d !important}.color-bg-bad{background-color:#bd2020 !important}.color-bg-label{background-color:#657a94 !important}.debug-layout,.debug-layout *:not(g):not(path){color:rgba(255,255,255,.9) !important;background:transparent !important;outline:1px solid rgba(255,255,255,.5) !important;box-shadow:none !important;filter:none !important}.debug-layout:hover,.debug-layout *:not(g):not(path):hover{outline-color:rgba(255,255,255,.8) !important}a:link,a:visited{color:#2185d0}a:hover,a:active{color:#4972a1}.outline-dotted{outline-style:dotted !important}.outline-dashed{outline-style:dashed !important}.outline-solid{outline-style:solid !important}.outline-double{outline-style:double !important}.outline-groove{outline-style:groove !important}.outline-ridge{outline-style:ridge !important}.outline-inset{outline-style:inset !important}.outline-outset{outline-style:outset !important}.outline-color-black{outline:.167rem solid #1a1a1a !important}.outline-color-white{outline:.167rem solid #fff !important}.outline-color-red{outline:.167rem solid #df3e3e !important}.outline-color-orange{outline:.167rem solid #f37f33 !important}.outline-color-yellow{outline:.167rem solid #fbda21 !important}.outline-color-olive{outline:.167rem solid #cbe41c !important}.outline-color-green{outline:.167rem solid #25ca4c !important}.outline-color-teal{outline:.167rem solid #00d6cc !important}.outline-color-blue{outline:.167rem solid #2e93de !important}.outline-color-violet{outline:.167rem solid #7349cf !important}.outline-color-purple{outline:.167rem solid #ad45d0 !important}.outline-color-pink{outline:.167rem solid #e34da1 !important}.outline-color-brown{outline:.167rem solid #b97447 !important}.outline-color-grey{outline:.167rem solid #848484 !important}.outline-color-good{outline:.167rem solid #68c22d !important}.outline-color-average{outline:.167rem solid #f29a29 !important}.outline-color-bad{outline:.167rem solid #df3e3e !important}.outline-color-label{outline:.167rem solid #8b9bb0 !important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-baseline{text-align:baseline}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-pre{white-space:pre}.text-bold{font-weight:bold}.text-italic{font-style:italic}.text-underline{text-decoration:underline}.BlockQuote{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}.BlockQuote:last-child{margin-bottom:0}.Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.Button:last-child{margin-right:0;margin-bottom:0}.Button .fa,.Button .fas,.Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.Button--hasContent .fa,.Button--hasContent .fas,.Button--hasContent .far{margin-right:.25em}.Button--hasContent.Button--iconPosition--right .fa,.Button--hasContent.Button--iconPosition--right .fas,.Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.Button--fluid{display:block;margin-left:0;margin-right:0}.Button--circular{border-radius:50%}.Button--compact{padding:0 .25em;line-height:1.333em}.Button--color--black{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}.Button--color--black:hover{transition:color 0ms,background-color 0ms}.Button--color--black:focus{transition:color 100ms,background-color 100ms}.Button--color--black:hover,.Button--color--black:focus{background-color:#131313;color:#fff}.Button--color--white{transition:color 50ms,background-color 50ms;background-color:#d9d9d9;color:#000}.Button--color--white:hover{transition:color 0ms,background-color 0ms}.Button--color--white:focus{transition:color 100ms,background-color 100ms}.Button--color--white:hover,.Button--color--white:focus{background-color:#f8f8f8;color:#000}.Button--color--red{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--red:hover{transition:color 0ms,background-color 0ms}.Button--color--red:focus{transition:color 100ms,background-color 100ms}.Button--color--red:hover,.Button--color--red:focus{background-color:#dc4848;color:#fff}.Button--color--orange{transition:color 50ms,background-color 50ms;background-color:#d95e0c;color:#fff}.Button--color--orange:hover{transition:color 0ms,background-color 0ms}.Button--color--orange:focus{transition:color 100ms,background-color 100ms}.Button--color--orange:hover,.Button--color--orange:focus{background-color:#f0853f;color:#fff}.Button--color--yellow{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.Button--color--yellow:hover{transition:color 0ms,background-color 0ms}.Button--color--yellow:focus{transition:color 100ms,background-color 100ms}.Button--color--yellow:hover,.Button--color--yellow:focus{background-color:#f5d72e;color:#000}.Button--color--olive{transition:color 50ms,background-color 50ms;background-color:#9aad14;color:#fff}.Button--color--olive:hover{transition:color 0ms,background-color 0ms}.Button--color--olive:focus{transition:color 100ms,background-color 100ms}.Button--color--olive:hover,.Button--color--olive:focus{background-color:#c4da2b;color:#fff}.Button--color--green{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}.Button--color--green:hover{transition:color 0ms,background-color 0ms}.Button--color--green:focus{transition:color 100ms,background-color 100ms}.Button--color--green:hover,.Button--color--green:focus{background-color:#32c154;color:#fff}.Button--color--teal{transition:color 50ms,background-color 50ms;background-color:#009a93;color:#fff}.Button--color--teal:hover{transition:color 0ms,background-color 0ms}.Button--color--teal:focus{transition:color 100ms,background-color 100ms}.Button--color--teal:hover,.Button--color--teal:focus{background-color:#13c4bc;color:#fff}.Button--color--blue{transition:color 50ms,background-color 50ms;background-color:#1c71b1;color:#fff}.Button--color--blue:hover{transition:color 0ms,background-color 0ms}.Button--color--blue:focus{transition:color 100ms,background-color 100ms}.Button--color--blue:hover,.Button--color--blue:focus{background-color:#3a95d9;color:#fff}.Button--color--violet{transition:color 50ms,background-color 50ms;background-color:#552dab;color:#fff}.Button--color--violet:hover{transition:color 0ms,background-color 0ms}.Button--color--violet:focus{transition:color 100ms,background-color 100ms}.Button--color--violet:hover,.Button--color--violet:focus{background-color:#7953cc;color:#fff}.Button--color--purple{transition:color 50ms,background-color 50ms;background-color:#8b2baa;color:#fff}.Button--color--purple:hover{transition:color 0ms,background-color 0ms}.Button--color--purple:focus{transition:color 100ms,background-color 100ms}.Button--color--purple:hover,.Button--color--purple:focus{background-color:#ad4fcd;color:#fff}.Button--color--pink{transition:color 50ms,background-color 50ms;background-color:#cf2082;color:#fff}.Button--color--pink:hover{transition:color 0ms,background-color 0ms}.Button--color--pink:focus{transition:color 100ms,background-color 100ms}.Button--color--pink:hover,.Button--color--pink:focus{background-color:#e257a5;color:#fff}.Button--color--brown{transition:color 50ms,background-color 50ms;background-color:#8c5836;color:#fff}.Button--color--brown:hover{transition:color 0ms,background-color 0ms}.Button--color--brown:focus{transition:color 100ms,background-color 100ms}.Button--color--brown:hover,.Button--color--brown:focus{background-color:#b47851;color:#fff}.Button--color--grey{transition:color 50ms,background-color 50ms;background-color:#646464;color:#fff}.Button--color--grey:hover{transition:color 0ms,background-color 0ms}.Button--color--grey:focus{transition:color 100ms,background-color 100ms}.Button--color--grey:hover,.Button--color--grey:focus{background-color:#868686;color:#fff}.Button--color--good{transition:color 50ms,background-color 50ms;background-color:#4d9121;color:#fff}.Button--color--good:hover{transition:color 0ms,background-color 0ms}.Button--color--good:focus{transition:color 100ms,background-color 100ms}.Button--color--good:hover,.Button--color--good:focus{background-color:#6cba39;color:#fff}.Button--color--average{transition:color 50ms,background-color 50ms;background-color:#cd7a0d;color:#fff}.Button--color--average:hover{transition:color 0ms,background-color 0ms}.Button--color--average:focus{transition:color 100ms,background-color 100ms}.Button--color--average:hover,.Button--color--average:focus{background-color:#ed9d35;color:#fff}.Button--color--bad{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--bad:hover{transition:color 0ms,background-color 0ms}.Button--color--bad:focus{transition:color 100ms,background-color 100ms}.Button--color--bad:hover,.Button--color--bad:focus{background-color:#dc4848;color:#fff}.Button--color--label{transition:color 50ms,background-color 50ms;background-color:#657a94;color:#fff}.Button--color--label:hover{transition:color 0ms,background-color 0ms}.Button--color--label:focus{transition:color 100ms,background-color 100ms}.Button--color--label:hover,.Button--color--label:focus{background-color:#91a1b3;color:#fff}.Button--color--default{transition:color 50ms,background-color 50ms;background-color:#3e6189;color:#fff}.Button--color--default:hover{transition:color 0ms,background-color 0ms}.Button--color--default:focus{transition:color 100ms,background-color 100ms}.Button--color--default:hover,.Button--color--default:focus{background-color:#5c83b0;color:#fff}.Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.Button--color--caution:hover{transition:color 0ms,background-color 0ms}.Button--color--caution:focus{transition:color 100ms,background-color 100ms}.Button--color--caution:hover,.Button--color--caution:focus{background-color:#f5d72e;color:#000}.Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--danger:hover{transition:color 0ms,background-color 0ms}.Button--color--danger:focus{transition:color 100ms,background-color 100ms}.Button--color--danger:hover,.Button--color--danger:focus{background-color:#dc4848;color:#fff}.Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#252525;color:#fff;background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5)}.Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.Button--color--transparent:hover,.Button--color--transparent:focus{background-color:#3e3e3e;color:#fff}.Button--disabled{background-color:#999 !important}.Button--selected{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}.Button--selected:hover{transition:color 0ms,background-color 0ms}.Button--selected:focus{transition:color 100ms,background-color 100ms}.Button--selected:hover,.Button--selected:focus{background-color:#32c154;color:#fff}.ColorBox{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}.Dimmer{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);z-index:1}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Dropdown{position:relative}.Dropdown__control{position:relative;display:inline-block;font-family:Verdana,sans-serif;font-size:1em;width:8.3333333333em;line-height:1.4166666667em;user-select:none}.Dropdown__arrow-button{float:right;padding-left:.35em;width:1.2em;height:1.8333333333em;border-left:.0833333333em solid #000;border-left:.0833333333em solid rgba(0,0,0,.25)}.Dropdown__menu{position:absolute;overflow-y:auto;z-index:5;width:8.3333333333em;max-height:16.6666666667em;overflow-y:scroll;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menu-noscroll{position:absolute;overflow-y:auto;z-index:5;width:8.3333333333em;max-height:16.6666666667em;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menuentry{padding:.1666666667em .3333333333em;font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em;transition:background-color 100ms ease-out}.Dropdown__menuentry:hover{background-color:rgba(255,255,255,.2);transition:background-color 0ms}.Dropdown__over{top:auto;bottom:100%}.Dropdown__selected-text{display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:1.4166666667em;width:calc(100% - 1.2em)}.Flex{display:-ms-flexbox;display:flex}.Flex--inline{display:inline-flex}.Flex--iefix{display:table !important;width:105%;border-collapse:collapse;border-spacing:0}.Flex--iefix:after{content:"";display:table-cell;width:5%}.Flex--iefix--column{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.Flex--iefix--column>.Flex__item--iefix{display:table-row !important}.Flex--iefix--column>.Flex__item--iefix--grow{height:100% !important}.Flex__item--iefix{display:table-cell !important;width:1% !important;min-width:99%}.Flex__item--iefix--grow{width:auto !important}.IconStack>.Icon{position:absolute;width:100%;text-align:center}.IconStack{position:relative;display:inline-block;height:1.2em;line-height:2em;vertical-align:middle}.IconStack:after{color:transparent;content:"."}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto;margin-bottom:-0.2em;cursor:n-resize}.Knob:after{content:".";color:transparent;line-height:2.5em}.Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);border-radius:50%;box-shadow:0 .05em .5em 0 rgba(0,0,0,.5)}.Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.Knob__popupValue{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translateX(50%);white-space:nowrap}.Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.Knob__ringTrackPivot{transform:rotateZ(135deg)}.Knob__ringTrack{fill:transparent;stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.Knob__ringFillPivot{transform:rotateZ(135deg)}.Knob--bipolar .Knob__ringFillPivot{transform:rotateZ(270deg)}.Knob__ringFill{fill:transparent;stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms ease-out}.Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.Knob--color--white .Knob__ringFill{stroke:#fff}.Knob--color--red .Knob__ringFill{stroke:#df3e3e}.Knob--color--orange .Knob__ringFill{stroke:#f37f33}.Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.Knob--color--green .Knob__ringFill{stroke:#25ca4c}.Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.Knob--color--blue .Knob__ringFill{stroke:#2e93de}.Knob--color--violet .Knob__ringFill{stroke:#7349cf}.Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.Knob--color--pink .Knob__ringFill{stroke:#e34da1}.Knob--color--brown .Knob__ringFill{stroke:#b97447}.Knob--color--grey .Knob__ringFill{stroke:#848484}.Knob--color--good .Knob__ringFill{stroke:#68c22d}.Knob--color--average .Knob__ringFill{stroke:#f29a29}.Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.LabeledList{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-0.25em -0.5em;margin-bottom:0;padding:0}.LabeledList__row{display:table-row}.LabeledList__row:last-child .LabeledList__cell{padding-bottom:0}.LabeledList__cell{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left;vertical-align:baseline}.LabeledList__label{width:1%;white-space:nowrap;min-width:5em}.LabeledList__buttons{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}.LabeledList__breakContents{word-break:break-all;word-wrap:break-word}.Modal{background-color:#252525;max-width:calc(100% - 1rem);padding:1rem}.NanoMap__container{overflow:hiddden;width:100%;z-index:1}.NanoMap__marker{z-index:10;padding:0px;margin:0px}.NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.NoticeBox--color--black{color:#fff;background-color:#000}.NoticeBox--color--white{color:#000;background-color:#b3b3b3}.NoticeBox--color--red{color:#fff;background-color:#701f1f}.NoticeBox--color--orange{color:#fff;background-color:#854114}.NoticeBox--color--yellow{color:#000;background-color:#83710d}.NoticeBox--color--olive{color:#000;background-color:#576015}.NoticeBox--color--green{color:#fff;background-color:#174e24}.NoticeBox--color--teal{color:#fff;background-color:#064845}.NoticeBox--color--blue{color:#fff;background-color:#1b4565}.NoticeBox--color--violet{color:#fff;background-color:#3b2864}.NoticeBox--color--purple{color:#fff;background-color:#542663}.NoticeBox--color--pink{color:#fff;background-color:#802257}.NoticeBox--color--brown{color:#fff;background-color:#4c3729}.NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.NoticeBox--color--average{color:#fff;background-color:#7b4e13}.NoticeBox--color--bad{color:#fff;background-color:#701f1f}.NoticeBox--color--label{color:#fff;background-color:#53565a}.NoticeBox--type--info{color:#fff;background-color:#235982}.NoticeBox--type--success{color:#fff;background-color:#1e662f}.NoticeBox--type--warning{color:#fff;background-color:#a95219}.NoticeBox--type--danger{color:#fff;background-color:#8f2828}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.NumberInput--fluid{display:block}.NumberInput__content{margin-left:.5em}.NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color 900ms ease-out}.ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.ProgressBar--color--default{border:.0833333333em solid #3e6189}.ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.ProgressBar--color--black{border:.0833333333em solid #000 !important}.ProgressBar--color--black .ProgressBar__fill{background-color:#000}.ProgressBar--color--white{border:.0833333333em solid #d9d9d9 !important}.ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.ProgressBar--color--red{border:.0833333333em solid #bd2020 !important}.ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--orange{border:.0833333333em solid #d95e0c !important}.ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.ProgressBar--color--yellow{border:.0833333333em solid #d9b804 !important}.ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.ProgressBar--color--olive{border:.0833333333em solid #9aad14 !important}.ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.ProgressBar--color--green{border:.0833333333em solid #1b9638 !important}.ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.ProgressBar--color--teal{border:.0833333333em solid #009a93 !important}.ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.ProgressBar--color--blue{border:.0833333333em solid #1c71b1 !important}.ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.ProgressBar--color--violet{border:.0833333333em solid #552dab !important}.ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.ProgressBar--color--purple{border:.0833333333em solid #8b2baa !important}.ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.ProgressBar--color--pink{border:.0833333333em solid #cf2082 !important}.ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.ProgressBar--color--brown{border:.0833333333em solid #8c5836 !important}.ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.ProgressBar--color--grey{border:.0833333333em solid #646464 !important}.ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.ProgressBar--color--good{border:.0833333333em solid #4d9121 !important}.ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.ProgressBar--color--average{border:.0833333333em solid #cd7a0d !important}.ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.ProgressBar--color--bad{border:.0833333333em solid #bd2020 !important}.ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--label{border:.0833333333em solid #657a94 !important}.ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.RoundGauge{font-size:1rem;width:2.6em;height:1.3em;margin:0 auto;margin-bottom:.2em}.RoundGauge__ringTrack{fill:transparent;stroke:rgba(255,255,255,.1);stroke-width:10;stroke-dasharray:157.08;stroke-dashoffset:157.08}.RoundGauge__ringFill{fill:transparent;stroke:#6a96c9;stroke-width:10;stroke-dasharray:314.16;transition:stroke 50ms ease-out}.RoundGauge__needle,.RoundGauge__ringFill{transition:transform 50ms ease-in-out}.RoundGauge__needleLine,.RoundGauge__needleMiddle{fill:#db2828}.RoundGauge__alert{fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;fill:rgba(255,255,255,.1)}.RoundGauge__alert.max{fill:#db2828}.RoundGauge--color--black.RoundGauge__ringFill{stroke:#1a1a1a}.RoundGauge--color--white.RoundGauge__ringFill{stroke:#fff}.RoundGauge--color--red.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--orange.RoundGauge__ringFill{stroke:#f37f33}.RoundGauge--color--yellow.RoundGauge__ringFill{stroke:#fbda21}.RoundGauge--color--olive.RoundGauge__ringFill{stroke:#cbe41c}.RoundGauge--color--green.RoundGauge__ringFill{stroke:#25ca4c}.RoundGauge--color--teal.RoundGauge__ringFill{stroke:#00d6cc}.RoundGauge--color--blue.RoundGauge__ringFill{stroke:#2e93de}.RoundGauge--color--violet.RoundGauge__ringFill{stroke:#7349cf}.RoundGauge--color--purple.RoundGauge__ringFill{stroke:#ad45d0}.RoundGauge--color--pink.RoundGauge__ringFill{stroke:#e34da1}.RoundGauge--color--brown.RoundGauge__ringFill{stroke:#b97447}.RoundGauge--color--grey.RoundGauge__ringFill{stroke:#848484}.RoundGauge--color--good.RoundGauge__ringFill{stroke:#68c22d}.RoundGauge--color--average.RoundGauge__ringFill{stroke:#f29a29}.RoundGauge--color--bad.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--label.RoundGauge__ringFill{stroke:#8b9bb0}.RoundGauge__alert--black{fill:#1a1a1a;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--white{fill:#fff;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--red{fill:#df3e3e;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--orange{fill:#f37f33;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--yellow{fill:#fbda21;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--olive{fill:#cbe41c;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--green{fill:#25ca4c;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--teal{fill:#00d6cc;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--blue{fill:#2e93de;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--violet{fill:#7349cf;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--purple{fill:#ad45d0;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--pink{fill:#e34da1;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--brown{fill:#b97447;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--grey{fill:#848484;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--good{fill:#68c22d;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--average{fill:#f29a29;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--bad{fill:#df3e3e;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--label{fill:#8b9bb0;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}@keyframes RoundGauge__alertAnim{0%{opacity:.1}50%{opacity:1}100%{opacity:.1}}.Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.Section:last-child{margin-bottom:0}.Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.Section__rest{position:relative}.Section__content{padding:.66em .5em}.Section--fitted>.Section__rest>.Section__content{padding:0}.Section--fill{display:flex;flex-direction:column;height:100%}.Section--fill>.Section__rest{flex-grow:1}.Section--fill>.Section__rest>.Section__content{height:100%}.Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.Section--scrollable{overflow-x:hidden;overflow-y:hidden}.Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.Section .Section:first-child{margin-top:-0.5em}.Section .Section .Section__titleText{font-size:1.0833333333em}.Section .Section .Section .Section__titleText{font-size:1em}.Section--flex{display:flex;flex-flow:column}.Section--flex .Section__content{overflow:auto;flex-grow:1}.Section__content--noTopPadding{padding-top:0}.Section__content--stretchContents{height:calc(100% - 3rem)}.Slider{cursor:e-resize}.Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none !important}.Slider__cursor{position:absolute;top:0;right:-0.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.Slider__pointer{position:absolute;right:-0.4166666667em;bottom:-0.3333333333em;width:0;height:0;border-left:.4166666667em solid transparent;border-right:.4166666667em solid transparent;border-bottom:.4166666667em solid #fff}.Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translateX(50%);white-space:nowrap}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--fill{height:100%}.Stack--horizontal>.Stack__item{margin-left:.5em}.Stack--horizontal>.Stack__item:first-child{margin-left:0}.Stack--vertical>.Stack__item{margin-top:.5em}.Stack--vertical>.Stack__item:first-child{margin-top:0}.Stack--horizontal>.Stack__divider:not(.Stack__divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--vertical>.Stack__divider:not(.Stack__divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Table{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}.Table--collapsing{width:auto}.Table__row{display:table-row}.Table__cell{display:table-cell;padding:0 .25em}.Table__cell:first-child{padding-left:0}.Table__cell:last-child{padding-right:0}.Table__row--header .Table__cell,.Table__cell--header{font-weight:bold;padding-bottom:.5em}.Table__cell--collapsing{width:1%;white-space:nowrap}.Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.Tabs--fill{height:100%}.Section .Tabs{background-color:transparent}.Section:not(.Section--fitted) .Tabs{margin:0 -0.5em .5em}.Section:not(.Section--fitted) .Tabs:first-child{margin-top:-0.5em}.Tabs--vertical{flex-direction:column;padding:.25em 0 .25em .25em}.Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0 .25em}.Tabs--horizontal:last-child{margin-bottom:0}.Tabs__Tab{flex-grow:0}.Tabs--fluid .Tabs__Tab{flex-grow:1}.Tab{display:flex;align-items:center;justify-content:space-between;background-color:transparent;color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.Tab--selected{background-color:rgba(255,255,255,.125);color:#dfe7f0}.Tab__text{flex-grow:1;margin:0 .5em}.Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.Tabs--horizontal .Tab{border-top:.1666666667em solid transparent;border-bottom:.1666666667em solid transparent;border-top-left-radius:.25em;border-top-right-radius:.25em}.Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d4dfec}.Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid transparent;border-right:.1666666667em solid transparent;border-top-left-radius:.25em;border-bottom-left-radius:.25em}.Tabs--vertical .Tab--selected{border-right:.1666666667em solid #d4dfec}.Tab--selected.Tab--color--black{color:#535353}.Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#1a1a1a}.Tabs--vertical .Tab--selected.Tab--color--black{border-right-color:#1a1a1a}.Tab--selected.Tab--color--white{color:#fff}.Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#fff}.Tabs--vertical .Tab--selected.Tab--color--white{border-right-color:#fff}.Tab--selected.Tab--color--red{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--red{border-right-color:#df3e3e}.Tab--selected.Tab--color--orange{color:#f69f66}.Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#f37f33}.Tabs--vertical .Tab--selected.Tab--color--orange{border-right-color:#f37f33}.Tab--selected.Tab--color--yellow{color:#fce358}.Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#fbda21}.Tabs--vertical .Tab--selected.Tab--color--yellow{border-right-color:#fbda21}.Tab--selected.Tab--color--olive{color:#d8eb55}.Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#cbe41c}.Tabs--vertical .Tab--selected.Tab--color--olive{border-right-color:#cbe41c}.Tab--selected.Tab--color--green{color:#53e074}.Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#25ca4c}.Tabs--vertical .Tab--selected.Tab--color--green{border-right-color:#25ca4c}.Tab--selected.Tab--color--teal{color:#21fff5}.Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00d6cc}.Tabs--vertical .Tab--selected.Tab--color--teal{border-right-color:#00d6cc}.Tab--selected.Tab--color--blue{color:#62aee6}.Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#2e93de}.Tabs--vertical .Tab--selected.Tab--color--blue{border-right-color:#2e93de}.Tab--selected.Tab--color--violet{color:#9676db}.Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#7349cf}.Tabs--vertical .Tab--selected.Tab--color--violet{border-right-color:#7349cf}.Tab--selected.Tab--color--purple{color:#c274db}.Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#ad45d0}.Tabs--vertical .Tab--selected.Tab--color--purple{border-right-color:#ad45d0}.Tab--selected.Tab--color--pink{color:#ea79b9}.Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#e34da1}.Tabs--vertical .Tab--selected.Tab--color--pink{border-right-color:#e34da1}.Tab--selected.Tab--color--brown{color:#ca9775}.Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#b97447}.Tabs--vertical .Tab--selected.Tab--color--brown{border-right-color:#b97447}.Tab--selected.Tab--color--grey{color:#a3a3a3}.Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#848484}.Tabs--vertical .Tab--selected.Tab--color--grey{border-right-color:#848484}.Tab--selected.Tab--color--good{color:#8cd95a}.Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#68c22d}.Tabs--vertical .Tab--selected.Tab--color--good{border-right-color:#68c22d}.Tab--selected.Tab--color--average{color:#f5b35e}.Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#f29a29}.Tabs--vertical .Tab--selected.Tab--color--average{border-right-color:#f29a29}.Tab--selected.Tab--color--bad{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--bad{border-right-color:#df3e3e}.Tab--selected.Tab--color--label{color:#a8b4c4}.Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#8b9bb0}.Tabs--vertical .Tab--selected.Tab--color--label{border-right-color:#8b9bb0}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.TextArea--fluid{display:block;width:auto;height:auto}.TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:transparent;color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.TextArea__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.ListInput__Section .Section__title{flex-shrink:0}.ListInput__Section .Section__titleText{font-size:1em;white-space:pre-line}.ListInput__Loader{width:100%;position:relative;height:4px}.ListInput__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.InputModal__Section .Section__title{flex-shrink:0}.InputModal__Section .Section__titleText{font-size:1em;white-space:pre-line}.InputModal__Loader{width:100%;position:relative;height:4px}.InputModal__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.ObjectComponent__Titlebar{border-top-left-radius:12px;border-top-right-radius:12px;white-space:nowrap;-ms-user-select:none;user-select:none}.ObjectComponent__Content{white-space:nowrap;background-color:rgba(0,0,0,.5);-ms-user-select:none;user-select:none}.ObjectComponent__PortPos{position:absolute;top:0;left:0;right:0;bottom:0}.color-stroke-black{stroke:#000 !important}.color-stroke-white{stroke:#d9d9d9 !important}.color-stroke-red{stroke:#bd2020 !important}.color-stroke-orange{stroke:#d95e0c !important}.color-stroke-yellow{stroke:#d9b804 !important}.color-stroke-olive{stroke:#9aad14 !important}.color-stroke-green{stroke:#1b9638 !important}.color-stroke-teal{stroke:#009a93 !important}.color-stroke-blue{stroke:#1c71b1 !important}.color-stroke-violet{stroke:#552dab !important}.color-stroke-purple{stroke:#8b2baa !important}.color-stroke-pink{stroke:#cf2082 !important}.color-stroke-brown{stroke:#8c5836 !important}.color-stroke-grey{stroke:#646464 !important}.color-stroke-good{stroke:#4d9121 !important}.color-stroke-average{stroke:#cd7a0d !important}.color-stroke-bad{stroke:#bd2020 !important}.color-stroke-label{stroke:#657a94 !important}.AlertModal__Message{text-align:center;justify-content:center;white-space:pre-line}.AlertModal__Buttons{justify-content:center}.AlertModal__Loader{width:100%;position:relative;height:4px}.AlertModal__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.CameraConsole__left{position:absolute;top:0;bottom:0;left:0;width:18.3333333333em}.CameraConsole__right{position:absolute;top:0;bottom:0;left:18.3333333333em;right:0;background-color:rgba(0,0,0,.33)}.CameraConsole__toolbar{position:absolute;top:0;left:0;right:0;height:2em;line-height:2em;margin:.25em 1em 0}.CameraConsole__toolbarRight{position:absolute;top:0;right:0;height:2em;line-height:2em;margin:.33em .5em 0}.CameraConsole__map{position:absolute;top:2.1666666667em;bottom:0;left:0;right:0;margin:.5em;text-align:center}.CameraConsole__map .NoticeBox{margin-top:calc(50% - 2em)}.Changelog__Button{height:22px}.Changelog__Cell{padding:3px 0}.Changelog__Cell--Icon{width:25px}.CrewManifest--Command .Section__title{border-color:#fbd608}.CrewManifest--Command .Section__titleText{color:#fbd608}.CrewManifest--Security .Section__title{border-color:#db2828}.CrewManifest--Security .Section__titleText{color:#db2828}.CrewManifest--Engineering .Section__title{border-color:#f2711c}.CrewManifest--Engineering .Section__titleText{color:#f2711c}.CrewManifest--Medical .Section__title{border-color:#00b5ad}.CrewManifest--Medical .Section__titleText{color:#00b5ad}.CrewManifest--Misc .Section__title{border-color:#fff}.CrewManifest--Misc .Section__titleText{color:#fff}.CrewManifest--Science .Section__title{border-color:#a333c8}.CrewManifest--Science .Section__titleText{color:#a333c8}.CrewManifest--Supply .Section__title{border-color:#a5673f}.CrewManifest--Supply .Section__titleText{color:#a5673f}.CrewManifest--Service .Section__title{border-color:#20b142}.CrewManifest--Service .Section__titleText{color:#20b142}.CrewManifest--Silicon .Section__title{border-color:#e03997}.CrewManifest--Silicon .Section__titleText{color:#e03997}.CrewManifest__Cell{padding:3px 0}.CrewManifest__Cell--Rank{color:#7e90a7}.CrewManifest__Icons{padding:3px 9px;text-align:right}.CrewManifest__Icon{color:#7e90a7;position:relative}.CrewManifest__Icon:not(:last-child){margin-right:7px}.CrewManifest__Icon--Chevron{padding-right:2px}.CrewManifest__Icon--Command{color:#fbd608}.ExperimentTechwebServer__Web,.ExperimentConfigure__ExperimentPanel{background:#000;border:1px solid #40628a;margin:3px 0}.ExperimentTechwebServer__WebHeader{background:#40628a;padding:2px}.ExperimentTechwebServer__WebName{font-size:18px}.ExperimentTechwebServer__WebContent{padding:4px}.ExperimentTechwebServer__WebContent>.LabeledList{margin:.25rem .25rem .25rem 1rem}.ExperimentConfigure__ExperimentName{font-weight:bold;border-radius:0}.ExperimentConfigure__ExperimentContent{padding:.25rem 1.5rem .25rem .25rem}.ExperimentStage__Indicator{font-weight:bold;margin-right:1rem;text-align:center}.ExperimentStage__StageContainer.complete .ExperimentStage__Description{opacity:.4;text-decoration:line-through}.ExperimentStage__StageContainer{margin-bottom:5px}.ExperimentStage__Table{border-collapse:separate;border-spacing:.25rem .25rem}.ExperimentConfigure__PerformExperiment{text-align:center;padding:.75rem 0}.ExperimentConfigure__ExperimentsContainer{height:100%;display:flex;flex-direction:column}.ExperimentConfigure__ExperimentsContainer>:last-child{flex:1;overflow-y:auto}.ExperimentConfigure__TagContainer{position:absolute;right:0;top:0}.ExperimentConfigure__PerformanceHint *{position:absolute;width:100%;height:100%;right:0;top:0;color:rgba(255,255,255,.5)}.NuclearBomb__displayBox{background-color:#002003;border:.167em inset #e8e4c9;color:#03e017;font-size:2em;font-family:monospace;padding:.25em}.NuclearBomb__Button{outline-width:.25rem !important;border-width:.65rem !important;padding-left:0 !important;padding-right:0 !important}.NuclearBomb__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9}.NuclearBomb__Button--keypad:hover{background-color:#f7f6ee !important;border-color:#f7f6ee !important}.NuclearBomb__Button--1{background-color:#d3cfb7 !important;border-color:#d3cfb7 !important;color:#a9a692 !important}.NuclearBomb__Button--E{background-color:#d9b804 !important;border-color:#d9b804 !important}.NuclearBomb__Button--E:hover{background-color:#f3d00e !important;border-color:#f3d00e !important}.NuclearBomb__Button--C{background-color:#bd2020 !important;border-color:#bd2020 !important}.NuclearBomb__Button--C:hover{background-color:#d52b2b !important;border-color:#d52b2b !important}.NuclearBomb__NTIcon{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjAiIHZpZXdCb3g9IjAgMCA0MjUgMjAwIiBvcGFjaXR5PSIuMzMiPgogIDxwYXRoIGQ9Im0gMTc4LjAwMzk5LDAuMDM4NjkgLTcxLjIwMzkzLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM0LDYuMDI1NTUgbCAwLDE4Ny44NzE0NyBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgNi43NjEzNCw2LjAyNTU0IGwgNTMuMTA3MiwwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM1LC02LjAyNTU0IGwgMCwtMTAxLjU0NDAxOCA3Mi4yMTYyOCwxMDQuNjk5Mzk4IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA1Ljc2MDE1LDIuODcwMTYgbCA3My41NTQ4NywwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM1LC02LjAyNTU0IGwgMCwtMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNi43NjEzNSwtNi4wMjU1NSBsIC01NC43MTY0NCwwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNi43NjEzMyw2LjAyNTU1IGwgMCwxMDIuNjE5MzUgTCAxODMuNzY0MTMsMi45MDg4NiBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTUuNzYwMTQsLTIuODcwMTcgeiIgLz4KICA8cGF0aCBkPSJNIDQuODQ0NjMzMywyMi4xMDg3NSBBIDEzLjQxMjAzOSwxMi41MDE4NDIgMCAwIDEgMTMuNDc3NTg4LDAuMDM5MjQgbCA2Ni4xMTgzMTUsMCBhIDUuMzY0ODE1OCw1LjAwMDczNyAwIDAgMSA1LjM2NDgyMyw1LjAwMDczIGwgMCw3OS44NzkzMSB6IiAvPgogIDxwYXRoIGQ9Im0gNDIwLjE1NTM1LDE3Ny44OTExOSBhIDEzLjQxMjAzOCwxMi41MDE4NDIgMCAwIDEgLTguNjMyOTUsMjIuMDY5NTEgbCAtNjYuMTE4MzIsMCBhIDUuMzY0ODE1Miw1LjAwMDczNyAwIDAgMSAtNS4zNjQ4MiwtNS4wMDA3NCBsIDAsLTc5Ljg3OTMxIHoiIC8+Cjwvc3ZnPgo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4KPCEtLSBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS1zYS80LjAvIC0tPgo=);background-size:70%;background-position:center;background-repeat:no-repeat}.Paper__Stamp{position:absolute;pointer-events:none;user-select:none}.Paper__Page{word-break:break-word;word-wrap:break-word}.Roulette__container{display:flex}.Roulette__board-cell{display:table-cell;padding:0;margin:0;border:1px solid #fff;vertical-align:bottom}.Roulette__board-cell-number{width:35px}.Roulette__board-cell-number--colspan-2{width:71px}.Roulette__board-cell-number--colspan-4{width:143px}.Roulette__board-button{display:table-cell !important;border:none !important;width:inherit;height:40px;padding:0;margin:0;text-align:center;vertical-align:middle;color:#fff !important}.Roulette__board-button--rowspan-3{height:122px}.Roulette__board-button-text{text-align:center;font-size:16px;font-weight:bold}.Roulette__lowertable{margin-top:8px;border-collapse:collapse;border:1px solid #fff;border-spacing:0}.Roulette__lowertable--cell{border:2px solid #fff;padding:0px;margin:0px}.Roulette__lowertable--betscell{vertical-align:top}.Roulette__lowertable--spinresult{text-align:center;font-size:100px;font-weight:bold;vertical-align:middle}.Roulette__lowertable--spinresult-black{background-color:#000}.Roulette__lowertable--spinresult-red{background-color:#db2828}.Roulette__lowertable--spinresult-green{background-color:#20b142}.Roulette__lowertable--spinbutton{margin:0 !important;border:none !important;font-size:50px;line-height:60px !important;text-align:center;font-weight:bold}.Roulette__lowertable--header{width:1%;text-align:center;font-size:16px;font-weight:bold}.Safe__engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #3e4f6a;padding:5px;text-align:center}.Safe__engraving-arrow{color:#35435a}.Safe__engraving-hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.Safe__dialer{margin-bottom:1.25rem}.Safe__dialer .Button{width:80px}.Safe__dialer-right .Button i{z-index:-100}.Safe__dialer-number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:bold;padding:0 .5rem}.Safe__contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.Safe__help{position:absolute;top:73%;left:10px;width:50%;font-family:"Comic Sans MS",cursive,sans-serif;font-style:italic;color:#000;box-shadow:5px 5px #111;background-image:linear-gradient(to bottom, #b2ae74 0%, #8e8b5d 100%);transform:rotate(-1deg)}.Safe__help:before{content:" ";display:block;width:24px;height:40px;background-image:linear-gradient(to bottom, transparent 0%, #ffffff 100%);box-shadow:1px 1px #111;opacity:.2;position:absolute;top:-30px;left:calc(50% - 12px);transform:rotate(-5deg)}.TachyonArray__ActiveRecord{margin:0 .5em 0 .8em}.TachyonArray__Content{overflow-x:hidden;overflow-y:auto}.TachyonArray__ResearchFooter>*{width:100%;text-align:center}.Techweb__NodeProgress{margin-bottom:1rem}.Techweb__NodeProgress>*:not(:last-child){margin-right:.4rem}.Techweb__DesignIcon{margin-left:.25rem;margin-right:.25rem}.Techweb__OverviewNodes{overflow-y:auto;overflow-x:hidden;padding-right:6px;padding-top:4px}.Techweb__HeaderContent{background-color:#000;padding:6px;border:1px solid #40628a}.Techweb__HeaderContent>*>:not(:last-child){margin-bottom:5px}.Techweb__HeaderSectionTabs{margin-top:8px;background-color:#000;border:1px solid #40628a;padding-left:5px;padding-right:5px}.Techweb__HeaderTabTitle{border-right:1px solid #40628a;padding-right:.5em;margin-right:.5em;font-weight:bold}.Techweb__HeaderSectionTabs input{background-color:rgba(255,255,255,.05)}.Techweb__PointSummary{list-style:none;margin:.4em 0 0 1em;padding:0}.Techweb__SecProtocol{color:#db2828;margin-left:.2em}.Techweb__SecProtocol.engaged{color:#5baa27}.Techweb__DesignModal>:not(:last-child){margin-bottom:.5em}.Techweb__LockedModal>:not(:last-child){margin-bottom:.5em}.Techweb__ExperimentDiscount{color:#7e90a7;margin:.5em 0}.IDCard__NamePlate{margin-left:-6px;margin-right:-6px;margin-top:6px;padding:.5em;border-top:.1666666667em solid #4972a1;font-size:1.1666666667em;font-weight:bold}.TinderMessage_First_Sent,.TinderMessage_Subsequent_Sent,.TinderMessage_First_Received,.TinderMessage_Subsequent_Received{padding:6px;z-index:1;word-break:break-all;max-width:100%}.TinderMessage_First_Sent,.TinderMessage_Subsequent_Sent{text-align:right;background-color:#4d9121}.TinderMessage_First_Sent{border-radius:10px 10px 0px 10px}.TinderMessage_Subsequent_Sent{border-radius:10px 0px 0px 10px}.TinderMessage_First_Received,.TinderMessage_Subsequent_Received{text-align:left;background-color:#cd7a0d}.TinderMessage_First_Received{border-radius:10px 10px 10px 0px}.TinderMessage_Subsequent_Received{border-radius:0px 10px 10px 0px}.ClassicMessage_Sent,.ClassicMessage_Received{word-break:break-all}.ClassicMessage_Sent{color:#4d9121}.ClassicMessage_Received{color:#cd7a0d}.Section--elevator--fire{background-color:#f33;background-color:rgba(255,0,0,.35)}.Section--elevator--fire>.Section__title{padding:.5em;border-bottom:.1666666667em solid red}.Layout,.Layout *{scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.Layout__content--scrollable{overflow-y:auto}.Layout__content--flexRow{display:flex;flex-flow:row}.Layout__content--flexColumn{display:flex;flex-flow:column}.NtosHeader__left{position:absolute;left:1em}.NtosHeader__right{position:absolute;right:1em}.NtosHeader__icon{margin-top:-0.75em;margin-bottom:-0.5em;vertical-align:middle}.NtosWindow__header{position:absolute;top:0;left:0;right:0;height:2em;line-height:1.928em;background-color:rgba(0,0,0,.5);font-family:Consolas,monospace;font-size:1.1666666667em;user-select:none;-ms-user-select:none}.NtosWindow__content .Layout__content{margin-top:2em;font-family:Consolas,monospace;font-size:1.1666666667em}.TitleBar{background-color:#363636;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#363636;transition:color 250ms ease-out,background-color 250ms ease-out}.TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#252525;background-image:linear-gradient(to bottom, #2a2a2a 0%, #202020 100%)}.Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.Window__contentPadding:after{height:0}.Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(62,62,62,.25);pointer-events:none}.Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjAiIHZpZXdCb3g9IjAgMCA0MjUgMjAwIiBvcGFjaXR5PSIuMzMiPgogIDxwYXRoIGQ9Im0gMTc4LjAwMzk5LDAuMDM4NjkgLTcxLjIwMzkzLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM0LDYuMDI1NTUgbCAwLDE4Ny44NzE0NyBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgNi43NjEzNCw2LjAyNTU0IGwgNTMuMTA3MiwwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM1LC02LjAyNTU0IGwgMCwtMTAxLjU0NDAxOCA3Mi4yMTYyOCwxMDQuNjk5Mzk4IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA1Ljc2MDE1LDIuODcwMTYgbCA3My41NTQ4NywwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM1LC02LjAyNTU0IGwgMCwtMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNi43NjEzNSwtNi4wMjU1NSBsIC01NC43MTY0NCwwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNi43NjEzMyw2LjAyNTU1IGwgMCwxMDIuNjE5MzUgTCAxODMuNzY0MTMsMi45MDg4NiBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTUuNzYwMTQsLTIuODcwMTcgeiIgLz4KICA8cGF0aCBkPSJNIDQuODQ0NjMzMywyMi4xMDg3NSBBIDEzLjQxMjAzOSwxMi41MDE4NDIgMCAwIDEgMTMuNDc3NTg4LDAuMDM5MjQgbCA2Ni4xMTgzMTUsMCBhIDUuMzY0ODE1OCw1LjAwMDczNyAwIDAgMSA1LjM2NDgyMyw1LjAwMDczIGwgMCw3OS44NzkzMSB6IiAvPgogIDxwYXRoIGQ9Im0gNDIwLjE1NTM1LDE3Ny44OTExOSBhIDEzLjQxMjAzOCwxMi41MDE4NDIgMCAwIDEgLTguNjMyOTUsMjIuMDY5NTEgbCAtNjYuMTE4MzIsMCBhIDUuMzY0ODE1Miw1LjAwMDczNyAwIDAgMSAtNS4zNjQ4MiwtNS4wMDA3NCBsIDAsLTc5Ljg3OTMxIHoiIC8+Cjwvc3ZnPgo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4KPCEtLSBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS1zYS80LjAvIC0tPgo=);background-size:70%;background-position:center;background-repeat:no-repeat} +html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflow:hidden;cursor:default}body{overflow:auto;font-family:Verdana,Geneva,sans-serif}*,*:before,*:after{box-sizing:inherit}h1,h2,h3,h4,h5,h6{display:block;margin:0;padding:6px 0;padding:.5rem 0}h1{font-size:18px;font-size:1.5rem}h2{font-size:16px;font-size:1.333rem}h3{font-size:14px;font-size:1.167rem}h4{font-size:12px;font-size:1rem}td,th{vertical-align:baseline;text-align:left}.candystripe:nth-child(odd){background-color:rgba(0,0,0,.25)}.color-black{color:#1a1a1a !important}.color-white{color:#fff !important}.color-red{color:#df3e3e !important}.color-orange{color:#f37f33 !important}.color-yellow{color:#fbda21 !important}.color-olive{color:#cbe41c !important}.color-green{color:#25ca4c !important}.color-teal{color:#00d6cc !important}.color-blue{color:#2e93de !important}.color-violet{color:#7349cf !important}.color-purple{color:#ad45d0 !important}.color-pink{color:#e34da1 !important}.color-brown{color:#b97447 !important}.color-grey{color:#848484 !important}.color-good{color:#68c22d !important}.color-average{color:#f29a29 !important}.color-bad{color:#df3e3e !important}.color-label{color:#8b9bb0 !important}.color-bg-black{background-color:#000 !important}.color-bg-white{background-color:#d9d9d9 !important}.color-bg-red{background-color:#bd2020 !important}.color-bg-orange{background-color:#d95e0c !important}.color-bg-yellow{background-color:#d9b804 !important}.color-bg-olive{background-color:#9aad14 !important}.color-bg-green{background-color:#1b9638 !important}.color-bg-teal{background-color:#009a93 !important}.color-bg-blue{background-color:#1c71b1 !important}.color-bg-violet{background-color:#552dab !important}.color-bg-purple{background-color:#8b2baa !important}.color-bg-pink{background-color:#cf2082 !important}.color-bg-brown{background-color:#8c5836 !important}.color-bg-grey{background-color:#646464 !important}.color-bg-good{background-color:#4d9121 !important}.color-bg-average{background-color:#cd7a0d !important}.color-bg-bad{background-color:#bd2020 !important}.color-bg-label{background-color:#657a94 !important}.debug-layout,.debug-layout *:not(g):not(path){color:rgba(255,255,255,.9) !important;background:transparent !important;outline:1px solid rgba(255,255,255,.5) !important;box-shadow:none !important;filter:none !important}.debug-layout:hover,.debug-layout *:not(g):not(path):hover{outline-color:rgba(255,255,255,.8) !important}a:link,a:visited{color:#2185d0}a:hover,a:active{color:#4972a1}.outline-dotted{outline-style:dotted !important}.outline-dashed{outline-style:dashed !important}.outline-solid{outline-style:solid !important}.outline-double{outline-style:double !important}.outline-groove{outline-style:groove !important}.outline-ridge{outline-style:ridge !important}.outline-inset{outline-style:inset !important}.outline-outset{outline-style:outset !important}.outline-color-black{outline:.167rem solid #1a1a1a !important}.outline-color-white{outline:.167rem solid #fff !important}.outline-color-red{outline:.167rem solid #df3e3e !important}.outline-color-orange{outline:.167rem solid #f37f33 !important}.outline-color-yellow{outline:.167rem solid #fbda21 !important}.outline-color-olive{outline:.167rem solid #cbe41c !important}.outline-color-green{outline:.167rem solid #25ca4c !important}.outline-color-teal{outline:.167rem solid #00d6cc !important}.outline-color-blue{outline:.167rem solid #2e93de !important}.outline-color-violet{outline:.167rem solid #7349cf !important}.outline-color-purple{outline:.167rem solid #ad45d0 !important}.outline-color-pink{outline:.167rem solid #e34da1 !important}.outline-color-brown{outline:.167rem solid #b97447 !important}.outline-color-grey{outline:.167rem solid #848484 !important}.outline-color-good{outline:.167rem solid #68c22d !important}.outline-color-average{outline:.167rem solid #f29a29 !important}.outline-color-bad{outline:.167rem solid #df3e3e !important}.outline-color-label{outline:.167rem solid #8b9bb0 !important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-baseline{text-align:baseline}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-pre{white-space:pre}.text-bold{font-weight:bold}.text-italic{font-style:italic}.text-underline{text-decoration:underline}.BlockQuote{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}.BlockQuote:last-child{margin-bottom:0}.Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.Button:last-child{margin-right:0;margin-bottom:0}.Button .fa,.Button .fas,.Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.Button--hasContent .fa,.Button--hasContent .fas,.Button--hasContent .far{margin-right:.25em}.Button--hasContent.Button--iconPosition--right .fa,.Button--hasContent.Button--iconPosition--right .fas,.Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.Button--fluid{display:block;margin-left:0;margin-right:0}.Button--circular{border-radius:50%}.Button--compact{padding:0 .25em;line-height:1.333em}.Button--color--black{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}.Button--color--black:hover{transition:color 0ms,background-color 0ms}.Button--color--black:focus{transition:color 100ms,background-color 100ms}.Button--color--black:hover,.Button--color--black:focus{background-color:#131313;color:#fff}.Button--color--white{transition:color 50ms,background-color 50ms;background-color:#d9d9d9;color:#000}.Button--color--white:hover{transition:color 0ms,background-color 0ms}.Button--color--white:focus{transition:color 100ms,background-color 100ms}.Button--color--white:hover,.Button--color--white:focus{background-color:#f8f8f8;color:#000}.Button--color--red{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--red:hover{transition:color 0ms,background-color 0ms}.Button--color--red:focus{transition:color 100ms,background-color 100ms}.Button--color--red:hover,.Button--color--red:focus{background-color:#dc4848;color:#fff}.Button--color--orange{transition:color 50ms,background-color 50ms;background-color:#d95e0c;color:#fff}.Button--color--orange:hover{transition:color 0ms,background-color 0ms}.Button--color--orange:focus{transition:color 100ms,background-color 100ms}.Button--color--orange:hover,.Button--color--orange:focus{background-color:#f0853f;color:#fff}.Button--color--yellow{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.Button--color--yellow:hover{transition:color 0ms,background-color 0ms}.Button--color--yellow:focus{transition:color 100ms,background-color 100ms}.Button--color--yellow:hover,.Button--color--yellow:focus{background-color:#f5d72e;color:#000}.Button--color--olive{transition:color 50ms,background-color 50ms;background-color:#9aad14;color:#fff}.Button--color--olive:hover{transition:color 0ms,background-color 0ms}.Button--color--olive:focus{transition:color 100ms,background-color 100ms}.Button--color--olive:hover,.Button--color--olive:focus{background-color:#c4da2b;color:#fff}.Button--color--green{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}.Button--color--green:hover{transition:color 0ms,background-color 0ms}.Button--color--green:focus{transition:color 100ms,background-color 100ms}.Button--color--green:hover,.Button--color--green:focus{background-color:#32c154;color:#fff}.Button--color--teal{transition:color 50ms,background-color 50ms;background-color:#009a93;color:#fff}.Button--color--teal:hover{transition:color 0ms,background-color 0ms}.Button--color--teal:focus{transition:color 100ms,background-color 100ms}.Button--color--teal:hover,.Button--color--teal:focus{background-color:#13c4bc;color:#fff}.Button--color--blue{transition:color 50ms,background-color 50ms;background-color:#1c71b1;color:#fff}.Button--color--blue:hover{transition:color 0ms,background-color 0ms}.Button--color--blue:focus{transition:color 100ms,background-color 100ms}.Button--color--blue:hover,.Button--color--blue:focus{background-color:#3a95d9;color:#fff}.Button--color--violet{transition:color 50ms,background-color 50ms;background-color:#552dab;color:#fff}.Button--color--violet:hover{transition:color 0ms,background-color 0ms}.Button--color--violet:focus{transition:color 100ms,background-color 100ms}.Button--color--violet:hover,.Button--color--violet:focus{background-color:#7953cc;color:#fff}.Button--color--purple{transition:color 50ms,background-color 50ms;background-color:#8b2baa;color:#fff}.Button--color--purple:hover{transition:color 0ms,background-color 0ms}.Button--color--purple:focus{transition:color 100ms,background-color 100ms}.Button--color--purple:hover,.Button--color--purple:focus{background-color:#ad4fcd;color:#fff}.Button--color--pink{transition:color 50ms,background-color 50ms;background-color:#cf2082;color:#fff}.Button--color--pink:hover{transition:color 0ms,background-color 0ms}.Button--color--pink:focus{transition:color 100ms,background-color 100ms}.Button--color--pink:hover,.Button--color--pink:focus{background-color:#e257a5;color:#fff}.Button--color--brown{transition:color 50ms,background-color 50ms;background-color:#8c5836;color:#fff}.Button--color--brown:hover{transition:color 0ms,background-color 0ms}.Button--color--brown:focus{transition:color 100ms,background-color 100ms}.Button--color--brown:hover,.Button--color--brown:focus{background-color:#b47851;color:#fff}.Button--color--grey{transition:color 50ms,background-color 50ms;background-color:#646464;color:#fff}.Button--color--grey:hover{transition:color 0ms,background-color 0ms}.Button--color--grey:focus{transition:color 100ms,background-color 100ms}.Button--color--grey:hover,.Button--color--grey:focus{background-color:#868686;color:#fff}.Button--color--good{transition:color 50ms,background-color 50ms;background-color:#4d9121;color:#fff}.Button--color--good:hover{transition:color 0ms,background-color 0ms}.Button--color--good:focus{transition:color 100ms,background-color 100ms}.Button--color--good:hover,.Button--color--good:focus{background-color:#6cba39;color:#fff}.Button--color--average{transition:color 50ms,background-color 50ms;background-color:#cd7a0d;color:#fff}.Button--color--average:hover{transition:color 0ms,background-color 0ms}.Button--color--average:focus{transition:color 100ms,background-color 100ms}.Button--color--average:hover,.Button--color--average:focus{background-color:#ed9d35;color:#fff}.Button--color--bad{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--bad:hover{transition:color 0ms,background-color 0ms}.Button--color--bad:focus{transition:color 100ms,background-color 100ms}.Button--color--bad:hover,.Button--color--bad:focus{background-color:#dc4848;color:#fff}.Button--color--label{transition:color 50ms,background-color 50ms;background-color:#657a94;color:#fff}.Button--color--label:hover{transition:color 0ms,background-color 0ms}.Button--color--label:focus{transition:color 100ms,background-color 100ms}.Button--color--label:hover,.Button--color--label:focus{background-color:#91a1b3;color:#fff}.Button--color--default{transition:color 50ms,background-color 50ms;background-color:#3e6189;color:#fff}.Button--color--default:hover{transition:color 0ms,background-color 0ms}.Button--color--default:focus{transition:color 100ms,background-color 100ms}.Button--color--default:hover,.Button--color--default:focus{background-color:#5c83b0;color:#fff}.Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.Button--color--caution:hover{transition:color 0ms,background-color 0ms}.Button--color--caution:focus{transition:color 100ms,background-color 100ms}.Button--color--caution:hover,.Button--color--caution:focus{background-color:#f5d72e;color:#000}.Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--danger:hover{transition:color 0ms,background-color 0ms}.Button--color--danger:focus{transition:color 100ms,background-color 100ms}.Button--color--danger:hover,.Button--color--danger:focus{background-color:#dc4848;color:#fff}.Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#252525;color:#fff;background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5)}.Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.Button--color--transparent:hover,.Button--color--transparent:focus{background-color:#3e3e3e;color:#fff}.Button--disabled{background-color:#999 !important}.Button--selected{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}.Button--selected:hover{transition:color 0ms,background-color 0ms}.Button--selected:focus{transition:color 100ms,background-color 100ms}.Button--selected:hover,.Button--selected:focus{background-color:#32c154;color:#fff}.ColorBox{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}.Dimmer{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);z-index:1}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Dropdown{position:relative}.Dropdown__control{position:relative;display:inline-block;font-family:Verdana,sans-serif;font-size:1em;width:8.3333333333em;line-height:1.4166666667em;user-select:none}.Dropdown__arrow-button{float:right;padding-left:.35em;width:1.2em;height:1.8333333333em;border-left:.0833333333em solid #000;border-left:.0833333333em solid rgba(0,0,0,.25)}.Dropdown__menu{position:absolute;overflow-y:auto;z-index:5;width:8.3333333333em;max-height:16.6666666667em;overflow-y:scroll;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menu-noscroll{position:absolute;overflow-y:auto;z-index:5;width:8.3333333333em;max-height:16.6666666667em;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menuentry{padding:.1666666667em .3333333333em;font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em;transition:background-color 100ms ease-out}.Dropdown__menuentry:hover{background-color:rgba(255,255,255,.2);transition:background-color 0ms}.Dropdown__over{top:auto;bottom:100%}.Dropdown__selected-text{display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:1.4166666667em;width:calc(100% - 1.2em)}.Flex{display:-ms-flexbox;display:flex}.Flex--inline{display:inline-flex}.Flex--iefix{display:table !important;width:105%;border-collapse:collapse;border-spacing:0}.Flex--iefix:after{content:"";display:table-cell;width:5%}.Flex--iefix--column{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.Flex--iefix--column>.Flex__item--iefix{display:table-row !important}.Flex--iefix--column>.Flex__item--iefix--grow{height:100% !important}.Flex__item--iefix{display:table-cell !important;width:1% !important;min-width:99%}.Flex__item--iefix--grow{width:auto !important}.IconStack>.Icon{position:absolute;width:100%;text-align:center}.IconStack{position:relative;display:inline-block;height:1.2em;line-height:2em;vertical-align:middle}.IconStack:after{color:transparent;content:"."}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto;margin-bottom:-0.2em;cursor:n-resize}.Knob:after{content:".";color:transparent;line-height:2.5em}.Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);border-radius:50%;box-shadow:0 .05em .5em 0 rgba(0,0,0,.5)}.Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.Knob__popupValue{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translateX(50%);white-space:nowrap}.Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.Knob__ringTrackPivot{transform:rotateZ(135deg)}.Knob__ringTrack{fill:transparent;stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.Knob__ringFillPivot{transform:rotateZ(135deg)}.Knob--bipolar .Knob__ringFillPivot{transform:rotateZ(270deg)}.Knob__ringFill{fill:transparent;stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms ease-out}.Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.Knob--color--white .Knob__ringFill{stroke:#fff}.Knob--color--red .Knob__ringFill{stroke:#df3e3e}.Knob--color--orange .Knob__ringFill{stroke:#f37f33}.Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.Knob--color--green .Knob__ringFill{stroke:#25ca4c}.Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.Knob--color--blue .Knob__ringFill{stroke:#2e93de}.Knob--color--violet .Knob__ringFill{stroke:#7349cf}.Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.Knob--color--pink .Knob__ringFill{stroke:#e34da1}.Knob--color--brown .Knob__ringFill{stroke:#b97447}.Knob--color--grey .Knob__ringFill{stroke:#848484}.Knob--color--good .Knob__ringFill{stroke:#68c22d}.Knob--color--average .Knob__ringFill{stroke:#f29a29}.Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.LabeledList{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-0.25em -0.5em;margin-bottom:0;padding:0}.LabeledList__row{display:table-row}.LabeledList__row:last-child .LabeledList__cell{padding-bottom:0}.LabeledList__cell{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left;vertical-align:baseline}.LabeledList__label{width:1%;white-space:nowrap;min-width:5em}.LabeledList__buttons{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}.LabeledList__breakContents{word-break:break-all;word-wrap:break-word}.Modal{background-color:#252525;max-width:calc(100% - 1rem);padding:1rem}.NanoMap__container{overflow:hiddden;width:100%;z-index:1}.NanoMap__marker{z-index:10;padding:0px;margin:0px}.NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.NoticeBox--color--black{color:#fff;background-color:#000}.NoticeBox--color--white{color:#000;background-color:#b3b3b3}.NoticeBox--color--red{color:#fff;background-color:#701f1f}.NoticeBox--color--orange{color:#fff;background-color:#854114}.NoticeBox--color--yellow{color:#000;background-color:#83710d}.NoticeBox--color--olive{color:#000;background-color:#576015}.NoticeBox--color--green{color:#fff;background-color:#174e24}.NoticeBox--color--teal{color:#fff;background-color:#064845}.NoticeBox--color--blue{color:#fff;background-color:#1b4565}.NoticeBox--color--violet{color:#fff;background-color:#3b2864}.NoticeBox--color--purple{color:#fff;background-color:#542663}.NoticeBox--color--pink{color:#fff;background-color:#802257}.NoticeBox--color--brown{color:#fff;background-color:#4c3729}.NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.NoticeBox--color--average{color:#fff;background-color:#7b4e13}.NoticeBox--color--bad{color:#fff;background-color:#701f1f}.NoticeBox--color--label{color:#fff;background-color:#53565a}.NoticeBox--type--info{color:#fff;background-color:#235982}.NoticeBox--type--success{color:#fff;background-color:#1e662f}.NoticeBox--type--warning{color:#fff;background-color:#a95219}.NoticeBox--type--danger{color:#fff;background-color:#8f2828}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.NumberInput--fluid{display:block}.NumberInput__content{margin-left:.5em}.NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color 900ms ease-out}.ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.ProgressBar--color--default{border:.0833333333em solid #3e6189}.ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.ProgressBar--color--black{border:.0833333333em solid #000 !important}.ProgressBar--color--black .ProgressBar__fill{background-color:#000}.ProgressBar--color--white{border:.0833333333em solid #d9d9d9 !important}.ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.ProgressBar--color--red{border:.0833333333em solid #bd2020 !important}.ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--orange{border:.0833333333em solid #d95e0c !important}.ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.ProgressBar--color--yellow{border:.0833333333em solid #d9b804 !important}.ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.ProgressBar--color--olive{border:.0833333333em solid #9aad14 !important}.ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.ProgressBar--color--green{border:.0833333333em solid #1b9638 !important}.ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.ProgressBar--color--teal{border:.0833333333em solid #009a93 !important}.ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.ProgressBar--color--blue{border:.0833333333em solid #1c71b1 !important}.ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.ProgressBar--color--violet{border:.0833333333em solid #552dab !important}.ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.ProgressBar--color--purple{border:.0833333333em solid #8b2baa !important}.ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.ProgressBar--color--pink{border:.0833333333em solid #cf2082 !important}.ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.ProgressBar--color--brown{border:.0833333333em solid #8c5836 !important}.ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.ProgressBar--color--grey{border:.0833333333em solid #646464 !important}.ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.ProgressBar--color--good{border:.0833333333em solid #4d9121 !important}.ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.ProgressBar--color--average{border:.0833333333em solid #cd7a0d !important}.ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.ProgressBar--color--bad{border:.0833333333em solid #bd2020 !important}.ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--label{border:.0833333333em solid #657a94 !important}.ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.RoundGauge{font-size:1rem;width:2.6em;height:1.3em;margin:0 auto;margin-bottom:.2em}.RoundGauge__ringTrack{fill:transparent;stroke:rgba(255,255,255,.1);stroke-width:10;stroke-dasharray:157.08;stroke-dashoffset:157.08}.RoundGauge__ringFill{fill:transparent;stroke:#6a96c9;stroke-width:10;stroke-dasharray:314.16;transition:stroke 50ms ease-out}.RoundGauge__needle,.RoundGauge__ringFill{transition:transform 50ms ease-in-out}.RoundGauge__needleLine,.RoundGauge__needleMiddle{fill:#db2828}.RoundGauge__alert{fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;fill:rgba(255,255,255,.1)}.RoundGauge__alert.max{fill:#db2828}.RoundGauge--color--black.RoundGauge__ringFill{stroke:#1a1a1a}.RoundGauge--color--white.RoundGauge__ringFill{stroke:#fff}.RoundGauge--color--red.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--orange.RoundGauge__ringFill{stroke:#f37f33}.RoundGauge--color--yellow.RoundGauge__ringFill{stroke:#fbda21}.RoundGauge--color--olive.RoundGauge__ringFill{stroke:#cbe41c}.RoundGauge--color--green.RoundGauge__ringFill{stroke:#25ca4c}.RoundGauge--color--teal.RoundGauge__ringFill{stroke:#00d6cc}.RoundGauge--color--blue.RoundGauge__ringFill{stroke:#2e93de}.RoundGauge--color--violet.RoundGauge__ringFill{stroke:#7349cf}.RoundGauge--color--purple.RoundGauge__ringFill{stroke:#ad45d0}.RoundGauge--color--pink.RoundGauge__ringFill{stroke:#e34da1}.RoundGauge--color--brown.RoundGauge__ringFill{stroke:#b97447}.RoundGauge--color--grey.RoundGauge__ringFill{stroke:#848484}.RoundGauge--color--good.RoundGauge__ringFill{stroke:#68c22d}.RoundGauge--color--average.RoundGauge__ringFill{stroke:#f29a29}.RoundGauge--color--bad.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--label.RoundGauge__ringFill{stroke:#8b9bb0}.RoundGauge__alert--black{fill:#1a1a1a;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--white{fill:#fff;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--red{fill:#df3e3e;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--orange{fill:#f37f33;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--yellow{fill:#fbda21;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--olive{fill:#cbe41c;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--green{fill:#25ca4c;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--teal{fill:#00d6cc;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--blue{fill:#2e93de;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--violet{fill:#7349cf;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--purple{fill:#ad45d0;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--pink{fill:#e34da1;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--brown{fill:#b97447;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--grey{fill:#848484;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--good{fill:#68c22d;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--average{fill:#f29a29;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--bad{fill:#df3e3e;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--label{fill:#8b9bb0;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}@keyframes RoundGauge__alertAnim{0%{opacity:.1}50%{opacity:1}100%{opacity:.1}}.Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.Section:last-child{margin-bottom:0}.Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.Section__rest{position:relative}.Section__content{padding:.66em .5em}.Section--fitted>.Section__rest>.Section__content{padding:0}.Section--fill{display:flex;flex-direction:column;height:100%}.Section--fill>.Section__rest{flex-grow:1}.Section--fill>.Section__rest>.Section__content{height:100%}.Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.Section--scrollable{overflow-x:hidden;overflow-y:hidden}.Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.Section .Section:first-child{margin-top:-0.5em}.Section .Section .Section__titleText{font-size:1.0833333333em}.Section .Section .Section .Section__titleText{font-size:1em}.Section--flex{display:flex;flex-flow:column}.Section--flex .Section__content{overflow:auto;flex-grow:1}.Section__content--noTopPadding{padding-top:0}.Section__content--stretchContents{height:calc(100% - 3rem)}.Slider{cursor:e-resize}.Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none !important}.Slider__cursor{position:absolute;top:0;right:-0.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.Slider__pointer{position:absolute;right:-0.4166666667em;bottom:-0.3333333333em;width:0;height:0;border-left:.4166666667em solid transparent;border-right:.4166666667em solid transparent;border-bottom:.4166666667em solid #fff}.Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translateX(50%);white-space:nowrap}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--fill{height:100%}.Stack--horizontal>.Stack__item{margin-left:.5em}.Stack--horizontal>.Stack__item:first-child{margin-left:0}.Stack--vertical>.Stack__item{margin-top:.5em}.Stack--vertical>.Stack__item:first-child{margin-top:0}.Stack--horizontal>.Stack__divider:not(.Stack__divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--vertical>.Stack__divider:not(.Stack__divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Table{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}.Table--collapsing{width:auto}.Table__row{display:table-row}.Table__cell{display:table-cell;padding:0 .25em}.Table__cell:first-child{padding-left:0}.Table__cell:last-child{padding-right:0}.Table__row--header .Table__cell,.Table__cell--header{font-weight:bold;padding-bottom:.5em}.Table__cell--collapsing{width:1%;white-space:nowrap}.Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.Tabs--fill{height:100%}.Section .Tabs{background-color:transparent}.Section:not(.Section--fitted) .Tabs{margin:0 -0.5em .5em}.Section:not(.Section--fitted) .Tabs:first-child{margin-top:-0.5em}.Tabs--vertical{flex-direction:column;padding:.25em 0 .25em .25em}.Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0 .25em}.Tabs--horizontal:last-child{margin-bottom:0}.Tabs__Tab{flex-grow:0}.Tabs--fluid .Tabs__Tab{flex-grow:1}.Tab{display:flex;align-items:center;justify-content:space-between;background-color:transparent;color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.Tab--selected{background-color:rgba(255,255,255,.125);color:#dfe7f0}.Tab__text{flex-grow:1;margin:0 .5em}.Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.Tabs--horizontal .Tab{border-top:.1666666667em solid transparent;border-bottom:.1666666667em solid transparent;border-top-left-radius:.25em;border-top-right-radius:.25em}.Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d4dfec}.Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid transparent;border-right:.1666666667em solid transparent;border-top-left-radius:.25em;border-bottom-left-radius:.25em}.Tabs--vertical .Tab--selected{border-right:.1666666667em solid #d4dfec}.Tab--selected.Tab--color--black{color:#535353}.Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#1a1a1a}.Tabs--vertical .Tab--selected.Tab--color--black{border-right-color:#1a1a1a}.Tab--selected.Tab--color--white{color:#fff}.Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#fff}.Tabs--vertical .Tab--selected.Tab--color--white{border-right-color:#fff}.Tab--selected.Tab--color--red{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--red{border-right-color:#df3e3e}.Tab--selected.Tab--color--orange{color:#f69f66}.Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#f37f33}.Tabs--vertical .Tab--selected.Tab--color--orange{border-right-color:#f37f33}.Tab--selected.Tab--color--yellow{color:#fce358}.Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#fbda21}.Tabs--vertical .Tab--selected.Tab--color--yellow{border-right-color:#fbda21}.Tab--selected.Tab--color--olive{color:#d8eb55}.Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#cbe41c}.Tabs--vertical .Tab--selected.Tab--color--olive{border-right-color:#cbe41c}.Tab--selected.Tab--color--green{color:#53e074}.Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#25ca4c}.Tabs--vertical .Tab--selected.Tab--color--green{border-right-color:#25ca4c}.Tab--selected.Tab--color--teal{color:#21fff5}.Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00d6cc}.Tabs--vertical .Tab--selected.Tab--color--teal{border-right-color:#00d6cc}.Tab--selected.Tab--color--blue{color:#62aee6}.Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#2e93de}.Tabs--vertical .Tab--selected.Tab--color--blue{border-right-color:#2e93de}.Tab--selected.Tab--color--violet{color:#9676db}.Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#7349cf}.Tabs--vertical .Tab--selected.Tab--color--violet{border-right-color:#7349cf}.Tab--selected.Tab--color--purple{color:#c274db}.Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#ad45d0}.Tabs--vertical .Tab--selected.Tab--color--purple{border-right-color:#ad45d0}.Tab--selected.Tab--color--pink{color:#ea79b9}.Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#e34da1}.Tabs--vertical .Tab--selected.Tab--color--pink{border-right-color:#e34da1}.Tab--selected.Tab--color--brown{color:#ca9775}.Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#b97447}.Tabs--vertical .Tab--selected.Tab--color--brown{border-right-color:#b97447}.Tab--selected.Tab--color--grey{color:#a3a3a3}.Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#848484}.Tabs--vertical .Tab--selected.Tab--color--grey{border-right-color:#848484}.Tab--selected.Tab--color--good{color:#8cd95a}.Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#68c22d}.Tabs--vertical .Tab--selected.Tab--color--good{border-right-color:#68c22d}.Tab--selected.Tab--color--average{color:#f5b35e}.Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#f29a29}.Tabs--vertical .Tab--selected.Tab--color--average{border-right-color:#f29a29}.Tab--selected.Tab--color--bad{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--bad{border-right-color:#df3e3e}.Tab--selected.Tab--color--label{color:#a8b4c4}.Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#8b9bb0}.Tabs--vertical .Tab--selected.Tab--color--label{border-right-color:#8b9bb0}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.TextArea--fluid{display:block;width:auto;height:auto}.TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:transparent;color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.TextArea__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.ListInput__Section .Section__title{flex-shrink:0}.ListInput__Section .Section__titleText{font-size:1em;white-space:pre-line}.ListInput__Loader{width:100%;position:relative;height:4px}.ListInput__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.InputModal__Section .Section__title{flex-shrink:0}.InputModal__Section .Section__titleText{font-size:1em;white-space:pre-line}.InputModal__Loader{width:100%;position:relative;height:4px}.InputModal__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.ObjectComponent__Titlebar{border-top-left-radius:12px;border-top-right-radius:12px;white-space:nowrap;-ms-user-select:none;user-select:none}.ObjectComponent__Content{white-space:nowrap;background-color:rgba(0,0,0,.5);-ms-user-select:none;user-select:none}.ObjectComponent__PortPos{position:absolute;top:0;left:0;right:0;bottom:0}.color-stroke-black{stroke:#000 !important}.color-stroke-white{stroke:#d9d9d9 !important}.color-stroke-red{stroke:#bd2020 !important}.color-stroke-orange{stroke:#d95e0c !important}.color-stroke-yellow{stroke:#d9b804 !important}.color-stroke-olive{stroke:#9aad14 !important}.color-stroke-green{stroke:#1b9638 !important}.color-stroke-teal{stroke:#009a93 !important}.color-stroke-blue{stroke:#1c71b1 !important}.color-stroke-violet{stroke:#552dab !important}.color-stroke-purple{stroke:#8b2baa !important}.color-stroke-pink{stroke:#cf2082 !important}.color-stroke-brown{stroke:#8c5836 !important}.color-stroke-grey{stroke:#646464 !important}.color-stroke-good{stroke:#4d9121 !important}.color-stroke-average{stroke:#cd7a0d !important}.color-stroke-bad{stroke:#bd2020 !important}.color-stroke-label{stroke:#657a94 !important}.AlertModal__Message{text-align:center;justify-content:center;white-space:pre-line}.AlertModal__Buttons{justify-content:center}.AlertModal__Loader{width:100%;position:relative;height:4px}.AlertModal__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.CameraConsole__left{position:absolute;top:0;bottom:0;left:0;width:18.3333333333em}.CameraConsole__right{position:absolute;top:0;bottom:0;left:18.3333333333em;right:0;background-color:rgba(0,0,0,.33)}.CameraConsole__toolbar{position:absolute;top:0;left:0;right:0;height:2em;line-height:2em;margin:.25em 1em 0}.CameraConsole__toolbarRight{position:absolute;top:0;right:0;height:2em;line-height:2em;margin:.33em .5em 0}.CameraConsole__map{position:absolute;top:2.1666666667em;bottom:0;left:0;right:0;margin:.5em;text-align:center}.CameraConsole__map .NoticeBox{margin-top:calc(50% - 2em)}.Changelog__Button{height:22px}.Changelog__Cell{padding:3px 0}.Changelog__Cell--Icon{width:25px}.CrewManifest--Command .Section__title{border-color:#fbd608}.CrewManifest--Command .Section__titleText{color:#fbd608}.CrewManifest--Security .Section__title{border-color:#db2828}.CrewManifest--Security .Section__titleText{color:#db2828}.CrewManifest--Engineering .Section__title{border-color:#f2711c}.CrewManifest--Engineering .Section__titleText{color:#f2711c}.CrewManifest--Medical .Section__title{border-color:#00b5ad}.CrewManifest--Medical .Section__titleText{color:#00b5ad}.CrewManifest--Misc .Section__title{border-color:#fff}.CrewManifest--Misc .Section__titleText{color:#fff}.CrewManifest--Science .Section__title{border-color:#a333c8}.CrewManifest--Science .Section__titleText{color:#a333c8}.CrewManifest--Supply .Section__title{border-color:#a5673f}.CrewManifest--Supply .Section__titleText{color:#a5673f}.CrewManifest--Service .Section__title{border-color:#20b142}.CrewManifest--Service .Section__titleText{color:#20b142}.CrewManifest--Silicon .Section__title{border-color:#e03997}.CrewManifest--Silicon .Section__titleText{color:#e03997}.CrewManifest__Cell{padding:3px 0}.CrewManifest__Cell--Rank{color:#7e90a7}.CrewManifest__Icons{padding:3px 9px;text-align:right}.CrewManifest__Icon{color:#7e90a7;position:relative}.CrewManifest__Icon:not(:last-child){margin-right:7px}.CrewManifest__Icon--Chevron{padding-right:2px}.CrewManifest__Icon--Command{color:#fbd608}.ExperimentTechwebServer__Web,.ExperimentConfigure__ExperimentPanel{background:#000;border:1px solid #40628a;margin:3px 0}.ExperimentTechwebServer__WebHeader{background:#40628a;padding:2px}.ExperimentTechwebServer__WebName{font-size:18px}.ExperimentTechwebServer__WebContent{padding:4px}.ExperimentTechwebServer__WebContent>.LabeledList{margin:.25rem .25rem .25rem 1rem}.ExperimentConfigure__ExperimentName{font-weight:bold;border-radius:0}.ExperimentConfigure__ExperimentContent{padding:.25rem 1.5rem .25rem .25rem}.ExperimentStage__Indicator{font-weight:bold;margin-right:1rem;text-align:center}.ExperimentStage__StageContainer.complete .ExperimentStage__Description{opacity:.4;text-decoration:line-through}.ExperimentStage__StageContainer{margin-bottom:5px}.ExperimentStage__Table{border-collapse:separate;border-spacing:.25rem .25rem}.ExperimentConfigure__PerformExperiment{text-align:center;padding:.75rem 0}.ExperimentConfigure__ExperimentsContainer{height:100%;display:flex;flex-direction:column}.ExperimentConfigure__ExperimentsContainer>:last-child{flex:1;overflow-y:auto}.ExperimentConfigure__TagContainer{position:absolute;right:0;top:0}.ExperimentConfigure__PerformanceHint *{position:absolute;width:100%;height:100%;right:0;top:0;color:rgba(255,255,255,.5)}.NuclearBomb__displayBox{background-color:#002003;border:.167em inset #e8e4c9;color:#03e017;font-size:2em;font-family:monospace;padding:.25em}.NuclearBomb__Button{outline-width:.25rem !important;border-width:.65rem !important;padding-left:0 !important;padding-right:0 !important}.NuclearBomb__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9}.NuclearBomb__Button--keypad:hover{background-color:#f7f6ee !important;border-color:#f7f6ee !important}.NuclearBomb__Button--1{background-color:#d3cfb7 !important;border-color:#d3cfb7 !important;color:#a9a692 !important}.NuclearBomb__Button--E{background-color:#d9b804 !important;border-color:#d9b804 !important}.NuclearBomb__Button--E:hover{background-color:#f3d00e !important;border-color:#f3d00e !important}.NuclearBomb__Button--C{background-color:#bd2020 !important;border-color:#bd2020 !important}.NuclearBomb__Button--C:hover{background-color:#d52b2b !important;border-color:#d52b2b !important}.NuclearBomb__NTIcon{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4wIiB2aWV3Qm94PSIwIDAgNDI1IDIwMCIgb3BhY2l0eT0iLjMzIj4NCiAgPHBhdGggZD0ibSAxNzguMDAzOTksMC4wMzg2OSAtNzEuMjAzOTMsMCBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTYuNzYxMzQsNi4wMjU1NSBsIDAsMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM0LDYuMDI1NTQgbCA1My4xMDcyLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xMDEuNTQ0MDE4IDcyLjIxNjI4LDEwNC42OTkzOTggYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDUuNzYwMTUsMi44NzAxNiBsIDczLjU1NDg3LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xODcuODcxNDcgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM1LC02LjAyNTU1IGwgLTU0LjcxNjQ0LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTMzLDYuMDI1NTUgbCAwLDEwMi42MTkzNSBMIDE4My43NjQxMywyLjkwODg2IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNS43NjAxNCwtMi44NzAxNyB6IiAvPg0KICA8cGF0aCBkPSJNIDQuODQ0NjMzMywyMi4xMDg3NSBBIDEzLjQxMjAzOSwxMi41MDE4NDIgMCAwIDEgMTMuNDc3NTg4LDAuMDM5MjQgbCA2Ni4xMTgzMTUsMCBhIDUuMzY0ODE1OCw1LjAwMDczNyAwIDAgMSA1LjM2NDgyMyw1LjAwMDczIGwgMCw3OS44NzkzMSB6IiAvPg0KICA8cGF0aCBkPSJtIDQyMC4xNTUzNSwxNzcuODkxMTkgYSAxMy40MTIwMzgsMTIuNTAxODQyIDAgMCAxIC04LjYzMjk1LDIyLjA2OTUxIGwgLTY2LjExODMyLDAgYSA1LjM2NDgxNTIsNS4wMDA3MzcgMCAwIDEgLTUuMzY0ODIsLTUuMDAwNzQgbCAwLC03OS44NzkzMSB6IiAvPg0KPC9zdmc+DQo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4NCjwhLS0gaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvNC4wLyAtLT4NCg==);background-size:70%;background-position:center;background-repeat:no-repeat}.Paper__Stamp{position:absolute;pointer-events:none;user-select:none}.Paper__Page{word-break:break-word;word-wrap:break-word}.Roulette__container{display:flex}.Roulette__board-cell{display:table-cell;padding:0;margin:0;border:1px solid #fff;vertical-align:bottom}.Roulette__board-cell-number{width:35px}.Roulette__board-cell-number--colspan-2{width:71px}.Roulette__board-cell-number--colspan-4{width:143px}.Roulette__board-button{display:table-cell !important;border:none !important;width:inherit;height:40px;padding:0;margin:0;text-align:center;vertical-align:middle;color:#fff !important}.Roulette__board-button--rowspan-3{height:122px}.Roulette__board-button-text{text-align:center;font-size:16px;font-weight:bold}.Roulette__lowertable{margin-top:8px;border-collapse:collapse;border:1px solid #fff;border-spacing:0}.Roulette__lowertable--cell{border:2px solid #fff;padding:0px;margin:0px}.Roulette__lowertable--betscell{vertical-align:top}.Roulette__lowertable--spinresult{text-align:center;font-size:100px;font-weight:bold;vertical-align:middle}.Roulette__lowertable--spinresult-black{background-color:#000}.Roulette__lowertable--spinresult-red{background-color:#db2828}.Roulette__lowertable--spinresult-green{background-color:#20b142}.Roulette__lowertable--spinbutton{margin:0 !important;border:none !important;font-size:50px;line-height:60px !important;text-align:center;font-weight:bold}.Roulette__lowertable--header{width:1%;text-align:center;font-size:16px;font-weight:bold}.Safe__engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #3e4f6a;padding:5px;text-align:center}.Safe__engraving-arrow{color:#35435a}.Safe__engraving-hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.Safe__dialer{margin-bottom:1.25rem}.Safe__dialer .Button{width:80px}.Safe__dialer-right .Button i{z-index:-100}.Safe__dialer-number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:bold;padding:0 .5rem}.Safe__contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.Safe__help{position:absolute;top:73%;left:10px;width:50%;font-family:"Comic Sans MS",cursive,sans-serif;font-style:italic;color:#000;box-shadow:5px 5px #111;background-image:linear-gradient(to bottom, #b2ae74 0%, #8e8b5d 100%);transform:rotate(-1deg)}.Safe__help:before{content:" ";display:block;width:24px;height:40px;background-image:linear-gradient(to bottom, transparent 0%, #ffffff 100%);box-shadow:1px 1px #111;opacity:.2;position:absolute;top:-30px;left:calc(50% - 12px);transform:rotate(-5deg)}.TachyonArray__ActiveRecord{margin:0 .5em 0 .8em}.TachyonArray__Content{overflow-x:hidden;overflow-y:auto}.TachyonArray__ResearchFooter>*{width:100%;text-align:center}.Techweb__NodeProgress{margin-bottom:1rem}.Techweb__NodeProgress>*:not(:last-child){margin-right:.4rem}.Techweb__DesignIcon{margin-left:.25rem;margin-right:.25rem}.Techweb__OverviewNodes{overflow-y:auto;overflow-x:hidden;padding-right:6px;padding-top:4px}.Techweb__HeaderContent{background-color:#000;padding:6px;border:1px solid #40628a}.Techweb__HeaderContent>*>:not(:last-child){margin-bottom:5px}.Techweb__HeaderSectionTabs{margin-top:8px;background-color:#000;border:1px solid #40628a;padding-left:5px;padding-right:5px}.Techweb__HeaderTabTitle{border-right:1px solid #40628a;padding-right:.5em;margin-right:.5em;font-weight:bold}.Techweb__HeaderSectionTabs input{background-color:rgba(255,255,255,.05)}.Techweb__PointSummary{list-style:none;margin:.4em 0 0 1em;padding:0}.Techweb__SecProtocol{color:#db2828;margin-left:.2em}.Techweb__SecProtocol.engaged{color:#5baa27}.Techweb__DesignModal>:not(:last-child){margin-bottom:.5em}.Techweb__LockedModal>:not(:last-child){margin-bottom:.5em}.Techweb__ExperimentDiscount{color:#7e90a7;margin:.5em 0}.IDCard__NamePlate{margin-left:-6px;margin-right:-6px;margin-top:6px;padding:.5em;border-top:.1666666667em solid #4972a1;font-size:1.1666666667em;font-weight:bold}.TinderMessage_First_Sent,.TinderMessage_Subsequent_Sent,.TinderMessage_First_Received,.TinderMessage_Subsequent_Received{padding:6px;z-index:1;word-break:break-all;max-width:100%}.TinderMessage_First_Sent,.TinderMessage_Subsequent_Sent{text-align:right;background-color:#4d9121}.TinderMessage_First_Sent{border-radius:10px 10px 0px 10px}.TinderMessage_Subsequent_Sent{border-radius:10px 0px 0px 10px}.TinderMessage_First_Received,.TinderMessage_Subsequent_Received{text-align:left;background-color:#cd7a0d}.TinderMessage_First_Received{border-radius:10px 10px 10px 0px}.TinderMessage_Subsequent_Received{border-radius:0px 10px 10px 0px}.ClassicMessage_Sent,.ClassicMessage_Received{word-break:break-all}.ClassicMessage_Sent{color:#4d9121}.ClassicMessage_Received{color:#cd7a0d}.Section--elevator--fire{background-color:#f33;background-color:rgba(255,0,0,.35)}.Section--elevator--fire>.Section__title{padding:.5em;border-bottom:.1666666667em solid red}.Layout,.Layout *{scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.Layout__content--scrollable{overflow-y:auto}.Layout__content--flexRow{display:flex;flex-flow:row}.Layout__content--flexColumn{display:flex;flex-flow:column}.NtosHeader__left{position:absolute;left:1em}.NtosHeader__right{position:absolute;right:1em}.NtosHeader__icon{margin-top:-0.75em;margin-bottom:-0.5em;vertical-align:middle}.NtosWindow__header{position:absolute;top:0;left:0;right:0;height:2em;line-height:1.928em;background-color:rgba(0,0,0,.5);font-family:Consolas,monospace;font-size:1.1666666667em;user-select:none;-ms-user-select:none}.NtosWindow__content .Layout__content{margin-top:2em;font-family:Consolas,monospace;font-size:1.1666666667em}.TitleBar{background-color:#363636;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#363636;transition:color 250ms ease-out,background-color 250ms ease-out}.TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#252525;background-image:linear-gradient(to bottom, #2a2a2a 0%, #202020 100%)}.Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.Window__contentPadding:after{height:0}.Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(62,62,62,.25);pointer-events:none}.Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4wIiB2aWV3Qm94PSIwIDAgNDI1IDIwMCIgb3BhY2l0eT0iLjMzIj4NCiAgPHBhdGggZD0ibSAxNzguMDAzOTksMC4wMzg2OSAtNzEuMjAzOTMsMCBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTYuNzYxMzQsNi4wMjU1NSBsIDAsMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM0LDYuMDI1NTQgbCA1My4xMDcyLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xMDEuNTQ0MDE4IDcyLjIxNjI4LDEwNC42OTkzOTggYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDUuNzYwMTUsMi44NzAxNiBsIDczLjU1NDg3LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xODcuODcxNDcgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM1LC02LjAyNTU1IGwgLTU0LjcxNjQ0LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTMzLDYuMDI1NTUgbCAwLDEwMi42MTkzNSBMIDE4My43NjQxMywyLjkwODg2IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNS43NjAxNCwtMi44NzAxNyB6IiAvPg0KICA8cGF0aCBkPSJNIDQuODQ0NjMzMywyMi4xMDg3NSBBIDEzLjQxMjAzOSwxMi41MDE4NDIgMCAwIDEgMTMuNDc3NTg4LDAuMDM5MjQgbCA2Ni4xMTgzMTUsMCBhIDUuMzY0ODE1OCw1LjAwMDczNyAwIDAgMSA1LjM2NDgyMyw1LjAwMDczIGwgMCw3OS44NzkzMSB6IiAvPg0KICA8cGF0aCBkPSJtIDQyMC4xNTUzNSwxNzcuODkxMTkgYSAxMy40MTIwMzgsMTIuNTAxODQyIDAgMCAxIC04LjYzMjk1LDIyLjA2OTUxIGwgLTY2LjExODMyLDAgYSA1LjM2NDgxNTIsNS4wMDA3MzcgMCAwIDEgLTUuMzY0ODIsLTUuMDAwNzQgbCAwLC03OS44NzkzMSB6IiAvPg0KPC9zdmc+DQo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4NCjwhLS0gaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvNC4wLyAtLT4NCg==);background-size:70%;background-position:center;background-repeat:no-repeat} .theme-abductor .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-abductor .Button:last-child{margin-right:0;margin-bottom:0}.theme-abductor .Button .fa,.theme-abductor .Button .fas,.theme-abductor .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-abductor .Button--hasContent .fa,.theme-abductor .Button--hasContent .fas,.theme-abductor .Button--hasContent .far{margin-right:.25em}.theme-abductor .Button--hasContent.Button--iconPosition--right .fa,.theme-abductor .Button--hasContent.Button--iconPosition--right .fas,.theme-abductor .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-abductor .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-abductor .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-abductor .Button--circular{border-radius:50%}.theme-abductor .Button--compact{padding:0 .25em;line-height:1.333em}.theme-abductor .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#ad2350;color:#fff}.theme-abductor .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-abductor .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-abductor .Button--color--default:hover,.theme-abductor .Button--color--default:focus{background-color:#d34372;color:#fff}.theme-abductor .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-abductor .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-abductor .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-abductor .Button--color--caution:hover,.theme-abductor .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-abductor .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-abductor .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-abductor .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-abductor .Button--color--danger:hover,.theme-abductor .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-abductor .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#2a314a;color:#fff;background-color:rgba(42,49,74,0);color:rgba(255,255,255,.5)}.theme-abductor .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-abductor .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-abductor .Button--color--transparent:hover,.theme-abductor .Button--color--transparent:focus{background-color:#444c68;color:#fff}.theme-abductor .Button--disabled{background-color:#363636 !important}.theme-abductor .Button--selected{transition:color 50ms,background-color 50ms;background-color:#465899;color:#fff}.theme-abductor .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-abductor .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-abductor .Button--selected:hover,.theme-abductor .Button--selected:focus{background-color:#6e7eba;color:#fff}.theme-abductor .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-abductor .Input--fluid{display:block;width:auto}.theme-abductor .Input__baseline{display:inline-block;color:transparent}.theme-abductor .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-abductor .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-abductor .NanoMap__container{overflow:hiddden;width:100%;z-index:1}.theme-abductor .NanoMap__marker{z-index:10;padding:0px;margin:0px}.theme-abductor .NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.theme-abductor .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#fff;background-color:#a82d55;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.theme-abductor .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-abductor .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-abductor .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-abductor .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-abductor .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-abductor .Input--fluid{display:block;width:auto}.theme-abductor .Input__baseline{display:inline-block;color:transparent}.theme-abductor .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-abductor .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-abductor .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#404b6e;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-abductor .NumberInput--fluid{display:block}.theme-abductor .NumberInput__content{margin-left:.5em}.theme-abductor .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-abductor .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #404b6e;background-color:#404b6e}.theme-abductor .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-abductor .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:2px;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-abductor .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-abductor .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-abductor .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-abductor .ProgressBar--color--default{border:.0833333333em solid #931e44}.theme-abductor .ProgressBar--color--default .ProgressBar__fill{background-color:#931e44}.theme-abductor .Section{position:relative;margin-bottom:.5em;background-color:#1c2132;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-abductor .Section:last-child{margin-bottom:0}.theme-abductor .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #ad2350}.theme-abductor .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-abductor .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-abductor .Section__rest{position:relative}.theme-abductor .Section__content{padding:.66em .5em}.theme-abductor .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-abductor .Section--fill{display:flex;flex-direction:column;height:100%}.theme-abductor .Section--fill>.Section__rest{flex-grow:1}.theme-abductor .Section--fill>.Section__rest>.Section__content{height:100%}.theme-abductor .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-abductor .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-abductor .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-abductor .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-abductor .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-abductor .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-abductor .Section .Section:first-child{margin-top:-0.5em}.theme-abductor .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-abductor .Section .Section .Section .Section__titleText{font-size:1em}.theme-abductor .Section--flex{display:flex;flex-flow:column}.theme-abductor .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-abductor .Section__content--noTopPadding{padding-top:0}.theme-abductor .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-abductor .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#a82d55;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:2px;max-width:20.8333333333em}.theme-abductor .Layout,.theme-abductor .Layout *{scrollbar-base-color:#202538;scrollbar-face-color:#384263;scrollbar-3dlight-color:#2a314a;scrollbar-highlight-color:#2a314a;scrollbar-track-color:#202538;scrollbar-arrow-color:#818db8;scrollbar-shadow-color:#384263}.theme-abductor .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-abductor .Layout__content--scrollable{overflow-y:auto}.theme-abductor .Layout__content--flexRow{display:flex;flex-flow:row}.theme-abductor .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-abductor .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2a314a;background-image:linear-gradient(to bottom, #353e5e 0%, #1f2436 100%)}.theme-abductor .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-abductor .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-abductor .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-abductor .Window__contentPadding:after{height:0}.theme-abductor .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-abductor .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(68,76,104,.25);pointer-events:none}.theme-abductor .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-abductor .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-abductor .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-abductor .TitleBar{background-color:#9e1b46;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-abductor .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#9e1b46;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-abductor .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-abductor .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-abductor .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-abductor .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-abductor .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-abductor .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-abductor .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-abductor .Layout__content{background-image:none} .theme-cardtable .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-cardtable .Button:last-child{margin-right:0;margin-bottom:0}.theme-cardtable .Button .fa,.theme-cardtable .Button .fas,.theme-cardtable .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-cardtable .Button--hasContent .fa,.theme-cardtable .Button--hasContent .fas,.theme-cardtable .Button--hasContent .far{margin-right:.25em}.theme-cardtable .Button--hasContent.Button--iconPosition--right .fa,.theme-cardtable .Button--hasContent.Button--iconPosition--right .fas,.theme-cardtable .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-cardtable .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-cardtable .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-cardtable .Button--circular{border-radius:50%}.theme-cardtable .Button--compact{padding:0 .25em;line-height:1.333em}.theme-cardtable .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#117039;color:#fff}.theme-cardtable .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-cardtable .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-cardtable .Button--color--default:hover,.theme-cardtable .Button--color--default:focus{background-color:#279455;color:#fff}.theme-cardtable .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-cardtable .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-cardtable .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-cardtable .Button--color--caution:hover,.theme-cardtable .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-cardtable .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-cardtable .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-cardtable .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-cardtable .Button--color--danger:hover,.theme-cardtable .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-cardtable .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#117039;color:#fff;background-color:rgba(17,112,57,0);color:rgba(255,255,255,.5)}.theme-cardtable .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-cardtable .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-cardtable .Button--color--transparent:hover,.theme-cardtable .Button--color--transparent:focus{background-color:#279455;color:#fff}.theme-cardtable .Button--disabled{background-color:#363636 !important}.theme-cardtable .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-cardtable .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-cardtable .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-cardtable .Button--selected:hover,.theme-cardtable .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-cardtable .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:0;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-cardtable .Input--fluid{display:block;width:auto}.theme-cardtable .Input__baseline{display:inline-block;color:transparent}.theme-cardtable .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-cardtable .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-cardtable .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #fff;border:.0833333333em solid rgba(255,255,255,.75);border-radius:0;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-cardtable .NumberInput--fluid{display:block}.theme-cardtable .NumberInput__content{margin-left:.5em}.theme-cardtable .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-cardtable .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #fff;background-color:#fff}.theme-cardtable .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-cardtable .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-cardtable .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-cardtable .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-cardtable .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-cardtable .ProgressBar--color--default{border:.0833333333em solid #000}.theme-cardtable .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-cardtable .Section{position:relative;margin-bottom:.5em;background-color:#0b4b26;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-cardtable .Section:last-child{margin-bottom:0}.theme-cardtable .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-cardtable .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-cardtable .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-cardtable .Section__rest{position:relative}.theme-cardtable .Section__content{padding:.66em .5em}.theme-cardtable .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-cardtable .Section--fill{display:flex;flex-direction:column;height:100%}.theme-cardtable .Section--fill>.Section__rest{flex-grow:1}.theme-cardtable .Section--fill>.Section__rest>.Section__content{height:100%}.theme-cardtable .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-cardtable .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-cardtable .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-cardtable .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-cardtable .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-cardtable .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-cardtable .Section .Section:first-child{margin-top:-0.5em}.theme-cardtable .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-cardtable .Section .Section .Section .Section__titleText{font-size:1em}.theme-cardtable .Section--flex{display:flex;flex-flow:column}.theme-cardtable .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-cardtable .Section__content--noTopPadding{padding-top:0}.theme-cardtable .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-cardtable .Layout,.theme-cardtable .Layout *{scrollbar-base-color:#0d542b;scrollbar-face-color:#16914a;scrollbar-3dlight-color:#117039;scrollbar-highlight-color:#117039;scrollbar-track-color:#0d542b;scrollbar-arrow-color:#5ae695;scrollbar-shadow-color:#16914a}.theme-cardtable .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-cardtable .Layout__content--scrollable{overflow-y:auto}.theme-cardtable .Layout__content--flexRow{display:flex;flex-flow:row}.theme-cardtable .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-cardtable .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#117039;background-image:linear-gradient(to bottom, #117039 0%, #117039 100%)}.theme-cardtable .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-cardtable .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-cardtable .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-cardtable .Window__contentPadding:after{height:0}.theme-cardtable .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-cardtable .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(39,148,85,.25);pointer-events:none}.theme-cardtable .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-cardtable .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-cardtable .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-cardtable .TitleBar{background-color:#381608;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-cardtable .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#381608;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-cardtable .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-cardtable .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-cardtable .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-cardtable .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-cardtable .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-cardtable .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-cardtable .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-cardtable .Button{border:.1666666667em solid #fff} .theme-hackerman .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-hackerman .Button:last-child{margin-right:0;margin-bottom:0}.theme-hackerman .Button .fa,.theme-hackerman .Button .fas,.theme-hackerman .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-hackerman .Button--hasContent .fa,.theme-hackerman .Button--hasContent .fas,.theme-hackerman .Button--hasContent .far{margin-right:.25em}.theme-hackerman .Button--hasContent.Button--iconPosition--right .fa,.theme-hackerman .Button--hasContent.Button--iconPosition--right .fas,.theme-hackerman .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-hackerman .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-hackerman .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-hackerman .Button--circular{border-radius:50%}.theme-hackerman .Button--compact{padding:0 .25em;line-height:1.333em}.theme-hackerman .Button--color--default{transition:color 50ms,background-color 50ms;background-color:lime;color:#000}.theme-hackerman .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-hackerman .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-hackerman .Button--color--default:hover,.theme-hackerman .Button--color--default:focus{background-color:#4dff4d;color:#000}.theme-hackerman .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.theme-hackerman .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-hackerman .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-hackerman .Button--color--caution:hover,.theme-hackerman .Button--color--caution:focus{background-color:#f5d72e;color:#000}.theme-hackerman .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.theme-hackerman .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-hackerman .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-hackerman .Button--color--danger:hover,.theme-hackerman .Button--color--danger:focus{background-color:#dc4848;color:#fff}.theme-hackerman .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#121b12;color:#fff;background-color:rgba(18,27,18,0);color:rgba(255,255,255,.5)}.theme-hackerman .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-hackerman .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-hackerman .Button--color--transparent:hover,.theme-hackerman .Button--color--transparent:focus{background-color:#283228;color:#fff}.theme-hackerman .Button--disabled{background-color:#4a6a4a !important}.theme-hackerman .Button--selected{transition:color 50ms,background-color 50ms;background-color:lime;color:#000}.theme-hackerman .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-hackerman .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-hackerman .Button--selected:hover,.theme-hackerman .Button--selected:focus{background-color:#4dff4d;color:#000}.theme-hackerman .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid lime;border:.0833333333em solid rgba(0,255,0,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-hackerman .Input--fluid{display:block;width:auto}.theme-hackerman .Input__baseline{display:inline-block;color:transparent}.theme-hackerman .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-hackerman .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-hackerman .Modal{background-color:#121b12;max-width:calc(100% - 1rem);padding:1rem}.theme-hackerman .Section{position:relative;margin-bottom:.5em;background-color:#0c120c;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-hackerman .Section:last-child{margin-bottom:0}.theme-hackerman .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid lime}.theme-hackerman .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-hackerman .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-hackerman .Section__rest{position:relative}.theme-hackerman .Section__content{padding:.66em .5em}.theme-hackerman .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-hackerman .Section--fill{display:flex;flex-direction:column;height:100%}.theme-hackerman .Section--fill>.Section__rest{flex-grow:1}.theme-hackerman .Section--fill>.Section__rest>.Section__content{height:100%}.theme-hackerman .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-hackerman .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-hackerman .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-hackerman .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-hackerman .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-hackerman .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-hackerman .Section .Section:first-child{margin-top:-0.5em}.theme-hackerman .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-hackerman .Section .Section .Section .Section__titleText{font-size:1em}.theme-hackerman .Section--flex{display:flex;flex-flow:column}.theme-hackerman .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-hackerman .Section__content--noTopPadding{padding-top:0}.theme-hackerman .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-hackerman .Layout,.theme-hackerman .Layout *{scrollbar-base-color:#0e140e;scrollbar-face-color:#253725;scrollbar-3dlight-color:#121b12;scrollbar-highlight-color:#121b12;scrollbar-track-color:#0e140e;scrollbar-arrow-color:#74a274;scrollbar-shadow-color:#253725}.theme-hackerman .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-hackerman .Layout__content--scrollable{overflow-y:auto}.theme-hackerman .Layout__content--flexRow{display:flex;flex-flow:row}.theme-hackerman .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-hackerman .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#121b12;background-image:linear-gradient(to bottom, #121b12 0%, #121b12 100%)}.theme-hackerman .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-hackerman .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-hackerman .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-hackerman .Window__contentPadding:after{height:0}.theme-hackerman .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-hackerman .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(40,50,40,.25);pointer-events:none}.theme-hackerman .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-hackerman .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-hackerman .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-hackerman .TitleBar{background-color:#223d22;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-hackerman .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#223d22;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-hackerman .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-hackerman .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-hackerman .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-hackerman .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-hackerman .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-hackerman .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-hackerman .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-hackerman .Layout__content{background-image:none}.theme-hackerman .Button{font-family:monospace;border-width:.1666666667em;border-style:outset;border-color:#0a0;outline:.0833333333em solid #007a00}.theme-hackerman .candystripe:nth-child(odd){background-color:rgba(0,100,0,.5)} @@ -8,6 +8,6 @@ html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflo .theme-paper .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.theme-paper .Tabs--fill{height:100%}.theme-paper .Section .Tabs{background-color:transparent}.theme-paper .Section:not(.Section--fitted) .Tabs{margin:0 -0.5em .5em}.theme-paper .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-0.5em}.theme-paper .Tabs--vertical{flex-direction:column;padding:.25em 0 .25em .25em}.theme-paper .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0 .25em}.theme-paper .Tabs--horizontal:last-child{margin-bottom:0}.theme-paper .Tabs__Tab{flex-grow:0}.theme-paper .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-paper .Tab{display:flex;align-items:center;justify-content:space-between;background-color:transparent;color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-paper .Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.theme-paper .Tab--selected{background-color:rgba(255,255,255,.125);color:#fafafa}.theme-paper .Tab__text{flex-grow:1;margin:0 .5em}.theme-paper .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-paper .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-paper .Tabs--horizontal .Tab{border-top:.1666666667em solid transparent;border-bottom:.1666666667em solid transparent;border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-paper .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #f9f9f9}.theme-paper .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid transparent;border-right:.1666666667em solid transparent;border-top-left-radius:.25em;border-bottom-left-radius:.25em}.theme-paper .Tabs--vertical .Tab--selected{border-right:.1666666667em solid #f9f9f9}.theme-paper .Section{position:relative;margin-bottom:.5em;background-color:#e6e6e6;background-color:rgba(0,0,0,.1);box-sizing:border-box}.theme-paper .Section:last-child{margin-bottom:0}.theme-paper .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #fff}.theme-paper .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#000}.theme-paper .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-paper .Section__rest{position:relative}.theme-paper .Section__content{padding:.66em .5em}.theme-paper .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-paper .Section--fill{display:flex;flex-direction:column;height:100%}.theme-paper .Section--fill>.Section__rest{flex-grow:1}.theme-paper .Section--fill>.Section__rest>.Section__content{height:100%}.theme-paper .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-paper .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-paper .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-paper .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-paper .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-paper .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-paper .Section .Section:first-child{margin-top:-0.5em}.theme-paper .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-paper .Section .Section .Section .Section__titleText{font-size:1em}.theme-paper .Section--flex{display:flex;flex-flow:column}.theme-paper .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-paper .Section__content--noTopPadding{padding-top:0}.theme-paper .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-paper .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-paper .Button:last-child{margin-right:0;margin-bottom:0}.theme-paper .Button .fa,.theme-paper .Button .fas,.theme-paper .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-paper .Button--hasContent .fa,.theme-paper .Button--hasContent .fas,.theme-paper .Button--hasContent .far{margin-right:.25em}.theme-paper .Button--hasContent.Button--iconPosition--right .fa,.theme-paper .Button--hasContent.Button--iconPosition--right .fas,.theme-paper .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-paper .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-paper .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-paper .Button--circular{border-radius:50%}.theme-paper .Button--compact{padding:0 .25em;line-height:1.333em}.theme-paper .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#e8e4c9;color:#000}.theme-paper .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-paper .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-paper .Button--color--default:hover,.theme-paper .Button--color--default:focus{background-color:#fbfaf6;color:#000}.theme-paper .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-paper .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-paper .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-paper .Button--color--caution:hover,.theme-paper .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-paper .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-paper .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-paper .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-paper .Button--color--danger:hover,.theme-paper .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-paper .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#fff;color:#000;background-color:rgba(255,255,255,0);color:rgba(0,0,0,.5)}.theme-paper .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-paper .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-paper .Button--color--transparent:hover,.theme-paper .Button--color--transparent:focus{background-color:#fff;color:#000}.theme-paper .Button--disabled{background-color:#363636 !important}.theme-paper .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-paper .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-paper .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-paper .Button--selected:hover,.theme-paper .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-paper .Layout,.theme-paper .Layout *{scrollbar-base-color:#bfbfbf;scrollbar-face-color:#fff;scrollbar-3dlight-color:#fff;scrollbar-highlight-color:#fff;scrollbar-track-color:#bfbfbf;scrollbar-arrow-color:#fff;scrollbar-shadow-color:#fff}.theme-paper .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-paper .Layout__content--scrollable{overflow-y:auto}.theme-paper .Layout__content--flexRow{display:flex;flex-flow:row}.theme-paper .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-paper .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#000;background-color:#fff;background-image:linear-gradient(to bottom, white 0%, white 100%)}.theme-paper .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-paper .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-paper .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-paper .Window__contentPadding:after{height:0}.theme-paper .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-paper .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255,255,255,.25);pointer-events:none}.theme-paper .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-paper .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-paper .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-paper .TitleBar{background-color:#fff;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-paper .TitleBar__clickable{color:rgba(0,0,0,.5);background-color:#fff;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-paper .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-paper .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(0,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-paper .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-paper .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-paper .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-paper .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-paper .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paper .PaperInput{position:relative;display:inline-block;width:120px;border:none;background:transparent;border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .PaperInput__baseline{display:inline-block;color:transparent}.theme-paper .PaperInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:12px;line-height:17px;height:17px;margin:0;padding:0 6px;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-paper .PaperInput__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paper .Layout__content{background-image:none}.theme-paper .Window{background-image:none;color:#000}.theme-paper .paper-text input:disabled{position:relative;display:inline-block;border:none;background:transparent;border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-text input{position:relative;display:inline-block;border:none;background:transparent;border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-field{position:relative;display:inline-block;border:none;background:transparent;border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-field input:disabled{position:relative;display:inline-block;border:none;background:transparent;border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible} .theme-pda-retro .color-black{color:#1a1a1a !important}.theme-pda-retro .color-white{color:#fff !important}.theme-pda-retro .color-red{color:#df3e3e !important}.theme-pda-retro .color-orange{color:#f37f33 !important}.theme-pda-retro .color-yellow{color:#fbda21 !important}.theme-pda-retro .color-olive{color:#cbe41c !important}.theme-pda-retro .color-green{color:#25ca4c !important}.theme-pda-retro .color-teal{color:#00d6cc !important}.theme-pda-retro .color-blue{color:#2e93de !important}.theme-pda-retro .color-violet{color:#7349cf !important}.theme-pda-retro .color-purple{color:#ad45d0 !important}.theme-pda-retro .color-pink{color:#e34da1 !important}.theme-pda-retro .color-brown{color:#b97447 !important}.theme-pda-retro .color-grey{color:#848484 !important}.theme-pda-retro .color-good{color:#68c22d !important}.theme-pda-retro .color-average{color:#1a1a1a !important}.theme-pda-retro .color-bad{color:#df3e3e !important}.theme-pda-retro .color-label{color:#1a1a1a !important}.theme-pda-retro .color-bg-black{background-color:#000 !important}.theme-pda-retro .color-bg-white{background-color:#d9d9d9 !important}.theme-pda-retro .color-bg-red{background-color:#bd2020 !important}.theme-pda-retro .color-bg-orange{background-color:#d95e0c !important}.theme-pda-retro .color-bg-yellow{background-color:#d9b804 !important}.theme-pda-retro .color-bg-olive{background-color:#9aad14 !important}.theme-pda-retro .color-bg-green{background-color:#1b9638 !important}.theme-pda-retro .color-bg-teal{background-color:#009a93 !important}.theme-pda-retro .color-bg-blue{background-color:#1c71b1 !important}.theme-pda-retro .color-bg-violet{background-color:#552dab !important}.theme-pda-retro .color-bg-purple{background-color:#8b2baa !important}.theme-pda-retro .color-bg-pink{background-color:#cf2082 !important}.theme-pda-retro .color-bg-brown{background-color:#8c5836 !important}.theme-pda-retro .color-bg-grey{background-color:#646464 !important}.theme-pda-retro .color-bg-good{background-color:#4d9121 !important}.theme-pda-retro .color-bg-average{background-color:#000 !important}.theme-pda-retro .color-bg-bad{background-color:#bd2020 !important}.theme-pda-retro .color-bg-label{background-color:#000 !important}.theme-pda-retro .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-pda-retro .Button:last-child{margin-right:0;margin-bottom:0}.theme-pda-retro .Button .fa,.theme-pda-retro .Button .fas,.theme-pda-retro .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-pda-retro .Button--hasContent .fa,.theme-pda-retro .Button--hasContent .fas,.theme-pda-retro .Button--hasContent .far{margin-right:.25em}.theme-pda-retro .Button--hasContent.Button--iconPosition--right .fa,.theme-pda-retro .Button--hasContent.Button--iconPosition--right .fas,.theme-pda-retro .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-pda-retro .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-pda-retro .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-pda-retro .Button--circular{border-radius:50%}.theme-pda-retro .Button--compact{padding:0 .25em;line-height:1.333em}.theme-pda-retro .Button--color--black{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}.theme-pda-retro .Button--color--black:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--black:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--black:hover,.theme-pda-retro .Button--color--black:focus{background-color:#131313;color:#fff}.theme-pda-retro .Button--color--white{transition:color 50ms,background-color 50ms;background-color:#d9d9d9;color:#000}.theme-pda-retro .Button--color--white:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--white:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--white:hover,.theme-pda-retro .Button--color--white:focus{background-color:#f8f8f8;color:#000}.theme-pda-retro .Button--color--red{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.theme-pda-retro .Button--color--red:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--red:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--red:hover,.theme-pda-retro .Button--color--red:focus{background-color:#dc4848;color:#fff}.theme-pda-retro .Button--color--orange{transition:color 50ms,background-color 50ms;background-color:#d95e0c;color:#fff}.theme-pda-retro .Button--color--orange:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--orange:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--orange:hover,.theme-pda-retro .Button--color--orange:focus{background-color:#f0853f;color:#fff}.theme-pda-retro .Button--color--yellow{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.theme-pda-retro .Button--color--yellow:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--yellow:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--yellow:hover,.theme-pda-retro .Button--color--yellow:focus{background-color:#f5d72e;color:#000}.theme-pda-retro .Button--color--olive{transition:color 50ms,background-color 50ms;background-color:#9aad14;color:#fff}.theme-pda-retro .Button--color--olive:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--olive:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--olive:hover,.theme-pda-retro .Button--color--olive:focus{background-color:#c4da2b;color:#fff}.theme-pda-retro .Button--color--green{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}.theme-pda-retro .Button--color--green:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--green:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--green:hover,.theme-pda-retro .Button--color--green:focus{background-color:#32c154;color:#fff}.theme-pda-retro .Button--color--teal{transition:color 50ms,background-color 50ms;background-color:#009a93;color:#fff}.theme-pda-retro .Button--color--teal:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--teal:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--teal:hover,.theme-pda-retro .Button--color--teal:focus{background-color:#13c4bc;color:#fff}.theme-pda-retro .Button--color--blue{transition:color 50ms,background-color 50ms;background-color:#1c71b1;color:#fff}.theme-pda-retro .Button--color--blue:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--blue:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--blue:hover,.theme-pda-retro .Button--color--blue:focus{background-color:#3a95d9;color:#fff}.theme-pda-retro .Button--color--violet{transition:color 50ms,background-color 50ms;background-color:#552dab;color:#fff}.theme-pda-retro .Button--color--violet:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--violet:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--violet:hover,.theme-pda-retro .Button--color--violet:focus{background-color:#7953cc;color:#fff}.theme-pda-retro .Button--color--purple{transition:color 50ms,background-color 50ms;background-color:#8b2baa;color:#fff}.theme-pda-retro .Button--color--purple:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--purple:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--purple:hover,.theme-pda-retro .Button--color--purple:focus{background-color:#ad4fcd;color:#fff}.theme-pda-retro .Button--color--pink{transition:color 50ms,background-color 50ms;background-color:#cf2082;color:#fff}.theme-pda-retro .Button--color--pink:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--pink:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--pink:hover,.theme-pda-retro .Button--color--pink:focus{background-color:#e257a5;color:#fff}.theme-pda-retro .Button--color--brown{transition:color 50ms,background-color 50ms;background-color:#8c5836;color:#fff}.theme-pda-retro .Button--color--brown:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--brown:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--brown:hover,.theme-pda-retro .Button--color--brown:focus{background-color:#b47851;color:#fff}.theme-pda-retro .Button--color--grey{transition:color 50ms,background-color 50ms;background-color:#646464;color:#fff}.theme-pda-retro .Button--color--grey:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--grey:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--grey:hover,.theme-pda-retro .Button--color--grey:focus{background-color:#868686;color:#fff}.theme-pda-retro .Button--color--good{transition:color 50ms,background-color 50ms;background-color:#4d9121;color:#fff}.theme-pda-retro .Button--color--good:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--good:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--good:hover,.theme-pda-retro .Button--color--good:focus{background-color:#6cba39;color:#fff}.theme-pda-retro .Button--color--average{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}.theme-pda-retro .Button--color--average:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--average:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--average:hover,.theme-pda-retro .Button--color--average:focus{background-color:#131313;color:#fff}.theme-pda-retro .Button--color--bad{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.theme-pda-retro .Button--color--bad:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--bad:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--bad:hover,.theme-pda-retro .Button--color--bad:focus{background-color:#dc4848;color:#fff}.theme-pda-retro .Button--color--label{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}.theme-pda-retro .Button--color--label:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--label:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--label:hover,.theme-pda-retro .Button--color--label:focus{background-color:#131313;color:#fff}.theme-pda-retro .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#e8e4c9;color:#000}.theme-pda-retro .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--default:hover,.theme-pda-retro .Button--color--default:focus{background-color:#fbfaf6;color:#000}.theme-pda-retro .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-pda-retro .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--caution:hover,.theme-pda-retro .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-pda-retro .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-pda-retro .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--danger:hover,.theme-pda-retro .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-pda-retro .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#6f7961;color:#fff;background-color:rgba(111,121,97,0);color:rgba(255,255,255,.5)}.theme-pda-retro .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--transparent:hover,.theme-pda-retro .Button--color--transparent:focus{background-color:#939c85;color:#fff}.theme-pda-retro .Button--disabled{background-color:#505050 !important}.theme-pda-retro .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-pda-retro .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--selected:hover,.theme-pda-retro .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-pda-retro .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-pda-retro .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-pda-retro .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-pda-retro .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-pda-retro .ProgressBar--color--default{border:.0833333333em solid #000}.theme-pda-retro .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-pda-retro .ProgressBar--color--black{border:.0833333333em solid #000 !important}.theme-pda-retro .ProgressBar--color--black .ProgressBar__fill{background-color:#000}.theme-pda-retro .ProgressBar--color--white{border:.0833333333em solid #d9d9d9 !important}.theme-pda-retro .ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.theme-pda-retro .ProgressBar--color--red{border:.0833333333em solid #bd2020 !important}.theme-pda-retro .ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.theme-pda-retro .ProgressBar--color--orange{border:.0833333333em solid #d95e0c !important}.theme-pda-retro .ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.theme-pda-retro .ProgressBar--color--yellow{border:.0833333333em solid #d9b804 !important}.theme-pda-retro .ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.theme-pda-retro .ProgressBar--color--olive{border:.0833333333em solid #9aad14 !important}.theme-pda-retro .ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.theme-pda-retro .ProgressBar--color--green{border:.0833333333em solid #1b9638 !important}.theme-pda-retro .ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.theme-pda-retro .ProgressBar--color--teal{border:.0833333333em solid #009a93 !important}.theme-pda-retro .ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.theme-pda-retro .ProgressBar--color--blue{border:.0833333333em solid #1c71b1 !important}.theme-pda-retro .ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.theme-pda-retro .ProgressBar--color--violet{border:.0833333333em solid #552dab !important}.theme-pda-retro .ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.theme-pda-retro .ProgressBar--color--purple{border:.0833333333em solid #8b2baa !important}.theme-pda-retro .ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.theme-pda-retro .ProgressBar--color--pink{border:.0833333333em solid #cf2082 !important}.theme-pda-retro .ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.theme-pda-retro .ProgressBar--color--brown{border:.0833333333em solid #8c5836 !important}.theme-pda-retro .ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.theme-pda-retro .ProgressBar--color--grey{border:.0833333333em solid #646464 !important}.theme-pda-retro .ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.theme-pda-retro .ProgressBar--color--good{border:.0833333333em solid #4d9121 !important}.theme-pda-retro .ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.theme-pda-retro .ProgressBar--color--average{border:.0833333333em solid #000 !important}.theme-pda-retro .ProgressBar--color--average .ProgressBar__fill{background-color:#000}.theme-pda-retro .ProgressBar--color--bad{border:.0833333333em solid #bd2020 !important}.theme-pda-retro .ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.theme-pda-retro .ProgressBar--color--label{border:.0833333333em solid #000 !important}.theme-pda-retro .ProgressBar--color--label .ProgressBar__fill{background-color:#000}.theme-pda-retro .Section{position:relative;margin-bottom:.5em;background-color:#646d57;background-color:rgba(0,0,0,.1);box-sizing:border-box}.theme-pda-retro .Section:last-child{margin-bottom:0}.theme-pda-retro .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-pda-retro .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#000}.theme-pda-retro .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-pda-retro .Section__rest{position:relative}.theme-pda-retro .Section__content{padding:.66em .5em}.theme-pda-retro .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-pda-retro .Section--fill{display:flex;flex-direction:column;height:100%}.theme-pda-retro .Section--fill>.Section__rest{flex-grow:1}.theme-pda-retro .Section--fill>.Section__rest>.Section__content{height:100%}.theme-pda-retro .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-pda-retro .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-pda-retro .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-pda-retro .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-pda-retro .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-pda-retro .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-pda-retro .Section .Section:first-child{margin-top:-0.5em}.theme-pda-retro .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-pda-retro .Section .Section .Section .Section__titleText{font-size:1em}.theme-pda-retro .Section--flex{display:flex;flex-flow:column}.theme-pda-retro .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-pda-retro .Section__content--noTopPadding{padding-top:0}.theme-pda-retro .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-pda-retro .TinderMessage_First_Sent,.theme-pda-retro .TinderMessage_Subsequent_Sent,.theme-pda-retro .TinderMessage_First_Received,.theme-pda-retro .TinderMessage_Subsequent_Received{padding:6px;z-index:1;word-break:break-all;max-width:100%}.theme-pda-retro .TinderMessage_First_Sent,.theme-pda-retro .TinderMessage_Subsequent_Sent{text-align:right;background-color:#9faa91}.theme-pda-retro .TinderMessage_First_Sent{border-radius:10px 10px 0px 10px}.theme-pda-retro .TinderMessage_Subsequent_Sent{border-radius:10px 0px 0px 10px}.theme-pda-retro .TinderMessage_First_Received,.theme-pda-retro .TinderMessage_Subsequent_Received{text-align:left;background-color:#b8b37b}.theme-pda-retro .TinderMessage_First_Received{border-radius:10px 10px 10px 0px}.theme-pda-retro .TinderMessage_Subsequent_Received{border-radius:0px 10px 10px 0px}.theme-pda-retro .ClassicMessage_Sent,.theme-pda-retro .ClassicMessage_Received{word-break:break-all}.theme-pda-retro .ClassicMessage_Sent{color:#9faa91}.theme-pda-retro .ClassicMessage_Received{color:#b8b37b}.theme-pda-retro .Layout,.theme-pda-retro .Layout *{scrollbar-base-color:#535b49;scrollbar-face-color:#7e896e;scrollbar-3dlight-color:#6f7961;scrollbar-highlight-color:#6f7961;scrollbar-track-color:#535b49;scrollbar-arrow-color:#b7beae;scrollbar-shadow-color:#7e896e}.theme-pda-retro .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-pda-retro .Layout__content--scrollable{overflow-y:auto}.theme-pda-retro .Layout__content--flexRow{display:flex;flex-flow:row}.theme-pda-retro .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-pda-retro .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#000;background-color:#6f7961;background-image:linear-gradient(to bottom, #6f7961 0%, #6f7961 100%)}.theme-pda-retro .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-pda-retro .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-pda-retro .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-pda-retro .Window__contentPadding:after{height:0}.theme-pda-retro .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-pda-retro .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(147,156,133,.25);pointer-events:none}.theme-pda-retro .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-pda-retro .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-pda-retro .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-pda-retro .TitleBar{background-color:#363636;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-pda-retro .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#363636;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-pda-retro .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-pda-retro .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-pda-retro .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-pda-retro .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-pda-retro .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-pda-retro .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-pda-retro .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-pda-retro .Button{color:#161613;background-color:#565d4b;border:1px solid #000}.theme-pda-retro .Layout__content{background-image:none}.theme-pda-retro .LabeledList__label{font-weight:bold}.theme-pda-retro .Tooltip::after{color:#fff} .theme-retro .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-retro .Button:last-child{margin-right:0;margin-bottom:0}.theme-retro .Button .fa,.theme-retro .Button .fas,.theme-retro .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-retro .Button--hasContent .fa,.theme-retro .Button--hasContent .fas,.theme-retro .Button--hasContent .far{margin-right:.25em}.theme-retro .Button--hasContent.Button--iconPosition--right .fa,.theme-retro .Button--hasContent.Button--iconPosition--right .fas,.theme-retro .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-retro .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-retro .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-retro .Button--circular{border-radius:50%}.theme-retro .Button--compact{padding:0 .25em;line-height:1.333em}.theme-retro .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#e8e4c9;color:#000}.theme-retro .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-retro .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-retro .Button--color--default:hover,.theme-retro .Button--color--default:focus{background-color:#fbfaf6;color:#000}.theme-retro .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-retro .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-retro .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-retro .Button--color--caution:hover,.theme-retro .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-retro .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-retro .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-retro .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-retro .Button--color--danger:hover,.theme-retro .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-retro .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#e8e4c9;color:#000;background-color:rgba(232,228,201,0);color:rgba(255,255,255,.5)}.theme-retro .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-retro .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-retro .Button--color--transparent:hover,.theme-retro .Button--color--transparent:focus{background-color:#fbfaf6;color:#000}.theme-retro .Button--disabled{background-color:#363636 !important}.theme-retro .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-retro .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-retro .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-retro .Button--selected:hover,.theme-retro .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-retro .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-retro .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-retro .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-retro .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-retro .ProgressBar--color--default{border:.0833333333em solid #000}.theme-retro .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-retro .Section{position:relative;margin-bottom:.5em;background-color:#9b9987;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-retro .Section:last-child{margin-bottom:0}.theme-retro .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-retro .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-retro .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-retro .Section__rest{position:relative}.theme-retro .Section__content{padding:.66em .5em}.theme-retro .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-retro .Section--fill{display:flex;flex-direction:column;height:100%}.theme-retro .Section--fill>.Section__rest{flex-grow:1}.theme-retro .Section--fill>.Section__rest>.Section__content{height:100%}.theme-retro .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-retro .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-retro .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-retro .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-retro .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-retro .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-retro .Section .Section:first-child{margin-top:-0.5em}.theme-retro .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-retro .Section .Section .Section .Section__titleText{font-size:1em}.theme-retro .Section--flex{display:flex;flex-flow:column}.theme-retro .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-retro .Section__content--noTopPadding{padding-top:0}.theme-retro .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-retro .Layout,.theme-retro .Layout *{scrollbar-base-color:#c8be7d;scrollbar-face-color:#eae7ce;scrollbar-3dlight-color:#e8e4c9;scrollbar-highlight-color:#e8e4c9;scrollbar-track-color:#c8be7d;scrollbar-arrow-color:#f4f2e4;scrollbar-shadow-color:#eae7ce}.theme-retro .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-retro .Layout__content--scrollable{overflow-y:auto}.theme-retro .Layout__content--flexRow{display:flex;flex-flow:row}.theme-retro .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-retro .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#e8e4c9;background-image:linear-gradient(to bottom, #e8e4c9 0%, #e8e4c9 100%)}.theme-retro .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-retro .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-retro .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-retro .Window__contentPadding:after{height:0}.theme-retro .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-retro .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(251,250,246,.25);pointer-events:none}.theme-retro .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-retro .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-retro .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-retro .TitleBar{background-color:#585337;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-retro .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#585337;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-retro .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-retro .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-retro .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-retro .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-retro .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-retro .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-retro .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-retro .Button{font-family:monospace;color:#161613;border:.1666666667em outset #e8e4c9;outline:.0833333333em solid #161613}.theme-retro .Layout__content{background-image:none} -.theme-syndicate .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-syndicate .Button:last-child{margin-right:0;margin-bottom:0}.theme-syndicate .Button .fa,.theme-syndicate .Button .fas,.theme-syndicate .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-syndicate .Button--hasContent .fa,.theme-syndicate .Button--hasContent .fas,.theme-syndicate .Button--hasContent .far{margin-right:.25em}.theme-syndicate .Button--hasContent.Button--iconPosition--right .fa,.theme-syndicate .Button--hasContent.Button--iconPosition--right .fas,.theme-syndicate .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-syndicate .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-syndicate .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-syndicate .Button--circular{border-radius:50%}.theme-syndicate .Button--compact{padding:0 .25em;line-height:1.333em}.theme-syndicate .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#397439;color:#fff}.theme-syndicate .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--default:hover,.theme-syndicate .Button--color--default:focus{background-color:#595;color:#fff}.theme-syndicate .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-syndicate .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--caution:hover,.theme-syndicate .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-syndicate .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-syndicate .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--danger:hover,.theme-syndicate .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-syndicate .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#550202;color:#fff;background-color:rgba(85,2,2,0);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--transparent:hover,.theme-syndicate .Button--color--transparent:focus{background-color:#751616;color:#fff}.theme-syndicate .Button--disabled{background-color:#363636 !important}.theme-syndicate .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-syndicate .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--selected:hover,.theme-syndicate .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:transparent}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-syndicate .NanoMap__container{overflow:hiddden;width:100%;z-index:1}.theme-syndicate .NanoMap__marker{z-index:10;padding:0px;margin:0px}.theme-syndicate .NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.theme-syndicate .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#fff;background-color:#910101;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.theme-syndicate .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-syndicate .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-syndicate .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-syndicate .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:transparent}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-syndicate .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#87ce87;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-syndicate .NumberInput--fluid{display:block}.theme-syndicate .NumberInput__content{margin-left:.5em}.theme-syndicate .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-syndicate .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #87ce87;background-color:#87ce87}.theme-syndicate .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-syndicate .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-syndicate .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-syndicate .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-syndicate .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-syndicate .ProgressBar--color--default{border:.0833333333em solid #306330}.theme-syndicate .ProgressBar--color--default .ProgressBar__fill{background-color:#306330}.theme-syndicate .Section{position:relative;margin-bottom:.5em;background-color:#390101;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-syndicate .Section:last-child{margin-bottom:0}.theme-syndicate .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-syndicate .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-syndicate .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-syndicate .Section__rest{position:relative}.theme-syndicate .Section__content{padding:.66em .5em}.theme-syndicate .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-syndicate .Section--fill{display:flex;flex-direction:column;height:100%}.theme-syndicate .Section--fill>.Section__rest{flex-grow:1}.theme-syndicate .Section--fill>.Section__rest>.Section__content{height:100%}.theme-syndicate .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-syndicate .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-syndicate .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-syndicate .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-syndicate .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-syndicate .Section .Section:first-child{margin-top:-0.5em}.theme-syndicate .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-syndicate .Section .Section .Section .Section__titleText{font-size:1em}.theme-syndicate .Section--flex{display:flex;flex-flow:column}.theme-syndicate .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-syndicate .Section__content--noTopPadding{padding-top:0}.theme-syndicate .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-syndicate .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#4a0202;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-syndicate .Layout,.theme-syndicate .Layout *{scrollbar-base-color:#400202;scrollbar-face-color:#7e0303;scrollbar-3dlight-color:#550202;scrollbar-highlight-color:#550202;scrollbar-track-color:#400202;scrollbar-arrow-color:#fa3030;scrollbar-shadow-color:#7e0303}.theme-syndicate .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Layout__content--scrollable{overflow-y:auto}.theme-syndicate .Layout__content--flexRow{display:flex;flex-flow:row}.theme-syndicate .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-syndicate .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#550202;background-image:linear-gradient(to bottom, #730303 0%, #370101 100%)}.theme-syndicate .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-syndicate .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-syndicate .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-syndicate .Window__contentPadding:after{height:0}.theme-syndicate .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-syndicate .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(117,22,22,.25);pointer-events:none}.theme-syndicate .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-syndicate .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-syndicate .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-syndicate .TitleBar{background-color:#910101;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-syndicate .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#910101;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-syndicate .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-syndicate .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-syndicate .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-syndicate .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-syndicate .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-syndicate .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-syndicate .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-syndicate .Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjAiIHZpZXdCb3g9IjAgMCAyMDAgMjg5Ljc0MiIgb3BhY2l0eT0iLjMzIj4KICA8cGF0aCBkPSJtIDkzLjUzNzY3NywwIGMgLTE4LjExMzEyNSwwIC0zNC4yMjAxMzMsMy4xMTE2NCAtNDguMzIzNDg0LDkuMzM0MzcgLTEzLjk2NTA5Miw2LjIyMTY3IC0yNC42MTI0NDIsMTUuMDcxMTQgLTMxLjk0MDY1MSwyNi41NDcxIC03LjE4OTkzOTgsMTEuMzM3ODkgLTEwLjMwMTIyNjYsMjQuNzQ5MTEgLTEwLjMwMTIyNjYsNDAuMjM0NzggMCwxMC42NDY2MiAyLjcyNTAwMjYsMjAuNDY0NjUgOC4xNzUxMTE2LDI5LjQ1MjU4IDUuNjE1Mjc3LDguOTg2ODYgMTQuMDM4Mjc3LDE3LjM1MjA0IDI1LjI2ODgyMSwyNS4wOTQzNiAxMS4yMzA1NDQsNy42MDUzMSAyNi41MDc0MjEsMTUuNDE4MzUgNDUuODMwNTE0LDIzLjQzNzgyIDE5Ljk4Mzc0OCw4LjI5NTU3IDM0Ljg0ODg0OCwxNS41NTQ3MSA0NC41OTI5OTgsMjEuNzc2MzggOS43NDQxNCw2LjIyMjczIDE2Ljc2MTcsMTIuODU4NSAyMS4wNTU3MiwxOS45MDk1MSA0LjI5NDA0LDcuMDUyMDggNi40NDE5MywxNS43NjQwOCA2LjQ0MTkzLDI2LjEzNDU5IDAsMTYuMTc3MDIgLTUuMjAxOTYsMjguNDgyMjIgLTE1LjYwNjczLDM2LjkxNjgyIC0xMC4yMzk2LDguNDM0NyAtMjUuMDIyMDMsMTIuNjUyMyAtNDQuMzQ1MTY5LDEyLjY1MjMgLTE0LjAzODE3MSwwIC0yNS41MTUyNDcsLTEuNjU5NCAtMzQuNDMzNjE4LC00Ljk3NzcgLTguOTE4MzcsLTMuNDU2NiAtMTYuMTg1NTcyLC04LjcxMTMgLTIxLjgwMDgzOSwtMTUuNzYzMyAtNS42MTUyNzcsLTcuMDUyMSAtMTAuMDc0Nzk1LC0xNi42NjA4OCAtMTMuMzc3ODk5LC0yOC44MjgxMiBsIC0yNC43NzMxNjI2MjkzOTQ1LDAgMCw1Ni44MjYzMiBDIDMzLjg1Njc2OSwyODYuMDc2MDEgNjMuNzQ5MDQsMjg5Ljc0MjAxIDg5LjY3ODM4MywyODkuNzQyMDEgYyAxNi4wMjAwMjcsMCAzMC43MTk3ODcsLTEuMzgyNyA0NC4wOTczMzcsLTQuMTQ3OSAxMy41NDI3MiwtMi45MDQzIDI1LjEwNDEsLTcuNDY3NiAzNC42ODMwOSwtMTMuNjg5MyA5Ljc0NDEzLC02LjM1OTcgMTcuMzQwNDIsLTE0LjUxOTUgMjIuNzkwNTIsLTI0LjQ3NDggNS40NTAxLC0xMC4wOTMzMiA4LjE3NTExLC0yMi4zOTk1OSA4LjE3NTExLC0zNi45MTY4MiAwLC0xMi45OTc2NCAtMy4zMDIxLC0yNC4zMzUzOSAtOS45MDgyOSwtMzQuMDE0NiAtNi40NDEwNSwtOS44MTcyNSAtMTUuNTI1NDUsLTE4LjUyNzA3IC0yNy4yNTE0NiwtMjYuMTMxMzMgLTExLjU2MDg1LC03LjYwNDI3IC0yNy45MTA4MywtMTUuODMxNDIgLTQ5LjA1MDY2LC0yNC42ODAyMiAtMTcuNTA2NDQsLTcuMTkwMTIgLTMwLjcxOTY2OCwtMTMuNjg5NDggLTM5LjYzODAzOCwtMTkuNDk3MDEgLTguOTE4MzcxLC01LjgwNzUyIC0xOC42MDc0NzQsLTEyLjQzNDA5IC0yNC4wOTY1MjQsLTE4Ljg3NDE3IC01LjQyNjA0MywtNi4zNjYxNiAtOS42NTg4MjYsLTE1LjA3MDAzIC05LjY1ODgyNiwtMjQuODg3MjkgMCwtOS4yNjQwMSAyLjA3NTQxNCwtMTcuMjEzNDUgNi4yMjM0NTQsLTIzLjg1MDMzIDExLjA5ODI5OCwtMTQuMzk3NDggNDEuMjg2NjM4LC0xLjc5NTA3IDQ1LjA3NTYwOSwyNC4zNDc2MiA0LjgzOTM5Miw2Ljc3NDkxIDguODQ5MzUsMTYuMjQ3MjkgMTIuMDI5NTE1LDI4LjQxNTYgbCAyMC41MzIzNCwwIDAsLTU1Ljk5OTY3IGMgLTQuNDc4MjUsLTUuOTI0NDggLTkuOTU0ODgsLTEwLjYzMjIyIC0xNS45MDgzNywtMTQuMzc0MTEgMS42NDA1NSwwLjQ3OTA1IDMuMTkwMzksMS4wMjM3NiA0LjYzODY1LDEuNjQwMjQgNi40OTg2MSwyLjYyNjA3IDEyLjE2NzkzLDcuMzI3NDcgMTcuMDA3MywxNC4xMDM0NSA0LjgzOTM5LDYuNzc0OTEgOC44NDkzNSwxNi4yNDU2NyAxMi4wMjk1MiwyOC40MTM5NyAwLDAgOC40ODEyOCwtMC4xMjg5NCA4LjQ4OTc4LC0wLjAwMiAwLjQxNzc2LDYuNDE0OTQgLTEuNzUzMzksOS40NTI4NiAtNC4xMjM0MiwxMi41NjEwNCAtMi40MTc0LDMuMTY5NzggLTUuMTQ0ODYsNi43ODk3MyAtNC4wMDI3OCwxMy4wMDI5IDEuNTA3ODYsOC4yMDMxOCAxMC4xODM1NCwxMC41OTY0MiAxNC42MjE5NCw5LjMxMTU0IC0zLjMxODQyLC0wLjQ5OTExIC01LjMxODU1LC0xLjc0OTQ4IC01LjMxODU1LC0xLjc0OTQ4IDAsMCAxLjg3NjQ2LDAuOTk4NjggNS42NTExNywtMS4zNTk4MSAtMy4yNzY5NSwwLjk1NTcxIC0xMC43MDUyOSwtMC43OTczOCAtMTEuODAxMjUsLTYuNzYzMTMgLTAuOTU3NTIsLTUuMjA4NjEgMC45NDY1NCwtNy4yOTUxNCAzLjQwMTEzLC0xMC41MTQ4MiAyLjQ1NDYyLC0zLjIxOTY4IDUuMjg0MjYsLTYuOTU4MzEgNC42ODQzLC0xNC40ODgyNCBsIDAuMDAzLDAuMDAyIDguOTI2NzYsMCAwLC01NS45OTk2NyBjIC0xNS4wNzEyNSwtMy44NzE2OCAtMjcuNjUzMTQsLTYuMzYwNDIgLTM3Ljc0NjcxLC03LjQ2NTg2IC05Ljk1NTMxLC0xLjEwNzU1IC0yMC4xODgyMywtMS42NTk4MSAtMzAuNjk2NjEzLC0xLjY1OTgxIHogbSA3MC4zMjE2MDMsMTcuMzA4OTMgMC4yMzgwNSw0MC4zMDQ5IGMgMS4zMTgwOCwxLjIyNjY2IDIuNDM5NjUsMi4yNzgxNSAzLjM0MDgxLDMuMTA2MDIgNC44MzkzOSw2Ljc3NDkxIDguODQ5MzQsMTYuMjQ1NjYgMTIuMDI5NTEsMjguNDEzOTcgbCAyMC41MzIzNCwwIDAsLTU1Ljk5OTY3IGMgLTYuNjc3MzEsLTQuNTkzODEgLTE5LjgzNjQzLC0xMC40NzMwOSAtMzYuMTQwNzEsLTE1LjgyNTIyIHogbSAtMjguMTIwNDksNS42MDU1MSA4LjU2NDc5LDE3LjcxNjU1IGMgLTExLjk3MDM3LC02LjQ2Njk3IC0xMy44NDY3OCwtOS43MTcyNiAtOC41NjQ3OSwtMTcuNzE2NTUgeiBtIDIyLjc5NzA1LDAgYyAyLjc3MTUsNy45OTkyOSAxLjc4NzQxLDExLjI0OTU4IC00LjQ5MzU0LDE3LjcxNjU1IGwgNC40OTM1NCwtMTcuNzE2NTUgeiBtIDE1LjIyMTk1LDI0LjAwODQ4IDguNTY0NzksMTcuNzE2NTUgYyAtMTEuOTcwMzgsLTYuNDY2OTcgLTEzLjg0Njc5LC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk3MDQsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IG0gLTk5LjExMzg0LDIuMjA3NjQgOC41NjQ3OSwxNy43MTY1NSBjIC0xMS45NzAzODIsLTYuNDY2OTcgLTEzLjg0Njc4MiwtOS43MTcyNiAtOC41NjQ3OSwtMTcuNzE2NTUgeiBtIDIyLjc5NTQyLDAgYyAyLjc3MTUsNy45OTkyOSAxLjc4NzQxLDExLjI0OTU4IC00LjQ5MzU0LDE3LjcxNjU1IGwgNC40OTM1NCwtMTcuNzE2NTUgeiIgLz4KPC9zdmc+CjwhLS0gVGhpcyB3b3JrIGlzIGxpY2Vuc2VkIHVuZGVyIGEgQ3JlYXRpdmUgQ29tbW9ucyBBdHRyaWJ1dGlvbi1TaGFyZUFsaWtlIDQuMCBJbnRlcm5hdGlvbmFsIExpY2Vuc2UuIC0tPgo8IS0tIGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LXNhLzQuMC8gLS0+Cg==)} +.theme-syndicate .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-syndicate .Button:last-child{margin-right:0;margin-bottom:0}.theme-syndicate .Button .fa,.theme-syndicate .Button .fas,.theme-syndicate .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-syndicate .Button--hasContent .fa,.theme-syndicate .Button--hasContent .fas,.theme-syndicate .Button--hasContent .far{margin-right:.25em}.theme-syndicate .Button--hasContent.Button--iconPosition--right .fa,.theme-syndicate .Button--hasContent.Button--iconPosition--right .fas,.theme-syndicate .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-syndicate .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-syndicate .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-syndicate .Button--circular{border-radius:50%}.theme-syndicate .Button--compact{padding:0 .25em;line-height:1.333em}.theme-syndicate .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#397439;color:#fff}.theme-syndicate .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--default:hover,.theme-syndicate .Button--color--default:focus{background-color:#595;color:#fff}.theme-syndicate .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-syndicate .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--caution:hover,.theme-syndicate .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-syndicate .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-syndicate .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--danger:hover,.theme-syndicate .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-syndicate .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#550202;color:#fff;background-color:rgba(85,2,2,0);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--transparent:hover,.theme-syndicate .Button--color--transparent:focus{background-color:#751616;color:#fff}.theme-syndicate .Button--disabled{background-color:#363636 !important}.theme-syndicate .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-syndicate .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--selected:hover,.theme-syndicate .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:transparent}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-syndicate .NanoMap__container{overflow:hiddden;width:100%;z-index:1}.theme-syndicate .NanoMap__marker{z-index:10;padding:0px;margin:0px}.theme-syndicate .NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.theme-syndicate .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#fff;background-color:#910101;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.theme-syndicate .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-syndicate .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-syndicate .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-syndicate .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:transparent}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-syndicate .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#87ce87;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-syndicate .NumberInput--fluid{display:block}.theme-syndicate .NumberInput__content{margin-left:.5em}.theme-syndicate .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-syndicate .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #87ce87;background-color:#87ce87}.theme-syndicate .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-syndicate .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-syndicate .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-syndicate .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-syndicate .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-syndicate .ProgressBar--color--default{border:.0833333333em solid #306330}.theme-syndicate .ProgressBar--color--default .ProgressBar__fill{background-color:#306330}.theme-syndicate .Section{position:relative;margin-bottom:.5em;background-color:#390101;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-syndicate .Section:last-child{margin-bottom:0}.theme-syndicate .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-syndicate .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-syndicate .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-syndicate .Section__rest{position:relative}.theme-syndicate .Section__content{padding:.66em .5em}.theme-syndicate .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-syndicate .Section--fill{display:flex;flex-direction:column;height:100%}.theme-syndicate .Section--fill>.Section__rest{flex-grow:1}.theme-syndicate .Section--fill>.Section__rest>.Section__content{height:100%}.theme-syndicate .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-syndicate .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-syndicate .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-syndicate .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-syndicate .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-syndicate .Section .Section:first-child{margin-top:-0.5em}.theme-syndicate .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-syndicate .Section .Section .Section .Section__titleText{font-size:1em}.theme-syndicate .Section--flex{display:flex;flex-flow:column}.theme-syndicate .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-syndicate .Section__content--noTopPadding{padding-top:0}.theme-syndicate .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-syndicate .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#4a0202;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-syndicate .Layout,.theme-syndicate .Layout *{scrollbar-base-color:#400202;scrollbar-face-color:#7e0303;scrollbar-3dlight-color:#550202;scrollbar-highlight-color:#550202;scrollbar-track-color:#400202;scrollbar-arrow-color:#fa3030;scrollbar-shadow-color:#7e0303}.theme-syndicate .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Layout__content--scrollable{overflow-y:auto}.theme-syndicate .Layout__content--flexRow{display:flex;flex-flow:row}.theme-syndicate .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-syndicate .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#550202;background-image:linear-gradient(to bottom, #730303 0%, #370101 100%)}.theme-syndicate .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-syndicate .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-syndicate .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-syndicate .Window__contentPadding:after{height:0}.theme-syndicate .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-syndicate .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(117,22,22,.25);pointer-events:none}.theme-syndicate .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-syndicate .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-syndicate .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-syndicate .TitleBar{background-color:#910101;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-syndicate .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#910101;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-syndicate .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-syndicate .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-syndicate .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-syndicate .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-syndicate .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-syndicate .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-syndicate .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-syndicate .Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4wIiB2aWV3Qm94PSIwIDAgMjAwIDI4OS43NDIiIG9wYWNpdHk9Ii4zMyI+DQogIDxwYXRoIGQ9Im0gOTMuNTM3Njc3LDAgYyAtMTguMTEzMTI1LDAgLTM0LjIyMDEzMywzLjExMTY0IC00OC4zMjM0ODQsOS4zMzQzNyAtMTMuOTY1MDkyLDYuMjIxNjcgLTI0LjYxMjQ0MiwxNS4wNzExNCAtMzEuOTQwNjUxLDI2LjU0NzEgLTcuMTg5OTM5OCwxMS4zMzc4OSAtMTAuMzAxMjI2NiwyNC43NDkxMSAtMTAuMzAxMjI2Niw0MC4yMzQ3OCAwLDEwLjY0NjYyIDIuNzI1MDAyNiwyMC40NjQ2NSA4LjE3NTExMTYsMjkuNDUyNTggNS42MTUyNzcsOC45ODY4NiAxNC4wMzgyNzcsMTcuMzUyMDQgMjUuMjY4ODIxLDI1LjA5NDM2IDExLjIzMDU0NCw3LjYwNTMxIDI2LjUwNzQyMSwxNS40MTgzNSA0NS44MzA1MTQsMjMuNDM3ODIgMTkuOTgzNzQ4LDguMjk1NTcgMzQuODQ4ODQ4LDE1LjU1NDcxIDQ0LjU5Mjk5OCwyMS43NzYzOCA5Ljc0NDE0LDYuMjIyNzMgMTYuNzYxNywxMi44NTg1IDIxLjA1NTcyLDE5LjkwOTUxIDQuMjk0MDQsNy4wNTIwOCA2LjQ0MTkzLDE1Ljc2NDA4IDYuNDQxOTMsMjYuMTM0NTkgMCwxNi4xNzcwMiAtNS4yMDE5NiwyOC40ODIyMiAtMTUuNjA2NzMsMzYuOTE2ODIgLTEwLjIzOTYsOC40MzQ3IC0yNS4wMjIwMywxMi42NTIzIC00NC4zNDUxNjksMTIuNjUyMyAtMTQuMDM4MTcxLDAgLTI1LjUxNTI0NywtMS42NTk0IC0zNC40MzM2MTgsLTQuOTc3NyAtOC45MTgzNywtMy40NTY2IC0xNi4xODU1NzIsLTguNzExMyAtMjEuODAwODM5LC0xNS43NjMzIC01LjYxNTI3NywtNy4wNTIxIC0xMC4wNzQ3OTUsLTE2LjY2MDg4IC0xMy4zNzc4OTksLTI4LjgyODEyIGwgLTI0Ljc3MzE2MjYyOTM5NDUsMCAwLDU2LjgyNjMyIEMgMzMuODU2NzY5LDI4Ni4wNzYwMSA2My43NDkwNCwyODkuNzQyMDEgODkuNjc4MzgzLDI4OS43NDIwMSBjIDE2LjAyMDAyNywwIDMwLjcxOTc4NywtMS4zODI3IDQ0LjA5NzMzNywtNC4xNDc5IDEzLjU0MjcyLC0yLjkwNDMgMjUuMTA0MSwtNy40Njc2IDM0LjY4MzA5LC0xMy42ODkzIDkuNzQ0MTMsLTYuMzU5NyAxNy4zNDA0MiwtMTQuNTE5NSAyMi43OTA1MiwtMjQuNDc0OCA1LjQ1MDEsLTEwLjA5MzMyIDguMTc1MTEsLTIyLjM5OTU5IDguMTc1MTEsLTM2LjkxNjgyIDAsLTEyLjk5NzY0IC0zLjMwMjEsLTI0LjMzNTM5IC05LjkwODI5LC0zNC4wMTQ2IC02LjQ0MTA1LC05LjgxNzI1IC0xNS41MjU0NSwtMTguNTI3MDcgLTI3LjI1MTQ2LC0yNi4xMzEzMyAtMTEuNTYwODUsLTcuNjA0MjcgLTI3LjkxMDgzLC0xNS44MzE0MiAtNDkuMDUwNjYsLTI0LjY4MDIyIC0xNy41MDY0NCwtNy4xOTAxMiAtMzAuNzE5NjY4LC0xMy42ODk0OCAtMzkuNjM4MDM4LC0xOS40OTcwMSAtOC45MTgzNzEsLTUuODA3NTIgLTE4LjYwNzQ3NCwtMTIuNDM0MDkgLTI0LjA5NjUyNCwtMTguODc0MTcgLTUuNDI2MDQzLC02LjM2NjE2IC05LjY1ODgyNiwtMTUuMDcwMDMgLTkuNjU4ODI2LC0yNC44ODcyOSAwLC05LjI2NDAxIDIuMDc1NDE0LC0xNy4yMTM0NSA2LjIyMzQ1NCwtMjMuODUwMzMgMTEuMDk4Mjk4LC0xNC4zOTc0OCA0MS4yODY2MzgsLTEuNzk1MDcgNDUuMDc1NjA5LDI0LjM0NzYyIDQuODM5MzkyLDYuNzc0OTEgOC44NDkzNSwxNi4yNDcyOSAxMi4wMjk1MTUsMjguNDE1NiBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNC40NzgyNSwtNS45MjQ0OCAtOS45NTQ4OCwtMTAuNjMyMjIgLTE1LjkwODM3LC0xNC4zNzQxMSAxLjY0MDU1LDAuNDc5MDUgMy4xOTAzOSwxLjAyMzc2IDQuNjM4NjUsMS42NDAyNCA2LjQ5ODYxLDIuNjI2MDcgMTIuMTY3OTMsNy4zMjc0NyAxNy4wMDczLDE0LjEwMzQ1IDQuODM5MzksNi43NzQ5MSA4Ljg0OTM1LDE2LjI0NTY3IDEyLjAyOTUyLDI4LjQxMzk3IDAsMCA4LjQ4MTI4LC0wLjEyODk0IDguNDg5NzgsLTAuMDAyIDAuNDE3NzYsNi40MTQ5NCAtMS43NTMzOSw5LjQ1Mjg2IC00LjEyMzQyLDEyLjU2MTA0IC0yLjQxNzQsMy4xNjk3OCAtNS4xNDQ4Niw2Ljc4OTczIC00LjAwMjc4LDEzLjAwMjkgMS41MDc4Niw4LjIwMzE4IDEwLjE4MzU0LDEwLjU5NjQyIDE0LjYyMTk0LDkuMzExNTQgLTMuMzE4NDIsLTAuNDk5MTEgLTUuMzE4NTUsLTEuNzQ5NDggLTUuMzE4NTUsLTEuNzQ5NDggMCwwIDEuODc2NDYsMC45OTg2OCA1LjY1MTE3LC0xLjM1OTgxIC0zLjI3Njk1LDAuOTU1NzEgLTEwLjcwNTI5LC0wLjc5NzM4IC0xMS44MDEyNSwtNi43NjMxMyAtMC45NTc1MiwtNS4yMDg2MSAwLjk0NjU0LC03LjI5NTE0IDMuNDAxMTMsLTEwLjUxNDgyIDIuNDU0NjIsLTMuMjE5NjggNS4yODQyNiwtNi45NTgzMSA0LjY4NDMsLTE0LjQ4ODI0IGwgMC4wMDMsMC4wMDIgOC45MjY3NiwwIDAsLTU1Ljk5OTY3IGMgLTE1LjA3MTI1LC0zLjg3MTY4IC0yNy42NTMxNCwtNi4zNjA0MiAtMzcuNzQ2NzEsLTcuNDY1ODYgLTkuOTU1MzEsLTEuMTA3NTUgLTIwLjE4ODIzLC0xLjY1OTgxIC0zMC42OTY2MTMsLTEuNjU5ODEgeiBtIDcwLjMyMTYwMywxNy4zMDg5MyAwLjIzODA1LDQwLjMwNDkgYyAxLjMxODA4LDEuMjI2NjYgMi40Mzk2NSwyLjI3ODE1IDMuMzQwODEsMy4xMDYwMiA0LjgzOTM5LDYuNzc0OTEgOC44NDkzNCwxNi4yNDU2NiAxMi4wMjk1MSwyOC40MTM5NyBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNi42NzczMSwtNC41OTM4MSAtMTkuODM2NDMsLTEwLjQ3MzA5IC0zNi4xNDA3MSwtMTUuODI1MjIgeiBtIC0yOC4xMjA0OSw1LjYwNTUxIDguNTY0NzksMTcuNzE2NTUgYyAtMTEuOTcwMzcsLTYuNDY2OTcgLTEzLjg0Njc4LC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk3MDUsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IG0gMTUuMjIxOTUsMjQuMDA4NDggOC41NjQ3OSwxNy43MTY1NSBjIC0xMS45NzAzOCwtNi40NjY5NyAtMTMuODQ2NzksLTkuNzE3MjYgLTguNTY0NzksLTE3LjcxNjU1IHogbSAyMi43OTcwNCwwIGMgMi43NzE1LDcuOTk5MjkgMS43ODc0MSwxMS4yNDk1OCAtNC40OTM1NCwxNy43MTY1NSBsIDQuNDkzNTQsLTE3LjcxNjU1IHogbSAtOTkuMTEzODQsMi4yMDc2NCA4LjU2NDc5LDE3LjcxNjU1IGMgLTExLjk3MDM4MiwtNi40NjY5NyAtMTMuODQ2NzgyLC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk1NDIsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IiAvPg0KPC9zdmc+DQo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4NCjwhLS0gaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvNC4wLyAtLT4NCg==)} .theme-wizard .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-wizard .Button:last-child{margin-right:0;margin-bottom:0}.theme-wizard .Button .fa,.theme-wizard .Button .fas,.theme-wizard .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-wizard .Button--hasContent .fa,.theme-wizard .Button--hasContent .fas,.theme-wizard .Button--hasContent .far{margin-right:.25em}.theme-wizard .Button--hasContent.Button--iconPosition--right .fa,.theme-wizard .Button--hasContent.Button--iconPosition--right .fas,.theme-wizard .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-wizard .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-wizard .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-wizard .Button--circular{border-radius:50%}.theme-wizard .Button--compact{padding:0 .25em;line-height:1.333em}.theme-wizard .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#1596b6;color:#fff}.theme-wizard .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-wizard .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-wizard .Button--color--default:hover,.theme-wizard .Button--color--default:focus{background-color:#30bde0;color:#fff}.theme-wizard .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-wizard .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-wizard .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-wizard .Button--color--caution:hover,.theme-wizard .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-wizard .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#b30707;color:#fff}.theme-wizard .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-wizard .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-wizard .Button--color--danger:hover,.theme-wizard .Button--color--danger:focus{background-color:#e11b1b;color:#fff}.theme-wizard .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#213e4e;color:#fff;background-color:rgba(33,62,78,0);color:rgba(255,255,255,.5)}.theme-wizard .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-wizard .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-wizard .Button--color--transparent:hover,.theme-wizard .Button--color--transparent:focus{background-color:#395b6d;color:#fff}.theme-wizard .Button--disabled{background-color:#02426d !important}.theme-wizard .Button--selected{transition:color 50ms,background-color 50ms;background-color:#465899;color:#fff}.theme-wizard .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-wizard .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-wizard .Button--selected:hover,.theme-wizard .Button--selected:focus{background-color:#6e7eba;color:#fff}.theme-wizard .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-wizard .Input--fluid{display:block;width:auto}.theme-wizard .Input__baseline{display:inline-block;color:transparent}.theme-wizard .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-wizard .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-wizard .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-wizard .NanoMap__container{overflow:hiddden;width:100%;z-index:1}.theme-wizard .NanoMap__marker{z-index:10;padding:0px;margin:0px}.theme-wizard .NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.theme-wizard .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#fff;background-color:#a82d55;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.theme-wizard .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-wizard .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-wizard .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-wizard .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-wizard .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-wizard .Input--fluid{display:block;width:auto}.theme-wizard .Input__baseline{display:inline-block;color:transparent}.theme-wizard .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-wizard .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-wizard .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-wizard .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#404b6e;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-wizard .NumberInput--fluid{display:block}.theme-wizard .NumberInput__content{margin-left:.5em}.theme-wizard .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-wizard .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #404b6e;background-color:#404b6e}.theme-wizard .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-wizard .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:2px;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-wizard .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-wizard .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-wizard .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-wizard .ProgressBar--color--default{border:.0833333333em solid #12809b}.theme-wizard .ProgressBar--color--default .ProgressBar__fill{background-color:#12809b}.theme-wizard .Section{position:relative;margin-bottom:.5em;background-color:#162a34;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-wizard .Section:last-child{margin-bottom:0}.theme-wizard .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #1596b6}.theme-wizard .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-wizard .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-wizard .Section__rest{position:relative}.theme-wizard .Section__content{padding:.66em .5em}.theme-wizard .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-wizard .Section--fill{display:flex;flex-direction:column;height:100%}.theme-wizard .Section--fill>.Section__rest{flex-grow:1}.theme-wizard .Section--fill>.Section__rest>.Section__content{height:100%}.theme-wizard .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-wizard .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-wizard .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-wizard .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-wizard .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-wizard .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-wizard .Section .Section:first-child{margin-top:-0.5em}.theme-wizard .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-wizard .Section .Section .Section .Section__titleText{font-size:1em}.theme-wizard .Section--flex{display:flex;flex-flow:column}.theme-wizard .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-wizard .Section__content--noTopPadding{padding-top:0}.theme-wizard .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-wizard .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#2da848;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:2px;max-width:20.8333333333em}.theme-wizard .Layout,.theme-wizard .Layout *{scrollbar-base-color:#192f3b;scrollbar-face-color:#2d546a;scrollbar-3dlight-color:#213e4e;scrollbar-highlight-color:#213e4e;scrollbar-track-color:#192f3b;scrollbar-arrow-color:#73a7c4;scrollbar-shadow-color:#2d546a}.theme-wizard .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-wizard .Layout__content--scrollable{overflow-y:auto}.theme-wizard .Layout__content--flexRow{display:flex;flex-flow:row}.theme-wizard .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-wizard .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#213e4e;background-image:linear-gradient(to bottom, #2a4f64 0%, #182d38 100%)}.theme-wizard .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-wizard .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-wizard .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-wizard .Window__contentPadding:after{height:0}.theme-wizard .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-wizard .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(57,91,109,.25);pointer-events:none}.theme-wizard .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-wizard .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-wizard .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-wizard .TitleBar{background-color:#1b9e26;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-wizard .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#1b9e26;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-wizard .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-wizard .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-wizard .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-wizard .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-wizard .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-wizard .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-wizard .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-wizard .Layout__content{background-image:url(data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJtZXRlb3IiIGNsYXNzPSJzdmctaW5saW5lLS1mYSBmYS1tZXRlb3IgZmEtdy0xNiIgcm9sZT0iaW1nIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBvcGFjaXR5PSIuMzMiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTUxMS4zMjgsMjAuODAyN2MtMTEuNjA3NTksMzguNzAyNjQtMzQuMzA3MjQsMTExLjcwMTczLTYxLjMwMzExLDE4Ny43MDA3Nyw2Ljk5ODkzLDIuMDkzNzIsMTMuNDA0Miw0LDE4LjYwNjUzLDUuNTkzNjhhMTYuMDYxNTgsMTYuMDYxNTgsMCwwLDEsOS40OTg1NCwyMi45MDZjLTIyLjEwNiw0Mi4yOTYzNS04Mi42OTA0NywxNTIuNzk1LTE0Mi40NzgxOSwyMTQuNDAzNTYtLjk5OTg0LDEuMDkzNzMtMS45OTk2OSwyLjUtMi45OTk1NCwzLjQ5OTk1QTE5NC44MzA0NiwxOTQuODMwNDYsMCwxLDEsNTcuMDg1LDE3OS40MTAwOWMuOTk5ODUtMSwyLjQwNTg4LTIsMy40OTk0Ny0zLDYxLjU5OTk0LTU5LjkwNTQ5LDE3MS45NzM2Ny0xMjAuNDA0NzMsMjE0LjM3MzQzLTE0Mi40OTgyYTE2LjA1OCwxNi4wNTgsMCwwLDEsMjIuOTAyNzQsOS40OTk4OGMxLjU5MzUxLDUuMDkzNjgsMy40OTk0NywxMS41OTM2LDUuNTkyOSwxOC41OTM1MUMzNzkuMzQ4MTgsMzUuMDA1NjUsNDUyLjQzMDc0LDEyLjMwMjgxLDQ5MS4xMjc5NC43MDkyMUExNi4xODMyNSwxNi4xODMyNSwwLDAsMSw1MTEuMzI4LDIwLjgwMjdaTTMxOS45NTEsMzIwLjAwMjA3QTEyNy45ODA0MSwxMjcuOTgwNDEsMCwxLDAsMTkxLjk3MDYxLDQ0OC4wMDA0NiwxMjcuOTc1NzMsMTI3Ljk3NTczLDAsMCwwLDMxOS45NTEsMzIwLjAwMjA3Wm0tMTI3Ljk4MDQxLTMxLjk5OTZhMzEuOTk1MSwzMS45OTUxLDAsMSwxLTMxLjk5NTEtMzEuOTk5NkEzMS45NTksMzEuOTU5LDAsMCwxLDE5MS45NzA2MSwyODguMDAyNDdabTMxLjk5NTEsNzkuOTk5YTE1Ljk5NzU1LDE1Ljk5NzU1LDAsMSwxLTE1Ljk5NzU1LTE1Ljk5OThBMTYuMDQ5NzUsMTYuMDQ5NzUsMCwwLDEsMjIzLjk2NTcxLDM2OC4wMDE0N1oiPjwvcGF0aD48L3N2Zz4NCjwhLS0gVGhpcyB3b3JrIGlzIGxpY2Vuc2VkIHVuZGVyIGEgQ3JlYXRpdmUgQ29tbW9ucyBBdHRyaWJ1dGlvbi1TaGFyZUFsaWtlIDQuMCBJbnRlcm5hdGlvbmFsIExpY2Vuc2UuIC0tPg0KPCEtLSBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS1zYS80LjAvIC0tPg==)} .theme-abstract .TitleBar__statusIcon{display:none}.theme-abstract .Layout__content{background-image:none}.theme-abstract .TitleBar__title{left:12px} diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 2886e8c4ed..1d91ba0443 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1 +1 @@ -!function(){var e,n={60121:function(e,n,t){"use strict";var o=t(39812);t(56285),t(58602),t(92433),t(35070),t(86455),t(41821),t(83243),t(97585),t(64197),t(87266),t(99195),t(72916),t(48979);var r,c,a=t(84877),i=(t(25059),t(18874)),l=t(25697),d=t(75682),s=t(69913),u=t(74360);a.perf.mark("inception",null==(r=window.performance)||null==(c=r.timing)?void 0:c.navigationStart),a.perf.mark("init");var m=(0,s.configureStore)(),p=(0,d.createRenderer)((function(){var e=(0,t(73218).getRoutedComponent)(m);return(0,o.createComponentVNode)(2,s.StoreProvider,{store:m,children:(0,o.createComponentVNode)(2,e)})}));!function C(){if("loading"!==document.readyState){for((0,u.setupGlobalEvents)(),(0,i.setupHotKeys)(),(0,l.captureExternalLinks)(),m.subscribe(p),window.update=function(e){return m.dispatch(Byond.parseJson(e))};;){var e=window.__updateQueue__.shift();if(!e)break;window.update(e)}0}else document.addEventListener("DOMContentLoaded",C)}()},34129:function(e,n,t){"use strict";n.__esModule=!0,n.AICard=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AICard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.has_ai,s=l.integrity,u=l.backup_capacitor,m=l.flushing,p=l.has_laws,C=l.laws,h=l.wireless,N=l.radio;if(0===d)return(0,o.createComponentVNode)(2,a.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var V=null;V=s>=75?"green":s>=25?"yellow":"red";var b=null;return u>=75&&(b="green"),b=u>=25?"yellow":"red",(0,o.createComponentVNode)(2,a.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,name,0)}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:V,value:s/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:b,value:u/100})})]})}),(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===m?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",children:!!p&&(0,o.createComponentVNode)(2,c.Box,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",children:e},n)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"check":"times",content:h?"Enabled":"Disabled",color:h?"green":"red",onClick:function(){return i("wireless")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"check":"times",content:N?"Enabled":"Disabled",color:N?"green":"red",onClick:function(){return i("radio")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"AI Power",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||0===s,confirmColor:"red",content:"Shutdown",onClick:function(){return i("wipe")}})})]})})]})})}},73405:function(e,n,t){"use strict";n.__esModule=!0,n.APC=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(21451),l=t(67861);n.APC=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(0,o.createComponentVNode)(2,s);return c.gridCheck?i=(0,o.createComponentVNode)(2,u):c.failTime&&(i=(0,o.createComponentVNode)(2,m)),(0,o.createComponentVNode)(2,a.Window,{width:450,height:475,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:i})})};var d={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,s=l.locked&&!l.siliconUser,u=(l.normallyLocked,d[l.externalPower]||d[0]),m=d[l.chargingStatus]||d[0],p=l.powerChannels||[],C=l.powerCellStatus/100;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.InterfaceLockNoticeBox,{deny:l.emagged,denialMessage:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Please contact maintenance for service."})],4)}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main Breaker",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.isOperating?"power-off":"times",content:l.isOperating?"On":"Off",selected:l.isOperating&&!s,color:l.isOperating?"":"bad",disabled:s,onClick:function(){return a("breaker")}}),children:["[ ",u.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:C})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.chargeMode?"sync":"times",content:l.chargeMode?"Auto":"Off",selected:l.chargeMode,disabled:s,onClick:function(){return a("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[p.map((function(e){var n=e.topicParams;return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:!s&&(1===e.status||3===e.status),disabled:s,onClick:function(){return a("channel",n.auto)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"On",selected:!s&&2===e.status,disabled:s,onClick:function(){return a("channel",n.on)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:!s&&0===e.status,disabled:s,onClick:function(){return a("channel",n.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Load",children:l.totalCharging?(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W (+ "),l.totalCharging,(0,o.createTextVNode)(" W charging)")],0):(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Misc",buttons:!!l.siliconUser&&(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return a("overload")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.coverLocked?"lock":"unlock",content:l.coverLocked?"Engaged":"Disengaged",selected:l.coverLocked,disabled:s,onClick:function(){return a("cover")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Disabled",selected:2===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Automatic",selected:1===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Enabled",selected:3===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:3})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:l.emergencyLights?"Enabled":"Disabled",selected:l.emergencyLights,onClick:function(){return a("emergency_lighting")}})})]})})],4)},u=function(e,n){return(0,o.createComponentVNode)(2,l.FullscreenNotice,{title:"System Failure",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=(0,o.createComponentVNode)(2,c.Button,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return i("reboot")}});return a.locked&&!a.siliconUser&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"SYSTEM FAILURE",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h2",null,"I/O regulators malfunction detected! Waiting for system reboot...",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Automatic reboot in ",a.failTime," seconds..."]}),(0,o.createComponentVNode)(2,c.Box,{mt:4,children:l})]})}},20832:function(e,n,t){"use strict";n.__esModule=!0,n.AccountsTerminal=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AccountsTerminal=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.id_inserted,u=d.id_card,m=d.access_level,p=d.machine_id;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:640,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Machine",color:"average",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"eject":"sign-in-alt",fluid:!0,content:u,onClick:function(){return l("insert_card")}})})]})}),m>0&&(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,u=i.creating_new_account,m=i.detailed_account_view;return(0,o.createComponentVNode)(2,c.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!u&&!m,icon:"home",onClick:function(){return a("view_accounts_list")},children:"Home"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:u,icon:"cog",onClick:function(){return a("create_account")},children:"New Account"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{disabled:u,icon:"print",onClick:function(){return a("print")},children:"Print"})]}),u&&(0,o.createComponentVNode)(2,l)||m&&(0,o.createComponentVNode)(2,d)||(0,o.createComponentVNode)(2,s)]})},l=function(e,n){var t=(0,r.useBackend)(n).act,a=(0,r.useSharedState)(n,"holder",""),i=a[0],l=a[1],d=(0,r.useSharedState)(n,"money",""),s=d[0],u=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:"Create Account",level:2,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,c.Input,{value:i,fluid:!0,onInput:function(e,n){return l(n)}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onInput:function(e,n){return u(n)}})})]}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i||!s,mt:1,fluid:!0,icon:"plus",onClick:function(){return t("finalise_create_account",{holder_name:i,starting_funds:s})},content:"Create"})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.access_level,d=i.station_account_number,s=i.account_number,u=i.owner_name,m=i.money,p=i.suspended,C=i.transactions;return(0,o.createComponentVNode)(2,c.Section,{title:"Account Details",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",selected:p,content:"Suspend",onClick:function(){return a("toggle_suspension")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Holder",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Balance",children:[m,"\u20ae"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:p?"bad":"good",children:p?"SUSPENDED":"Active"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"CentCom Administrator",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Payroll",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:s===d,onClick:function(){return a("revoke_payroll")}})})})}),l>=2&&(0,o.createComponentVNode)(2,c.Section,{title:"Silent Funds Transfer",level:2,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_funds")},content:"Add Funds"}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("remove_funds")},content:"Remove Funds"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Transactions",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Terminal"})]}),C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.amount,"\u20ae"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source_terminal})]},n)}))]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"NanoTrasen Accounts",level:2,children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.owner_name+e.suspended,color:e.suspended?"bad":null,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"#"+e.account_number,onClick:function(){return a("view_account_detail",{account_index:e.account_index})}})},e.account_index)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"There are no accounts available."})})}},19007:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleList=n.AdminShuttleController=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.AdminShuttleController=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.shuttles,u=l.overmap_ships;return(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Classic Shuttles",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"Fly",onClick:function(){return i("classicmove",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.current_location}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:d(e.status)})]},e.ref)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Overmap Ships",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){var n;return(null==(n=e.name)?void 0:n.toLowerCase())||e.name||e.ref}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"Control",onClick:function(){return i("overmap_control",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name})]},e.ref)}))})})]})};n.ShuttleList=l;var d=function(e){switch(e){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},51104:function(e,n,t){"use strict";n.__esModule=!0,n.AgentCard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AgentCard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.entries,s=l.electronic_warfare;return(0,o.createComponentVNode)(2,a.Window,{width:550,height:400,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Info",children:(0,o.createComponentVNode)(2,c.Table,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i(e.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.value})]},e.name)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Electronic Warfare",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:s,content:s?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return i("electronic_warfare")}})})]})})}},47330:function(e,n,t){"use strict";n.__esModule=!0,n.AiAirlock=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}};n.AiAirlock=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=i[d.power.main]||i[0],u=i[d.power.backup]||i[0],m=i[d.shock]||i[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[d.power.main?"Online":"Offline"," ",d.wires.main_1&&d.wires.main_2?d.power.main_timeleft>0&&"["+d.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[d.power.backup?"Online":"Offline"," ",d.wires.backup_1&&d.wires.backup_2?d.power.backup_timeleft>0&&"["+d.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Electrify",color:m.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:!(d.wires.shock&&0===d.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===d.shock?"Safe":"Electrified"," ",(d.wires.shock?d.shock_timeleft>0&&"["+d.shock_timeleft+"s]":"[Wires have been cut!]")||-1===d.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.id_scanner?"power-off":"times",content:d.id_scanner?"Enabled":"Disabled",selected:d.id_scanner,disabled:!d.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!d.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.locked?"lock":"unlock",content:d.locked?"Lowered":"Raised",selected:d.locked,disabled:!d.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!d.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.lights?"power-off":"times",content:d.lights?"Enabled":"Disabled",selected:d.lights,disabled:!d.wires.lights,onClick:function(){return l("light-toggle")}}),children:!d.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.safe?"power-off":"times",content:d.safe?"Enabled":"Disabled",selected:d.safe,disabled:!d.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!d.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.speed?"power-off":"times",content:d.speed?"Enabled":"Disabled",selected:d.speed,disabled:!d.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!d.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.opened?"sign-out-alt":"sign-in-alt",content:d.opened?"Open":"Closed",selected:d.opened,disabled:d.locked||d.welded,onClick:function(){return l("open-close")}}),children:!(!d.locked&&!d.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),d.locked?"bolted":"",d.locked&&d.welded?" and ":"",d.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},33084:function(e,n,t){"use strict";n.__esModule=!0,n.AiRestorerContent=n.AiRestorer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AiRestorer=function(){return(0,o.createComponentVNode)(2,a.Window,{width:370,height:360,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.AI_present,d=i.error,s=i.name,u=i.laws,m=i.isDead,p=i.restoring,C=i.health,h=i.ejectable;return(0,o.createFragment)([d&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:d}),!!h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:l?s:"----------",disabled:!l,onClick:function(){return a("PRG_eject")}}),!!l&&(0,o.createComponentVNode)(2,c.Section,{title:h?"System Status":s,buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,color:m?"bad":"good",children:m?"Nonfunctional":"Functional"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})})}),!!p&&(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return a("PRG_beginReconstruction")}}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",level:2,children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{className:"candystripe",children:e},e)}))})]})],0)};n.AiRestorerContent=i},597:function(e,n,t){"use strict";n.__esModule=!0,n.AiSupermatter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=(t(58083),t(67861));n.AiSupermatter=function(e,n){var t=(0,r.useBackend)(n).data,c=(t.integrity_percentage,t.ambient_temp,t.ambient_pressure,t.detonating),i=(0,o.createComponentVNode)(2,d);return c&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:i})})};var l=function(e,n){return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Evacuate area immediately"})]})})},d=function(e,n){var t=(0,r.useBackend)(n).data,a=t.integrity_percentage,i=t.ambient_temp,l=t.ambient_pressure;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Crystal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:a,maxValue:100,ranges:{good:[90,Infinity],average:[25,90],bad:[-Infinity,25]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:i,maxValue:1e4,ranges:{bad:[5e3,Infinity],average:[4e3,5e3],good:[-Infinity,4e3]},children:[i," K"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Pressure",children:[l," kPa"]})]})})}},58444:function(e,n,t){"use strict";n.__esModule=!0,n.AirAlarm=void 0;var o=t(39812),r=t(41860),c=(t(2497),t(71494)),a=t(74814),i=t(76270),l=t(85952),d=t(21451),s=t(71739);n.AirAlarm=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=r.locked&&!r.siliconUser&&!r.remoteUser;return(0,o.createComponentVNode)(2,l.Window,{width:440,height:650,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m),!a&&(0,o.createComponentVNode)(2,C)]})})};var u=function(e,n){var t=(0,c.useBackend)(n).data,l=(t.environment_data||[]).filter((function(e){return e.value>=.01})),d={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},s=d[t.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.Section,{title:"Air Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l.length>0&&(0,o.createFragment)([l.map((function(e){var n=d[e.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,i.getGasLabel)(e.name),color:n.color,children:[(0,r.toFixed)(e.value,2),e.unit]},e.name)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Local status",color:s.color,children:s.localStatusText}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Area status",color:t.atmos_alarm||t.fire_alarm?"bad":"good",children:(t.atmos_alarm?"Atmosphere Alarm":t.fire_alarm&&"Fire Alarm")||"Nominal"})],0)||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!t.emagged&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.target_temperature,d=i.rcon;return(0,o.createComponentVNode)(2,a.Section,{title:"Comfort Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote Control",children:[(0,o.createComponentVNode)(2,a.Button,{selected:1===d,content:"Off",onClick:function(){return r("rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,a.Button,{selected:2===d,content:"Auto",onClick:function(){return r("rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,a.Button,{selected:3===d,content:"On",onClick:function(){return r("rcon",{rcon:3})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Button,{content:l,onClick:function(){return r("temperature")}})})]})})},p={home:{title:"Air Controls",component:function(){return h}},vents:{title:"Vent Controls",component:function(){return N}},scrubbers:{title:"Scrubber Controls",component:function(){return V}},modes:{title:"Operating Mode",component:function(){return b}},thresholds:{title:"Alarm Thresholds",component:function(){return f}}},C=function(e,n){var t=(0,c.useLocalState)(n,"screen"),r=t[0],i=t[1],l=p[r]||p.home,d=l.component();return(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:r&&(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i()}}),children:(0,o.createComponentVNode)(2,d)})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(0,c.useLocalState)(n,"screen"),d=(l[0],l[1]),s=i.mode,u=i.atmos_alarm;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:u?"exclamation-triangle":"exclamation",color:u&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return r(u?"reset":"alarm")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:3===s?"exclamation-triangle":"exclamation",color:3===s&&"danger",content:"Panic Siphon",onClick:function(){return r("mode",{mode:3===s?1:3})}}),(0,o.createComponentVNode)(2,a.Box,{mt:2}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return d("vents")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){return d("scrubbers")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"cog",content:"Operating Mode",onClick:function(){return d("modes")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return d("thresholds")}})],4)},N=function(e,n){var t=(0,c.useBackend)(n).data.vents;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Vent,{vent:e},e.id_tag)})):"Nothing to show"},V=function(e,n){var t=(0,c.useBackend)(n).data.scrubbers;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Scrubber,{scrubber:e},e.id_tag)})):"Nothing to show"},b=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.modes;return i&&0!==i.length?i.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:e.selected?"check-square-o":"square-o",selected:e.selected,color:e.selected&&e.danger&&"danger",content:e.name,onClick:function(){return r("mode",{mode:e.mode})}}),(0,o.createComponentVNode)(2,a.Box,{mt:1})],4,e.mode)})):"Nothing to show"},f=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.thresholds;return(0,o.createVNode)(1,"table","LabeledList",[(0,o.createVNode)(1,"thead",null,(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td"),(0,o.createVNode)(1,"td","color-bad","min2",16),(0,o.createVNode)(1,"td","color-average","min1",16),(0,o.createVNode)(1,"td","color-average","max1",16),(0,o.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,o.createVNode)(1,"tbody",null,d.map((function(e){return(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td","LabeledList__label",(0,o.createVNode)(1,"span","color-"+(0,i.getGasColor)(e.name),(0,i.getGasLabel)(e.name),0),2),e.settings.map((function(e){return(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Button,{content:(0,r.toFixed)(e.selected,2),onClick:function(){return l("threshold",{env:e.env,"var":e.val})}}),2,null,e.val)}))],0,null,e.name)})),0)],4,{style:{width:"100%"}})}},24053:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.AlertModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(29708);function d(e,n){return(d=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var s=function(e){var n,t;function r(){var n;return(n=e.call(this)||this).buttonRefs=[(0,o.createRef)()],n.state={current:0},n}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,d(n,t);var s=r.prototype;return s.componentDidMount=function(){for(var e=(0,c.useBackend)(this.context).data.buttons,n=this.state.current,t=this.buttonRefs[n].current,r=1;r=t.length?e=n?e-1:0:e<0&&(e=n?0:t.length-1);var o=this.buttonRefs[e].current;o&&setTimeout((function(){return o.focus()}),1),this.setState({current:e})},s.render=function(){var e=this,n=(0,c.useBackend)(this.context),t=n.act,r=n.data,d=r.title,s=r.message,m=r.buttons,p=r.timeout,C=this.state.current,h=function(){return e.setCurrent(C,!1)},N=Math.max(150,s.length);return(0,o.createComponentVNode)(2,i.Window,{title:d,theme:"abstract",width:350,height:N,canClose:p>0,children:[p&&(0,o.createComponentVNode)(2,u,{value:p}),(0,o.createComponentVNode)(2,i.Window.Content,{onFocus:h,onClick:h,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",className:"AlertModal__Message",height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{m:1,children:s})})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{my:2,children:(0,o.createComponentVNode)(2,a.Flex,{className:"AlertModal__Buttons",wrap:!0,children:m.map((function(n,r){return(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,my:.5,children:(0,o.createVNode)(1,"div","Button Button--color--default",n,0,{px:3,onClick:function(){return t("choose",{choice:n})},onKeyDown:function(o){var r=window.event?o.which:o.keyCode;r===l.KEY_SPACE||r===l.KEY_ENTER?t("choose",{choice:n}):r===l.KEY_LEFT||o.shiftKey&&r===l.KEY_TAB?e.setCurrent(C-1,r===l.KEY_LEFT):r!==l.KEY_RIGHT&&r!==l.KEY_TAB||e.setCurrent(C+1,r===l.KEY_RIGHT)}},null,e.buttonRefs[r])},r)}))})})]})})})]})},r}(o.Component);n.AlertModal=s;var u=function(e){var n=e.value;return(0,o.createVNode)(1,"div","AlertModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"AlertModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=u},34847:function(e,n,t){"use strict";n.__esModule=!0,n.AlgaeFarm=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=(t(41860),t(2497));n.AlgaeFarm=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.usePower,u=d.materials,m=d.last_flow_rate,p=d.last_power_draw,C=d.inputDir,h=d.outputDir,N=d.input,V=d.output,b=d.errorText;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[b&&(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Processing",selected:2===s,onClick:function(){return l("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[m," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw",children:[p," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(e.display),children:[(0,o.createComponentVNode)(2,c.ProgressBar,{width:"80%",value:e.qty,maxValue:e.max,children:[e.qty,"/",e.max]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,content:"Eject",onClick:function(){return l("ejectMaterial",{mat:e.name})}})]},e.name)}))]}),(0,o.createComponentVNode)(2,c.Table,{mt:1,children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Input ("+C+")",children:N?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[N.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:N.name,children:[N.percent,"% (",N.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Output ("+h+")",children:V?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[V.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:V.name,children:[V.percent,"% (",V.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},65145:function(e,n,t){"use strict";n.__esModule=!0,n.AppearanceChanger=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.AppearanceChanger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),V=t.data,b=V.name,f=V.specimen,g=V.gender,k=V.gender_id,v=V.hair_style,B=V.facial_hair_style,L=V.ear_style,_=V.tail_style,x=V.wing_style,w=V.change_race,S=V.change_gender,I=V.change_eye_color,y=V.change_skin_tone,T=V.change_skin_color,A=V.change_hair_color,P=V.change_facial_hair_color,M=V.change_hair,F=V.change_facial_hair,D=V.mapRef,R=r.title,E=I||y||T||A||P,O=-1;w?O=0:S?O=1:E?O=2:M?O=4:F&&(O=5);var j=(0,a.useLocalState)(n,"tabIndex",O),W=j[0],z=j[1];return(0,o.createComponentVNode)(2,l.Window,{width:700,height:650,title:(0,c.decodeHtmlEntities)(R),children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Reflection",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:b}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",color:w?null:"grey",children:f}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",color:S?null:"grey",children:g?(0,c.capitalize)(g):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",color:E?null:"grey",children:k?(0,c.capitalize)(k):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Style",color:M?null:"grey",children:v?(0,c.capitalize)(v):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial Hair Style",color:F?null:"grey",children:B?(0,c.capitalize)(B):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ear Style",color:M?null:"grey",children:L?(0,c.capitalize)(L):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail Style",color:M?null:"grey",children:_?(0,c.capitalize)(_):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wing Style",color:M?null:"grey",children:x?(0,c.capitalize)(x):"Not Set"})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.ByondUi,{style:{width:"256px",height:"256px"},params:{id:D,type:"map"}})})]})}),(0,o.createComponentVNode)(2,i.Tabs,{children:[w?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===W,onClick:function(){return z(0)},children:"Race"}):null,S?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===W,onClick:function(){return z(1)},children:"Gender & Sex"}):null,E?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===W,onClick:function(){return z(2)},children:"Colors"}):null,M?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===W,onClick:function(){return z(3)},children:"Hair"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===W,onClick:function(){return z(5)},children:"Ear"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===W,onClick:function(){return z(6)},children:"Tail"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:7===W,onClick:function(){return z(7)},children:"Wing"})],4):null,F?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:4===W,onClick:function(){return z(4)},children:"Facial Hair"}):null]}),(0,o.createComponentVNode)(2,i.Box,{height:"43%",children:[w&&0===W?(0,o.createComponentVNode)(2,d):null,S&&1===W?(0,o.createComponentVNode)(2,s):null,E&&2===W?(0,o.createComponentVNode)(2,u):null,M&&3===W?(0,o.createComponentVNode)(2,m):null,F&&4===W?(0,o.createComponentVNode)(2,p):null,M&&5===W?(0,o.createComponentVNode)(2,C):null,M&&6===W?(0,o.createComponentVNode)(2,h):null,M&&7===W?(0,o.createComponentVNode)(2,N):null]})]})})};var d=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.species,s=l.specimen,u=(0,r.sortBy)((function(e){return e.specimen}))(d||[]);return(0,o.createComponentVNode)(2,i.Section,{title:"Species",fill:!0,scrollable:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:s===e.specimen,onClick:function(){return c("race",{race:e.specimen})}},e.specimen)}))})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.gender,d=c.gender_id,s=c.genders,u=c.id_genders;return(0,o.createComponentVNode)(2,i.Section,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===l,content:e.gender_name,onClick:function(){return r("gender",{gender:e.gender_key})}},e.gender_key)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===d,content:e.gender_name,onClick:function(){return r("gender_id",{gender_id:e.gender_key})}},e.gender_key)}))})]})})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.change_eye_color,d=c.change_skin_tone,s=c.change_skin_color,u=c.change_hair_color,m=c.change_facial_hair_color,p=c.eye_color,C=c.skin_color,h=c.hair_color,N=c.facial_hair_color,V=c.ears_color,b=c.ears2_color,f=c.tail_color,g=c.tail2_color,k=c.wing_color,v=c.wing2_color;return(0,o.createComponentVNode)(2,i.Section,{title:"Colors",fill:!0,scrollable:!0,children:[l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:p,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Eye Color",onClick:function(){return r("eye_color")}})]}):null,d?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Tone",onClick:function(){return r("skin_tone")}})}):null,s?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:C,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Color",onClick:function(){return r("skin_color")}})]}):null,u?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:h,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Hair Color",onClick:function(){return r("hair_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:V,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Ears Color",onClick:function(){return r("ears_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:b,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Ears Color",onClick:function(){return r("ears2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:f,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Tail Color",onClick:function(){return r("tail_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:g,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Tail Color",onClick:function(){return r("tail2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:k,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Wing Color",onClick:function(){return r("wing_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:v,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Wing Color",onClick:function(){return r("wing2_color")}})]})],4):null,m?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:N,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Facial Hair Color",onClick:function(){return r("facial_hair_color")}})]}):null]})},m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.hair_style,d=c.hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("hair",{hair:e.hairstyle})},selected:e.hairstyle===l,content:e.hairstyle},e.hairstyle)}))})},p=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.facial_hair_style,d=c.facial_hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Facial Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("facial_hair",{facial_hair:e.facialhairstyle})},selected:e.facialhairstyle===l,content:e.facialhairstyle},e.facialhairstyle)}))})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.ear_style,s=l.ear_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Ears",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},h=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.tail_style,s=l.tail_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Tails",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},N=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.wing_style,s=l.wing_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Wings",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})}},86776:function(e,n,t){"use strict";n.__esModule=!0,n.ArcadeBattle=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ArcadeBattle=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=(l.name,l.temp),s=l.enemyAction,u=l.enemyName,m=l.playerHP,p=l.playerMP,C=l.enemyHP,h=(l.enemyMP,l.gameOver);return(0,o.createComponentVNode)(2,a.Window,{width:400,height:240,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:u,textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Section,{color:"label",children:[(0,o.createComponentVNode)(2,c.Box,{children:d}),(0,o.createComponentVNode)(2,c.Box,{children:!h&&s})]}),(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[m,"HP"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[p,"MP"]})})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Enemy HP",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:45,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[C,"HP"]})})})})]}),h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return i("newgame")}})||(0,o.createComponentVNode)(2,c.Flex,{mt:2,justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return i("attack")},content:"Attack!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return i("heal")},content:"Heal!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return i("charge")},content:"Recharge!"})})]})]})})})}},13496:function(e,n,t){"use strict";n.__esModule=!0,n.AreaScrubberControl=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(2497);n.AreaScrubberControl=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=(0,c.useLocalState)(n,"showArea",!1),u=s[0],m=s[1],p=d.scrubbers;return p?(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:u,onClick:function(){return m(!u)}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return i("allon")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return i("alloff")}})})]}),(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:p.map((function(e){return(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"32%",children:(0,o.createComponentVNode)(2,l,{scrubber:e,showArea:u})},e.id)}))})]})})}):(0,o.createComponentVNode)(2,r.Section,{title:"Error",children:[(0,o.createComponentVNode)(2,r.Box,{color:"bad",children:"No Scrubbers Detected."}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})]})};var l=function(e,n){var t=(0,c.useBackend)(n).act,a=e.scrubber,l=e.showArea;return(0,o.createComponentVNode)(2,r.Section,{title:a.name,children:[(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"power-off",content:a.on?"Enabled":"Disabled",selected:a.on,onClick:function(){return t("toggle",{id:a.id})}}),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[a.pressure," kPa"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Flow Rate",children:[a.flow_rate," L/s"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[a.load," W"]}),l&&(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Area",children:(0,i.toTitleCase)(a.area)})]})]})}},56404:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyInfrared=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AssemblyInfrared=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.visible;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Infrared Unit",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Laser",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",fluid:!0,selected:d,onClick:function(){return i("state")},children:d?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,selected:s,onClick:function(){return i("visible")},children:s?"Able to be seen":"Invisible"})})]})})})})}},29632:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyProx=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyProx=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time,p=s.range,C=s.maxRange,h=s.scanning;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Prox Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.NumberInput,{minValue:1,value:p,maxValue:C,onDrag:function(e,n){return d("range",{range:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Armed",children:[(0,o.createComponentVNode)(2,a.Button,{mr:1,icon:h?"lock":"lock-open",selected:h,onClick:function(){return d("scanning")},children:h?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},48661:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})})})})}},38531:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosAlertConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.priority_alarms||[],s=l.minor_alarms||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===d.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"bad",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)})),0===s.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"average",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)}))],0)})})})}},46566:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosControlContent=n.AtmosControl=void 0;var o=t(39812),r=t(64499),c=t(85952),a=t(74814),i=t(71494);(0,t(88654).createLogger)("fuck");n.AtmosControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:600,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t,c=(0,i.useBackend)(n),l=c.act,d=c.data,s=c.config,u=(0,r.sortBy)((function(e){return e.name}))(d.alarms||[]),m=(0,i.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=(0,i.useLocalState)(n,"zoom",1),N=h[0],V=h[1];return 0===p?t=(0,o.createComponentVNode)(2,a.Section,{title:"Alarms",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,color:2===e.danger?"bad":1===e.danger?"average":"",onClick:function(){return l("alarm",{alarm:e.ref})}},e.name)}))}):1===p&&(t=(0,o.createComponentVNode)(2,a.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,a.NanoMap,{onZoom:function(e){return V(e)},children:u.filter((function(e){return~~e.z==~~s.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,a.NanoMap.Marker,{x:e.x,y:e.y,zoom:N,icon:"bell",tooltip:e.name,color:e.danger?"red":"green",onClick:function(){return l("alarm",{alarm:e.ref})}},e.ref)}))})})),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"table"})," Alarm View"]},"AlarmView"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)};n.AtmosControlContent=l},2726:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952));n.AtmosFilter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.filter_types||[];return(0,o.createComponentVNode)(2,a.Window,{width:390,height:187,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,mr:1,children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:l.last_flow_rate,format:function(e){return e+" L/s"}})}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(e,n){return i("rate",{rate:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.rate===l.max_rate,onClick:function(){return i("rate",{rate:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Filter",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e.selected,content:e.name,onClick:function(){return i("filter",{filterset:e.f_type})}},e.name)}))})]})})})})}},61505:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:370,height:195,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.max_pressure,step:10,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.set_pressure===l.max_pressure,onClick:function(){return i("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"label",children:(0,o.createVNode)(1,"u",null,"Concentrations",16)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 1 ("+l.node1_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node1",{concentration:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 2 ("+l.node2_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node2",{concentration:n})}})})]})})})})}},99994:function(e,n,t){"use strict";n.__esModule=!0,n.Autolathe=void 0;var o=t(39812),r=(t(41860),t(85531)),c=t(64499),a=t(71494),i=t(74814),l=t(85952),d=t(95481),s=t(2497),u=function(e,n,t){if(void 0===t&&(t=1),null===e.requirements)return!0;for(var o=Object.keys(e.requirements),r=function(){var o=a[c],r=n.find((function(e){return e.name===o}));return r?r.amount=e[1].price/d.build_eff,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},u=function(e,n){return!!e.affordable&&!(e.reagent&&!n.beaker)},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u(e,i),content:(e.price/i.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:l,name:e.name})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},81850:function(e,n,t){"use strict";n.__esModule=!0,n.BodyDesigner=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);n.BodyDesigner=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.menu,u=d.disk,m=d.diskStored,p=d.activeBodyRecord,C=l[s];return(0,o.createComponentVNode)(2,i.Window,{width:400,height:650,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[u?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Save To Disk",onClick:function(){return r("savetodisk")},disabled:!p}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Load From Disk",onClick:function(){return r("loadfromdisk")},disabled:!m}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return r("ejectdisk")}})]}):null,C]})})};var l={Main:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Database Functions",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Individual Body Records",onClick:function(){return r("menu",{menu:"Body Records"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Stock Body Records",onClick:function(){return r("menu",{menu:"Stock Records"})}})]})})),"Body Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Body Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e.name,onClick:function(){return r("view_brec",{view_brec:e.recref})}},e.name)}))})})),"Stock Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.stock_bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Stock Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e,onClick:function(){return r("view_stock_brec",{view_stock_brec:e})}},e)}))})})),"Specific Record":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.activeBodyRecord,s=l.mapRef;return d?(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"165px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Specific Record",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i("menu",{menu:"Main"})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.real_name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:d.speciesname}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:(0,r.capitalize)(d.gender),onClick:function(){return i("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:d.synthetic}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:[d.locked,(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!d.booc,onClick:function(){return i("boocnotes")}})]})]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"130px",children:(0,o.createComponentVNode)(2,a.ByondUi,{style:{width:"100%",height:"128px"},params:{id:s,type:"map"}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"300px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scale",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:d.scale,onClick:function(){return i("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(d.styles).map((function(e){var n=d.styles[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.styleHref?(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.style,onClick:function(){return i("href_conversion",{target_href:n.styleHref,target_value:1})}}):null,n.colorHref?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color,onClick:function(){return i("href_conversion",{target_href:n.colorHref,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color,style:{border:"1px solid #fff"}})]}):null,n.colorHref2?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color2,onClick:function(){return i("href_conversion",{target_href:n.colorHref2,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color2,style:{border:"1px solid #fff"}})]}):null]},e)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Body Markings",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add Marking",onClick:function(){return i("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(d.markings).map((function(e){var n=d.markings[e];return(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return i("href_conversion",{target_href:"marking_remove",target_value:e})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,backgroundColor:n,content:e,onClick:function(){return i("href_conversion",{target_href:"marking_color",target_value:e})}})})]})},e)}))})]})]})})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR: Record Not Found!"})})),"OOC Notes":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.activeBodyRecord;return(0,o.createComponentVNode)(2,a.Section,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:i&&i.booc||"ERROR: Body record not found!"})}))}},6060:function(e,n,t){"use strict";n.__esModule=!0,n.BodyScanner=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["hasBorer","bad",function(e){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(e){return"Viral pathogen detected in blood stream."}],["blind","average",function(e){return"Cataracts detected."}],["colourblind","average",function(e){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(e){return"Retinal misalignment detected."}],["humanPrey","average",function(e){return"Foreign Humanoid(s) detected: "+e.humanPrey}],["livingPrey","average",function(e){return"Foreign Creature(s) detected: "+e.livingPrey}],["objectPrey","average",function(e){return"Foreign Object(s) detected: "+e.objectPrey}]],s=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},m=function(e,n){for(var t=[],o=0;o0?e.reduce((function(e,n){return null===e?n:(0,o.createFragment)([e,!!n&&(0,o.createComponentVNode)(2,a.Box,{children:n})],0)})):null},C=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};n.BodyScanner=function(e,n){var t=(0,c.useBackend)(n).data,r=t.occupied,a=t.occupant,l=void 0===a?{}:a,d=r?(0,o.createComponentVNode)(2,h,{occupant:l}):(0,o.createComponentVNode)(2,B);return(0,o.createComponentVNode)(2,i.Window,{width:690,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:d})})};var h=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,N,{occupant:n}),(0,o.createComponentVNode)(2,V,{occupant:n}),(0,o.createComponentVNode)(2,b,{occupant:n}),(0,o.createComponentVNode)(2,f,{occupant:n}),(0,o.createComponentVNode)(2,k,{organs:n.extOrgan}),(0,o.createComponentVNode)(2,v,{organs:n.intOrgan})]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return i("ejectify")},children:"Eject"}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print_p")},children:"Print Report"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Volume",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.volume,0)})," units\xa0(",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.percent,0)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Weight",children:(0,r.round)(d.occupant.weight)+"lbs, "+(0,r.round)(d.occupant.weight/2.20463)+"kgs"})]})})},V=function(e){var n=e.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Blood Reagents",children:n.reagents?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.reagents.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Blood Reagents Detected"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stomach Reagents",children:n.ingested?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.ingested.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Stomach Reagents Detected"})})],4)},b=function(e){var n=e.occupant,t=n.hasBorer||n.blind||n.colourblind||n.nearsighted||n.hasVirus;return(t=t||n.humanPrey||n.livingPrey||n.objectPrey)?(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:d.map((function(e,t){if(n[e[0]])return(0,o.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2](n)})}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},f=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.Table,{children:m(s,(function(e,t,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:!!t&&t[0]+":"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,g,{value:n[e[1]],marginBottom:r0&&"0.5rem",value:e.totalLoss/100,ranges:u,children:[(0,o.createComponentVNode)(2,a.Box,{float:"left",inline:!0,children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([e.internalBleeding&&"Internal bleeding",!!e.status.bleeding&&"External bleeding",e.lungRuptured&&"Ruptured lung",e.destroyed&&"Destroyed",!!e.status.broken&&e.status.broken,C(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[p([!!e.status.splinted&&"Splinted",!!e.status.robotic&&"Robotic",!!e.status.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})]),p(e.implants.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},n)}))]})})},v=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/100,mt:n>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([C(e.germ_level),!!e.inflamed&&"Appendicitis detected."])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:p([1===e.robotic&&"Robotic",2===e.robotic&&"Assisted",!!e.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})])})]})]},n)}))]})})},B=function(){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},74639:function(e,n,t){"use strict";n.__esModule=!0,n.BombTester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}n.BombTester=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.simulating,u=d.mode,m=d.tank1,p=d.tank1ref,C=d.tank2,h=d.tank2ref,N=d.canister,V=d.sim_canister_output;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,c.Section,{title:"Virtual Explosive Simulator v2.01",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:1})},selected:1===u,children:"Single Tank"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:2})},selected:2===u,children:"Transfer Valve"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:3})},selected:3===u,children:"Canister"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Primary Slot",children:m&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:p})},icon:"eject",children:m})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:1})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Secondary Slot",children:C&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:h})},icon:"eject",children:C})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:2})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Connected Canister",buttons:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("canister_scan")},icon:"search",children:"Scan"}),children:N&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:N})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No tank connected."})}),N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Canister Release Pressure",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:V,maxValue:1013.25,onDrag:function(e,n){return i("set_can_pressure",{pressure:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){return i("start_sim")},fluid:!0,children:"Begin Simulation"})]})})})};var l=function(e){var n,t;function r(n){var t;t=e.call(this,n)||this;var o=Math.random()>.5,r=Math.random()>.5;return t.state={x:o?340:0,y:r?205:0,reverseX:!1,reverseY:!1},t.process=setInterval((function(){t.setState((function(e){var n=Object.assign({},e);return n.reverseX?n.x-2<-5?(n.reverseX=!1,n.x+=2):n.x-=2:n.x+2>340?(n.reverseX=!0,n.x-=2):n.x+=2,n.reverseY?n.y-2<-20?(n.reverseY=!1,n.y+=2):n.y-=2:n.y+2>205?(n.reverseY=!0,n.y-=2):n.y+=2,n}))}),1),t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var a=r.prototype;return a.componentWillUnmount=function(){clearInterval(this.process)},a.render=function(){var e=this.state,n={position:"relative",left:e.x+"px",top:e.y+"px"};return(0,o.createComponentVNode)(2,c.Section,{title:"Simulation in progress!",fill:!0,children:(0,o.createComponentVNode)(2,c.Box,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,o.createComponentVNode)(2,c.Icon,{style:n,name:"bomb",size:10,color:"red"})})})},r}(o.Component)},48693:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyEditor=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.BotanyEditor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.activity,s=l.degradation,u=l.disk,m=l.sourceName,p=l.locus,C=l.loaded;return d?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:m}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene Decay",children:[s,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Locus",children:p})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No disk loaded."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:C})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("apply_gene")},children:"Apply Gene Mods"}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Target"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No target seed packet loaded."})})]})})}},25486:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyIsolator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.BotanyIsolator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.geneMasks,s=l.activity,u=l.degradation,m=l.disk,p=l.loaded,C=l.hasGenetics,h=l.sourceName;return s?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene decay",children:[u,"%"]}),m&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.mask,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:"download",onClick:function(){return i("get_gene",{get_gene:e.tag})},children:"Extract"})},e.mask)}))||null]}),m&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return i("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No Data Buffered."}),m&&(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:p&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Packet Loaded",children:p})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("scan_genome")},children:"Process Genome"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Packet"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No packet loaded."})})]})})}},61956:function(e,n,t){"use strict";n.__esModule=!0,n.BrigTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.BrigTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:138,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Cell Timer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:s.timing?"Stop":"Start",selected:s.timing,onClick:function(){return d(s.timing?"stop":"start")}}),s.flash_found&&(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:s.flash_charging?"Recharging":"Flash",disabled:s.flash_charging,onClick:function(){return d("flash")}})||null],0),children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:s.time_left/10,minValue:0,maxValue:s.max_time_left/10,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("time",{time:n})}}),(0,o.createComponentVNode)(2,a.Flex,{mt:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_short/10),onClick:function(){return d("preset",{preset:"short"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_medium/10),onClick:function(){return d("preset",{preset:"medium"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_long/10),onClick:function(){return d("preset",{preset:"long"})}})})]})]})})})}},3180:function(e,n,t){"use strict";n.__esModule=!0,n.CameraConsoleSearch=n.CameraConsoleContent=n.CameraConsole=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(34380),i=t(2497),l=t(71494),d=t(74814),s=t(85952),u=function(e,n,t){void 0===n&&(n=""),void 0===t&&(t="");var o=(0,i.createSearch)(n,(function(e){return e.name}));return(0,c.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),n&&(0,r.filter)(o),t&&(0,r.filter)((function(e){return e.networks.includes(t)})),(0,r.sortBy)((function(e){return e.name}))])(e)};n.CameraConsole=function(e,n){return(0,o.createComponentVNode)(2,s.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,m)})};var m=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(t.config,c.mapRef),i=c.activeCamera,m=function(e,n){var t,o;if(!n)return[];var r=e.findIndex((function(e){return e.name===n.name}));return[null==(t=e[r-1])?void 0:t.name,null==(o=e[r+1])?void 0:o.name]}(u(c.cameras),i);m[0],m[1];return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),i&&i.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-left",onClick:function(){return r("pan",{dir:8})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-up",onClick:function(){return r("pan",{dir:1})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-right",onClick:function(){return r("pan",{dir:4})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-down",onClick:function(){return r("pan",{dir:2})}})],4),(0,o.createComponentVNode)(2,d.ByondUi,{className:"CameraConsole__map",params:{id:a,type:"map"}})],4)],4)};n.CameraConsoleContent=m;var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,i=(0,l.useLocalState)(n,"searchText",""),m=i[0],p=i[1],C=(0,l.useLocalState)(n,"networkFilter",""),h=C[0],N=C[1],V=c.activeCamera,b=c.allNetworks;b.sort();var f=u(c.cameras,m,h);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,n){return p(n)}}),(0,o.createComponentVNode)(2,d.Dropdown,{mb:1,width:"177px",options:b,placeholder:"No Filter",onSelected:function(e){return N(e)}}),(0,o.createComponentVNode)(2,d.Section,{children:f.map((function(e){return(0,o.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",V&&e.name===V.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,s.refocusLayout)(),r("switch_camera",{name:e.name})}},e.name)}))})],4)};n.CameraConsoleSearch=p},94477:function(e,n,t){"use strict";n.__esModule=!0,n.Canister=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Canister=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.connected,m=s.can_relabel,p=s.pressure,C=s.releasePressure,h=s.defaultReleasePressure,N=s.minReleasePressure,V=s.maxReleasePressure,b=s.valveOpen,f=s.holding;return(0,o.createComponentVNode)(2,l.Window,{width:360,height:242,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Canister",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",disabled:!m,content:"Relabel",onClick:function(){return d("relabel")}}),children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return e<1e4?(0,r.toFixed)(e)+" kPa":(0,i.formatSiUnit)(1e3*e,1,"Pa")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Regulator",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",left:"-8px",children:[(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:C,unit:"kPa",minValue:N,maxValue:V,stepPixelSize:1,onDrag:function(e,n){return d("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return d("pressure",{pressure:V})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return d("pressure",{pressure:h})}})]})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Valve",children:(0,o.createComponentVNode)(2,a.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?f?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){return d("valve")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{mr:1,label:"Port",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"}),(0,o.createComponentVNode)(2,a.Tooltip,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Holding Tank",buttons:!!f&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){return d("eject")}}),children:[!!f&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Label",children:f.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:f.pressure})," kPa"]})]}),!f&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Holding Tank"})]})]})})}},55636:function(e,n,t){"use strict";n.__esModule=!0,n.Canvas=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var l=function(e){var n,t;function r(n){var t;return(t=e.call(this,n)||this).canvasRef=(0,o.createRef)(),t.onCVClick=n.onCanvasClick,t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var c=r.prototype;return c.componentDidMount=function(){this.drawCanvas(this.props)},c.componentDidUpdate=function(){this.drawCanvas(this.props)},c.drawCanvas=function(e){var n=this.canvasRef.current.getContext("2d"),t=e.value,o=t.length;if(o){var r=t[0].length,c=Math.round(this.canvasRef.current.width/o),a=Math.round(this.canvasRef.current.height/r);n.save(),n.scale(c,a);for(var i=0;i=0||(r[t]=e[t]);return r}(n,["res","value","dotsize"]),i=d(t),l=i[0],s=i[1];return(0,o.normalizeProps)((0,o.createVNode)(1,"canvas",null,"Canvas failed to render.",16,Object.assign({width:l*c||300,height:s*c||300},a,{onClick:function(n){return e.clickwrapper(n)}}),null,this.canvasRef))},r}(o.Component),d=function(e){var n=e.length;return[n,0!==n?e[0].length:0]};n.Canvas=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=d(s.grid),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,a.Window,{width:Math.min(700,24*m+72),height:Math.min(700,24*p+72),children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,l,{value:s.grid,dotsize:24,onCanvasClick:function(e,n){return i("paint",{x:e,y:n})}}),(0,o.createComponentVNode)(2,c.Box,{children:[!s.finalized&&(0,o.createComponentVNode)(2,c.Button.Confirm,{onClick:function(){return i("finalize")},content:"Finalize"}),"\xa0",s.name]})]})})})}},25131:function(e,n,t){"use strict";n.__esModule=!0,n.CasinoPrizeDispenser=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(88654);var l={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.CasinoPrizeDispenser=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var d=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),d=(t.act,t.data),s=d.points,m=d.items,p=(0,c.useLocalState)(n,"search",""),C=p[0],h=(p[1],(0,c.useLocalState)(n,"sort","Alphabetical")),N=h[0],V=(h[1],(0,c.useLocalState)(n,"descending",!1)),b=V[0],f=(V[1],(0,r.createSearch)(C,(function(e){return e[0]}))),g=!1,k=Object.entries(m).map((function(e,n){var t=Object.entries(e[1]).filter(f).map((function(e){return e[1].affordable=s>=e[1].price,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,u,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.title),l=e.items,d=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:i},d,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{content:e.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:i,name:e.name,price:e.price,restriction:e.restriction})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},47947:function(e,n,t){"use strict";n.__esModule=!0,n.CharacterDirectory=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=function(e){switch(e){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}};n.CharacterDirectory=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=s.personalVisibility,m=s.personalTag,p=s.personalErpTag,C=(0,r.useLocalState)(n,"overlay",null),h=C[0];C[1];return(0,o.createComponentVNode)(2,a.Window,{width:640,height:480,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h&&(0,o.createComponentVNode)(2,l)||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:u?"Shown":"Not Shown",onClick:function(){return i("setVisible")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:m,onClick:function(){return i("setTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:p,onClick:function(){return i("setErpTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Advertisement",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Edit Ad",onClick:function(){return i("editAd")}})})]})}),(0,o.createComponentVNode)(2,d)],4)})})};var l=function(e,n){var t=(0,r.useLocalState)(n,"overlay",null),a=t[0],l=t[1];return(0,o.createComponentVNode)(2,c.Section,{title:a.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return l(null)}}),children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Species",children:(0,o.createComponentVNode)(2,c.Box,{children:a.species})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Box,{p:1,backgroundColor:i(a.tag),children:a.tag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Box,{children:a.erptag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Character Ad",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.character_ad||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"OOC Notes",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.ooc_notes||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Flavor Text",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.flavor_text||"Unset."})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.directory,d=(0,r.useLocalState)(n,"sortId","name"),u=d[0],m=(d[1],(0,r.useLocalState)(n,"sortOrder","name")),p=m[0],C=(m[1],(0,r.useLocalState)(n,"overlay",null)),h=(C[0],C[1]);return(0,o.createComponentVNode)(2,c.Section,{title:"Directory",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Refresh",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,s,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,s,{id:"species",children:"Species"}),(0,o.createComponentVNode)(2,s,{id:"tag",children:"Vore Tag"}),(0,o.createComponentVNode)(2,s,{id:"erptag",children:"ERP Tag"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),l.sort((function(e,n){var t=p?1:-1;return e[u].localeCompare(n[u])*t})).map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{backgroundColor:i(e.tag),children:[(0,o.createComponentVNode)(2,c.Table.Cell,{p:1,children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.species}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.tag}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.erptag}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return h(e)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},n)}))]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.id),i=e.children,l=(0,r.useLocalState)(n,"sortId","name"),d=l[0],s=l[1],u=(0,r.useLocalState)(n,"sortOrder","name"),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",color:d!==a&&"transparent",onClick:function(){d===a?p(!m):(s(a),p(!0))},children:[i,d===a&&(0,o.createComponentVNode)(2,c.Icon,{name:m?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},22223:function(e,n,t){"use strict";n.__esModule=!0,n.ChemDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(48229),i=t(85952),l=[5,10,20,30,40,60],d=[1,5,10];n.ChemDispenser=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:390,height:655,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.amount;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",spacing:"1",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",children:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",selected:i===e,content:e+"u",m:"0",fluid:!0,onClick:function(){return a("amount",{amount:e})}})},n)}))})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Custom Amount",children:(0,o.createComponentVNode)(2,c.Slider,{step:1,stepPixelSize:5,value:i,minValue:1,maxValue:120,onDrag:function(e,n){return a("amount",{amount:n})}})})]})})},u=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chemicals,d=void 0===l?[]:l,s=[],u=0;u<(d.length+1)%3;u++)s.push(!0);return(0,o.createComponentVNode)(2,c.Section,{title:i.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:e.title+" ("+e.amount+")",onClick:function(){return a("dispense",{reagent:e.id})}})},n)})),s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"25%",height:"20px"},n)}))]})})},m=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,s=l.isBeakerLoaded,u=l.beakerCurrentVolume,m=l.beakerMaxVolume,p=l.beakerContents,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,o.createComponentVNode)(2,c.Box,{children:[!!s&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mr:2,children:[u," / ",m," units"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!s,onClick:function(){return i("ejectBeaker")}})]}),children:(0,o.createComponentVNode)(2,a.BeakerContents,{beakerLoaded:s,beakerContents:C,buttons:function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return i("remove",{reagent:e.id,amount:-1})}}),d.map((function(n,t){return(0,o.createComponentVNode)(2,c.Button,{content:n,onClick:function(){return i("remove",{reagent:e.id,amount:n})}},t)})),(0,o.createComponentVNode)(2,c.Button,{content:"ALL",onClick:function(){return i("remove",{reagent:e.id,amount:e.volume})}})],0)}})})}},34859:function(e,n,t){"use strict";n.__esModule=!0,n.ChemMaster=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(48229),l=t(16007),d=[1,5,10,30,60];n.ChemMaster=function(e,n){var t=(0,r.useBackend)(n).data,c=t.condi,i=t.beaker,d=t.beaker_reagents,p=void 0===d?[]:d,C=t.buffer_reagents,h=void 0===C?[]:C,N=t.mode;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:500,resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal),(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s,{beaker:i,beakerReagents:p,bufferNonEmpty:h.length>0}),(0,o.createComponentVNode)(2,u,{mode:N,bufferReagents:h}),(0,o.createComponentVNode)(2,m,{isCondiment:c,bufferNonEmpty:h.length>0})]})]})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,s=(t.data,e.beaker),u=e.beakerReagents,m=e.bufferNonEmpty?(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}}):(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",buttons:m,children:s?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,t){return(0,o.createComponentVNode)(2,c.Box,{mb:t0?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,c.Box,{mb:r0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!i.condi&&(0,o.createComponentVNode)(2,c.Button,{icon:i.printing?"spinner":"print",disabled:i.printing,iconSpin:!!i.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})}))},83919:function(e,n,t){"use strict";n.__esModule=!0,n.ClawMachine=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ClawMachine=function(e,n){var t,i=(0,r.useBackend)(n),l=i.act,d=i.data,s=(d.wintick,d.instructions),u=d.gameStatus,m=d.winscreen;return"CLAWMACHINE_NEW"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Pay to Play!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Start",onClick:function(){return l("newgame")}})]}):"CLAWMACHINE_END"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Thank you for playing!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),m,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){return l("return")}})]}):"CLAWMACHINE_ON"===u&&(t=(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[1,7],good:[8,Infinity]},value:d.wintick,minValue:0,maxValue:10})})}),(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Up",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Left",onClick:function(){return l("pointless")}}),(0,o.createComponentVNode)(2,c.Button,{content:"Right",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Down",onClick:function(){return l("pointless")}})]})]})),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createVNode)(1,"center",null,t,0)})}},74351:function(e,n,t){"use strict";n.__esModule=!0,n.Cleanbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Cleanbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.version,p=l.blood,C=(l.patrol,l.vocal),h=l.wet_floors,N=l.spray_blood,V=l.rgbpanel,b=l.red_switch,f=l.green_switch,g=l.blue_switch;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Cleaner "+m,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("blood")},children:p?"Clean":"Ignore"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("vocal")},children:C?"On":"Off"})})]})})||null,!u&&s&&(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:V&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:b?"toggle-on":"toggle-off",backgroundColor:b?"red":"maroon",onClick:function(){return i("red_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:f?"toggle-on":"toggle-off",backgroundColor:f?"green":"darkgreen",onClick:function(){return i("green_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:g?"toggle-on":"toggle-off",backgroundColor:g?"blue":"darkblue",onClick:function(){return i("blue_switch")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Odd Looking Screw Twiddled",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:h,onClick:function(){return i("wet_floors")},icon:"screwdriver",children:h?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weird Button Pressed",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"brown",selected:N,onClick:function(){return i("spray_blood")},icon:"screwdriver",children:N?"Yes":"No"})})]})})})||null]})})}},98213:function(e,n,t){"use strict";n.__esModule=!0,n.CloningConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(76270),l=t(16007),d=t(85952),s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=e.args,s=d.activerecord,u=d.realname,m=d.health,p=d.unidentity,C=d.strucenzymes,h=m.split(" - ");return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:h.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.oxy,inline:!0,children:h[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.toxin,inline:!0,children:h[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.brute,inline:!0,children:h[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.burn,inline:!0,children:h[1]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:p}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:C}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:s})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};n.CloningConsole=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",s),(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,d.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})]})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data.menu;return 1===r?t=(0,o.createComponentVNode)(2,p):2===r&&(t=(0,o.createComponentVNode)(2,C)),t},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.loading,s=l.scantemp,u=l.occupant,m=l.locked,p=l.can_brainscan,C=l.scan_mode,h=l.numberofpods,N=l.pods,V=l.selected_pod,b=m&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,selected:b,icon:b?"toggle-on":"toggle-off",content:b?"Engaged":"Disengaged",onClick:function(){return i("lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:b||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return i("eject")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,a.Box,{color:s.color,children:s.text})}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"brain":"male",content:C?"Brain":"Body",onClick:function(){return i("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u||d,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:h?N.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:V===e.pod,icon:V===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",n+1]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.records;return i.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},h=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.scanner,d=i.numberofpods,s=i.autoallowed,u=i.autoprocess,m=i.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},32278:function(e,n,t){"use strict";n.__esModule=!0,n.ColorMate=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ColorMate=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.items,s=l.activecolor,u=Math.min(270+15*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:d.length&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Paint",children:(0,o.createComponentVNode)(2,c.Flex,{justify:"center",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:s,width:"120px",height:"120px"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50% ",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye-dropper",onClick:function(){return i("select")},children:"Select Color"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fill-drip",onClick:function(){return i("paint")},children:"Paint Items"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tint-slash",onClick:function(){return i("clear")},children:"Remove Paintjob"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return i("eject")},children:"Eject Items"})]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Items",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["#",n+1,": ",e]},n)}))})],4)||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No items inserted."})})})})}},130:function(e,n,t){"use strict";n.__esModule=!0,n.CommunicationsConsoleContent=n.CommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CommunicationsConsole=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.menu_state),i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["ERRROR. Unknown menu_state: ",a,"Please report this to NT Technical Support."]});return 1===a?i=(0,o.createComponentVNode)(2,l):2===a?i=(0,o.createComponentVNode)(2,u):3===a&&(i=(0,o.createComponentVNode)(2,s)),(0,o.createFragment)([(0,o.createComponentVNode)(2,d),i],0)};n.CommunicationsConsoleContent=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.messages,d=i.msg_cooldown,s=i.emagged,u=i.cc_cooldown,m=i.str_security_level,p=i.levels,C=i.authmax,h=i.security_level,N=i.security_level_color,V=i.authenticated,b=i.atcsquelch,f=i.boss_short,g="View ("+l.length+")",k="Make Priority Announcement";d>0&&(k+=" ("+d+"s)");var v=s?"Message [UNKNOWN]":"Message "+f;u>0&&(v+=" ("+u+"s)");var B=m,L=p.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.icon,content:e.name,disabled:!V,selected:e.id===h,onClick:function(){return a("newalertlevel",{level:e.id})}},e.name)}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Site Manager-Only Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Announcement",children:(0,o.createComponentVNode)(2,c.Button,{icon:"bullhorn",content:k,disabled:!C||d>0,onClick:function(){return a("announce")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",color:"red",content:v,disabled:!C||u>0,onClick:function(){return a("MessageSyndicate")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!C,onClick:function(){return a("RestoreBackup")}})]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",content:v,disabled:!C||u>0,onClick:function(){return a("MessageCentCom")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Command Staff Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Alert",color:N,children:B}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Alert",children:L}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Displays",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tv",content:"Change Status Displays",disabled:!V,onClick:function(){return a("status")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"folder-open",content:g,disabled:!V,onClick:function(){return a("messagelist")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Misc",children:(0,o.createComponentVNode)(2,c.Button,{icon:"microphone",content:b?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!V,selected:b,onClick:function(){return a("toggleatc")}})})]})})],4)},d=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,d=l.authenticated,s=l.is_ai,u=l.esc_status,m=l.esc_callable,p=l.esc_recallable;return t=d?s?"AI":1===d?"Command":2===d?"Site Director":"ERROR: Report This Bug!":"Not Logged In",(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"id-card",selected:d,content:d?"Log Out ("+t+")":"Log In",onClick:function(){return i("auth")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Escape Shuttle",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[!!u&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:u}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",content:"Call Shuttle",disabled:!d,onClick:function(){return i("callshuttle")}})}),!!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Recall Shuttle",disabled:!d||s,onClick:function(){return i("cancelshuttle")}})})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.message_current,d=i.message_deletion_allowed,s=i.authenticated,u=i.messages;if(l)return(0,o.createComponentVNode)(2,c.Section,{title:l.title,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Return To Message List",disabled:!s,onClick:function(){return a("messagelist")}}),children:(0,o.createComponentVNode)(2,c.Box,{children:l.contents})});var m=u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View",disabled:!s||l&&l.title===e.title,onClick:function(){return a("messagelist",{msgid:e.id})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Delete",disabled:!s||!d,onClick:function(){return a("delmessage",{msgid:e.id})}})]},e.id)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Messages Received",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.length&&m||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"404",color:"bad",children:"No messages."})})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stat_display,d=i.authenticated,s=l.presets.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.label,selected:e.name===l.type,disabled:!d,onClick:function(){return a("setstat",{statdisp:e.name})}},e.name)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Status Screens",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 1",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_1,disabled:!d,onClick:function(){return a("setmsg1")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 2",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_2,disabled:!d,onClick:function(){return a("setmsg2")}})})]})})}},4220:function(e,n,t){"use strict";n.__esModule=!0,n.Communicator=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=t(22902),s={};n.Communicator=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.currentTab,d=r.video_comm,h=(r.mapRef,(0,a.useLocalState)(n,"videoSetting",0)),N=h[0],V=h[1];return(0,o.createComponentVNode)(2,l.Window,{width:475,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[d&&(0,o.createComponentVNode)(2,u,{videoSetting:N,setVideoSetting:V}),(!d||0!==N)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,i.Box,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:s[c]||(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,C,{videoSetting:N,setVideoSetting:V})],4)]})})};var u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.video_comm,c.mapRef),d=e.videoSetting,s=e.setVideoSetting;return 0===d?(0,o.createComponentVNode)(2,i.Box,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.ByondUi,{width:"100%",height:"95%",params:{id:l,type:"map"}}),(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,mt:.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(1)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})]}):1===d?(0,o.createComponentVNode)(2,i.Box,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,o.createComponentVNode)(2,i.Section,{p:0,m:0,children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(2)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return s(0)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})}),(0,o.createComponentVNode)(2,i.ByondUi,{width:"200px",height:"200px",params:{id:l,type:"map"}})]}):null},m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.currentTab);return(0,o.createComponentVNode)(2,i.Section,{title:"Error!",children:["You tried to access tab #",r,", but there was no template defined!"]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),l=r.time,d=r.connectionStatus,s=r.owner,u=r.occupation;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Icon,{color:1===d?"good":"bad",name:1===d?"signal":"exclamation-triangle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(u)})]})})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.flashlight,l=e.videoSetting,d=e.setVideoSetting;return(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:2===l?"60%":"80%",children:(0,o.createComponentVNode)(2,i.Button,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return r("switch_tab",{switch_tab:1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:c,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return r("Light")}})}),2===l&&(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return d(1)}})})]})},h=function(e,n){var t=(0,a.useBackend)(n).data,o=t.voice_mobs,r=t.communicating,c=t.requestsReceived,i=t.invitesSent,l=t.video_comm;return!("Phone"!==e||!(o.length||r.length||c.length||i.length||l))};s[1]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.homeScreen;return(0,o.createComponentVNode)(2,i.Flex,{mt:2,wrap:"wrap",align:"center",justify:"center",children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Button,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return r("switch_tab",{switch_tab:e.number})},children:(0,o.createComponentVNode)(2,i.Icon,{spin:h(e.module,n),color:h(e.module,n)?"bad":null,name:e.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,o.createComponentVNode)(2,i.Box,{children:e.module})]},e.number)}))})}));var N=function(e,n){for(var t=(0,a.useBackend)(n),r=t.act,c=t.data.targetAddress,l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"].map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e,fontSize:2,fluid:!0,onClick:function(){return r("add_hex",{add_hex:e})}},e)})),d=[],s=0;st?n.length>t?n.slice(0,t)+"...":n:e+n},f=function(e,n,t,o){if(t<0||t>o.length)return V(e,n)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var r=V(e,n),c=V(o[t],n);return r&&c?"TinderMessage_Subsequent_Sent":r||c?r?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"};s[40]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.targetAddressName,s=l.targetAddress,u=l.imList,m=(0,a.useLocalState)(n,"clipboardMode",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:V(e,s)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[V(e,s)?"You":"Them",": ",e.im]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]}):(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:V(e,s)?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:f(e,s,n-1,t),inline:!0,children:(0,c.decodeHtmlEntities)(e.im)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]})}));var g=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:(0,c.decodeHtmlEntities)(l.name)+" by "+(0,c.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:null})}}),children:l.messages.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{children:["- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,c.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,i.Box,{color:"grey",children:["[",e.message_type," by ",(0,c.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))})},k=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Recent News",level:2,children:(0,o.createComponentVNode)(2,i.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,c.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,i.Button,{ml:1,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)};s[5]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.feeds,l=r.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:"News",stretchContents:!0,height:"100%",children:!c.length&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||l&&(0,o.createComponentVNode)(2,g)||(0,o.createComponentVNode)(2,k)})}));s[6]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.note;return(0,o.createComponentVNode)(2,i.Section,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return r("edit")},content:"Edit Notes"}),children:(0,o.createComponentVNode)(2,i.Section,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:c})})}));s[7]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data),d=l.aircontents,s=l.weather;return(0,o.createComponentVNode)(2,i.Section,{title:"Weather",children:[(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Current Conditions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Weather Reports",children:!!s.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.Planet,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time",children:e.Time}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Weather",children:(0,c.toTitleCase)(e.Weather)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:["Current: ",e.Temperature.toFixed(),"\xb0C | High: ",e.High.toFixed(),"\xb0C | Low: ",e.Low.toFixed(),"\xb0C"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Direction",children:e.WindDir}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Speed",children:e.WindSpeed}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Forecast",children:(0,c.decodeHtmlEntities)(e.Forecast)})]})},e.Planet)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})})),s[8]=(0,o.createComponentVNode)(2,d.CrewManifestContent);s[9]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.owner,s=l.occupation,u=l.connectionStatus,m=l.address,p=l.visible,C=l.ring,h=l.selfie_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",fluid:!0,content:(0,c.decodeHtmlEntities)(d),onClick:function(){return r("rename")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Camera Mode",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:h?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return r("selfie_mode")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Occupation",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Disconnected"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Device EPv2 Address",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:p,selected:p,fluid:!0,content:p?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){return r("toggle_visibility")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ringer",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C,selected:C,fluid:!0,content:C?"Ringer on.":"Ringer off.",onClick:function(){return r("toggle_ringer")}})})]})})}))},2174:function(e,n,t){"use strict";n.__esModule=!0,n.ComputerFabricator=void 0;var o=t(39812),r=(t(2497),t(71494)),c=t(74814),a=t(85952);n.ComputerFabricator=function(e,n){var t=(0,r.useBackend)(n),u=t.act,m=t.data;return(0,o.createComponentVNode)(2,a.Window,{title:"Personal Computer Vendor",width:500,height:420,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),0!==m.state&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return u("clean_order")}}),0===m.state&&(0,o.createComponentVNode)(2,i),1===m.state&&(0,o.createComponentVNode)(2,l),2===m.state&&(0,o.createComponentVNode)(2,d),3===m.state&&(0,o.createComponentVNode)(2,s)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 1",minHeight:"306px",children:[(0,o.createComponentVNode)(2,c.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,o.createComponentVNode)(2,c.Box,{mt:3,children:(0,o.createComponentVNode)(2,c.Grid,{width:"100%",children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"1"})}})}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"2"})}})})]})})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"good",children:[i.totalprice,"\u20ae"]}),children:[(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"1"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Adds a secondary RFID card reader, for manipulating or\nreading from a second standard RFID card.\nPlease note that a primary card reader is necessary to\nallow the device to read your identification, but one\nis included in the base price.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_card,onClick:function(){return a("hw_card",{card:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_card,onClick:function(){return a("hw_card",{card:"1"})}})})]}),2!==i.devtype&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A component critical for your device's functionality.\nIt allows you to run programs from your hard drive.\nAdvanced CPUs use more power, but allow you to run\nmore programs on background at once.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"1"})}})})]})]}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return a("confirm_order")}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data);return(0,o.createComponentVNode)(2,c.Section,{title:"Step 3: Payment",minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"good",children:[a.totalprice,"\u20ae"]})]})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.Section,{minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},26090:function(e,n,t){"use strict";n.__esModule=!0,n.CookingAppliance=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.CookingAppliance=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.temperature,s=l.optimalTemp,u=l.temperatureEnough,m=l.efficiency,p=l.containersRemovable,C=l.our_contents;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:u?"good":"blue",value:d,maxValue:s,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d}),"\xb0C / ",s,"\xb0C"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Efficiency",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Containers",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e,n){return e.empty?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("slot",{slot:n+1})},children:"Empty"})}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!p,onClick:function(){return i("slot",{slot:n+1})},children:e.container||"No Container"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.progressText[0],value:e.progress,maxValue:1,children:e.progressText[1]})})]})},n)}))})})]})})}},22902:function(e,n,t){"use strict";n.__esModule=!0,n.CrewManifestContent=n.CrewManifest=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(76270),l=t(2497);n.CrewManifest=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.manifest);return(0,o.createComponentVNode)(2,c.Section,{title:"Crew Manifest",noTopPadding:!0,children:a.map((function(e){return!!e.elems.length&&(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:i.COLORS.manifest[e.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,textAlign:"center",fontSize:1.4,children:e.cat})}),level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Rank"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Active"})]}),e.elems.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{color:"average",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,l.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.active})]},e.name+e.rank)}))]})},e.cat)}))})};n.CrewManifestContent=d},96158:function(e,n,t){"use strict";n.__esModule=!0,n.CrewMonitorContent=n.CrewMonitor=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(71494),i=t(85952),l=t(74814),d=function(e){return e.dead?"Deceased":1===parseInt(e.stat,10)?"Unconscious":"Living"},s=function(e){return e.dead?"red":1===parseInt(e.stat,10)?"orange":"green"};n.CrewMonitor=function(){return(0,o.createComponentVNode)(2,i.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,i=(0,a.useBackend)(n),u=i.act,p=i.data,C=(i.config,(0,a.useLocalState)(n,"tabIndex",0)),h=C[0],N=C[1],V=(0,c.flow)([(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return null==e?void 0:e.x})),(0,r.sortBy)((function(e){return null==e?void 0:e.y})),(0,r.sortBy)((function(e){return null==e?void 0:e.realZ}))])(p.crewmembers||[]),b=(0,a.useLocalState)(n,"zoom",1);b[0],b[1];return t=0===h?(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Location"})]}),V.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:s(e),children:d(e)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,l.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"red",children:e.brute}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"orange",children:e.fire}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"green",children:e.tox}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"blue",children:e.oxy}),")"]}):null]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:3===e.sensor_type?p.isAI?(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return u("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+", "+e.z+")":"Not Available"})]},e.ref)}))]}):1===h?(0,o.createComponentVNode)(2,m):"ERROR",(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Tabs,{children:[(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:0===h,onClick:function(){return N(0)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:1===h,onClick:function(){return N(1)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,l.Box,{m:2,children:t})],4)};n.CrewMonitorContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),c=t.data,i=(0,a.useLocalState)(n,"zoom",1),d=i[0],u=i[1];return(0,o.createComponentVNode)(2,l.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,l.NanoMap,{onZoom:function(e){return u(e)},children:c.crewmembers.filter((function(e){return 3===e.sensor_type&&~~e.realZ==~~r.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,l.NanoMap.Marker,{x:e.x,y:e.y,zoom:d,icon:"circle",tooltip:e.name+" ("+e.assignment+")",color:s(e)},e.ref)}))})})}},99798:function(e,n,t){"use strict";n.__esModule=!0,n.Cryo=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]];n.Cryo=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:520,height:470,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,u=d.isOperating,m=d.hasOccupant,p=d.occupant,C=void 0===p?[]:p,h=d.cellTemperature,N=d.cellTemperatureStatus,V=d.isBeakerLoaded;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"user-slash",onClick:function(){return a("ejectOccupant")},disabled:!m,children:"Eject"}),children:m?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.health)})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[C.stat][0],children:l[C.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C[e.type])})})},e.id)}))]}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cell",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("ejectBeaker")},disabled:!V,children:"Eject Beaker"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a(u?"switchOff":"switchOn")},selected:u,children:u?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",color:N,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:(0,o.createComponentVNode)(2,s)})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.isBeakerLoaded,l=a.beakerLabel,d=a.beakerVolume;return i?(0,o.createFragment)([l||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No label"}),(0,o.createComponentVNode)(2,c.Box,{color:!d&&"bad",children:d?(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d,format:function(e){return Math.round(e)+" units remaining"}}):"Beaker is empty"})],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded"})}},54234:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItems=n.CryoStorageCrew=n.CryoStorage=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CryoStorage=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.crew);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Crew",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"No crew currently stored."})})};n.CryoStorageCrew=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.items;return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("allitems")},children:"Claim All"}),children:i.length&&i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("item",{ref:e.ref})},children:e.name},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItems=l},66384:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItemsVr=n.CryoStorageVr=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(54234);n.CryoStorageVr=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i.CryoStorageCrew),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.items);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItemsVr=l},99579:function(e,n,t){"use strict";n.__esModule=!0,n.DNAForensics=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DNAForensics=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan_progress,s=l.scanning,u=l.bloodsamp,m=l.bloodsamp_desc;return(0,o.createComponentVNode)(2,a.Window,{width:540,height:326,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{selected:s,disabled:!u,icon:"power-off",onClick:function(){return i("scanItem")},children:s?"Halt Scan":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("ejectItem")},children:"Eject Bloodsample"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[99,Infinity],violet:[-Infinity,99]},value:d,maxValue:100})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Blood Sample",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[u,(0,o.createComponentVNode)(2,c.Box,{color:"label",children:m})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No blood sample inserted."})})]})})}},21849:function(e,n,t){"use strict";n.__esModule=!0,n.DNAModifier=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(16007),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],s=[5,10,20,30,50];n.DNAModifier=function(e,n){var t,c=(0,r.useBackend)(n),l=(c.act,c.data),d=l.irradiating,s=l.dnaBlockSize,p=l.occupant;return n.dnaBlockSize=s,n.isDNAInvalid=!p.isViableSubject||!p.uniqueIdentity||!p.structuralEnzymes,d&&(t=(0,o.createComponentVNode)(2,g,{duration:d})),(0,o.createComponentVNode)(2,a.Window,{width:660,height:700,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal),t,(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})]})};var u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,d=i.locked,s=i.hasOccupant,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s,selected:d,icon:d?"toggle-on":"toggle-off",content:d?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s||d,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:s?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider)]})}),n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Unique Enzymes",children:i.occupant.uniqueEnzymes?i.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Cell unoccupied."})})},m=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,s=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,h)],4):"se"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h)],4):"buffer"===s?t=(0,o.createComponentVNode)(2,N):"rejuvenators"===s&&(t=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:s===e[0],onClick:function(){return i("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:e[2]}),e[1]]},n)}))}),t]})):(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedUIBlock,d=i.selectedUISubBlock,s=i.selectedUITarget,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,k,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:s,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,n){return a("changeUITarget",{value:n})}})})}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedSEBlock,d=i.selectedSESubBlock,s=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,k,{dnaString:s.structuralEnzymes,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.radiationIntensity,d=i.radiationDuration;return(0,o.createComponentVNode)(2,c.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationIntensity",{value:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:d,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationDuration",{value:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},N=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.buffers.map((function(e,n){return(0,o.createComponentVNode)(2,V,{id:n+1,name:"Buffer "+(n+1),buffer:e},n)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Buffers",level:"2",children:a}),(0,o.createComponentVNode)(2,b)],4)},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.id,d=e.name,s=e.buffer,u=i.isInjectorReady,m=d+(s.data?" - "+s.label:"");return(0,o.createComponentVNode)(2,c.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,c.Section,{title:m,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!s.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data||!i.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i.hasDisk||!i.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:l})}})]}),!!s.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:s.owner||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!s.data&&(0,o.createComponentVNode)(2,c.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},b=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.hasDisk,d=i.disk;return(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!l||!d.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:l?d.data?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.label?d.label:"No label"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:d.owner?d.owner:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerVolume,u=i.beakerLabel;return(0,o.createComponentVNode)(2,c.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inject",children:[s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{disabled:e>d,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},n)})),(0,o.createComponentVNode)(2,c.Button,{disabled:d<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:d})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,c.Box,{mb:"0.5rem",children:u||"No label"}),d?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:[d," unit",1===d?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},g=function(e,n){return(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},k=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.dnaString),l=e.selectedBlock,d=e.selectedSubblock,s=e.blockSize,u=e.action,m=i.split(""),p=[],C=function(e){for(var n=e/s+1,t=[],r=function(r){var i=r+1;t.push((0,o.createComponentVNode)(2,c.Button,{selected:l===n&&d===i,content:m[e+r],mb:"0",onClick:function(){return a(u,{block:n,subblock:i})}}))},i=0;i1?"Dangerous!":null]},e.stage)}))||(0,o.createComponentVNode)(2,c.Box,{children:"No virus sample loaded."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Affected Species",color:"label",children:[m&&m.length?null:"None",m.sort().join(", ")]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Reverse Engineering",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",mb:1,children:(0,o.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.stage,icon:"exchange-alt",onClick:function(){return a("grab",{grab:e.reference})}},e.stage)})),(0,o.createComponentVNode)(2,c.Button,{content:"Species",icon:"exchange-alt",onClick:function(){return a("affected_species")}})]})],4)]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dish_inserted,i.buffer),d=i.species_buffer,s=(i.effects,i.info);i.growth,i.affected_species,i.busy;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Memory Buffer",children:l?(0,o.createComponentVNode)(2,c.Box,{children:[l.name," (",l.stage,")"]}):d?(0,o.createComponentVNode)(2,c.Box,{children:d}):"Empty"})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!l&&!d,onClick:function(){return a("disk")}}),l?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #1",disabled:l.stage>1,onClick:function(){return a("splice",{splice:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #2",disabled:l.stage>2,onClick:function(){return a("splice",{splice:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #3",disabled:l.stage>3,onClick:function(){return a("splice",{splice:3})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #4",disabled:l.stage>4,onClick:function(){return a("splice",{splice:4})}})]}):d?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice Species",disabled:!d||s,onClick:function(){return a("splice",{splice:5})}})}):null]})}},31066:function(e,n,t){"use strict";n.__esModule=!0,n.DishIncubator=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.DishIncubator=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.on,u=d.system_in_use,m=d.food_supply,p=d.radiation,C=d.growth,h=d.toxins,N=d.chemicals_inserted,V=d.can_breed_virus,b=d.chemical_volume,f=d.max_chemical_volume,g=d.dish_inserted,k=d.blood_already_infected,v=d.virus,B=d.analysed,L=d.infection_rate;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Environmental Conditions",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:s,content:s?"On":"Off",onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,a.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return l("rad")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return l("flush")}})})]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Virus Food",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,Infinity],average:[20,40],bad:[-Infinity,20]},value:m})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,color:p>=50?"bad":C>=25?"average":"good",value:p,children:[(0,r.formatCommaNumber)(1e4*p)," \xb5Sv"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Toxicity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,Infinity],average:[25,50],good:[-Infinity,25]},value:h})})]})]}),(0,o.createComponentVNode)(2,a.Section,{title:V?"Vial":"Chemicals",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject "+(V?"Vial":"Chemicals"),disabled:!N,onClick:function(){return l("ejectchem")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Breed Virus",disabled:!V,onClick:function(){return l("virus")}})],4),children:N&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:f,value:b,children:[b,"/",f]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Breeding Environment",color:V?"good":"average",children:[g?V?"Suitable":"No hemolytic samples detected":"N/A",k?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No chemicals inserted."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Virus Dish",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Dish",disabled:!g,onClick:function(){return l("ejectdish")}}),children:g?v?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Density",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,25]},value:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Infection Rate",children:B?L:"Unknown."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No virus detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No dish loaded."})})]})})}},19095:function(e,n,t){"use strict";n.__esModule=!0,n.DisposalBin=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.DisposalBin=function(e,n){var t,i,l=(0,r.useBackend)(n),d=l.act,s=l.data;return 2===s.mode?(t="good",i="Ready"):s.mode<=0?(t="bad",i="N/A"):1===s.mode?(t="average",i="Pressurizing"):(t="average",i="Idle"),(0,o.createComponentVNode)(2,a.Window,{width:300,height:250,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Status"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State",color:t,children:i}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[0,99],good:[99,Infinity]},value:s.pressure,minValue:0,maxValue:100})})]}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Controls"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Handle",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:s.isAI||s.panel_open,content:"Disengaged",selected:s.flushing?null:"selected",onClick:function(){return d("disengageHandle")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:s.isAI||s.panel_open,content:"Engaged",selected:s.flushing?"selected":null,onClick:function(){return d("engageHandle")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:-1===s.mode,content:"Off",selected:s.mode?null:"selected",onClick:function(){return d("pumpOff")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:-1===s.mode,content:"On",selected:s.mode?"selected":null,onClick:function(){return d("pumpOn")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",disabled:s.isAI,content:"Eject Contents",onClick:function(){return d("eject")}})})]})]})})})}},29345:function(e,n,t){"use strict";n.__esModule=!0,n.DroneConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DroneConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.drones,s=l.areas,u=l.selected_area,m=l.fabricator,p=l.fabPower;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Drone Fabricator",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!m,selected:p,icon:"power-off",content:p?"Enabled":"Disabled",onClick:function(){return i("toggle_fab")}}),children:m?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Linked."}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Fabricator not detected.",(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){return i("search_fab")}})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Request Drone",children:[(0,o.createComponentVNode)(2,c.Dropdown,{options:s?s.sort():null,selected:u,width:"100%",onSelected:function(e){return i("set_dcall_area",{area:e})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",content:"Send Ping",onClick:function(){return i("ping")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Units",children:d&&d.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Resync",onClick:function(){return i("resync",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return i("shutdown",{ref:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:e.loc}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:[e.charge," / ",e.maxCharge]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active",children:e.active?"Yes":"No"})]})},e.name)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No drones detected."})})]})})}},84122:function(e,n,t){"use strict";n.__esModule=!0,n.EmbeddedController=void 0;var o=t(39812),r=(t(2497),t(41860),t(71494)),c=t(74814),a=t(85952),i=((0,t(88654).createLogger)("fuck"),{});n.EmbeddedController=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data.internalTemplateName),l=i[c];if(!l)throw Error("Unable to find Component for template name: "+c);return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=e.bars;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.color(e.value),minValue:e.minValue,maxValue:e.maxValue,value:e.value,children:e.textValue})},e.label)}))})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=!0;a.interior_status&&"open"===a.interior_status.state?l=!1:a.external_pressure&&a.chamber_pressure&&(l=!(Math.abs(a.external_pressure-a.chamber_pressure)>5));var d=!0;return a.exterior_status&&"open"===a.exterior_status.state?d=!1:a.internal_pressure&&a.chamber_pressure&&(d=!(Math.abs(a.internal_pressure-a.chamber_pressure)>5)),(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return i("cycle_ext")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return i("cycle_int")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:l?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return i("force_ext")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:d?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return i("force_int")}})]})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,u),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"INITIALIZING..."})}),l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===a.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===a.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===a.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Escape Pod Status",children:i[a.docking_status]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.data;t.act;return a.armed?(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"ARMED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SYSTEMS OK"})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!a.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:"docked"!==a.docking_status?"bad":"",onClick:function(){return i("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{selected:a.override_enabled,color:"docked"!==a.docking_status?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return i("toggle_override")}})]})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"DOCKED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"DOCKING"}),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"NOT IN USE"})}[a.docking_status]);return a.override_enabled&&(i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[a.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),i};i.AirlockConsoleAdvanced=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"},u=[{minValue:0,maxValue:202,value:i.external_pressure,label:"External Pressure",textValue:i.external_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.internal_pressure,label:"Internal Pressure",textValue:i.internal_pressure+" kPa",color:s}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:u}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Purge",onClick:function(){return a("purge")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lock-open",content:"Secure",onClick:function(){return a("secure")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsolePhoron=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}},{minValue:0,maxValue:100,value:i.chamber_phoron,label:"Chamber Phoron",textValue:i.chamber_phoron+" mol",color:function(e){return e>5?"bad":e>.5?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleDocking=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Dock",buttons:i.airlock_disabled||i.override_enabled?(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}}):null,children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.DockingConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===i.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===i.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===i.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.override_enabled,content:"Force exterior door",onClick:function(){return a("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dock Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})};i.DockingConsoleMulti=function(e,n){var t=(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Docking Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.Section,{title:"Airlocks",children:t.airlocks.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:t.airlocks.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:e.override_enabled?"bad":"good",label:e.name,children:e.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},e.name)}))}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",mt:"0.5em",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No airlocks found."]})})})],4)};i.DoorAccessConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l="open"===i.interior_status.state||"closed"===i.exterior_status.state,d="open"===i.exterior_status.state||"closed"===i.interior_status.state;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:l?"arrow-left":"exclamation-triangle",content:l?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){a(l?"cycle_ext_door":"force_ext")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"arrow-right":"exclamation-triangle",content:d?"Cycle To Interior":"Lock Interior Door",onClick:function(){a(d?"cycle_int_door":"force_int")}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Exterior Door Status",children:"closed"===i.exterior_status.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Interior Door Status",children:"closed"===i.interior_status.state?"Locked":"Open"})]})})};i.EscapePodConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:i.armed,color:i.armed?"bad":"average",content:"ARM",onClick:function(){return a("manual_arm")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return a("force_launch")}})]})]})],4)};i.EscapePodBerthConsole=function(e,n){(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,m)})],4)}},33777:function(e,n,t){"use strict";n.__esModule=!0,n.ExonetNode=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ExonetNode=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.allowPDAs,u=l.allowCommunicators,m=l.allowNewscasters,p=l.logs;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,content:"Power "+(d?"On":"Off"),onClick:function(){return i("toggle_power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:s,content:s?"Open":"Closed",onClick:function(){return i("toggle_PDA_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Communicators",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return i("toggle_communicator_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return i("toggle_newscaster_port")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Logging",children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:[p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:e},n)})),p&&0!==p.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No logs found."})]})})]})})}},95481:function(e,n,t){"use strict";n.__esModule=!0,n.Materials=n.ExosuitFabricator=void 0;var o,r=t(39812),c=t(34380),a=t(64499),i=t(71494),l=t(58083),d=t(74814),s=t(85952),u=t(2497),m=t(41860);function p(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return C(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);tt?{color:2,deficit:e-t}:n>t?{color:1,deficit:e}:e+n>t?{color:1,deficit:e+n-t}:{color:0,deficit:0}},b=function(e,n,t){var o={textColor:0};return Object.keys(t.cost).forEach((function(r){o[r]=V(t.cost[r],n[r],e[r]),o[r].color>o.textColor&&(o.textColor=o[r].color)})),o};n.ExosuitFabricator=function(e,n){var t,o,c=(0,i.useBackend)(n),a=c.act,l=c.data,u=l.queue||[],m=(t=l.materials||[],o={},t.forEach((function(e){o[e.name]=e.amount})),o),p=function(e,n){var t={},o={},r={},c={};return n.forEach((function(n,a){c[a]=0,Object.keys(n.cost).forEach((function(i){t[i]=t[i]||0,r[i]=r[i]||0,o[i]=V(n.cost[i],t[i],e[i]),0!==o[i].color?c[a]1&&l0}));return 0===l.length?(0,r.createComponentVNode)(2,d.Box,{textAlign:"center",children:[(0,r.createComponentVNode)(2,d.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,r.createVNode)(1,"br"),(0,r.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:l.map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"80px",children:[(0,r.createComponentVNode)(2,k,{name:e.name,amount:e.amount,formatsi:!0}),!a&&(0,r.createComponentVNode)(2,d.Box,{mt:1,style:{"text-align":"center"},children:(0,r.createComponentVNode)(2,f,{material:e})})]},e.name)||null}))})};n.Materials=g;var k=function(e,n){var t=e.name,o=e.amount,a=e.formatsi,i=e.formatmoney,s=e.color,p=e.style,C="0";return C=o<1&&o>0?(0,m.toFixed)(o,2):a?(0,l.formatSiUnit)(o,0):i?(0,l.formatMoney)(o):o,(0,r.createComponentVNode)(2,d.Flex,{direction:"column",align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Tooltip,{position:"bottom",content:(0,u.toTitleCase)(t),children:(0,r.createComponentVNode)(2,d.Box,{className:(0,c.classes)(["sheetmaterials32x32",h[t]]),position:"relative",style:p})})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{textColor:s,style:{"text-align":"center"},children:C})})]})},v=function(e,n){var t=(0,i.useBackend)(n).data,o=t.partSets||[],c=t.buildableParts||{},a=(0,i.useSharedState)(n,"part_tab",o.length?c[0]:""),l=a[0],s=a[1];return(0,r.createComponentVNode)(2,d.Tabs,{vertical:!0,children:o.map((function(e){return!!c[e]&&(0,r.createComponentVNode)(2,d.Tabs.Tab,{selected:e===l,disabled:!c[e],onClick:function(){return s(e)},children:e},e)}))})},B=function(e,n){var t,o=(0,i.useBackend)(n).data,c=function(e){for(var n,t=p(e);!(n=t()).done;){var o=n.value;if(s[o])return o}return null},l=o.partSets||[],s=o.buildableParts||[],m=e.queueMaterials,C=e.materials,h=(0,i.useSharedState)(n,"part_tab",c(l)),N=h[0],V=h[1],f=(0,i.useSharedState)(n,"search_text",""),g=f[0],k=f[1];if(!N||!s[N]){var v=c(l);if(!v)return;V(v)}return g?(t=[],function(e,n){var t=[];if(e.length){var o=(0,u.createSearch)(e,(function(e){return(e.name||"")+(e.desc||"")+(e.searchMeta||"")}));return Object.keys(n).forEach((function(e){n[e].filter(o).forEach((function(e){t.push(e)}))})),t=(0,a.uniqBy)((function(e){return e.name}))(t)}}(g,s).forEach((function(e){e.format=b(C,m,e),t.push(e)}))):(t={Parts:[]},s[N].forEach((function(e){e.format=b(C,m,e),e.subCategory?(e.subCategory in t||(t[e.subCategory]=[]),t[e.subCategory].push(e)):t.Parts.push(e)}))),(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Section,{children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{mr:1,children:(0,r.createComponentVNode)(2,d.Icon,{name:"search"})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1,children:(0,r.createComponentVNode)(2,d.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,n){return k(n)}})})]})}),!!g&&(0,r.createComponentVNode)(2,L,{name:"Search Results",parts:t,forceShow:!0,placeholder:"No matching results..."})||Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,L,{name:e,parts:t[e]},e)}))],0)},L=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data.buildingPart,a=e.parts,l=e.name,s=e.forceShow,u=e.placeholder,m=(0,i.useSharedState)(n,"display_mats",!1)[0];return(!!a.length||s)&&(0,r.createComponentVNode)(2,d.Section,{title:l,buttons:(0,r.createComponentVNode)(2,d.Button,{disabled:!a.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return o("add_queue_set",{part_list:a.map((function(e){return e.id}))})}}),children:[!a.length&&u,a.map((function(e){return(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Flex,{align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{disabled:c||2===e.format.textColor,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return o("build_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return o("add_queue_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[e.format.textColor],children:e.name})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+e.printTime+"s. "+(e.desc||""),tooltipPosition:"left"})})]}),m&&(0,r.createComponentVNode)(2,d.Flex,{mb:2,children:Object.keys(e.cost).map((function(n){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"50px",color:N[e.format[n].color],children:(0,r.createComponentVNode)(2,k,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:n,amount:e.cost[n]})},n)}))})],0,e.name)}))]})},_=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=c.isProcessingQueue,l=c.queue||[],s=e.queueMaterials,u=e.missingMaterials,m=e.textColors;return(0,r.createComponentVNode)(2,d.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{height:0,grow:1,children:(0,r.createComponentVNode)(2,d.Section,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Button.Confirm,{disabled:!l.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return o("clear_queue")}}),!!a&&(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Stop",icon:"stop",onClick:function(){return o("stop_queue")}})||(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Build Queue",icon:"play",onClick:function(){return o("build_queue")}})],0),children:(0,r.createComponentVNode)(2,d.Flex,{direction:"column",height:"100%",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,S)}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,w,{textColors:m})})]})})}),!!l.length&&(0,r.createComponentVNode)(2,d.Flex.Item,{mt:1,children:(0,r.createComponentVNode)(2,d.Section,{title:"Material Cost",children:(0,r.createComponentVNode)(2,x,{queueMaterials:s,missingMaterials:u})})})]})},x=function(e,n){var t=e.queueMaterials,o=e.missingMaterials;return(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"12%",children:[(0,r.createComponentVNode)(2,k,{formatmoney:!0,name:e,amount:t[e]}),!!o[e]&&(0,r.createComponentVNode)(2,d.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,l.formatMoney)(o[e])})]},e)}))})},w=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=e.textColors,l=c.queue||[];return l.length?l.map((function(e,n){return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.Flex,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,r.createComponentVNode)(2,d.Flex.Item,{basis:"content",children:(0,r.createComponentVNode)(2,d.Button,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return o("del_queue_part",{index:n+1})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[a[n]],children:e.name})})]})},e.name)})):(0,r.createFragment)([(0,r.createTextVNode)("No parts in queue.")],4)},S=function(e,n){var t=(0,i.useBackend)(n).data,o=t.buildingPart,c=t.storedPart;if(c){var a=c.name;return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:1,value:1,color:"average",children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:a}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(o){var l=o.name,s=o.duration,u=o.printTime,m=Math.ceil(s/10);return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:u,value:s,children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:l}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:m>=0&&m+"s"||"Dispensing..."})]})})})}}},95598:function(e,n,t){"use strict";n.__esModule=!0,n.Farmbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Farmbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.locked,u=l.tank,m=l.tankVolume,p=l.tankMaxVolume,C=l.waters_trays,h=l.refills_water,N=l.uproots_weeds,V=l.replaces_nutriment;l.collects_produce,l.removes_dead;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:540,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water Tank",children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No water tank detected."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:s?"good":"bad",children:s?"Locked":"Unlocked"})]})}),!s&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Watering Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("water")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Refill watertank",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("refill")},children:h?"Yes":"No"})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Weeding controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weed plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("weed")},children:N?"Yes":"No"})})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Nutriment controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Replace fertilizer",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("replacenutri")},children:V?"Yes":"No"})})})})]})||null]})})}},17569:function(e,n,t){"use strict";n.__esModule=!0,n.FaxContent=n.Fax=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(28117),l=t(1192);n.Fax=function(e,n){return(0,r.useBackend)(n).data.authenticated?(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.LoginInfo),(0,o.createComponentVNode)(2,d)]})}):(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,l.LoginScreen)]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.bossName,d=i.copyItem,s=i.cooldown,u=i.destination;return(0,o.createComponentVNode)(2,c.Section,{children:[!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:[l," Quantum Entanglement Network"]})}),d&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Currently Sending",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,c.Button,{icon:"map-marker-alt",content:u,onClick:function(){return a("dept")}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",onClick:function(){return a("send")},content:"Send",fluid:!0})]})||(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Please insert item to transmit."})]})};n.FaxContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act;return t.data.copyItem?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return a("remove")},content:"Remove Item"})}):null}},58087:function(e,n,t){"use strict";n.__esModule=!0,n.FileCabinet=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.FileCabinet=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.contents,s=(0,r.sortBy)((function(e){return e.name}))(d||[]);return(0,o.createComponentVNode)(2,i.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"file",content:e.name,onClick:function(){return l("retrieve",{ref:e.ref})}},e.ref)}))})})})}},21902:function(e,n,t){"use strict";n.__esModule=!0,n.Floorbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Floorbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.vocal,p=l.amount,C=l.possible_bmode,h=l.improvefloors,N=l.eattiles,V=l.maketiles,b=l.bmode;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:310,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tiles Left",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("vocal")},children:m?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Improves Floors",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("improve")},children:h?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Finds Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("tiles")},children:N?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("make")},children:V?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Bridge Mode",children:(0,o.createComponentVNode)(2,c.Dropdown,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:C,onSelected:function(e){return i("bridgemode",{dir:e})}})})]})})||null]})})}},309:function(e,n,t){"use strict";n.__esModule=!0,n.GasPump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.GasPump=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=l.last_flow_rate,m=l.last_power_draw,p=l.max_power_draw;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:290,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/10})," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:p,color:m=100?u="Running":!d&&s>0&&(u="DISCHARGING"),(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:d?"This will disable gravity!":"This will enable gravity!",onClick:function(){return i("gentoggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Breaker Setting",children:d?"Generator Enabled":"Generator Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",children:["Generator ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Status",children:[s,"%"]})]})})})})}},95075:function(e,n,t){"use strict";n.__esModule=!0,n.GuestPass=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.GuestPass=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.access,d.area),u=d.giver,m=d.giveName,p=d.reason,C=d.duration,h=d.mode,N=d.log,V=d.uid;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:1===h&&(0,o.createComponentVNode)(2,a.Section,{title:"Activity Log",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return l("mode",{mode:0})}}),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",onClick:function(){return l("print")},fluid:!0,mb:1}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Logs",children:N.length&&N.map((function(e){return(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:e}},e)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No logs."})})]})||(0,o.createComponentVNode)(2,a.Section,{title:"Guest pass terminal #"+V,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",onClick:function(){return l("mode",{mode:1})}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issuing ID",children:(0,o.createComponentVNode)(2,a.Button,{content:u||"Insert ID",onClick:function(){return l("id")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issued To",children:(0,o.createComponentVNode)(2,a.Button,{content:m,onClick:function(){return l("giv_name")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Reason",children:(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return l("reason")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Duration (minutes)",children:(0,o.createComponentVNode)(2,a.Button,{content:C,onClick:function(){return l("duration")}})})]}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return l("issue")}}),(0,o.createComponentVNode)(2,a.Section,{title:"Access",level:2,children:(0,r.sortBy)((function(e){return e.area_name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.on,content:e.area_name,onClick:function(){return l("access",{access:e.area})}},e.area)}))})]})})})}},31875:function(e,n,t){"use strict";n.__esModule=!0,n.GyrotronControlContent=n.GyrotronControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.GyrotronControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.gyros;return(0,o.createComponentVNode)(2,a.Section,{title:"Gyrotrons",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fire Delay"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Strength"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{gyro:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(n,t){return c("set_rate",{gyro:e.ref,rate:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(n,t){return c("set_str",{gyro:e.ref,str:t})}})})]},e.name)}))]})})};n.GyrotronControlContent=i},7908:function(e,n,t){"use strict";n.__esModule=!0,n.Holodeck=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Holodeck=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.restrictedPrograms,u=l.currentProgram,m=l.isSilicon,p=l.safetyDisabled,C=l.emagged,h=l.gravity,N=d;return p&&(N=N.concat(s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:610,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{color:-1!==s.indexOf(e)?"bad":null,icon:"eye",content:e,selected:u===e,fluid:!0,onClick:function(){return i("program",{program:e})}},e)}))}),!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Override",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",fluid:!0,disabled:C,color:p?"good":"bad",onClick:function(){return i("AIoverride")},children:[!!C&&"Error, unable to control. ",p?"Enable Safeties":"Disable Safeties"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:p?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"ENABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{icon:"user-astronaut",selected:h,onClick:function(){return i("gravity")},children:h?"Enabled":"Disabled"})})]})})]})})}},12676:function(e,n,t){"use strict";n.__esModule=!0,n.ICAssembly=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=(t(2497),t(58083));n.ICAssembly=function(e,n){var t=(0,c.useBackend)(n),s=(t.act,t.data),u=s.total_parts,m=s.max_components,p=s.total_complexity,C=s.max_complexity,h=s.battery_charge,N=s.battery_max,V=s.net_power,b=s.unremovable_circuits,f=s.removable_circuits;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Space in Assembly",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:u/m,maxValue:1,children:[u," / ",m," (",(0,r.round)(u/m*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Complexity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:p/C,maxValue:1,children:[p," / ",C," (",(0,r.round)(p/C*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell Charge",children:h&&(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:h/N,maxValue:1,children:[h," / ",N," (",(0,r.round)(h/N*100,1),"%)"]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No cell detected."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Net Energy",children:0===V?"0 W/s":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V,format:function(e){return"-"+(0,l.formatPower)(Math.abs(e))+"/s"}})})]})}),b.length&&(0,o.createComponentVNode)(2,d,{title:"Built-in Components",circuits:b})||null,f.length&&(0,o.createComponentVNode)(2,d,{title:"Removable Components",circuits:f})||null]})})};var d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.title,i=e.circuits;return(0,o.createComponentVNode)(2,a.Section,{title:r,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("open_circuit",{ref:e.ref})},children:"View"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("rename_circuit",{ref:e.ref})},children:"Rename"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("scan_circuit",{ref:e.ref})},children:"Debugger Scan"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("remove_circuit",{ref:e.ref})},children:"Remove"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("bottom_circuit",{ref:e.ref})},children:"Move to Bottom"})]},e.ref)}))})})}},42394:function(e,n,t){"use strict";n.__esModule=!0,n.ICCircuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(58083);n.ICCircuit=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=(u.name,u.desc),p=u.displayed_name,C=(u.removable,u.complexity),h=u.power_draw_idle,N=u.power_draw_per_use,V=u.extended_desc,b=u.inputs,f=u.outputs,g=u.activators;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,title:p,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stats",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("rename")},children:"Rename"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("scan")},children:"Scan with Device"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove")},children:"Remove"})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Complexity",children:C}),h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Idle)",children:(0,l.formatPower)(h)})||null,N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Active)",children:(0,l.formatPower)(N)})||null]}),V]}),(0,o.createComponentVNode)(2,c.Section,{title:"Circuit",children:[(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",spacing:1,children:[b.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Inputs",children:(0,o.createComponentVNode)(2,d,{list:b})})})||null,(0,o.createComponentVNode)(2,c.Flex.Item,{basis:b.length&&f.length?"33%":b.length||f.length?"45%":"100%",children:(0,o.createComponentVNode)(2,c.Section,{title:p,mb:1,children:(0,o.createComponentVNode)(2,c.Box,{children:m})})}),f.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Outputs",children:(0,o.createComponentVNode)(2,d,{list:f})})})||null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Triggers",children:g.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("pin_name",{pin:e.ref})},children:e.pulse_out?"":""}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.name)}))})]})]})})};var d=function(e,n){var t=(0,r.useBackend)(n).act;return e.list.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_name",{pin:e.ref})},children:[(0,i.decodeHtmlEntities)(e.type),": ",e.name]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_data",{pin:e.ref})},children:e.data}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.ref)}))},s=function(e,n){var t=(0,r.useBackend)(n).act,a=e.pin;return a.linked.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_unwire",{pin:a.ref,link:e.ref})},children:e.name}),"@\xa0",(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("examine",{ref:e.holder_ref})},children:e.holder_name})]},e.ref)}))}},81039:function(e,n,t){"use strict";n.__esModule=!0,n.ICDetailer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(2497);n.ICDetailer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.detail_color,u=d.color_list;return(0,o.createComponentVNode)(2,a.Window,{width:420,height:254,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:Object.keys(u).map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.toTitleCase)(e),tooltipPosition:n%6==5?"left":"right",height:"64px",width:"64px",onClick:function(){return l("change_color",{color:e})},style:u[e]===s?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[e]},e)}))})})})}},21687:function(e,n,t){"use strict";n.__esModule=!0,n.ICPrinter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);t(88654);n.ICPrinter=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=i.metal,s=i.max_metal,u=i.metal_per_sheet,m=(i.debug,i.upgraded),p=i.can_clone;i.assembly_to_clone,i.categories;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:630,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Metal",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:l,maxValue:s,children:[l/u," / ",s/u," sheets"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Circuits Available",children:m?"Advanced":"Regular"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Assembly Cloning",children:p?"Available":"Unavailable"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,o.createComponentVNode)(2,d)]})})};var l=function(e,n){return!!e.can_build&&!(e.cost>n.metal)},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.categories,u=(d.debug,(0,r.useSharedState)(n,"categoryTarget",null)),m=u[0],p=u[1],C=(0,i.filter)((function(e){return e.name===m}))(s)[0];return(0,o.createComponentVNode)(2,c.Section,{title:"Circuits",children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{mr:2,children:(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:(0,i.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:m===e.name,onClick:function(){return p(e.name)},children:e.name},e.name)}))})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:C&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,i.sortBy)((function(e){return e.name}))(C.items).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,labelColor:e.can_build?"good":"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l(e,d),icon:"print",onClick:function(){return a("build",{build:e.path})},children:"Print"}),children:e.desc},e.name)}))})})||"No category selected."})]})})}},48522:function(e,n,t){"use strict";n.__esModule=!0,n.IDCard=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(14959);n.IDCard=function(e,n){var t=(0,c.useBackend)(n).data,l=t.registered_name,d=t.sex,s=t.age,u=t.assignment,m=t.fingerprint_hash,p=t.blood_type,C=t.dna_hash,h=t.photo_front,N=[{name:"Sex",val:d},{name:"Age",val:s},{name:"Blood Type",val:p},{name:"Fingerprint",val:m},{name:"DNA Hash",val:C}];return(0,o.createComponentVNode)(2,a.Window,{width:470,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{children:[(0,o.createComponentVNode)(2,r.Flex.Item,{basis:"25%",textAlign:"left",children:(0,o.createComponentVNode)(2,r.Box,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:h&&(0,o.createVNode)(1,"img",null,null,1,{src:h.substr(1,h.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,o.createComponentVNode)(2,r.Icon,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{basis:0,grow:1,children:(0,o.createComponentVNode)(2,r.LabeledList,{children:N.map((function(e){return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:e.name,children:e.val},e.name)}))})})]}),(0,o.createComponentVNode)(2,r.Flex,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:l})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.RankIcon,{rank:u})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:u})})]})]})})})}},76952:function(e,n,t){"use strict";n.__esModule=!0,n.IdentificationComputerRegions=n.IdentificationComputerAccessModification=n.IdentificationComputerPrinting=n.IdentificationComputerContent=n.IdentificationComputer=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952),l=t(2497),d=(t(76270),t(22902));n.IdentificationComputer=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:700,children:(0,o.createComponentVNode)(2,i.Window.Content,{resizable:!0,children:(0,o.createComponentVNode)(2,s)})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.ntos,s=i.mode,p=i.has_modify,C=i.printing,h=(0,o.createComponentVNode)(2,m,{ntos:l});return l&&!i.have_id_slot?h=(0,o.createComponentVNode)(2,d.CrewManifestContent):C?h=(0,o.createComponentVNode)(2,u):1===s&&(h=(0,o.createComponentVNode)(2,d.CrewManifestContent)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(!l||!!i.have_id_slot)&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:0===s,onClick:function(){return r("mode",{mode_target:0})},children:"Access Modification"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:1===s,onClick:function(){return r("mode",{mode_target:1})},children:"Crew Manifest"}),!l||!!i.have_printer&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{float:"right",icon:"print",onClick:function(){return r("print")},disabled:!s&&!p,color:"",children:"Print"})]}),h],0)};n.IdentificationComputerContent=s;var u=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",children:"Please wait..."})};n.IdentificationComputerPrinting=u;var m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.ntos,s=i.station_name,u=i.target_name,m=i.target_owner,C=i.scan_name,h=i.authenticated,N=i.has_modify,V=i.account_number,b=i.centcom_access,f=i.all_centcom_access,g=(i.regions,i.id_rank),k=i.departments;return(0,o.createComponentVNode)(2,a.Section,{title:"Access Modification",children:[!h&&(0,o.createComponentVNode)(2,a.Box,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:u,onClick:function(){return r("modify")}})}),!d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authorized Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:C,onClick:function(){return r("scan")}})})]}),!!h&&!!N&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Details",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Registered Name",children:(0,o.createComponentVNode)(2,a.Input,{value:m,fluid:!0,onInput:function(e,n){return r("reg",{reg:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:(0,o.createComponentVNode)(2,a.Input,{value:V,fluid:!0,onInput:function(e,n){return r("account",{account:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dismissals",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+m,confirmContent:"You are dismissing "+m+", confirm?",onClick:function(){return r("terminate")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Assignment",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:[k.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:e.department_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.job===g,onClick:function(){return r("assign",{assign_target:e.job})},children:(0,l.decodeHtmlEntities)(e.display_name)},e.job)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:-1,children:"\xa0"}),(0,o.createTextVNode)(" ")],0,e.department_name)})),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"Central Command",level:2,children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return r("access",{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})||(0,o.createComponentVNode)(2,a.Section,{title:s,level:2,children:(0,o.createComponentVNode)(2,p,{actName:"access"})})],0)]})};n.IdentificationComputerAccessModification=m;var p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=e.actName,u=d.regions;return(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",spacing:1,children:(0,r.sortBy)((function(e){return e.name}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{mb:1,basis:"content",grow:1,children:(0,o.createComponentVNode)(2,a.Section,{title:e.name,height:"100%",children:(0,r.sortBy)((function(e){return e.desc}))(e.accesses).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return i(s,{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})},e.name)}))})};n.IdentificationComputerRegions=p},44570:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.InputModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952);(0,t(88654).createLogger)("inputmodal");n.InputModal=function(e,n){var t,r,s,u=(0,c.useBackend)(n),m=u.act,p=u.data,C=p.title,h=p.message,N=p.initial,V=p.input_type,b=p.timeout,f=(0,c.useLocalState)(n,"curValue",N),g=f[0],k=f[1],v=function(e){if(e.keyCode===i.KEY_ESCAPE)return e.preventDefault(),void m("cancel")};switch(V){case"text":case"num":r=325,t=Math.max(150,h.length),s=(0,o.createComponentVNode)(2,a.Input,{value:N,width:"100%",autoFocus:!0,autoSelect:!0,onKeyDown:v,onChange:function(e,n){k(n)},onEnter:function(e,n){m("choose",{choice:n})}});break;case"message":r=450,t=350,s=(0,o.createComponentVNode)(2,a.TextArea,{value:N,width:"100%",height:"100%",autoFocus:!0,dontUseTabForIndent:!0,onKeyDown:v,onChange:function(e,n){k(n)}})}return(0,o.createComponentVNode)(2,l.Window,{title:C,theme:"abstract",width:r,height:t,children:[b!==undefined&&(0,o.createComponentVNode)(2,d,{value:b}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,className:"InputModal__Section",title:h,tabIndex:0,children:s})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",onClick:function(){return m("choose",{choice:g})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return m("cancel")}})})]})})]})})]})};var d=function(e){var n=e.value;return(0,o.createVNode)(1,"div","InputModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"InputModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=d},53541:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanel=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanel=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.internalsValid;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act)},children:e.item||"Nothing"})},e.name)}))})}),s&&(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:s&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("internals")},children:"Set Internals"})||null})||null]})})}},46638:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanelHuman=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanelHuman=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.specialSlots,u=(l.internals,l.internalsValid),m=l.sensors,p=l.handcuffed,C=l.handcuffedParams,h=l.legcuffed,N=l.legcuffedParams,V=l.accessory;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)})),(0,o.createComponentVNode)(2,c.LabeledList.Divider),s&&s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)}))]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"running",onClick:function(){return i("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"hand-paper",onClick:function(){return i("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),u&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,m&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"book-medical",onClick:function(){return i("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,p&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",C)},children:"Handcuffed"})||null,h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",N)},children:"Legcuffed"})||null,V&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},45e3:function(e,n,t){"use strict";n.__esModule=!0,n.IsolationCentrifuge=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(74814),a=t(85952);n.IsolationCentrifuge=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.busy,s=l.antibodies,u=l.pathogens,m=l.is_antibody_sample,p=l.sample_inserted,C=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No vial detected."});return p&&(C=s||u?(0,o.createFragment)([s?(0,o.createComponentVNode)(2,c.Section,{title:"Antibodies",children:s}):null,u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Pathogens",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:e.spread_type},e.name)}))})}):null],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No antibodies or viral strains detected."})),(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d?(0,o.createComponentVNode)(2,c.Section,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:d}),2)}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:m?"Antibody Sample":"Blood Sample",children:[(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"print",content:"Print",disabled:!s&&!u.length,onClick:function(){return i("print")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!p,onClick:function(){return i("sample")}})})]}),C]}),s&&!m||u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[s&&!m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Antibodies",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return i("antibody")}})}):null,u.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Strain",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:e.name,onClick:function(){return i("isolate",{isolate:e.reference})}},e.name)}))}):null]})}):null],0)})})}},83994:function(e,n,t){"use strict";n.__esModule=!0,n.JanitorCart=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.JanitorCart=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.mybag,u=d.mybucket,m=d.mymop,p=d.myspray,C=d.myreplacer,h=d.signs;d.icons;return(0,o.createComponentVNode)(2,a.Window,{width:210,height:180,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:s||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:s?"grey":"transparent",style:{border:s?null:"2px solid grey"},onClick:function(){return i("bag")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybag"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:u||"Bucket Slot",tooltipPosition:"bottom",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return i("bucket")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybucket"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?null:"2px solid grey"},onClick:function(){return i("mop")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mymop"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:p||"Spray Slot",tooltipPosition:"top-end",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return i("spray")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myspray"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:C||"Light Replacer Slot",tooltipPosition:"top",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return i("replacer")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myreplacer"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:h||"Signs Slot",tooltipPosition:"top-start",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return i("sign")},children:(0,o.createComponentVNode)(2,l,{iconkey:"signs"})})]})})};var i={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},l=function(e,n){var t=(0,r.useBackend)(n).data,a=e.iconkey,l=t.icons;return a in l?(0,o.createVNode)(1,"img",null,null,1,{src:l[a].substr(1,l[a].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,o.createComponentVNode)(2,c.Icon,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:i[a]})}},68741:function(e,n,t){"use strict";n.__esModule=!0,n.Jukebox=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Jukebox=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.playing,u=d.loop_mode,m=d.volume,p=d.current_track_ref,C=d.current_track,h=d.current_genre,N=d.percent,V=d.tracks,b=V.length&&V.reduce((function(e,n){var t=n.genre||"Uncategorized";return e[t]||(e[t]=[]),e[t].push(n),e}),{}),f=s&&(h||"Uncategorized");return(0,o.createComponentVNode)(2,i.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Currently Playing",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:s&&C&&(0,o.createComponentVNode)(2,a.Box,{children:[C.title," by ",C.artist||"Unkown"]})||(0,o.createComponentVNode)(2,a.Box,{children:"Stopped"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",disabled:s,onClick:function(){return l("play")},children:"Play"}),(0,o.createComponentVNode)(2,a.Button,{icon:"stop",disabled:!s,onClick:function(){return l("stop")},children:"Stop"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Loop Mode",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",onClick:function(){return l("loopmode",{loopmode:1})},selected:1===u,children:"Next"}),(0,o.createComponentVNode)(2,a.Button,{icon:"random",onClick:function(){return l("loopmode",{loopmode:2})},selected:2===u,children:"Shuffle"}),(0,o.createComponentVNode)(2,a.Button,{icon:"redo",onClick:function(){return l("loopmode",{loopmode:3})},selected:3===u,children:"Repeat"}),(0,o.createComponentVNode)(2,a.Button,{icon:"step-forward",onClick:function(){return l("loopmode",{loopmode:4})},selected:4===u,children:"Once"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:1,color:"good"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:0,step:1,value:100*m,maxValue:100,ranges:{good:[75,Infinity],average:[25,75],bad:[0,25]},format:function(e){return(0,r.round)(e,1)+"%"},onChange:function(e,n){return l("volume",{val:(0,r.round)(n/100,2)})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Available Tracks",children:V.length&&Object.keys(b).sort().map((function(e){return(0,o.createComponentVNode)(2,a.Collapsible,{title:e,color:f===e?"green":"default",child_mt:0,children:(0,o.createVNode)(1,"div",null,b[e].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"play",selected:p===e.ref,onClick:function(){return l("change_track",{change_track:e.ref})},children:e.title},e.ref)})),0,{style:{"margin-left":"1em"}})},e)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No songs loaded."})})]})})}},13204:function(e,n,t){"use strict";n.__esModule=!0,n.LawManager=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LawManager=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data.isSlaved);return(0,o.createComponentVNode)(2,a.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[l&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Law-synced to ",l]})||null,(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useSharedState)(n,"lawsTabIndex",0),a=t[0],i=t[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===a,onClick:function(){return i(0)},children:"Law Management"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===a,onClick:function(){return i(1)},children:"Law Sets"})]}),0===a&&(0,o.createComponentVNode)(2,l)||null,1===a&&(0,o.createComponentVNode)(2,s)||null],0)},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.ion_law_nr,s=i.ion_law,u=i.zeroth_law,m=i.inherent_law,p=i.supplied_law,C=i.supplied_law_position,h=i.zeroth_laws,N=i.has_zeroth_laws,V=i.ion_laws,b=i.has_ion_laws,f=i.inherent_laws,g=i.has_inherent_laws,k=i.supplied_laws,v=i.has_supplied_laws,B=i.isAI,L=i.isMalf,_=i.isAdmin,x=i.channel,w=i.channels,S=h.map((function(e){return e.zero=!0,e})).concat(f);return(0,o.createComponentVNode)(2,c.Section,{children:[b&&(0,o.createComponentVNode)(2,d,{laws:V,title:l+" Laws:",mt:-2})||null,(N||g)&&(0,o.createComponentVNode)(2,d,{laws:S,title:"Inherent Laws",mt:-2})||null,v&&(0,o.createComponentVNode)(2,d,{laws:k,title:"Supplied Laws",mt:-2})||null,(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Controls",mt:-2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Statement Channel",children:w.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.channel,selected:x===e.channel,onClick:function(){return a("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_laws")},children:"State Laws"})}),B&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation",onClick:function(){return a("notify_laws")},children:"Notify"})})||null]})}),L&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Add Laws",mt:-2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Add"})]}),_&&!N&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Zero"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:u,fluid:!0,onChange:function(e,n){return a("change_zeroth_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_zeroth_law")},children:"Add"})})]})||null,(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Ion"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onChange:function(e,n){return a("change_ion_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_ion_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:m,fluid:!0,onChange:function(e,n){return a("change_inherent_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_inherent_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:p,fluid:!0,onChange:function(e,n){return a("change_supplied_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("change_supplied_law_position")},children:C})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_supplied_law")},children:"Add"})})]})]})})||null]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,d=i.isAdmin,s=e.laws,u=e.title,m=e.noButtons,p=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["laws","title","noButtons"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Section,Object.assign({level:2,title:u},p,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"State"})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Delete"})],4)||null]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[e.index,"."]}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:e.zero?"bad":null,children:e.law}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"volume-up",selected:e.state,onClick:function(){return a("state_law",{ref:e.ref,state_law:!e.state})},children:e.state?"Yes":"No"})})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,icon:"pen",onClick:function(){return a("edit_law",{edit_law:e.ref})},children:"Edit"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,color:"bad",icon:"trash",onClick:function(){return a("delete_law",{delete_law:e.ref})},children:"Delete"})})],4)||null]},e.index)}))]})})))},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,s=i.law_sets;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"sync",onClick:function(){return a("transfer_laws",{transfer_laws:e.ref})},children:"Load Laws"}),(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_law_set",{state_law_set:e.ref})},children:"State Laws"})],4),children:[e.laws.has_ion_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.ion_laws,title:e.laws.ion_law_nr+" Laws:"})||null,(e.laws.has_zeroth_laws||e.laws.has_inherent_laws)&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.zeroth_laws.concat(e.laws.inherent_laws),title:e.header})||null,e.laws.has_supplied_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.supplied_laws,title:"Supplied Laws"})||null]},e.name)}))||null],0)}},58802:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.ListInput=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952),d=0;n.ListInput=function(e,n){var t=(0,c.useBackend)(n),r=t.act,u=t.data,m=u.title,p=u.message,C=u.buttons,h=u.timeout,N=u.initial,V=(0,c.useLocalState)(n,"search_bar",!1),b=V[0],f=V[1],g=(0,c.useLocalState)(n,"displayed_array",C),k=g[0],v=g[1],B=(0,c.useLocalState)(n,"search_array",[]),L=B[0],_=B[1],x=(0,c.useLocalState)(n,"search_index",0),w=x[0],S=x[1],I=(0,c.useLocalState)(n,"last_char_code",null),y=I[0],T=I[1],A=(0,c.useLocalState)(n,"selected_button",N||C[0]),P=A[0],M=A[1];return(0,o.createComponentVNode)(2,l.Window,{title:m,theme:"abstract",width:325,height:325,children:[h!==undefined&&(0,o.createComponentVNode)(2,s,{value:h}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,autoFocus:!0,className:"ListInput__Section",title:p,tabIndex:0,onKeyDown:function(e){if(e.preventDefault(),!(d>performance.now())){if(d=performance.now()+125,e.keyCode===i.KEY_HOME||e.keyCode===i.KEY_END){var n=e.keyCode===i.KEY_HOME?0:C.length-1;return M(C[n]),T(null),void document.getElementById(C[n]).focus()}if(e.keyCode===i.KEY_UP||e.keyCode===i.KEY_DOWN){var t=1;e.keyCode===i.KEY_UP&&(t=-1);for(var o=0;o=C.length&&(o=0),M(C[o]),T(null),void document.getElementById(C[o]).focus()}if(e.keyCode!==i.KEY_SPACE&&e.keyCode!==i.KEY_ENTER)if(e.keyCode!==i.KEY_ESCAPE){var c=String.fromCharCode(e.keyCode).toLowerCase();if(c){var a;if(c===y&&L.length>0){var l=w+1;l0&&(_(s),S(0),a=s[0])}a&&(T(c),M(a),document.getElementById(a).focus())}}else r("cancel");else r("choose",{choice:P})}},buttons:(0,o.createComponentVNode)(2,a.Button,{compact:!0,icon:"search",color:"transparent",selected:b,tooltip:"Search Bar",tooltipPosition:"left",onClick:function(){f(!b),v(C)}}),children:k.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"transparent",id:e,selected:P===e,onClick:function(){P===e?r("choose",{choice:e}):M(e),T(null)},children:e},e)}))})}),b&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,onInput:function(e,n){return v(C.filter((function(e){return-1!==e.toLowerCase().search(n.toLowerCase())})))}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",disabled:null===P,onClick:function(){return r("choose",{choice:P})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return r("cancel")}})})]})})]})})]})};var s=function(e){var n=e.value;return(0,o.createVNode)(1,"div","ListInput__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"ListInput__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=s},36104:function(e,n,t){"use strict";n.__esModule=!0,n.LookingGlass=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LookingGlass=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.currentProgram,u=l.immersion,m=l.gravity,p=Math.min(180+23*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:p,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",selected:e===s,onClick:function(){return i("program",{program:e})},children:e},e)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"user-astronaut",selected:m,onClick:function(){return i("gravity")},children:m?"Enabled":"Disabled"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Full Immersion",children:(0,o.createComponentVNode)(2,c.Button,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return i("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},74714:function(e,n,t){"use strict";n.__esModule=!0,n.MechaControlConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.MechaControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.beacons,u=d.stored_data;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u.length&&(0,o.createComponentVNode)(2,c.Modal,{children:(0,o.createComponentVNode)(2,c.Section,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["(",e.time,") (",e.year,")"]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,i.decodeHtmlEntities)(e.message)})]},e.time)}))})})||null,s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.ref})},children:"Message"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.ref})},children:"View Log"}),(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,i.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No mecha beacons found."})]})})}},17888:function(e,n,t){"use strict";n.__esModule=!0,n.Medbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Medbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.beaker,m=l.beaker_total,p=l.beaker_max,C=l.locked,h=l.heal_threshold,N=l.heal_threshold_max,V=l.injection_amount_min,b=l.injection_amount,f=l.injection_amount_max,g=l.use_beaker,k=l.declare_treatment,v=l.vocal;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Medical Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("eject")},children:"Eject"}),children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:C?"good":"bad",children:C?"Locked":"Unlocked"})]})}),!C&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavioral Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Healing Threshold",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:0,maxValue:N,value:h,onDrag:function(e,n){return i("adj_threshold",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Injection Amount",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:V,maxValue:f,value:b,onDrag:function(e,n){return i("adj_inject",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reagent Source",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:g?"toggle-on":"toggle-off",selected:g,onClick:function(){return i("use_beaker")},children:g?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Treatment Report",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:k?"toggle-on":"toggle-off",selected:k,onClick:function(){return i("declaretreatment")},children:k?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return i("togglevoice")},children:v?"On":"Off"})})]})})||null]})})}},37610:function(e,n,t){"use strict";n.__esModule=!0,n.MedicalRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.MedicalRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N?t=(0,o.createComponentVNode)(2,C):5===N?t=(0,o.createComponentVNode)(2,V):6===N&&(t=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,c.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.medical,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n).data.general;return t&&t.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"right",textAlign:"right",children:!!t.has_photos&&t.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)}))})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.virus;return i.sort((function(e,n){return e.name>n.name?1:-1})),i.map((function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,n)}))},b=function(e,n){var t=(0,r.useBackend)(n).data.medbots;return 0===t.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"There are no Medbots."}):t.map((function(e,n){return(0,o.createComponentVNode)(2,c.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,c.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Offline"})})]})})},n)}))},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,onClick:function(){return a("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:5===i,onClick:function(){return a("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:6===i,onClick:function(){return a("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===i,onClick:function(){return a("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,n){var t=(0,r.useBackend)(n).act,a=e.args;return(0,o.createComponentVNode)(2,c.Section,{level:2,m:"-1rem",title:a.name||"Virus",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",color:"red",onClick:function(){return t("modal_close")}}),children:(0,o.createComponentVNode)(2,c.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Spread",children:[a.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Possible cure",children:a.antigen}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rate of Progression",children:a.rate}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Antibiotic Resistance",children:[a.resistance,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species Affected",children:a.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:a.symptoms.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]},e.stage)}))})})]})})})}))},287:function(e,n,t){"use strict";n.__esModule=!0,n.MessageMonitor=void 0;var o=t(39812),r=(t(41860),t(2497)),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d=t(67861);n.MessageMonitor=function(e,n){var t,r=(0,c.useBackend)(n),d=(r.act,r.data),p=d.auth,C=d.linkedServer,h=(d.message,d.hacking),N=d.emag;return t=h||N?(0,o.createComponentVNode)(2,s):p?C?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"}):(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,i.Window,{width:670,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice),t]})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.isMalfAI);return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"ERROR",children:r?(0,o.createComponentVNode)(2,a.Box,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,o.createComponentVNode)(2,a.Box,{children:["01000010011100100111010101110100011001010010110",(0,o.createVNode)(1,"br"),"10110011001101111011100100110001101101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001100110011011110111001000100000011100110110010",(0,o.createVNode)(1,"br"),"10111001001110110011001010111001000100000011010110110010",(0,o.createVNode)(1,"br"),"10111100100101110001000000100100101110100001000000111011",(0,o.createVNode)(1,"br"),"10110100101101100011011000010000001110100011000010110101",(0,o.createVNode)(1,"br"),"10110010100100000001100100011000000100000011100110110010",(0,o.createVNode)(1,"br"),"10110001101101111011011100110010001110011001000000110011",(0,o.createVNode)(1,"br"),"00110111101110010001000000110010101110110011001010111001",(0,o.createVNode)(1,"br"),"00111100100100000011000110110100001100001011100100110000",(0,o.createVNode)(1,"br"),"10110001101110100011001010111001000100000011101000110100",(0,o.createVNode)(1,"br"),"00110000101110100001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00111000001100001011100110111001101110111011011110111001",(0,o.createVNode)(1,"br"),"00110010000100000011010000110000101110011001011100010000",(0,o.createVNode)(1,"br"),"00100100101101110001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00110110101100101011000010110111001110100011010010110110",(0,o.createVNode)(1,"br"),"10110010100101100001000000111010001101000011010010111001",(0,o.createVNode)(1,"br"),"10010000001100011011011110110111001110011011011110110110",(0,o.createVNode)(1,"br"),"00110010100100000011000110110000101101110001000000111001",(0,o.createVNode)(1,"br"),"00110010101110110011001010110000101101100001000000111100",(0,o.createVNode)(1,"br"),"10110111101110101011100100010000001110100011100100111010",(0,o.createVNode)(1,"br"),"10110010100100000011010010110111001110100011001010110111",(0,o.createVNode)(1,"br"),"00111010001101001011011110110111001110011001000000110100",(0,o.createVNode)(1,"br"),"10110011000100000011110010110111101110101001000000110110",(0,o.createVNode)(1,"br"),"00110010101110100001000000111001101101111011011010110010",(0,o.createVNode)(1,"br"),"10110111101101110011001010010000001100001011000110110001",(0,o.createVNode)(1,"br"),"10110010101110011011100110010000001101001011101000010111",(0,o.createVNode)(1,"br"),"00010000001001101011000010110101101100101001000000111001",(0,o.createVNode)(1,"br"),"10111010101110010011001010010000001101110011011110010000",(0,o.createVNode)(1,"br"),"00110100001110101011011010110000101101110011100110010000",(0,o.createVNode)(1,"br"),"00110010101101110011101000110010101110010001000000111010",(0,o.createVNode)(1,"br"),"00110100001100101001000000111001001101111011011110110110",(0,o.createVNode)(1,"br"),"10010000001100100011101010111001001101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001110100011010000110000101110100001000000111010",(0,o.createVNode)(1,"br"),"001101001011011010110010100101110"]})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isMalfAI;return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:["Decryption Key:",(0,o.createComponentVNode)(2,a.Input,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(e,n){return r("auth",{key:n})}})]}),!!i&&(0,o.createComponentVNode)(2,a.Button,{icon:"terminal",content:"Hack",onClick:function(){return r("hack")}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},m=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.linkedServer,d=(0,c.useLocalState)(n,"tabIndex",0),s=d[0],u=d[1];return 0===s?t=(0,o.createComponentVNode)(2,p):1===s?t=(0,o.createComponentVNode)(2,C,{logs:l.pda_msgs,pda:!0}):2===s?t=(0,o.createComponentVNode)(2,C,{logs:l.rc_msgs,rc:!0}):3===s?t=(0,o.createComponentVNode)(2,h):4===s&&(t=(0,o.createComponentVNode)(2,N)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bars"})," Main Menu"]},"Main"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"font"})," Message Logs"]},"MessageLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return u(3)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:4===s,onClick:function(){return u(4)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{color:"red",onClick:function(){return i("deauth")},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)},p=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"link",content:"Server Link",onClick:function(){return r("find")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Server "+(i.active?"Enabled":"Disabled"),selected:i.active,onClick:function(){return r("active")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Status",children:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Good"})})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return r("pass")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},C=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.logs),d=e.pda,s=e.rc;return(0,o.createComponentVNode)(2,a.Section,{title:d?"PDA Logs":s?"Request Logs":"Logs",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i(d?"del_pda":"del_rc")}}),children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,a.Section,{title:e.sender+" -> "+e.recipient,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.ref,type:s?"rc":"pda"})}}),children:s?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",children:e.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Verification",color:"Unauthenticated"===e.id_auth?"bad":"good",children:(0,r.decodeHtmlEntities)(e.id_auth)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamp",children:e.stamp})]}):e.message})},e.ref)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.possibleRecipients,d=i.customsender,s=i.customrecepient,u=i.customjob,m=i.custommessage,p=Object.keys(l);return(0,o.createComponentVNode)(2,a.Section,{title:"Admin Messaging",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d,onChange:function(e,n){return r("set_sender",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender's Job",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:u,onChange:function(e,n){return r("set_sender_job",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recipient",children:(0,o.createComponentVNode)(2,a.Dropdown,{value:s,options:p,width:"100%",mb:-.7,onSelected:function(e){return r("set_recipient",{val:l[e]})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,mb:.5,value:m,onChange:function(e,n){return r("set_message",{val:n})}})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return r("send_message")}})]})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Spam Filtering",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:i.spamFilter.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.index,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return r("deltoken",{deltoken:e.index})}}),children:e.token},e.index)}))}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add New Entry",onClick:function(){return r("addtoken")}})]})}},75412:function(e,n,t){"use strict";n.__esModule=!0,n.Microwave=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Microwave=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.config,d=t.data,s=d.broken,u=d.operating,m=d.dirty,p=d.items;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Microwaving in progress!",(0,o.createVNode)(1,"br"),"Please wait...!"]})})||m&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["This microwave is dirty!",(0,o.createVNode)(1,"br"),"Please clean it before use!"]})})||p.length&&(0,o.createComponentVNode)(2,c.Section,{level:1,title:"Ingredients",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",onClick:function(){return i("cook")},children:"Microwave"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("dispose")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.amt," ",e.extra]},e.name)}))})})||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[l.title," is empty."]})})})})}},35016:function(e,n,t){"use strict";n.__esModule=!0,n.MiningOreProcessingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=(t(64499),t(21526));n.MiningOreProcessingConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.unclaimedPoints,u=(d.ores,d.showAllOres,d.power),p=d.speed;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",mr:1,onClick:function(){return r("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",selected:p,onClick:function(){return r("speed_toggle")},children:p?"High-Speed Active":"High-Speed Inactive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,onClick:function(){return r("power")},children:u?"Smelting":"Not Smelting"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:s<1,icon:"download",onClick:function(){return r("claim")},children:"Claim"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})})})}),(0,o.createComponentVNode)(2,m)]})})};var d=["Not Processing","Smelting","Compressing","Alloying"],s=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],u=function(e,n){return-1===s.indexOf(e.ore)||-1===s.indexOf(n.ore)?e.ore-n.ore:s.indexOf(n.ore)-s.indexOf(e.ore)},m=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.ores,m=l.showAllOres;l.power;return(0,o.createComponentVNode)(2,a.Section,{title:"Ore Processing Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("showAllOres")},children:m?"All Ores":"Ores in Machine"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.length&&s.sort(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createComponentVNode)(2,a.Dropdown,{width:"120px",color:(0===e.processing?"red":1===e.processing&&"green")||2===e.processing&&"blue"||3===e.processing&&"yellow",options:d,selected:d[e.processing],onSelected:function(n){return i("toggleSmelting",{ore:e.ore,set:d.indexOf(n)})}}),children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amount})})},e.ore)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},87314:function(e,n,t){"use strict";n.__esModule=!0,n.MiningStackingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(64499);n.MiningStackingConsole=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.stacktypes,u=d.stackingAmt;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Stacker Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stacking",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(e,n){return l("change_stack",{amt:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),s.length&&s.sort().map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.type),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return l("release_stack",{stack:e.type})},children:"Eject"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amt})},e.type)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},62012:function(e,n,t){"use strict";n.__esModule=!0,n.MiningVendor=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(21526);var d={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.MiningVendor=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,s)]})})};var s=function(e,n){var t=(0,c.useBackend)(n),l=(t.act,t.data),s=l.has_id,u=l.id,p=l.items,C=(0,c.useLocalState)(n,"search",""),h=C[0],N=(C[1],(0,c.useLocalState)(n,"sort","Alphabetical")),V=N[0],b=(N[1],(0,c.useLocalState)(n,"descending",!1)),f=b[0],g=(b[1],(0,r.createSearch)(h,(function(e){return e[0]}))),k=!1,v=Object.entries(p).map((function(e,n){var t=Object.entries(e[1]).filter(g).map((function(e){return e[1].affordable=s&&u.points>=e[1].price,e[1]})).sort(d[V]);if(0!==t.length)return f&&(t=t.reverse()),k=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:k?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),l=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(e){return l(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!i.has_id||i.id.points=450?"Overcharged":e>=250?"Good Charge":"Low Charge":e>=250?"NIF Power Requirement met.":e>=150?"Fluctuations in available power.":"Power failure imminent."},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.config,t.data),s=i.nif_percent,u=i.nif_stat,m=(i.last_notification,i.nutrition),p=i.isSynthetic,C=i.modules,h=e.setViewing;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Condition",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,0]},children:[l(u,s)," (",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:s}),"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:700,ranges:{good:[250,Infinity],average:[150,250],bad:[0,150]},children:d(m,p)})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return a("uninstall",{module:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return h(e)},tooltip:"View Information",tooltipPosition:"left"})],4),children:e.activates&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:e.active,content:e.stat_text,onClick:function(){return a("toggle_module",{module:e.ref})}})||(0,o.createComponentVNode)(2,c.Box,{children:e.stat_text})},e.ref)}))})})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.theme;return(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",placeholder:"Default",selected:l,options:i,onSelected:function(e){return a("setTheme",{theme:e})}})})})}},79630:function(e,n,t){"use strict";n.__esModule=!0,n.NTNetRelay=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(67861);n.NTNetRelay=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.dos_crashed,s=(c.enabled,c.dos_overload,c.dos_capacity,(0,o.createComponentVNode)(2,l));return i&&(s=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.Window,{width:i?700:500,height:i?600:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dos_crashed,i.enabled),d=i.dos_overload,s=i.dos_capacity;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:"Relay "+(l?"On":"Off"),onClick:function(){return a("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network Buffer Status",children:[d," / ",s," GQ"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return a("purge")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"ERROR",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createVNode)(1,"h2",null,"NETWORK BUFFERS OVERLOADED",16),(0,o.createVNode)(1,"h3",null,"Overload Recovery Mode",16),(0,o.createVNode)(1,"i",null,"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue.",16),(0,o.createVNode)(1,"h3",null,"ADMINISTRATIVE OVERRIDE",16),(0,o.createVNode)(1,"b",null," CAUTION - Data loss may occur ",16)]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return a("restart")}})})]})}},60042:function(e,n,t){"use strict";n.__esModule=!0,n.Newscaster=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d="Main Menu",s="New Channel",u="View List",m="New Story",p="Print",C="New Wanted",h="View Wanted",N="View Selected Channel";n.Newscaster=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.screen,r.user;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice,{decode:!0}),(0,o.createComponentVNode)(2,V)]})})};var V=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.user,(0,c.useSharedState)(n,"screen",d)),i=r[0],l=r[1],s=b[i];return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,s,{setScreen:l})})},b={"Main Menu":function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.securityCaster,l=r.wanted_issue,d=e.setScreen;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",children:[l&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(h)},color:"bad",children:"Read WANTED Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(u)},children:"View Feed Channels"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(s)},children:"Create Feed Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(m)},children:"Create Feed Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"print",onClick:function(){return d(p)},children:"Print Newspaper"})]}),!!i&&(0,o.createComponentVNode)(2,a.Section,{title:"Feed Security Functions",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(C)},children:'Manage "Wanted" Issue'})})],0)},"New Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.c_locked,m=l.user,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Channel",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Author",color:"good",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accept Public Feeds",children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"lock-open",selected:!u,onClick:function(){return i("set_channel_lock")},children:u?"No":"Yes"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_new_channel")},children:"Submit Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"View List":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.channels,s=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Station Feed Channels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return s(d)},children:"Back"}),children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",color:e.admin?"good":e.censored?"bad":"",onClick:function(){i("show_channel",{show_channel:e.ref}),s(N)},children:(0,r.decodeHtmlEntities)(e.name)},e.name)}))})},"New Story":function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.channel_name,s=i.user,u=i.title,m=i.msg,p=i.photo_data,C=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Message...",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return C(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receiving Channel",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return r("set_channel_receiving")},children:l||"Unset"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Author",color:"good",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Title",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:u||"(no title yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Body",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:m||"(no message yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return r("set_attachment")},children:p?"Photo Attached":"No Photo"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return r("submit_new_message")},children:"Submit Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return C(d)},children:"Cancel"})]})},Print:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.total_num,s=i.active_num,u=i.message_num,m=i.paper_remaining,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",l," Feed channels, ",s," of which are active, and a total of ",u," Feed stories."]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Liquid Paper remaining",children:[100*m," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return r("print_paper")},children:"Print Paper"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"New Wanted":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.msg,m=l.photo_data,p=l.user,C=l.wanted_issue,h=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Wanted Issue Handler",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return h(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[!!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(u),onInput:function(e,n){return i("set_wanted_desc",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return i("set_attachment")},children:m?"Photo Attached":"No Photo"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prosecutor",color:"good",children:p})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_wanted")},children:"Submit Wanted Issue"}),!!C&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){return i("cancel_wanted")},children:"Take Down Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return h(d)},children:"Cancel"})]})},"View Wanted":function(e,n){var t=(0,c.useBackend)(n),i=(t.act,t.data.wanted_issue),l=e.setScreen;return i?(0,o.createComponentVNode)(2,a.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:(0,o.createComponentVNode)(2,a.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Submitted by",color:"good",children:(0,r.decodeHtmlEntities)(i.author)}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal",children:(0,r.decodeHtmlEntities)(i.criminal)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,r.decodeHtmlEntities)(i.desc)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo",children:i.img&&(0,o.createVNode)(1,"img",null,null,1,{src:i.img})||"None"})]})})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Outstanding Wanted Issues",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},"View Selected Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.viewing_channel,s=l.securityCaster,m=l.company,p=e.setScreen;return d?(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(d.name),buttons:(0,o.createFragment)([!!s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return i("toggle_d_notice",{ref:d.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"})],0),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Created By",children:s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,r.decodeHtmlEntities)(d.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return i("censor_channel_author",{ref:d.ref})}})||(0,o.createComponentVNode)(2,a.Box,{children:(0,r.decodeHtmlEntities)(d.author)})})}),!!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",m," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!d.messages.length&&d.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[Story by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.timestamp,"]"]}),!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return i("censor_channel_story_body",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return i("censor_channel_story_author",{ref:e.ref})}})],4)]},e.ref)}))||!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No feed messages found in channel."})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Channel Not Found",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"}),children:"The channel you were looking for no longer exists."})}}},31669:function(e,n,t){"use strict";n.__esModule=!0,n.NoticeBoard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.NoticeBoard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.notices;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:l.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.isphoto&&(0,o.createComponentVNode)(2,c.Button,{icon:"image",content:"Look",onClick:function(){return i("look",{ref:e.ref})}})||e.ispaper&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sticky-note",content:"Read",onClick:function(){return i("read",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Write",onClick:function(){return i("write",{ref:e.ref})}})],4)||"Unknown Entity",(0,o.createComponentVNode)(2,c.Button,{icon:"minus-circle",content:"Remove",onClick:function(){return i("remove",{ref:e.ref})}})]},n)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No notices posted here."})})})})}},63231:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAccessDecrypter=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(76952),i=t(74814);n.NtosAccessDecrypter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.message,u=d.running,m=d.rate,p=d.factor,C=d.regions,h=function(e){for(var n="";n.lengthp?n+="0":n+="1";return n};return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:s})||u&&(0,o.createComponentVNode)(2,i.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate: ",m," PHash/s",(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"ban",onClick:function(){return l("PRG_reset")},children:"Abort"})]})||(0,o.createComponentVNode)(2,i.Section,{title:"Pick access code to decrypt",children:C.length&&(0,o.createComponentVNode)(2,a.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,o.createComponentVNode)(2,i.Box,{children:"Please insert ID card."})})})})}},79760:function(e,n,t){"use strict";n.__esModule=!0,n.NtosArcade=void 0;var o=t(39812),r=t(5908),c=t(71494),a=t(74814),i=t(85952);n.NtosArcade=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:450,height:350,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:2,children:[(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[d.PlayerHitpoints,"HP"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[d.PlayerMP,"MP"]})})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Section,{backgroundColor:1===d.PauseState?"#1b3622":"#471915",children:d.Status})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,Infinity],average:[5,30],bad:[-Infinity,5]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.Hitpoints}),"HP"]}),(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,r.resolveAsset)(d.BossID)})})]})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Attack")},content:"Attack!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Heal")},content:"Heal!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Recharge_Power")},content:"Recharge!"})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Start_Game")},content:"Begin Game"}),(0,o.createComponentVNode)(2,a.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,o.createComponentVNode)(2,a.Box,{color:d.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",d.TicketCount]})]})})})}},97908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAtmosControl=void 0;var o=t(39812),r=t(85952),c=t(46566);n.NtosAtmosControl=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.AtmosControlContent)})})}},63645:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCameraConsole=void 0;var o=t(39812),r=t(85952),c=t(3180);n.NtosCameraConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CameraConsoleContent)})})}},74093:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(130);n.NtosCommunicationsConsole=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.CommunicationsConsoleContent)})})}},55513:function(e,n,t){"use strict";n.__esModule=!0,n.NtosConfiguration=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosConfiguration=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.power_usage,u=l.battery_exists,m=l.battery,p=void 0===m?{}:m,C=l.disk_size,h=l.disk_used,N=l.hardware,V=void 0===N?[]:N;return(0,o.createComponentVNode)(2,a.NtosWindow,{theme:d,width:520,height:630,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Supply",buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",s,"W"]}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,o.createComponentVNode)(2,c.ProgressBar,{value:p.charge,minValue:0,maxValue:p.max,ranges:{good:[p.max/2,Infinity],average:[p.max/4,p.max/2],bad:[-Infinity,p.max/4]},children:[p.charge," / ",p.max]}):"Not Available"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"File System",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:C,color:"good",children:[h," GQ / ",C," GQ"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Hardware Components",children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createFragment)([!e.critical&&(0,o.createComponentVNode)(2,c.Button.Checkbox,{content:"Enabled",checked:e.enabled,mr:1,onClick:function(){return i("PC_toggle_component",{name:e.name})}}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",e.powerusage,"W"]})],0),children:e.desc},e.name)}))})]})})}},17539:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCrewMonitor=void 0;var o=t(39812),r=t(85952),c=t(96158);n.NtosCrewMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CrewMonitorContent)})})}},20025:function(e,n,t){"use strict";n.__esModule=!0,n.NtosDigitalWarrant=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(64499);n.NtosDigitalWarrant=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(c.warrantname,c.warrantcharges,c.warrantauth),d=(c.type,c.allwarrants,(0,o.createComponentVNode)(2,l));return i&&(d=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:500,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:d})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data.allwarrants;return(0,o.createComponentVNode)(2,c.Section,{title:"Warrants",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",fluid:!0,onClick:function(){return a("addwarrant")},children:"Create New Warrant"}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Arrest Warrants",children:(0,o.createComponentVNode)(2,d,{type:"arrest"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Search Warrants",children:(0,o.createComponentVNode)(2,d,{type:"search"})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=e.type,s=l.allwarrants,u=(0,i.filter)((function(e){return e.arrestsearch===d}))(s);return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Name":"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Charges":"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Authorized By"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"})]}),u.length&&u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.warrantname}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.charges}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.auth}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrant",{id:e.id})}})})]},e.id)}))||(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{colspan:"3",color:"bad",children:["No ",d," warrants found."]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.warrantname,d=i.warrantcharges,s=i.warrantauth,u=i.type,m="arrest"===u,p="arrest"===u?"Name":"Location",C="arrest"===u?"Charges":"Reason";return(0,o.createComponentVNode)(2,c.Section,{title:m?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("savewarrant")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("deletewarrant")},children:"Delete"}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:p,buttons:m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return a("editwarrantname")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}}),children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:C,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantcharges")}}),children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Authorized By",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"balance-scale",onClick:function(){return a("editwarrantauth")}}),children:s})]})})}},11325:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailAdministration=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(77006);n.NtosEmailAdministration=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.error,m=c.cur_title,p=c.current_account,C=(0,o.createComponentVNode)(2,l);return i?C=(0,o.createComponentVNode)(2,d):m?C=(0,o.createComponentVNode)(2,s):p&&(C=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:C})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",onClick:function(){return a("newaccount")},children:"Create New Account"}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",onClick:function(){return a("viewaccount",{viewaccount:e.uid})},children:e.login},e.uid)}))]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Message",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:i})},s=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i.NtosEmailClientViewMessage,{administrator:!0})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.error,i.msg_title,i.msg_body,i.msg_timestamp,i.msg_source,i.current_account),d=i.cur_suspended,s=i.messages;i.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing "+l+" in admin mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Status",children:(0,o.createComponentVNode)(2,c.Button,{color:d?"bad":"",icon:"ban",tooltip:(d?"Uns":"S")+"uspend Account?",onClick:function(){return a("ban")},children:d?"Suspended":"Normal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:"key",onClick:function(){return a("changepass")},children:"Change Password"})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Messages",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received at"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("viewmail",{viewmail:e.uid})},children:"View"})})]},e.uid)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No messages found in selected account."})})]})}},77006:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailClientViewMessage=n.NtosEmailClient=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.NtosEmailClient=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.PC_device_theme,s=c.error,u=c.downloading,m=c.current_account,p=(0,o.createComponentVNode)(2,h);return s?p=(0,o.createComponentVNode)(2,C,{error:s}):u?p=(0,o.createComponentVNode)(2,l):m&&(p=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:i,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:p})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),l=a.down_filename,d=a.down_progress,s=a.down_size,u=a.down_speed;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"File",children:[l," (",s," GQ)"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:d,maxValue:s,children:[d,"/",s," (",(0,i.round)(d/s*100,1),"%)"]})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.current_account,d=i.addressbook,C=i.new_message,h=i.cur_title,N=(0,o.createComponentVNode)(2,s);return d?N=(0,o.createComponentVNode)(2,m):C?N=(0,o.createComponentVNode)(2,p):h&&(N=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,c.Section,{title:"Logged in as: "+l,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return a("new_message")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return a("changepassword")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return a("logout")}})],4),children:N})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.folder),d=i.messagecount,s=i.messages;return(0,o.createComponentVNode)(2,c.Section,{level:2,noTopPadding:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Inbox"===l,onClick:function(){return a("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Spam"===l,onClick:function(){return a("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Deleted"===l,onClick:function(){return a("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),d&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received At"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("view",{view:e.uid})},tooltip:"View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("reply",{reply:e.uid})},tooltip:"Reply"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("delete",{"delete":e.uid})},tooltip:"Delete"})]})]},e.timestamp+e.title)}))]})})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["No emails found in ",l,"."]})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.administrator,d=i.cur_title,s=i.cur_source,u=i.cur_timestamp,m=i.cur_body,p=i.cur_hasattachment,C=i.cur_attachment_filename,h=i.cur_attachment_size,N=i.cur_uid;return(0,o.createComponentVNode)(2,c.Section,{title:d,buttons:l?(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("back")}}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return a("reply",{reply:N})}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return a("delete",{"delete":N})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return a("save",{save:N})}}),p&&(0,o.createComponentVNode)(2,c.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return a("downloadattachment")}})||null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return a("cancel",{cancel:N})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"From",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"At",children:u}),p&&!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",color:"average",children:[C," (",h,"GQ)"]})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:m}})})})]})})};n.NtosEmailClientViewMessage=u;var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Address Book",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("set_recipient",{set_recipient:null})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.login,fluid:!0,onClick:function(){return a("set_recipient",{set_recipient:e.login})}},e.login)}))})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.msg_title),d=i.msg_recipient,s=i.msg_body,u=i.msg_hasattachment,m=i.msg_attachment_filename,p=i.msg_attachment_size;return(0,o.createComponentVNode)(2,c.Section,{title:"New Message",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("send")},children:"Send Message"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("cancel")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_title",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_recipient",{val:n})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"address-book",onClick:function(){return a("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachments",buttons:u&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("remove_attachment")},children:"Remove Attachment"})||(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("addattachment")},children:"Add Attachment"}),children:u&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[m," (",p,"GQ)"]})||null}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{width:"99%",inline:!0,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:s}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{verticalAlign:"top",onClick:function(){return a("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},C=function(e,n){var t=(0,r.useBackend)(n).act,a=e.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Notification",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return",onClick:function(){return t("reset")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:a})})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stored_login,d=i.stored_password;return(0,o.createComponentVNode)(2,c.Section,{title:"Please Log In",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Email address",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_login",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Password",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_password",{val:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",onClick:function(){return a("login")},children:"Log In"})]})}},86441:function(e,n,t){"use strict";n.__esModule=!0,n.NtosFileManager=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);t(2497);n.NtosFileManager=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.PC_device_theme,u=d.usbconnected,m=d.filename,p=d.filedata,C=d.error,h=d.files,N=void 0===h?[]:h,V=d.usbfiles,b=void 0===V?[]:V;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:s,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(m||C)&&(0,o.createComponentVNode)(2,c.Section,{title:"Viewing File "+m,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Edit",onClick:function(){return l("PRG_edit")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Print",onClick:function(){return l("PRG_printfile")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Close",onClick:function(){return l("PRG_closefile")}})],4),children:[C||null,p&&(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p}})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i,{files:N,usbconnected:u,onUpload:function(e){return l("PRG_copytousb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onOpen:function(e){return l("PRG_openfile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})}),u&&(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",children:(0,o.createComponentVNode)(2,i,{usbmode:!0,files:b,usbconnected:u,onUpload:function(e){return l("PRG_copyfromusb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})})||null,(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("PRG_newtextfile")},children:"New Text File"})})],0)})})};var i=function(e){var n=e.files,t=void 0===n?[]:n,r=e.usbconnected,a=e.usbmode,i=e.onUpload,l=e.onDelete,d=e.onRename,s=e.onOpen;return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"File"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Size"})]}),t.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.undeletable?e.name:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{width:"80%",content:e.name,currentValue:e.name,tooltip:"Rename",onCommit:function(n,t){return d(e.name,t)}}),(0,o.createComponentVNode)(2,c.Button,{content:"Open",onClick:function(){return s(e.name)}})],4)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.type}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:!e.undeletable&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return l(e.name)}}),!!r&&(a?(0,o.createComponentVNode)(2,c.Button,{icon:"download",tooltip:"Download",onClick:function(){return i(e.name)}}):(0,o.createComponentVNode)(2,c.Button,{icon:"upload",tooltip:"Upload",onClick:function(){return i(e.name)}}))],0)})]},e.name)}))]})}},87369:function(e,n,t){"use strict";n.__esModule=!0,n.NtosIdentificationComputer=void 0;var o=t(39812),r=(t(64499),t(71494)),c=(t(74814),t(85952)),a=(t(2497),t(76270),t(76952));n.NtosIdentificationComputer=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.IdentificationComputerContent,{ntos:!0})})})}},59543:function(e,n,t){"use strict";n.__esModule=!0,n.NtosMain=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"};n.NtosMain=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.device_theme,u=d.programs,m=void 0===u?[]:u,p=d.has_light,C=d.light_on,h=d.comp_light_color,N=d.removable_media,V=void 0===N?[]:N,b=d.login,f=void 0===b?[]:b;return(0,o.createComponentVNode)(2,a.NtosWindow,{title:"syndicate"===s?"Syndix Main Menu":"NtOS Main Menu",theme:s,width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"144px",icon:"lightbulb",selected:C,onClick:function(){return l("PC_toggle_light")},children:["Flashlight: ",C?"ON":"OFF"]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,onClick:function(){return l("PC_light_color")},children:["Color:",(0,o.createComponentVNode)(2,c.ColorBox,{ml:1,color:h})]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"User Login",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",disabled:!f.IDName,onClick:function(){return l("PC_Eject_Disk",{name:"ID"})}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:["ID Name: ",f.IDName]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:["Assignment: ",f.IDJob]})]})}),!!V.length&&(0,o.createComponentVNode)(2,c.Section,{title:"Media Eject",children:(0,o.createComponentVNode)(2,c.Table,{children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:"eject",content:e,onClick:function(){return l("PC_Eject_Disk",{name:e})}})})},e)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:(0,o.createComponentVNode)(2,c.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:i[e.name]||"window-maximize-o",content:e.desc,onClick:function(){return l("PC_runprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:!!e.running&&(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return l("PC_killprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:e.autorun,onClick:function(){return l("PC_setautorun",{name:e.name})},children:"AR"})})]},e.name)}))})})]})})}},73883:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetChat=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetChat=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.can_admin,s=l.adminmode,u=l.authed,m=l.username,p=l.active_channel,C=l.is_operator,h=l.all_channels,N=void 0===h?[]:h,V=l.clients,b=void 0===V?[]:V,f=l.messages,g=void 0===f?[]:f,k=null!==p,v=u||s;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:900,height:675,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.Section,{height:"600px",children:(0,o.createComponentVNode)(2,c.Table,{height:"580px",children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:[(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(e,n){return i("PRG_newchannel",{new_channel_name:n})}}),N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.chan,selected:e.id===p,color:"transparent",onClick:function(){return i("PRG_joinchannel",{id:e.id})}},e.chan)}))]}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,mt:1,content:m+"...",currentValue:m,onCommit:function(e,n){return i("PRG_changename",{new_name:n})}}),!!d&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(s?"ON":"OFF"),color:s?"bad":"good",onClick:function(){return i("PRG_toggleadmin")}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:k&&(v?g.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.msg},e.msg)})):(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,o.createComponentVNode)(2,c.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(e,n){return i("PRG_speak",{message:n})}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"465px",overflowY:"scroll",children:b.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.name},e.name)}))}),k&&v&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(e,n){return i("PRG_savelog",{log_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return i("PRG_leavechannel")}})],4),!!C&&u&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return i("PRG_deletechannel")}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(e,n){return i("PRG_renamechannel",{new_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(e,n){return i("PRG_setpassword",{new_password:n})}})],4)]})]})})})})})}},83908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDosContent=n.NtosNetDos=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetDos=function(e,n){return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.relays,d=void 0===l?[]:l,s=i.focus,u=i.target,m=i.speed,p=i.overload,C=i.capacity,h=i.error;if(h)return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:h}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return a("PRG_reset")}})],4);var N=function(e){for(var n="",t=p/C;n.lengtht?n+="0":n+="1";return n};return u?(0,o.createComponentVNode)(2,c.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{children:["CURRENT SPEED: ",m," GQ/s"]}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)})]}):(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.id,selected:s===e.id,onClick:function(){return a("PRG_target_relay",{targid:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!s,mt:1,onClick:function(){return a("PRG_execute")}})]})};n.NtosNetDosContent=i},83305:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDownloader=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.NtosNetDownloader=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.PC_device_theme,u=d.disk_size,m=d.disk_used,p=d.downloadable_programs,C=void 0===p?[]:p,h=d.error,N=d.hacked_programs,V=void 0===N?[]:N,b=d.hackedavailable;return(0,o.createComponentVNode)(2,i.NtosWindow,{theme:s,width:480,height:735,resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:h}),(0,o.createComponentVNode)(2,a.Button,{content:"Reset",onClick:function(){return r("PRG_reseterror")}})]}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk usage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:u,children:m+" GQ / "+u+" GQ"})})})}),(0,o.createComponentVNode)(2,a.Section,{children:C.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"UNKNOWN Software Repository",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),V.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))]})]})})};var l=function(e,n){var t=e.program,i=(0,c.useBackend)(n),l=i.act,d=i.data,s=d.disk_size,u=d.disk_used,m=d.downloadcompletion,p=(d.downloading,d.downloadname),C=d.downloadsize,h=d.downloadspeed,N=d.downloads_queue,V=s-u;return(0,o.createComponentVNode)(2,a.Box,{mb:3,children:[(0,o.createComponentVNode)(2,a.Flex,{align:"baseline",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{bold:!0,grow:1,children:t.filedesc}),(0,o.createComponentVNode)(2,a.Flex.Item,{color:"label",nowrap:!0,children:[t.size," GQ"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:t.filename===p&&(0,o.createComponentVNode)(2,a.ProgressBar,{color:"green",minValue:0,maxValue:C,value:m,children:[(0,r.round)(m/C*100,1),"% (",h,"GQ/s)"]})||-1!==N.indexOf(t.filename)&&(0,o.createComponentVNode)(2,a.Button,{icon:"ban",color:"bad",onClick:function(){return l("PRG_removequeued",{filename:t.filename})},children:"Queued..."})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",content:"Download",disabled:t.size>V,onClick:function(){return l("PRG_downloadfile",{filename:t.filename})}})})]}),"Compatible"!==t.compatibility&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),t.size>V&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:t.fileinfo})]})}},6806:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetMonitor=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosNetMonitor=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.ntnetrelays,s=l.ntnetstatus,u=l.config_softwaredownload,m=l.config_peertopeer,p=l.config_communication,C=l.config_systemcontrol,h=l.idsalarm,N=l.idsstatus,V=l.ntnetmaxlogs,b=l.maxlogs,f=l.minlogs,g=l.banned_nids,k=l.ntnetlogs,v=void 0===k?[]:k;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,r.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,o.createComponentVNode)(2,r.Section,{title:"Wireless Connectivity",buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:s?"power-off":"times",content:s?"ENABLED":"DISABLED",selected:s,onClick:function(){return i("toggleWireless")}}),children:d?(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Active NTNet Relays",children:d})}):"No Relays Connected"}),(0,o.createComponentVNode)(2,r.Section,{title:"Firewall Configuration",children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Software Downloads",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return i("toggle_function",{id:"1"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return i("toggle_function",{id:"2"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Communication Systems",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){return i("toggle_function",{id:"3"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Remote System Control",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return i("toggle_function",{id:"4"})}})})]})}),(0,o.createComponentVNode)(2,r.Section,{title:"Security Systems",children:[!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,o.createComponentVNode)(2,r.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Banned NIDs",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:"ban",onClick:function(){return i("ban_nid")},children:"Ban NID"}),(0,o.createComponentVNode)(2,r.Button,{icon:"balance-scale",onClick:function(){return i("unban_nid")},children:"Unban NID"})],4),children:g.join(", ")||"None"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"IDS Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:N?"power-off":"times",content:N?"ENABLED":"DISABLED",selected:N,onClick:function(){return i("toggleIDS")}}),(0,o.createComponentVNode)(2,r.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return i("resetIDS")}})],4)}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Max Log Count",buttons:(0,o.createComponentVNode)(2,r.NumberInput,{value:V,minValue:f,maxValue:b,width:"39px",onChange:function(e,n){return i("updatemaxlogs",{new_number:n})}})})]}),(0,o.createComponentVNode)(2,r.Section,{title:"System Log",level:2,buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return i("purgelogs")}}),children:v.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"candystripe",children:e.entry},e.entry)}))})]})]})})}},4363:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetTransfer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetTransfer=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),m=c.error,p=c.downloading,C=c.uploading,h=c.upload_filelist,N=(0,o.createComponentVNode)(2,u);return m?N=(0,o.createComponentVNode)(2,i):p?N=(0,o.createComponentVNode)(2,l):C?N=(0,o.createComponentVNode)(2,d):h.length&&(N=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:N})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"An error has occured during operation.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Reset"}),children:["Additional Information: ",i]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.download_name,d=i.download_progress,s=i.download_size,u=i.download_netspeed;return(0,o.createComponentVNode)(2,c.Section,{title:"Download in progress",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloaded File",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:s,children:[d," / ",s," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Speed",children:[u," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Download"})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.upload_clients,d=i.upload_filename,s=i.upload_haspassword;return(0,o.createComponentVNode)(2,c.Section,{title:"Server enabled",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Clients Connected",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Provided file",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Server Password",children:s?"Enabled":"Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Commands",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Upload"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.upload_filelist;return(0,o.createComponentVNode)(2,c.Section,{title:"File transfer server ready.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Cancel"}),children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Section,{title:"Pick file to serve.",level:2,children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"upload",onClick:function(){return a("PRG_uploadfile",{uid:e.uid})},children:[e.filename," (",e.size,"GQ)"]},e.uid)}))})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.servers;return(0,o.createComponentVNode)(2,c.Section,{title:"Available Files",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"upload",onClick:function(){return a("PRG_uploadmenu")},children:"Send File"}),children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.uid,children:[!!e.haspassword&&(0,o.createComponentVNode)(2,c.Icon,{name:"lock",mr:1}),e.filename,"\xa0 (",e.size,"GQ)\xa0",(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_downloadfile",{uid:e.uid})},children:"Download"})]},e.uid)}))})||(0,o.createComponentVNode)(2,c.Box,{children:"No upload servers found."})})}},23225:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNewsBrowser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(5908);n.NtosNewsBrowser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=u.article,p=u.download,C=u.message,h=(0,o.createComponentVNode)(2,d);return m?h=(0,o.createComponentVNode)(2,l):p&&(h=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!C&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:[C," ",(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return i("PRG_clearmessage")}})]}),h]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.article;if(!l)return(0,o.createComponentVNode)(2,c.Section,{children:"Error: Article not found."});var d=l.title,s=l.cover,u=l.content;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing: "+d,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("PRG_savearticle")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("PRG_reset")},children:"Close"})],4),children:[!!s&&(0,o.createVNode)(1,"img",null,null,1,{src:(0,i.resolveAsset)(s)}),(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:u}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.showing_archived,d=i.all_articles;return(0,o.createComponentVNode)(2,c.Section,{title:"Articles List",buttons:(0,o.createComponentVNode)(2,c.Button.Checkbox,{onClick:function(){return a("PRG_toggle_archived")},checked:l,children:"Show Archived"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_openarticle",{uid:e.uid})}}),children:[e.size," GQ"]},e.uid)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.download,l=i.download_progress,d=i.download_maxprogress,s=i.download_rate;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",minValue:0,value:l,maxValue:d,children:[l," / ",d," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Download Speed",children:[s," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",fluid:!0,onClick:function(){return a("PRG_reset")},children:"Abort Download"})})]})})}},3839:function(e,n,t){"use strict";n.__esModule=!0,n.NtosOvermapNavigation=void 0;var o=t(39812),r=t(85952),c=t(12640);n.NtosOvermapNavigation=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.OvermapNavigationContent)})})}},54698:function(e,n,t){"use strict";n.__esModule=!0,n.NtosPowerMonitor=void 0;var o=t(39812),r=t(85952),c=t(89793);n.NtosPowerMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.PowerMonitorContent)})})}},17086:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRCON=void 0;var o=t(39812),r=t(85952),c=t(43996);n.NtosRCON=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.RCONContent)})})}},69480:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRevelation=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosRevelation=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(e,n){return i("PRG_obfuscate",{new_name:n})},mb:1}),(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Payload Status",buttons:(0,o.createComponentVNode)(2,r.Button,{content:l.armed?"ARMED":"DISARMED",color:l.armed?"bad":"average",onClick:function(){return i("PRG_arm")}})})}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l.armed})]})})})}},93990:function(e,n,t){"use strict";n.__esModule=!0,n.NtosShutoffMonitor=void 0;var o=t(39812),r=t(85952),c=t(89957);n.NtosShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.ShutoffMonitorContent)})})}},76124:function(e,n,t){"use strict";n.__esModule=!0,n.NtosStationAlertConsole=void 0;var o=t(39812),r=t(85952),c=t(32015);n.NtosStationAlertConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:315,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.StationAlertConsoleContent)})})}},22475:function(e,n,t){"use strict";n.__esModule=!0,n.NtosSupermatterMonitor=void 0;var o=t(39812),r=t(85952),c=t(6951);n.NtosSupermatterMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.SupermatterMonitorContent)})})}},66744:function(e,n,t){"use strict";n.__esModule=!0,n.NtosUAV=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosUAV=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current_uav,s=l.signal_strength,u=l.in_use,m=l.paired_uavs;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Selected UAV",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"UAV",children:d&&d.status||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal",children:d&&s||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d.power,onClick:function(){return i("power_uav")},children:d.power?"Online":"Offline"})||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Camera",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,disabled:!d.power,onClick:function(){return i("view_uav")},children:d.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Paired UAVs",children:m.length&&m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"quidditch",onClick:function(){return i("switch_uav",{switch_uav:e.uavref})},children:e.name})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return i("del_uav",{del_uav:e.uavref})}})})]},e.uavref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No UAVs Paired."})})]})})}},19458:function(e,n,t){"use strict";n.__esModule=!0,n.NtosWordProcessor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosWordProcessor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.error,u=l.browsing,m=l.files,p=(l.usbconnected,l.usbfiles,l.filename),C=l.filedata;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:d,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",s,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){return i("PRG_backtomenu")}})]})||u&&(0,o.createComponentVNode)(2,c.Section,{title:"File Browser",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){return i("PRG_closebrowser")}}),children:(0,o.createComponentVNode)(2,c.Section,{title:"Available documents (local)",level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Size (GQ)"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0})]}),m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"file-word",onClick:function(){return i("PRG_openfile",{PRG_openfile:e.name})},children:"Open"})})]},n)}))]})})})||(0,o.createComponentVNode)(2,c.Section,{title:"Document: "+p,children:[(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_newfile")},children:"New"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_loadmenu")},children:"Load"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_savefile")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_saveasfile")},children:"Save As"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_editfile")},children:"Edit"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_txtrpeview")},children:"Preview"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_taghelp")},children:"Formatting Help"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!C,onClick:function(){return i("PRG_printfile")},children:"Print"})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C}})})]})})})}},18326:function(e,n,t){"use strict";n.__esModule=!0,n.OmniFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniFilter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return l("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return l("configure")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:m?m.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.dir+" Port",children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:e.input,icon:"compress-arrows-alt",onClick:function(){return l("switch_mode",{mode:"in",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:e.output,icon:"expand-arrows-alt",onClick:function(){return l("switch_mode",{mode:"out",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:e.input||e.output,content:e.f_type||"None",onClick:function(){return l("switch_filter",{mode:e.f_type,dir:e.dir})}})],4):i(e)},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return l("set_flow_rate")}}):p/10+" L/s"})]})})]})})}},78588:function(e,n,t){"use strict";n.__esModule=!0,n.OmniMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return i("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return i("configure")}})],4),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Port"}),u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Input"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Mode"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Concentration"}),u?(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map((function(e){return(0,o.createComponentVNode)(2,l,{port:e,config:u},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return i("set_flow_rate")}}):p/10+" L/s"})]})})]})})};var l=function(e,n){var t=(0,r.useBackend)(n).act,a=e.port,l=e.config;return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:a.dir+" Port"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:a.input,disabled:a.output,icon:"compress-arrows-alt",onClick:function(){return t("switch_mode",{mode:a.input?"none":"in",dir:a.dir})}}):i(a)}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:a.output,icon:"expand-arrows-alt",onClick:function(){return t("switch_mode",{mode:"out",dir:a.dir})}}):100*a.concentration+"%"}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",width:"20%",children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",icon:"wrench",disabled:!a.input,content:a.input?100*a.concentration+" %":"-",onClick:function(){return t("switch_con",{dir:a.dir})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{icon:a.con_lock?"lock":"lock-open",disabled:!a.input,selected:a.con_lock,content:a.f_type||"None",onClick:function(){return t("switch_conlock",{dir:a.dir})}})})],4):null]})}},48826:function(e,n,t){"use strict";n.__esModule=!0,n.OperatingComputer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(85952),i=t(74814),l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.OperatingComputer=function(e,n){var t,r=(0,c.useBackend)(n),l=r.act,d=r.data,s=d.hasOccupant,u=d.choice;return t=u?(0,o.createComponentVNode)(2,C):s?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,a.Window,{width:650,height:455,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!u,icon:"user",onClick:function(){return l("choiceOff")},children:"Patient"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("choiceOn")},children:"Options"})]}),(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:t})]})})};var m=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Patient",level:"2",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:t.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[t.stat][0],children:l[t.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxHealth,value:t.health/t.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),d.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e[0]+" Damage",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]])},n)},n)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxTemp,value:t.bodyTemperature/t.maxTemp,color:u[t.temperatureSuitability+3],children:[(0,r.round)(t.btCelsius),"\xb0C, ",(0,r.round)(t.btFaren),"\xb0F"]})}),!!t.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.bloodMax,value:t.bloodLevel/t.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[t.bloodPercent,"%, ",t.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pulse",children:[t.pulse," BPM"]})],4)]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Current Procedure",level:"2",children:t.surgery&&t.surgery.length?(0,o.createComponentVNode)(2,i.LabeledList,{children:t.surgery.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current State",children:e.currentStage}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible Next Steps",children:e.nextSteps.map((function(e){return(0,o.createVNode)(1,"div",null,e,0,null,e)}))})]})},e.name)}))}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No procedure ongoing."})})],4)},p=function(){return(0,o.createComponentVNode)(2,i.Flex,{textAlign:"center",height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No patient detected."]})})},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,a=t.data,l=a.verbose,d=a.health,s=a.healthAlarm,u=a.oxy,m=a.oxyAlarm,p=a.crit;return(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Loudspeaker",children:(0,o.createComponentVNode)(2,i.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r(l?"verboseOff":"verboseOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer",children:(0,o.createComponentVNode)(2,i.Button,{selected:d,icon:d?"toggle-on":"toggle-off",content:d?"On":"Off",onClick:function(){return r(d?"healthOff":"healthOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:s,stepPixelSize:"5",ml:"0",format:function(e){return e+"%"},onChange:function(e,n){return r("health_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm",children:(0,o.createComponentVNode)(2,i.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return r(u?"oxyOff":"oxyOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:m,stepPixelSize:"5",ml:"0",onChange:function(e,n){return r("oxy_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Critical Alert",children:(0,o.createComponentVNode)(2,i.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){return r(p?"critOff":"critOn")}})})]})}},51888:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapDisperser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapDisperser=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.faillink,s=l.calibration,u=l.overmapdir,m=l.cal_accuracy,p=l.strength,C=l.range,h=l.next_shot,N=l.nopower,V=(l.skill,l.chargeload);return d?(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",children:(0,o.createComponentVNode)(2,c.Section,{title:"Targeting",textAlign:"center",children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{actToDo:"choose",selected:function(e){return e===u}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"74%",grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Charge",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Load Type",children:V}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cooldown",children:0===h&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Ready"})||h>1&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," Seconds",(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Calibration",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"exchange-alt",onClick:function(){return a("skill_calibration")},children:"Pre-Calibration"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["Cal #",n,":",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"random",onClick:function(){return a("calibration",{calibration:n})},children:e.toString()})]},n)}))})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Setup",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Strength",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",onClick:function(){return a("strength")},children:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radius",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return a("range")},children:C})})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return a("fire")},children:"Fire ORB"})})]})}},25123:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapEnginesContent=n.OvermapEngines=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapEngines=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:390,height:530,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.global_state,d=i.global_limit,s=i.engines_info,u=i.total_thrust;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Engines",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,onClick:function(){return a("global_toggle")},children:l?"Shut All Engines Down":"Start All Engines"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_global_limit")},children:[d,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Thrust",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:0!==n&&-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"80%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:["Engine #",n+1," | Thrust: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust})," | Limit: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust_limiter,format:function(e){return e+"%"}})]}),children:(0,o.createComponentVNode)(2,c.Section,{width:"127%",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Type",children:e.eng_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,c.Box,{color:e.eng_on?1===e.eng_on?"good":"average":"bad",children:e.eng_on?1===e.eng_on?"Online":"Booting":"Offline"}),e.eng_status.map((function(e){return Array.isArray(e)?(0,o.createComponentVNode)(2,c.Box,{color:e[1],children:e[0]}):(0,o.createComponentVNode)(2,c.Box,{children:e})}))]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Thrust",children:e.eng_thrust}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:-.1,engine:e.eng_reference})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_limit",{engine:e.eng_reference})},children:[e.eng_thrust_limiter,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:.1,engine:e.eng_reference})},icon:"plus"})]})]})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,iconSpin:-1===e.eng_on,color:-1===e.eng_on?"purple":null,selected:1===e.eng_on,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:e.eng_reference})},children:e.eng_on?1===e.eng_on?"Shutoff":"Booting":"Startup"})})]},n)}))})],4)};n.OvermapEnginesContent=i},63836:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFull=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(25123),l=t(89380),d=t(51932);n.OvermapFull=function(e,n){var t=(0,r.useLocalState)(n,"overmapFullState",0),s=t[0],u=t[1];return(0,o.createComponentVNode)(2,a.Window,{width:800,height:800,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:"Engines"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:"Helm"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:"Sensors"})]}),0===s&&(0,o.createComponentVNode)(2,i.OvermapEnginesContent),1===s&&(0,o.createComponentVNode)(2,l.OvermapHelmContent),2===s&&(0,o.createComponentVNode)(2,d.OvermapShipSensorsContent)]})})}},89380:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFlightDataWrap=n.OvermapHelmContent=n.OvermapHelm=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapHelm=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:565,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"40%",height:"180px",children:(0,o.createComponentVNode)(2,d)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"25%",height:"180px",children:(0,o.createComponentVNode)(2,s)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"35%",height:"180px",children:(0,o.createComponentVNode)(2,u)})]}),(0,o.createComponentVNode)(2,m)],4)};n.OvermapHelmContent=l;var d=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Flight Data",16),(0,o.createComponentVNode)(2,i.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})};n.OvermapFlightDataWrap=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.canburn,s=l.manual_control;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Manual Control",16),(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{disabled:!d,actToDo:"move"})})}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",mt:1,children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,o.createComponentVNode)(2,c.Button,{selected:s,onClick:function(){return a("manual")},icon:"compass",children:s?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.dest,d=i.d_x,s=i.d_y,u=i.speedlimit,m=i.autopilot;return i.autopilot_disabled?(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return a("apilot_lock")}})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{setx:!0})},children:d}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{sety:!0})},children:s})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed Limit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tachometer-alt",onClick:function(){return a("speedlimit")},children:[u," Gm/h"]})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,selected:m,disabled:!l,icon:"robot",onClick:function(){return a("apilot")},children:m?"Engaged":"Disengaged"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return a("apilot_lock")},children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.sector,d=i.s_x,s=i.s_y,u=i.sector_info,m=i.landed,p=i.locations;return(0,o.createComponentVNode)(2,c.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordinates",children:[d," : ",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Data",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:m})]}),(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"save",onClick:function(){return a("add",{add:"current"})},children:"Save Current Position"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"sticky-note",onClick:function(){return a("add",{add:"new"})},children:"Add New Entry"})})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,scrollable:!0,height:"130px",children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Coordinates"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.x," : ",e.y]}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",onClick:function(){return a("setds",{x:e.x,y:e.y})},children:"Plot Course"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return a("remove",{remove:e.reference})},children:"Remove"})]})]},e.name)}))]})})]})}},12640:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapNavigationContent=n.OvermapNavigation=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapNavigation=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sector,s=l.s_x,u=l.s_y,m=l.sector_info,p=l.viewing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Current Location",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:p,onClick:function(){return a("viewing")},children:"Map View"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordinates",children:[s," : ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Additional Information",children:m})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flight Data",children:(0,o.createComponentVNode)(2,i.OvermapFlightData,{disableLimiterControls:!0})})],4)};n.OvermapNavigationContent=l},84031:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShieldGenerator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShieldGenerator=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:500,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=i.modes,u=i.offline_for;return u?(0,o.createComponentVNode)(2,c.Section,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",u," seconds."]}):(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Section,{title:"Field Calibration",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:e.status,onClick:function(){return a("toggle_mode",{toggle_mode:e.flag})},children:e.status?"Enabled":"Disabled"}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e.desc}),(0,o.createComponentVNode)(2,c.Box,{mt:.5,children:["Multiplier: ",e.multiplier]})]},e.name)}))})],4)},l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.running,l=a.overloaded,d=a.mitigation_max,s=a.mitigation_physical,u=a.mitigation_em,m=a.mitigation_heat,p=a.field_integrity,C=a.max_energy,h=a.current_energy,N=a.percentage_energy,V=a.total_segments,b=a.functional_segments,f=a.field_radius,g=a.target_radius,k=a.input_cap_kw,v=a.upkeep_power_usage,B=a.power_usage,L=a.spinup_counter;return(0,o.createComponentVNode)(2,c.Section,{title:"System Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Generator is",children:1===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Shutting Down"})||2===i&&(l&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Overloaded"})||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Running"}))||3===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Inactive"})||4===i&&(0,o.createComponentVNode)(2,c.Box,{color:"blue",children:["Spinning Up\xa0",g!==f&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[2*L,"s"]})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Offline"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Storage",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,maxValue:C,children:[h," / ",C," MJ (",N,"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shield Integrity",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mitigation",children:[u,"% EM / ",s,"% PH / ",m,"% HE / ",d,"% MAX"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:v})," kW"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Energy Use",children:k&&(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:B,maxValue:k,children:[B," / ",k," kW"]})})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:B})," kW (No Limit)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Field Size",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"\xa0/\xa0",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V})," m\xb2 (radius ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),", target ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),")"]})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.running,d=i.hacked,s=i.idle_multiplier,u=i.idle_valid_values;return(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createFragment)([l>=2&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("begin_shutdown")},selected:!0,children:"Turn off"}),3===l&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("start_generator")},children:"Turn on"}),l&&d&&(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",onClick:function(){return a("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",onClick:function(){return a("set_range")},children:"Set Field Range"}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",onClick:function(){return a("set_input_cap")},children:"Set Input Cap"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Set inactive power use intensity",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e===s,disabled:4===l,onClick:function(){return a("switch_idle",{switch_idle:e})},children:e},e)}))})})]})}},51932:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShipSensorsContent=n.OvermapShipSensors=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShipSensors=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:375,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.viewing,d=i.on,s=i.range,u=i.health,m=i.max_health,p=i.heat,C=i.critical_heat,h=i.status,N=i.contacts;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:l,onClick:function(){return a("viewing")},children:"Map View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return a("toggle_sensor")},children:d?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,c.Button,{icon:"signal",onClick:function(){return a("range")},children:s})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*m,Infinity],average:[.25*m,.75*m],bad:[-Infinity,.25*m]},value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*C,Infinity],average:[.5*C,.75*C],good:[-Infinity,.5*C]},value:p,maxValue:C,children:p<.5*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Temperature low."})||p<.75*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Sensor temperature high!"})||(0,o.createComponentVNode)(2,c.Box,{children:"TEMPERATURE CRITICAL: Disable or reduce power immediately!"})})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Contacts",children:N.length&&N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"search",onClick:function(){return a("scan",{scan:e.ref})},children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,inline:!0,children:["Scan: ",e.name]}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[", bearing: ",e.bearing,"\xb0"]})]},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No contacts on sensors."})}),"MISSING"===i.status&&(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wifi",onClick:function(){return a("link")},children:"Link up with sensor suite?"})})||null],0)};n.OvermapShipSensorsContent=i},57966:function(e,n,t){"use strict";n.__esModule=!0,n.ParticleAccelerator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ParticleAccelerator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.assembled,s=l.power,u=l.strength;return(0,o.createComponentVNode)(2,a.Window,{width:350,height:185,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Run Scan",onClick:function(){return i("scan")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:d?"good":"bad",children:d?"Ready - All parts in place":"Unable to detect all parts"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Particle Accelerator Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:!d,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Particle Strength",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:!d,onClick:function(){return i("remove_strength")}})," ",String(u).padStart(1,"0")," ",(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:!d,onClick:function(){return i("add_strength")}})]})]})})]})})}},80374:function(e,n,t){"use strict";n.__esModule=!0,n.PartsLathe=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(95481);n.PartsLathe=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.panelOpen,s.copyBoard),m=s.copyBoardReqComponents,p=s.queue,C=s.building,h=s.buildPercent,N=s.error,V=s.recipies;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[N&&(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:["Missing Materials: ",N]})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,l.Materials,{displayAllMat:!0})}),C&&(0,o.createComponentVNode)(2,c.Section,{title:"Currently Building",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:(0,i.toTitleCase)(C)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:h,maxValue:100})})]})})||null,u&&(0,o.createComponentVNode)(2,c.Section,{title:"Circuit Reader",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Loaded Circuit",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return d("ejectBoard")},children:"Eject"}),children:(0,i.toTitleCase)(u)})}),m&&m.length&&(0,o.createFragment)([m.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[e.qty," x ",(0,i.toTitleCase)(e.name)]},e.name)})),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queueBoard")},children:"Build All"})],0)||(0,o.createComponentVNode)(2,c.Box,{children:"Board has no required components."})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Queue",children:p.length&&p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["#",n+1,": ",(0,i.toTitleCase)(e),(n>0||!C)&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"times",onClick:function(){return d("cancel",{cancel:n+1})},children:"Cancel"})||null]},e)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Recipes",children:V.length&&V.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queue",{queue:e.type})},children:(0,i.toTitleCase)(e.name)})},e.name)}))})]})})}},83987:function(e,n,t){"use strict";n.__esModule=!0,n.PathogenicIsolator=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(16007),a=t(74814),i=t(85952),l=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.can_print,l=e.args;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",title:l.name||"Virus",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!i,icon:"print",content:"Print",onClick:function(){return c("print",{type:"virus_record",vir:l.record})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return c("modal_close")}})],4),children:(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Spread",children:[l.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Possible cure",children:l.antigen}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rate of Progression",children:l.rate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Antibiotic Resistance",children:[l.resistance,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species Affected",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:l.symptoms.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0"]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]})]},e.stage)}))})})]})})})};n.PathogenicIsolator=function(e,n){var t=(0,r.useBackend)(n),u=(t.act,t.data.isolating),m=(0,r.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=null;return 0===p?h=(0,o.createComponentVNode)(2,d):1===p&&(h=(0,o.createComponentVNode)(2,s)),(0,c.modalRegisterBodyOverride)("virus",l),(0,o.createComponentVNode)(2,i.Window,{height:500,width:520,resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[u&&(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Home"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Database"})]}),h]})]})};var d=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.syringe_inserted,d=i.pathogen_pool,s=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Pathogens",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!s,onClick:function(){return c("print",{type:"patient_diagnosis"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Syringe",disabled:!l,onClick:function(){return c("eject")}})],4),children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[(0,o.createVNode)(1,"u",null,[(0,o.createTextVNode)("Stamm #"),e.unique_id],0),e.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Isolate",onClick:function(){return c("isolate",{isolate:e.reference})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Database",disabled:!e.is_in_database,onClick:function(){return c("view_entry",{vir:e.record})}})]})]})}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",mb:1,children:e.name}),e.dna]})]},e.unique_id)}))||(l?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No samples detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No syringe inserted."}))})},s=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.database,d=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Database",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!d,onClick:function(){return c("print",{type:"virus_list"})}}),children:l.length&&l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("view_entry",{vir:e.record})},children:e.name},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"The viral database is empty."})})}},72586:function(e,n,t){"use strict";n.__esModule=!0,n.Pda=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(73218),l=t(75168);n.Pda=function(e,n){var t=(0,r.useBackend)(n),m=(t.act,t.data),p=m.app,C=m.owner,h=m.useRetro;if(!C)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var N=function(e){var n;try{n=l("./"+e+".js")}catch(t){if("MODULE_NOT_FOUND"===t.code)return(0,i.routingError)("notFound",e);throw t}return n[e]||(0,i.routingError)("missingExport",e)}(p.template),V=(0,r.useLocalState)(n,"settingsMode",!1),b=V[0],f=V[1];return(0,o.createComponentVNode)(2,a.Window,{width:580,height:670,theme:h?"pda-retro":null,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{settingsMode:b,setSettingsMode:f}),b&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Box,{mb:8}),(0,o.createComponentVNode)(2,u,{setSettingsMode:f})]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.settingsMode,d=e.setSettingsMode,s=i.idInserted,u=i.idLink,m=(i.cartridge_name,i.stationTime);return(0,o.createComponentVNode)(2,c.Box,{mb:1,children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-between",children:[!!s&&(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",color:"transparent",onClick:function(){return a("Authenticate")},content:u})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:m}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{selected:l,onClick:function(){return d(!l)},icon:"cog"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("Retro")},icon:"adjust"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.idInserted,d=i.idLink,s=i.cartridge_name,u=i.touch_silent;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",content:"Retro Theme",onClick:function(){return a("Retro")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Touch Sounds",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",selected:!u,content:u?"Disabled":"Enabled",onClick:function(){return a("TouchSounds")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cartridge",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Eject")},content:s})}),!!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Authenticate")},content:d})})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.setSettingsMode,d=i.app,s=i.useRetro;return(0,o.createComponentVNode)(2,c.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:s?"#6f7961":"#1b1b1b",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return a("Back")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){l(!1),a("Home")}})})]})})}},67589:function(e,n,t){"use strict";n.__esModule=!0,n.PersonalCrafting=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t=.5?"good":s>.15&&"average")||"bad";return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!d.anchored&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Generator not anchored."}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power switch",children:(0,o.createComponentVNode)(2,c.Button,{icon:d.active?"power-off":"times",onClick:function(){return l("toggle_power")},selected:d.active,disabled:!d.ready_to_boot,children:d.active?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Type",buttons:d.fuel_stored>=1&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"eject",disabled:d.active,onClick:function(){return l("eject")},children:"Eject"}),children:(0,o.createComponentVNode)(2,c.Box,{color:u,children:[d.fuel_stored,"cm\xb3 ",d.sheet_name]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current fuel level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.fuel_stored/d.fuel_capacity,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[d.fuel_stored,"cm\xb3 / ",d.fuel_capacity,"cm\xb3"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Usage",children:[d.fuel_usage," cm\xb3/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.temperature_current,maxValue:d.temperature_max+30,color:d.temperature_overheat?"bad":"good",children:[(0,i.round)(d.temperature_current),"\xb0C"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current output",color:d.unsafe_output?"bad":null,children:d.power_output}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Adjust output",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",onClick:function(){return l("lower_power")},children:d.power_generated}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("higher_power")},children:d.power_generated})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power available",children:(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:!d.connected&&"bad",children:d.connected?d.power_available:"Unconnected"})})]})})]})})}},82564:function(e,n,t){"use strict";n.__esModule=!0,n.PortablePump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(34227);n.PortablePump=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.direction,u=d.target_pressure,m=d.default_pressure,p=d.min_pressure,C=d.max_pressure;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:375,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Pump",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"sign-in-alt":"sign-out-alt",content:s?"In":"Out",selected:s,onClick:function(){return l("direction")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:p,maxValue:C,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(e,n){return l("pressure",{pressure:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",disabled:u===p,onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",disabled:u===m,onClick:function(){return l("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",disabled:u===C,onClick:function(){return l("pressure",{pressure:"max"})}})]})]})})]})})}},24901:function(e,n,t){"use strict";n.__esModule=!0,n.PortableScrubber=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952)),i=t(34227);n.PortableScrubber=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.rate,u=d.minrate,m=d.maxrate;return(0,o.createComponentVNode)(2,a.Window,{width:320,height:350,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Power Regulator",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Rate",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:u,maxValue:m,value:s,unit:"L/s",onChange:function(e,n){return l("volume_adj",{vol:n})}})})})})]})})}},31695:function(e,n,t){"use strict";n.__esModule=!0,n.PortableTurret=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.PortableTurret=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.on,u=l.lethal,m=l.lethal_is_configurable,p=l.targetting_is_configurable,C=l.check_weapons,h=l.neutralize_noaccess,N=l.neutralize_norecord,V=l.neutralize_criminals,b=l.neutralize_all,f=l.neutralize_nonsynth,g=l.neutralize_unidentified,k=l.neutralize_down;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe an ID card to ",d?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:d,onClick:function(){return i("power")}})}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Lethals",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"exclamation-triangle":"times",content:u?"On":"Off",color:u?"bad":"",disabled:d,onClick:function(){return i("lethal")}})})]})}),!!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Humanoid Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:V,content:"Wanted Criminals",disabled:d,onClick:function(){return i("autharrest")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:N,content:"No Sec Record",disabled:d,onClick:function(){return i("authnorecord")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:C,content:"Unauthorized Weapons",disabled:d,onClick:function(){return i("authweapon")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:h,content:"Unauthorized Access",disabled:d,onClick:function(){return i("authaccess")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Other Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:g,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:d,onClick:function(){return i("authxeno")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:f,content:"All Non-Synthetics",disabled:d,onClick:function(){return i("authsynth")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:k,content:"Downed Targets",disabled:d,onClick:function(){return i("authdown")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:d,onClick:function(){return i("authall")}})]})],4)]})})}},89793:function(e,n,t){"use strict";n.__esModule=!0,n.AreaCharge=n.PowerMonitorFocus=n.PowerMonitorContent=n.PowerMonitor=n.powerRank=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(41860),i=t(34380),l=t(71494),d=t(74814),s=t(85952),u=5e5,m=function(e){var n=String(e.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(n)};n.powerRank=m;n.PowerMonitor=function(){return(0,o.createComponentVNode)(2,s.Window,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)})})};var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(c.map_levels,c.all_sensors),i=c.focus;if(i)return(0,o.createComponentVNode)(2,C,{focus:i});var s=(0,o.createComponentVNode)(2,d.Box,{color:"bad",children:"No sensors detected"});return a&&(s=(0,o.createComponentVNode)(2,d.Table,{children:a.map((function(e){return(0,o.createComponentVNode)(2,d.Table.Row,{children:(0,o.createComponentVNode)(2,d.Table.Cell,{children:(0,o.createComponentVNode)(2,d.Button,{content:e.name,icon:e.alarm?"bell":"sign-in-alt",onClick:function(){return r("setsensor",{id:e.name})}})})},e.name)}))})),(0,o.createComponentVNode)(2,d.Section,{title:"No active sensor. Listing all.",buttons:(0,o.createComponentVNode)(2,d.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){return r("refresh")}}),children:s})};n.PowerMonitorContent=p;var C=function(e,n){var t=(0,l.useBackend)(n),i=t.act,s=(t.data,e.focus),p=s.history,C=(0,l.useLocalState)(n,"sortByField",null),V=C[0],b=C[1],f=p.supply[p.supply.length-1]||0,g=p.demand[p.demand.length-1]||0,k=p.supply.map((function(e,n){return[n,e]})),v=p.demand.map((function(e,n){return[n,e]})),B=Math.max.apply(Math,[u].concat(p.supply,p.demand)),L=(0,c.flow)([(0,r.map)((function(e,n){return Object.assign({},e,{id:e.name+n})})),"name"===V&&(0,r.sortBy)((function(e){return e.name})),"charge"===V&&(0,r.sortBy)((function(e){return-e.charge})),"draw"===V&&(0,r.sortBy)((function(e){return-m(e.load)}),(function(e){return-parseFloat(e.load)})),"problems"===V&&(0,r.sortBy)((function(e){return e.eqp}),(function(e){return e.lgt}),(function(e){return e.env}),(function(e){return e.charge}),(function(e){return e.name}))])(s.areas);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){return i("clear")}})}),(0,o.createComponentVNode)(2,d.Flex,{mx:-.5,mb:1,children:[(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,width:"200px",children:(0,o.createComponentVNode)(2,d.Section,{children:(0,o.createComponentVNode)(2,d.LabeledList,{children:[(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Supply",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:f,minValue:0,maxValue:B,color:"teal",children:(0,a.toFixed)(f/1e3)+" kW"})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Draw",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:g,minValue:0,maxValue:B,color:"pink",children:(0,a.toFixed)(g/1e3)+" kW"})})]})})}),(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,grow:1,children:(0,o.createComponentVNode)(2,d.Section,{position:"relative",height:"100%",children:[(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:k,rangeX:[0,k.length-1],rangeY:[0,B],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:v,rangeX:[0,v.length-1],rangeY:[0,B],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,o.createComponentVNode)(2,d.Section,{children:[(0,o.createComponentVNode)(2,d.Box,{mb:1,children:[(0,o.createComponentVNode)(2,d.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"name"===V,content:"Name",onClick:function(){return b("name"!==V&&"name")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"charge"===V,content:"Charge",onClick:function(){return b("charge"!==V&&"charge")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"draw"===V,content:"Draw",onClick:function(){return b("draw"!==V&&"draw")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"problems"===V,content:"Problems",onClick:function(){return b("problems"!==V&&"problems")}})]}),(0,o.createComponentVNode)(2,d.Table,{children:[(0,o.createComponentVNode)(2,d.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,d.Table.Cell,{children:"Area"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,children:"Charge"}),(0,o.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",children:"Draw"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),L.map((function(e,n){return(0,o.createVNode)(1,"tr","Table__row candystripe",[(0,o.createVNode)(1,"td",null,e.name,0),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,o.createComponentVNode)(2,h,{charging:e.charging,charge:e.charge}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",e.load,0),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.eqp}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.lgt}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.env}),2)],4,null,e.id)}))]})]})],4)};n.PowerMonitorFocus=C;var h=function(e){var n=e.charging,t=e.charge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Icon,{width:"18px",textAlign:"center",name:0===n&&(t>50?"battery-half":"battery-quarter")||1===n&&"bolt"||2===n&&"battery-full",color:0===n&&(t>50?"yellow":"red")||1===n&&"yellow"||2===n&&"green"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,a.toFixed)(t)+"%"})],4)};n.AreaCharge=h,h.defaultHooks=i.pureComponentHooks;var N=function(e){var n=e.status,t=Boolean(2&n),r=Boolean(1&n),c=(t?"On":"Off")+" ["+(r?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:t?"good":"bad",content:r?undefined:"M",title:c})};N.defaultHooks=i.pureComponentHooks},81121:function(e,n,t){"use strict";n.__esModule=!0,n.PressureRegulator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.PressureRegulator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=(l.max_pressure,l.input_pressure),m=l.output_pressure,p=l.regulate_mode,C=l.set_flow_rate,h=l.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:370,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Input Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h/10})," L/s"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:d?"Unlocked":"Closed",selected:d,onClick:function(){return i("toggle_valve")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Off",selected:0===p,onClick:function(){return i("regulate_mode",{mode:"off"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"Input",selected:1===p,onClick:function(){return i("regulate_mode",{mode:"input"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"Output",selected:2===p,onClick:function(){return i("regulate_mode",{mode:"output"})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_press",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_press",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_press",{press:"set"})}})],4),children:[s/100," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_flow_rate",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_flow_rate",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_flow_rate",{press:"set"})}})],4),children:[C/10," L/s"]})]})})]})})}},14210:function(e,n,t){"use strict";n.__esModule=!0,n.PrisonerManagement=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(58083);n.PrisonerManagement=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.chemImplants,u=l.trackImplants;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d&&(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",onClick:function(){return i("lock")},children:"Unlock"})})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Interface Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return i("lock")},children:"Lock Interface"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Chemical Implants",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Inject"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.host}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.units,"u remaining"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:1})},children:"(1)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:5})},children:"(5)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:10})},children:"(10)"})]})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Tracking Implants",children:u.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Message"})]}),u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.host," (",e.id,")"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.loc}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("warn",{imp:e.ref})},children:"Message"})})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})})],4)})})}},43996:function(e,n,t){"use strict";n.__esModule=!0,n.RCONContent=n.RCON=void 0;var o=t(39812),r=t(41860),c=t(58083),a=t(71494),i=t(74814),l=t(85952),d=t(2497),s=1e3;n.RCON=function(e,n){return(0,o.createComponentVNode)(2,l.Window,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,r=(0,a.useLocalState)(n,"tabIndex",0),c=r[0],l=r[1];return 0===c?t=(0,o.createComponentVNode)(2,m):1===c&&(t=(0,o.createComponentVNode)(2,h)),(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===c,onClick:function(){return l(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===c,onClick:function(){return l(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,o.createComponentVNode)(2,i.Box,{m:2,children:t})],4)};n.RCONContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.smes_info);return(0,o.createComponentVNode)(2,i.Section,{title:"SMESs",children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:r.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,p,{smes:e})},e.RCON_tag)}))})})},p=function(e,n){(0,a.useBackend)(n).act;var t=e.smes,c=t.capacityPercent,l=t.capacity,d=t.charge,s=(t.inputAttempt,t.inputting,t.inputLevel,t.inputLevelMax,t.inputAvailable,t.outputAttempt,t.outputting,t.outputLevel,t.outputLevelMax,t.outputUsed,t.RCON_tag);return(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{flexBasis:"40%",fontSize:1.2,children:s}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*c,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,r.round)(d/6e4,1)," kWh / ",(0,r.round)(l/6e4)," kWh (",c,"%)"]})})]})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"input"})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"output"})}),(0,o.createComponentVNode)(2,i.Stack.Divider)]})},C=function(e,n){var t,r,l,u,m,p,C,h=(0,a.useBackend)(n).act,N=e.way,V=e.smes,b=(V.capacityPercent,V.capacity,V.charge,V.inputAttempt),f=V.inputting,g=V.inputLevel,k=V.inputLevelMax,v=V.inputAvailable,B=V.outputAttempt,L=V.outputting,_=V.outputLevel,x=V.outputLevelMax,w=V.outputUsed,S=V.RCON_tag;switch(N){case"input":t=g,r=k,l=v,"IN",u="smes_in_toggle",m="smes_in_set",b,p=b?f?"green":"yellow":null,C=b?f?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":t=_,r=x,l=w,"OUT",u="smes_out_toggle",m="smes_out_set",B,p=B?L?"green":"yellow":null,C=B?L?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off."}return(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"20%",children:(0,d.capitalize)(N)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:p,tooltip:C,onClick:function(){return h(u,{smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===t,onClick:function(){return h(m,{target:"min",smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===t,onClick:function(){return h(m,{adjust:-1e4,smes:S})}})]}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:t/s,fillValue:l/s,minValue:0,maxValue:r/s,step:5,stepPixelSize:4,format:function(e){return(0,c.formatPower)(l,1)+"/"+(0,c.formatPower)(e*s,1)},onDrag:function(e,n){return h(m,{target:n*s,smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:t===r,onClick:function(){return h(m,{adjust:1e4,smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:t===r,onClick:function(){return h(m,{target:"max",smes:S})}})]})]})})]})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.breaker_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Breakers",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c?c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.RCON_tag,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.enabled?"Enabled":"Disabled",selected:e.enabled,color:e.enabled?null:"bad",onClick:function(){return r("toggle_breaker",{breaker:e.RCON_tag})}})},e.RCON_tag)})):(0,o.createComponentVNode)(2,i.LabeledList.Item,{color:"bad",children:"No breakers detected."})})})}},92141:function(e,n,t){"use strict";n.__esModule=!0,n.RIGSuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.RIGSuit=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),u=i.interfacelock,m=i.malf,p=i.aicontrol,C=i.ai,h=null;return u||m?h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!C&&p&&(h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,o.createComponentVNode)(2,a.Window,{height:480,width:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h||(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chargestatus,d=i.charge,s=i.maxcharge,u=i.aioverride,m=i.sealing,p=i.sealed,C=i.cooling,h=i.emagged,N=i.securitycheck,V=i.coverlock,b=(0,o.createComponentVNode)(2,c.Button,{content:"Suit "+(m?"seals working...":p?"is Active":"is Inactive"),icon:m?"redo":p?"power-off":"lock-open",iconSpin:m,disabled:m,selected:p,onClick:function(){return a("toggle_seals")}}),f=(0,o.createComponentVNode)(2,c.Button,{content:"Suit Cooling "+(C?"is Active":"is Inactive"),icon:"power-off",selected:C,onClick:function(){return a("toggle_cooling")}}),g=(0,o.createComponentVNode)(2,c.Button,{content:"AI Control "+(u?"Enabled":"Disabled"),selected:u,icon:"robot",onClick:function(){return a("toggle_ai_control")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([b,g,f],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Supply",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:50,value:l,ranges:{good:[35,Infinity],average:[15,35],bad:[-Infinity,15]},children:[d," / ",s]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Status",children:h||!N?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,o.createComponentVNode)(2,c.Button,{icon:V?"lock":"lock-open",content:V?"Locked":"Unlocked",onClick:function(){return a("toggle_suit_lock")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealing,s=l.helmet,u=l.helmetDeployed,m=l.gauntlets,p=l.gauntletsDeployed,C=l.boots,h=l.bootsDeployed,N=l.chest,V=l.chestDeployed;return(0,o.createComponentVNode)(2,c.Section,{title:"Hardware",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:u?"sign-out-alt":"sign-in-alt",content:u?"Deployed":"Deploy",disabled:d,selected:u,onClick:function(){return a("toggle_piece",{piece:"helmet"})}}),children:s?(0,i.capitalize)(s):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gauntlets",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Deployed":"Deploy",disabled:d,selected:p,onClick:function(){return a("toggle_piece",{piece:"gauntlets"})}}),children:m?(0,i.capitalize)(m):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Boots",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sign-out-alt":"sign-in-alt",content:h?"Deployed":"Deploy",disabled:d,selected:h,onClick:function(){return a("toggle_piece",{piece:"boots"})}}),children:C?(0,i.capitalize)(C):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chestpiece",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:V?"sign-out-alt":"sign-in-alt",content:V?"Deployed":"Deploy",disabled:d,selected:V,onClick:function(){return a("toggle_piece",{piece:"chest"})}}),children:N?(0,i.capitalize)(N):"ERROR"})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealed,s=l.sealing,u=l.primarysystem,m=l.modules;return!d||s?(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,i.capitalize)(u||"None")]}),m&&m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Section,{level:2,title:(0,i.toTitleCase)(e.name)+(e.damage?" (damaged)":""),buttons:(0,o.createFragment)([e.can_select?(0,o.createComponentVNode)(2,c.Button,{selected:e.name===u,content:e.name===u?"Selected":"Select",icon:"arrow-circle-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select"})}}):null,e.can_use?(0,o.createComponentVNode)(2,c.Button,{content:e.engagestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"engage"})}}):null,e.can_toggle?(0,o.createComponentVNode)(2,c.Button,{selected:e.is_active,content:e.is_active?e.deactivatestring:e.activatestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"toggle"})}}):null],0),children:[e.damage>=2?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:[(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Engage: ",e.engagecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Active: ",e.activecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Passive: ",e.passivecost]})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:e.desc})]}),e.charges?(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Module Charges",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Selected",children:(0,i.capitalize)(e.chargetype)}),e.charges.map((function(n,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(n.caption),children:(0,o.createComponentVNode)(2,c.Button,{selected:e.realchargetype===n.index,icon:"arrow-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select_charge_type",charge_type:n.index})}})},n.caption)}))]})})}):null]},e.name)}))]})}},17481:function(e,n,t){"use strict";n.__esModule=!0,n.Radio=void 0;var o=t(39812),r=(t(64499),t(41860)),c=t(71494),a=t(74814),i=t(76270),l=t(85952);n.Radio=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.rawfreq,m=s.minFrequency,p=s.maxFrequency,C=s.listening,h=s.broadcasting,N=s.subspace,V=s.subspaceSwitchable,b=s.chan_list,f=s.loudspeaker,g=s.mic_cut,k=s.spk_cut,v=s.useSyndMode,B=i.RADIO_CHANNELS.find((function(e){return e.freq===Number(u)})),L=156;return b&&b.length>0?L+=28*b.length+6:L+=24,V&&(L+=38),(0,o.createComponentVNode)(2,l.Window,{width:310,height:L,resizable:!0,theme:v?"syndicate":"",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:m/10,maxValue:p/10,value:u/10,format:function(e){return(0,r.toFixed)(e,1)},onDrag:function(e,n){return d("setFrequency",{freq:(0,r.round)(10*n)})}}),B&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:B.color,ml:2,children:["[",B.name,"]"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Audio",children:[(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:C?"volume-up":"volume-mute",selected:C,disabled:k,onClick:function(){return d("listen")}}),(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:h?"microphone":"microphone-slash",selected:h,disabled:g,onClick:function(){return d("broadcast")}}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"bullhorn",selected:N,content:"Subspace Tx "+(N?"ON":"OFF"),onClick:function(){return d("subspace")}})}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"volume-up":"volume-mute",selected:f,content:"Loudspeaker",onClick:function(){return d("toggleLoudspeaker")}})})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Channels",children:[(!b||0===b.length)&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:b?b.map((function(e){var n=i.RADIO_CHANNELS.find((function(n){return n.freq===Number(e.freq)})),t="default";return n&&(t=n.color),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.display_name,labelColor:t,textAlign:"right",children:e.secure_channel&&N?(0,o.createComponentVNode)(2,a.Button,{icon:e.sec_channel_listen?"square-o":"check-square-o",selected:!e.sec_channel_listen,content:e.sec_channel_listen?"Off":"On",onClick:function(){return d("channel",{channel:e.chan})}}):(0,o.createComponentVNode)(2,a.Button,{content:"Switch",selected:e.chan===u,onClick:function(){return d("specFreq",{channel:e.chan})}})},e.chan)})):null})]})]})})}},29509:function(e,n,t){"use strict";n.__esModule=!0,n.RapidPipeDispenser=n.ICON_BY_CATEGORY_NAME=void 0;var o=t(39812),r=t(34380),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=["Atmospherics","Disposals"],s={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"};n.ICON_BY_CATEGORY_NAME=s;var u=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,m=l.category,p=l.selected_color,C=l.mode;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Category",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,i.Button,{selected:m===n,icon:s[e],color:"transparent",onClick:function(){return r("category",{category:n})},children:e},e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Modes",children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C&e.bitmask,fluid:!0,content:e.name,onClick:function(){return r("mode",{mode:e.bitmask})}})},e.bitmask)}))})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,width:"64px",color:l.paint_colors[p],children:(0,c.capitalize)(p)}),Object.keys(l.paint_colors).map((function(e){return(0,o.createComponentVNode)(2,i.ColorBox,{ml:1,color:l.paint_colors[e],onClick:function(){return r("color",{paint_color:e})}},e)}))]})]})})},p=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.category,s=l.piping_layer,u=l.preview_rows.flatMap((function(e){return e.previews}));return(0,o.createComponentVNode)(2,i.Section,{fill:!0,width:7.5,children:[0===d&&(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,mb:1,children:[1,2,3,4,5].map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{my:0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:e===s,content:"Layer "+e,onClick:function(){return c("piping_layer",{piping_layer:e})}})},e)}))}),(0,o.createComponentVNode)(2,i.Box,{width:"120px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{ml:0,title:e.dir_name,selected:e.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return c("setdir",{dir:e.dir,flipped:e.flipped})},children:(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["pipes32x32",e.dir+"-"+e.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},e.dir)}))})]})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.categories,l=void 0===c?[]:c,d=(0,a.useLocalState)(n,"categoryName"),u=d[0],m=d[1],p=l.find((function(e){return e.cat_name===u}))||l[0];return(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{fluid:!0,icon:s[e.cat_name],selected:e.cat_name===p.cat_name,onClick:function(){return m(e.cat_name)},children:e.cat_name},e.cat_name)}))}),null==p?void 0:p.recipes.map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:e.selected,content:e.pipe_name,title:e.pipe_name,onClick:function(){return r("pipe_type",{pipe_type:e.pipe_index,category:p.cat_name})}},e.pipe_index)}))]})};n.RapidPipeDispenser=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data.category;return(0,o.createComponentVNode)(2,l.Window,{width:550,height:570,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,p)})})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,C)})]})})]})})})}},53976:function(e,n,t){"use strict";n.__esModule=!0,n.RequestConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).act,r=e.dept_list,i=e.department;return(0,o.createComponentVNode)(2,a.LabeledList,{children:r.sort().map((function(e){return e!==i&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"envelope-open-text",onClick:function(){return t("write",{write:e,priority:1})},children:"Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",onClick:function(){return t("write",{write:e,priority:2})},children:"High Priority"})],4)})||null}))})},d={0:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.silent;return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,a.Button,{selected:!i,icon:i?"volume-mute":"volume-up",onClick:function(){return r("toggleSilent")},children:["Speaker ",i?"OFF":"ON"]})})},1:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.assist_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Request assistance from another department",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},2:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.supply_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Supplies",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},3:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.info_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Report Anonymous Information",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},4:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},5:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},6:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.message_log;return(0,o.createComponentVNode)(2,a.Section,{title:"Messages",children:l.length&&l.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.decodeHtmlEntities)(e[0]),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print",{print:n+1})},children:"Print"}),children:(0,r.decodeHtmlEntities)(e[1])},n)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No messages."})})},7:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.message,s=l.recipient,u=l.priority,m=l.msgStamped,p=l.msgVerified;return(0,o.createComponentVNode)(2,a.Section,{title:"Message Authentication",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message for "+s,children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Priority",children:2===u?"High Priority":1===u?"Normal Priority":"Unknown"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Validated By",color:p?"good":"bad",children:(0,r.decodeHtmlEntities)(p)||"No Validation"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamped By",color:m?"good":"bad",children:(0,r.decodeHtmlEntities)(m)||"No Stamp"})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"share",onClick:function(){return i("department",{department:s})},children:"Send Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:0})},children:"Back"})]})},8:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(i.department,i.screen,i.message_log,i.newmessagepriority,i.silent,i.announcementConsole,i.assist_dept,i.supply_dept,i.info_dept,i.message),d=(i.recipient,i.priority,i.msgStamped,i.msgVerified,i.announceAuth);return(0,o.createComponentVNode)(2,a.Section,{title:"Send Station-Wide Announcement",children:[d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,o.createComponentVNode)(2,a.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"pen",onClick:function(){return r("writeAnnouncement")},children:"Edit"}),children:l||"No Message"})],4)||(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l||!d,icon:"share",onClick:function(){return r("sendAnnouncement")},children:"Announce"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return r("setScreen",{setScreen:0})},children:"Back"})]})}};n.RequestConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,s=l.screen,u=l.newmessagepriority,m=l.announcementConsole,p=d[s];return(0,o.createComponentVNode)(2,i.Window,{width:520,height:410,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:6===s,onClick:function(){return r("setScreen",{setScreen:6})},icon:"envelope-open-text",children:"Messages"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return r("setScreen",{setScreen:1})},icon:"share-square",children:"Assistance"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return r("setScreen",{setScreen:2})},icon:"share-square",children:"Supplies"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return r("setScreen",{setScreen:3})},icon:"share-square-o",children:"Report"}),m&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:8===s,onClick:function(){return r("setScreen",{setScreen:8})},icon:"volume-up",children:"Announce"})||null,(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return r("setScreen",{setScreen:0})},icon:"cog"})]}),u&&(0,o.createComponentVNode)(2,a.Section,{title:u>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:u>1?"bad":"average",bold:u>1})||null,(0,o.createComponentVNode)(2,p)]})})}},48639:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).data,o=e.title,r=t[e.target];return"number"==typeof r?o+" - Page "+(r+1):o},d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.target;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return t(r,{reset:!0})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-left",onClick:function(){return t(r,{reverse:-1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-right",onClick:function(){return t(r,{reverse:1})}})],4)},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.tech,l=e.disk;if(!l||!l.present)return null;var d=(0,c.useSharedState)(n,"saveDialogTech",!1),s=d[0],u=d[1];return s?(0,o.createComponentVNode)(2,a.Section,{title:"Load Technology to Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return u(!1)}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){u(!1),r("copy_tech",{copy_tech_ID:e.id})},children:"Copy To Disk"})},e.name)}))})}):(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),l.stored&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:[(0,o.createComponentVNode)(2,a.Box,{children:l.name}),(0,o.createComponentVNode)(2,a.Box,{children:["Level: ",l.level]}),(0,o.createComponentVNode)(2,a.Box,{children:["Description: ",l.desc]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_tech")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_tech")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return u(!0)},children:"Load Tech To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.info.designs,u=e.disk;if(!u||!u.present)return null;var m=(0,c.useSharedState)(n,"saveDialogData",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return C(!1)}}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){C(!1),r("copy_design",{copy_design_ID:e.id})},children:"Copy To Disk"})},e.name)}))})]}):(0,o.createComponentVNode)(2,a.Box,{children:u.stored&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Lathe Type",children:u.build_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Required Materials",children:Object.keys(u.materials).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[e," x ",u.materials[e]]},e)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_design")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_design")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return C(!0)},children:"Load Design To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=e.target,u=e.designs,m=e.buildName,p=e.buildFiveName;return s?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{target:"builder_page",title:"Designs"}),buttons:(0,o.createComponentVNode)(2,d,{target:"builder_page"}),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),u&&u.length?u.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{width:"100%",justify:"space-between",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:e.name}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"15%",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Button,{mb:-1,icon:"wrench",onClick:function(){return r(m,{build:e.id,imprint:e.id})},children:"Build"}),p&&(0,o.createComponentVNode)(2,a.Button,{mb:-1,onClick:function(){return r(p,{build:e.id,imprint:e.id})},children:"x5"})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:e.mat_list.join(" ")}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",ml:1,children:e.chem_list.join(" ")})]})]}),(0,o.createComponentVNode)(2,a.Divider)],4,e.id)})):(0,o.createComponentVNode)(2,a.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error"})},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=e.name,s=null,u=null;if("Protolathe"===d?(s=l.info.linked_lathe,u=l.lathe_designs):(s=l.info.linked_imprinter,u=l.imprinter_designs),!s||!s.present)return(0,o.createComponentVNode)(2,a.Section,{title:d,children:["No ",d," found."]});var p=s,C=p.total_materials,h=p.max_materials,N=p.total_volume,V=p.max_volume,b=p.busy,f=p.mats,g=p.reagents,k=p.queue,v=(0,c.useSharedState)(n,"protoTab",0),B=v[0],L=v[1],_="transparent",x=!1,w="layer-group";b?(w="hammer",_="average",x=!0):k&&k.length&&(w="sync",_="green",x=!0);var S="Protolathe"===d?"removeP":"removeI",I="Protolathe"===d?"lathe_ejectsheet":"imprinter_ejectsheet",y="Protolathe"===d?"disposeP":"disposeI",T="Protolathe"===d?"disposeallP":"disposeallI";return(0,o.createComponentVNode)(2,a.Section,{title:d,buttons:b&&(0,o.createComponentVNode)(2,a.Icon,{name:"sync",spin:!0})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Materials",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:C,maxValue:h,children:[C," cm\xb3 / ",h," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Chemicals",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:V,children:[N,"u / ",V,"u"]})})]}),(0,o.createComponentVNode)(2,a.Tabs,{mt:1,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"wrench",selected:0===B,onClick:function(){return L(0)},children:"Build"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:w,iconSpin:x,color:_,selected:1===B,onClick:function(){return L(1)},children:"Queue"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cookie-bite",selected:2===B,onClick:function(){return L(2)},children:"Mat Storage"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"flask",selected:3===B,onClick:function(){return L(3)},children:"Chem Storage"})]}),0===B&&(0,o.createComponentVNode)(2,m,{target:s,designs:u,buildName:"Protolathe"===d?"build":"imprint",buildFiveName:"Protolathe"===d?"buildfive":null})||1===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:k.length&&k.map((function(e){return 1===e.index?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,labelColor:"bad",children:b?(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,o.createComponentVNode)(2,a.Box,{children:["(Awaiting Materials)",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})]})}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{m:1,children:"Queue Empty."})})||2===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:f.map((function(e){var t=(0,c.useLocalState)(n,"ejectAmt"+e.name,0),l=t[0],d=t[1];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NumberInput,{minValue:0,width:"100px",value:l,maxValue:e.sheets,onDrag:function(e,n){return d(n)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;d(0),i(I,((n={})[I]=e.name,n.amount=l,n))},children:"Num"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;return i(I,((n={})[I]=e.name,n.amount=50,n))},children:"All"})],4),children:[e.amount," cm\xb3"]},e.name)}))})||3===B&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:g.length&&g.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.volume,"u",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eject",onClick:function(){return i(y,{dispose:e.id})},children:"Purge"})]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"trash",onClick:function(){return i(T)},children:"Disposal All Chemicals In Storage"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})},C=[{name:"Protolathe",icon:"wrench",template:(0,o.createComponentVNode)(2,p,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,o.createComponentVNode)(2,p,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info.linked_destroy;if(!i.present)return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var l=i.loaded_item,d=i.origin_tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:l&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Origin Tech",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.level,"\xa0\xa0",e.current&&"(Current: "+e.current+")"]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){return r("deconstruct")},children:"Deconstruct Item"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_item")},children:"Eject Item"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"No Item Loaded. Standing-by..."})})}))},{name:"Settings",icon:"cog",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info,l=i.sync,d=i.linked_destroy,s=i.linked_imprinter,u=i.linked_lathe,m=(0,c.useSharedState)(n,"settingsTab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cogs",onClick:function(){return C(0)},selected:0===p,children:"General"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"link",onClick:function(){return C(1)},selected:1===p,children:"Device Linkages"})]}),0===p&&(0,o.createComponentVNode)(2,a.Box,{children:[l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",onClick:function(){return r("sync")},children:"Sync Database with Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"unlink",onClick:function(){return r("togglesync")},children:"Disconnect from Research Network"})],4)||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"link",onClick:function(){return r("togglesync")},children:"Connect to Research Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lock",onClick:function(){return r("lock")},children:"Lock Console"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){return r("reset")},children:"Reset R&D Database"})]})||1===p&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){return r("find_device")},children:"Re-sync with Nearby Devices"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[d.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destructive Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,u.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Protolathe",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,s.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Circuit Imprinter",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})}))},{name:"Research List",icon:"flask",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Current Research Levels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:1})},children:"Print This Page"}),children:(0,o.createComponentVNode)(2,a.Table,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{children:[" - Level ",e.level]})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.desc})})]},e.name)}))})})}))},{name:"Design List",icon:"file",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.designs;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:2})},children:"Print This Page"}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),s&&s.length&&(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.desc},e.name)}))})||(0,o.createComponentVNode)(2,a.Box,{color:"warning",children:"No designs found."})]})}))},{name:"Disk Operations",icon:"save",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.info),i=r.d_disk,l=r.t_disk;return i.present||l.present?(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:[(0,o.createComponentVNode)(2,s,{disk:l}),(0,o.createComponentVNode)(2,u,{disk:i})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:"No disk inserted."})}))}];n.ResearchConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=l.busy_msg,s=l.locked,u=(0,c.useSharedState)(n,"rdmenu",0),m=u[0],p=u[1],h=!1;return(d||s)&&(h=!0),(0,o.createComponentVNode)(2,i.Window,{width:850,height:630,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:e.icon,selected:m===n,disabled:h,onClick:function(){return p(n)},children:e.name},n)}))}),d&&(0,o.createComponentVNode)(2,a.Section,{title:"Processing...",children:d})||s&&(0,o.createComponentVNode)(2,a.Section,{title:"Console Locked",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("lock")},icon:"lock-open",children:"Unlock"})})||C[m].template]})})}},35606:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchServerController=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);n.ResearchServerController=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:430,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=(a.badmin,a.servers),l=(a.consoles,(0,r.useSharedState)(n,"selectedServer",null)),s=l[0],u=l[1],m=i.find((function(e){return e.id===s}));return m?(0,o.createComponentVNode)(2,d,{setSelectedServer:u,server:m}):(0,o.createComponentVNode)(2,c.Section,{title:"Server Selection",children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return u(e.id)},children:e.name})},e.name)}))})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.badmin),i=e.server,l=e.setSelectedServer,d=(0,r.useSharedState)(n,"tab",0),p=d[0],C=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:i.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return l(null)},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Access Rights"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Data Management"}),a&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===p,onClick:function(){return C(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),0===p&&(0,o.createComponentVNode)(2,s,{server:i})||null,1===p&&(0,o.createComponentVNode)(2,u,{server:i})||null,2===p&&a&&(0,o.createComponentVNode)(2,m,{server:i})||null]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.consoles,s=function(e,n){return-1!==e.id_with_upload.indexOf(n.id)},u=function(e,n){return-1!==e.id_with_download.indexOf(n.id)};return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Consoles",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.loc+")",children:[(0,o.createComponentVNode)(2,c.Button,{icon:s(l,e)?"lock-open":"lock",selected:s(l,e),onClick:function(){return a("toggle_upload",{server:l.ref,console:e.ref})},children:s(l,e)?"Upload On":"Upload Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:u(l,e)?"lock-open":"lock",selected:u(l,e),onClick:function(){return a("toggle_download",{server:l.ref,console:e.ref})},children:u(l,e)?"Download On":"Download Off"})]},e.name)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=(t.data,e.server);return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Research Levels",children:l.tech.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return a("reset_tech",{server:l.ref,tech:e.id})}})},e.name)}))}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Designs",children:(0,i.filter)((function(e){return!!e.name}))(l.designs).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return a("reset_design",{server:l.ref,design:e.id})}})},e.name)}))})],4)},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.badmin,s=i.servers;return d?(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Server Data Transfer",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,color:"bad",content:(0,o.createComponentVNode)(2,c.Box,{children:["Transfer from ",l.name," To ",e.name]}),onClick:function(){return a("transfer_data",{server:l.ref,target:e.ref})}})},e.name)}))}):null}},86330:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=(t(76270),t(16007)),l=t(85952),d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.obviously_dead,u=i.oocnotes,m=i.can_sleeve_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"user-plus",content:"Sleeve",onClick:function(){return r("sleeve",{ref:l,mode:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-plus",content:"Card",onClick:function(){return r("sleeve",{ref:l,mode:2})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:u})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.species,u=i.sex,m=i.mind_compat,p=i.synthetic,C=i.oocnotes,h=i.can_grow_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:p?"Yes":"No"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,a.Button,{disabled:!h,icon:"user-plus",content:p?"Build":"Grow",onClick:function(){return r("create",{ref:l})}})})]})})};n.ResleevingConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),h=(r.menu,r.coredumped),N=r.emergency,V=(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,k),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})],4);return h&&(V=(0,o.createComponentVNode)(2,p)),N&&(V=(0,o.createComponentVNode)(2,C)),(0,i.modalRegisterBodyOverride)("view_b_rec",s),(0,i.modalRegisterBodyOverride)("view_m_rec",d),(0,o.createComponentVNode)(2,l.Window,{width:640,height:520,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:V})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Body Records"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===i,icon:"folder",onClick:function(){return r("menu",{num:3})},children:"Mind Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data,a=r.menu,i=r.bodyrecords,l=r.mindrecords;return 1===a?t=(0,o.createComponentVNode)(2,h):2===a?t=(0,o.createComponentVNode)(2,f,{records:i,actToDo:"view_b_rec"}):3===a&&(t=(0,o.createComponentVNode)(2,f,{records:l,actToDo:"view_m_rec"})),t},p=function(e,n){return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,o.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},C=function(e,n){var t=(0,c.useBackend)(n).act;return(0,o.createComponentVNode)(2,a.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return t("ejectdisk")}})}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return t("coredump")}})})]})},h=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.loading,r.scantemp,r.occupant,r.locked,r.can_brainscan,r.scan_mode,r.pods,r.selected_pod;return(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,b),(0,o.createComponentVNode)(2,V)]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.pods,s=l.spods,u=l.selected_pod;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:u===e.pod,icon:u===e.pod&&"check",content:"Select",mt:s&&s.length?"2rem":"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):null},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.sleevers,d=i.spods,s=i.selected_sleever;return l&&l.length?l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(e.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:e.occupied?"label":"bad",children:e.name}),(0,o.createComponentVNode)(2,a.Button,{selected:s===e.sleever,icon:s===e.sleever&&"check",content:"Select",mt:d&&d.length?"3rem":"1.5rem",onClick:function(){return r("selectsleever",{ref:e.sleever})}})]},n)})):null},b=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.spods,s=l.selected_printer;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:s===e.spod,icon:s===e.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectprinter",{ref:e.spod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(e.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.steel>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.steel>=15e3?"circle":"circle-o"}),"\xa0",e.steel]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.glass>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.glass>=15e3?"circle":"circle-o"}),"\xa0",e.glass]}),t]},n)})):null},f=function(e,n){var t=(0,c.useBackend)(n).act,r=e.records,i=e.actToDo;return r.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:r.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.name,onClick:function(){return t(i,{ref:e.recref})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},g=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},k=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.pods,l=r.spods,d=r.sleevers;r.autoallowed,r.autoprocess,r.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:i&&i.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[i.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SynthFabs",children:l&&l.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[l.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sleevers",children:d&&d.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d.length," Connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},88359:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingPod=void 0;var o=t(39812),r=t(85952),c=t(71494),a=t(74814);n.ResleevingPod=function(e,n){var t=(0,c.useBackend)(n).data,i=t.occupied,l=t.name,d=t.health,s=t.maxHealth,u=t.stat,m=t.mindStatus,p=t.mindName,C=t.resleeveSick,h=t.initialSick;return(0,o.createComponentVNode)(2,r.Window,{width:300,height:350,resizeable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",children:i?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:2===u?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"}):1===u?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Unconscious"}):(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:d/s,children:[d,"%"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Status",children:m?"Present":"Missing"}),m?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),C?(0,o.createComponentVNode)(2,a.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",h?(0,o.createFragment)([(0,o.createTextVNode)(" Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],4):""]}):""],0):(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}},24455:function(e,n,t){"use strict";n.__esModule=!0,n.RoboticsControlConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RoboticsControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.can_hack,u=d.safety,m=d.show_detonate_all,p=d.cyborgs,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:460,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,i,{cyborgs:C,can_hack:s})]})})};var i=function(e,n){var t=e.cyborgs,a=(e.can_hack,(0,r.useBackend)(n)),i=a.act,l=a.data;return t.length?t.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,c.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return i("hackbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return i("stopbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return i("killbot",{ref:e.ref})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,c.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,c.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,c.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.ref)})):(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No cyborg units detected within access parameters."})}},52330:function(e,n,t){"use strict";n.__esModule=!0,n.RogueZones=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RogueZones=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.timeout_percent,s=l.diffstep,u=l.difficulty,m=l.occupied,p=l.scanning,C=l.updated,h=l.debug,N=l.shuttle_location,V=l.shuttle_at_station,b=l.scan_ready,f=l.can_recall_shuttle;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Current Area",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mineral Content",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle Location",buttons:f&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"rocket",onClick:function(){return i("recall_shuttle")},children:"Recall Shuttle"})||null,children:N}),m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",m," personnel!"]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!b,fluid:!0,icon:"search",onClick:function(){return i("scan_for_new")},children:"Scan For Asteroids"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:100,ranges:{good:[100,Infinity],average:[75,100],bad:[-Infinity,75]}})}),p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,C&&!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,o.createComponentVNode)(2,c.Box,{children:["Timeout Percent: ",d]}),(0,o.createComponentVNode)(2,c.Box,{children:["Diffstep: ",s]}),(0,o.createComponentVNode)(2,c.Box,{children:["Difficulty: ",u]}),(0,o.createComponentVNode)(2,c.Box,{children:["Occupied: ",m]}),(0,o.createComponentVNode)(2,c.Box,{children:["Debug: ",h]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle Location: ",N]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle at station: ",V]}),(0,o.createComponentVNode)(2,c.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}},59412:function(e,n,t){"use strict";n.__esModule=!0,n.RustCoreMonitorContent=n.RustCoreMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustCoreMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.cores;return(0,o.createComponentVNode)(2,a.Section,{title:"Cores",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reactant Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Instability"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Temperature"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Strength"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Plasma Content"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.has_field?"Online":"Offline",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_active",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.reactant_dump?"Dump":"Maintain",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_reactantdump",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_instability}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_temperature}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.has_field&&"yellow",value:e.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(n,t){return c("set_fieldstr",{core:e.ref,fieldstr:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell)]},e.name)}))]})})};n.RustCoreMonitorContent=i},59327:function(e,n,t){"use strict";n.__esModule=!0,n.RustFuelContent=n.RustFuelControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustFuelControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.fuels;return(0,o.createComponentVNode)(2,a.Section,{title:"Fuel Injectors",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Remaining Fuel"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fuel Rod Composition"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{fuel:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_amt}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_type})]},e.name)}))]})})};n.RustFuelContent=i},54943:function(e,n,t){"use strict";n.__esModule=!0,n.Secbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Secbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.idcheck,p=l.check_records,C=l.check_arrest,h=l.arrest_type,N=l.declare_arrests,V=l.bot_patrolling,b=l.patrol;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:320,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Security Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("idcheck")},children:m?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Security Records",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("ignorerec")},children:p?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Arrest Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("ignorearr")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Operating Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("switchmode")},children:h?"Detain":"Arrest"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Report Arrests",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("declarearrests")},children:N?"Yes":"No"})}),!!V&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Auto Patrol",children:(0,o.createComponentVNode)(2,c.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return i("patrol")},children:b?"Yes":"No"})})]})})||null]})})}},57436:function(e,n,t){"use strict";n.__esModule=!0,n.SecureSafe=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.l_setshort,s=i.code,u=i.emagged;return(0,o.createComponentVNode)(2,c.Box,{width:"185px",children:(0,o.createComponentVNode)(2,c.Grid,{width:"1px",children:[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,c.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,mb:"6px",content:e,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!u||!!d&&1||"R"!==e&&!l||"ERROR"===s&&"R"!==e&&1,onClick:function(){return a("type",{digit:e})}},e)}))},e[0])}))})})};n.SecureSafe=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.code,s=l.l_setshort,u=l.l_set,m=l.emagged,p=l.locked,C=!(u||s);return(0,o.createComponentVNode)(2,a.Window,{width:250,height:380,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{m:"6px",children:[C&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,o.createComponentVNode)(2,c.Section,{height:"60px",children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",position:"center",fontSize:"35px",children:d&&d||(0,o.createComponentVNode)(2,c.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,o.createComponentVNode)(2,c.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}},71915:function(e,n,t){"use strict";n.__esModule=!0,n.SecurityRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.SecurityRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N&&(t=(0,o.createComponentVNode)(2,C)),(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,c.Section,{flexGrow:!0,children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",color:e.color,content:e.id+": "+e.name+" (Criminal Status: "+e.criminal+")",onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.security,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Security Data",children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Security Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return a("del_r_2")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.general;return i&&i.fields?(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:i.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Flex.Item,{textAlign:"right",children:[!!i.has_photos&&i.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)})),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_front")},children:"Update Front Photo"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_side")},children:"Update Side Photo"})]})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Security records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,icon:"list",onClick:function(){return a("screen",{screen:2})},children:"List Records"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"wrench",selected:3===i,onClick:function(){return a("screen",{screen:3})},children:"Record Maintenance"})]})}},93550:function(e,n,t){"use strict";n.__esModule=!0,n.SeedStorage=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(64499);n.SeedStorage=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.scanner,s.seeds),m=(0,l.sortBy)((function(e){return e.name.toLowerCase()}))(u);return(0,o.createComponentVNode)(2,a.Window,{width:600,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Seeds",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"60%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,i.toTitleCase)(e.name)+" #"+e.uid,children:(0,o.createComponentVNode)(2,c.Section,{width:"165%",title:"Traits",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:Object.keys(e.traits).map((function(n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.toTitleCase)(n),children:e.traits[n]},n)}))})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{mt:.4,children:[e.amount," Remaining"]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"download",onClick:function(){return d("vend",{id:e.id})},children:"Vend"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"trash",onClick:function(){return d("purge",{id:e.id})},children:"Purge"})})]},e.name+e.uid)}))})})})}},16765:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldCapacitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083);n.ShieldCapacitor=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=s.active,m=s.time_since_fail,p=s.stored_charge,C=s.max_charge,h=s.charge_rate,N=s.max_charge_rate;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return d("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor Status",children:m>2?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stored Energy",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return(0,l.formatSiUnit)(e,0,"J")}})," (",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:100*(0,i.round)(p/C,1)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:h,step:100,stepPixelSize:.2,minValue:1e4,maxValue:N,format:function(e){return(0,l.formatPower)(e)},onDrag:function(e,n){return d("charge_rate",{rate:n})}})})]})})})})}},79229:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldGenerator=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083),d=t(67861);n.ShieldGenerator=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.locked);return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:a?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,u)})})};var s=function(e,n){return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Locked",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},u=function(e,n){var t=(0,r.useBackend)(n),c=t.act,d=t.data.lockedData,s=d.capacitors,u=d.active,m=d.failing,p=d.radius,C=d.max_radius,h=d.z_range,N=d.max_z_range,V=d.average_field_strength,b=d.target_field_strength,f=d.max_field_strength,g=d.shields,k=d.upkeep,v=d.strengthen_rate,B=d.max_strengthen_rate,L=d.gen_power,_=(s||[]).length;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Field Status",children:m?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unstable"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Stable"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overall Field Strength",children:[(0,i.round)(V,2)," Renwick (",b&&(0,i.round)(100*V/b,1)||"NA","%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upkeep Power",children:(0,l.formatPower)(k)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shield Generation Power",children:(0,l.formatPower)(L)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Currently Shielded",children:[g," m\xb2"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:_?s.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor #"+n,children:[e.active?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Online"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Offline"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[(0,l.formatSiUnit)(e.stored_charge,0,"J")," (",100*(0,i.round)(e.stored_charge/e.max_charge,2),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:e.failing?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."})})]})]},n)})):(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:u?"Online":"Offline",selected:u,onClick:function(){return c("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coverage Radius",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:C,value:p,unit:"m",onDrag:function(e,n){return c("change_radius",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vertical Shielding",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:N,value:h,unit:"vertical range",onDrag:function(e,n){return c("z_range",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:B,value:v,format:function(e){return(0,i.round)(e,1)},unit:"Renwick/s",onDrag:function(e,n){return c("strengthen_rate",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maximum Field Strength",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:f,value:b,unit:"Renwick",onDrag:function(e,n){return c("target_field_strength",{val:n})}})})]})})],4)}},89957:function(e,n,t){"use strict";n.__esModule=!0,n.ShutoffMonitorContent=n.ShutoffMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.ShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.valves;return(0,o.createComponentVNode)(2,a.Section,{title:"Valves",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Open"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.open?"Yes":"No"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.enabled?"Auto":"Manual"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.open?"Opened":"Closed",selected:e.open,disabled:!e.enabled,onClick:function(){return c("toggle_open",{valve:e.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.enabled?"Auto":"Manual",selected:e.enabled,onClick:function(){return c("toggle_enable",{valve:e.ref})}})]})]},e.name)}))]})})};n.ShutoffMonitorContent=i},34404:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleControl=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t="ERROR",r="bad",c=!1;return"docked"===e?(t="DOCKED",r="good"):"docking"===e?(t="DOCKING",r="average",c=!0):"undocking"===e?(t="UNDOCKING",r="average",c=!0):"undocked"===e&&(t="UNDOCKED",r="#676767"),c&&n&&(t+="-MANUAL"),(0,o.createComponentVNode)(2,a.Box,{color:r,children:t})},d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.engineName,s=void 0===d?"Bluespace Drive":d,u=i.shuttle_status,m=i.shuttle_state,p=i.has_docking,C=i.docking_status,h=i.docking_override,N=i.docking_codes;return(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:u}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:s,children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",children:l(C,h)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Codes",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return r("set_codes")},children:N||"Not Set"})})],4)||null]})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_launch,d=i.can_cancel,s=i.can_force;return(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("move")},disabled:!l,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("cancel")},disabled:!d,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("force")},color:"bad",disabled:!s,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},u={ShuttleControlConsoleDefault:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleMulti:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_cloak,u=i.can_pick,m=i.legit,p=i.cloaked,C=i.destination_name;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Multishuttle Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:m?"ATC Inhibitor":"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:p,icon:p?"eye":"eye-o",onClick:function(){return r("toggle_cloaked")},children:p?"Enabled":"Disabled"})})||null,(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!u,onClick:function(){return r("pick")},children:C})})]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleExploration:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_pick,u=i.destination_name,m=i.fuel_usage,p=i.fuel_span,C=i.remaining_fuel;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d,{engineName:"Engines"}),(0,o.createComponentVNode)(2,a.Section,{title:"Jump Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!l,onClick:function(){return r("pick")},children:u})}),m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Est. Delta-V Budget",color:p,children:[C," m/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[m," m/s"]})],4)||null]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleWeb:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.autopilot,u=d.can_rename,m=d.shuttle_state,p=d.is_moving,C=d.skip_docking,h=d.docking_status,N=d.docking_override,V=d.shuttle_location,b=d.can_cloak,f=d.cloaked,g=d.can_autopilot,k=d.routes,v=d.is_in_transit,B=d.travel_progress,L=d.time_left,_=d.doors,x=d.sensors;return(0,o.createFragment)([s&&(0,o.createComponentVNode)(2,a.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",buttons:u&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return i("rename_command")},children:"Rename"})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Engines",children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Location",children:(0,r.toTitleCase)(V)}),!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{selected:"docked"===h,disabled:"undocked"!==h&&"docked"!==h,onClick:function(){return i("dock_command")},children:"Dock"}),(0,o.createComponentVNode)(2,a.Button,{selected:"undocked"===h,disabled:"docked"!==h&&"undocked"!==h,onClick:function(){return i("undock_command")},children:"Undock"})],4),children:(0,o.createComponentVNode)(2,a.Box,{bold:!0,inline:!0,children:l(h,N)})})||null,b&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:f,icon:f?"eye":"eye-o",onClick:function(){return i("toggle_cloaked")},children:f?"Enabled":"Disabled"})})||null,g&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Autopilot",children:(0,o.createComponentVNode)(2,a.Button,{selected:s,icon:s?"eye":"eye-o",onClick:function(){return i("toggle_autopilot")},children:s?"Enabled":"Disabled"})})||null],0)||null]}),!p&&(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Available Destinations",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:k.length&&k.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"rocket",onClick:function(){return i("traverse",{traverse:e.index})},children:e.travel_time})},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),v&&(0,o.createComponentVNode)(2,a.Section,{title:"Transit ETA",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance from target",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",minValue:0,maxValue:100,value:B,children:[L,"s"]})})})})||null,Object.keys(_).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Hatch Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(_).map((function(e){var n=_[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.open&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Open"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Closed"}),"\xa0-\xa0",n.bolted&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Bolted"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Unbolted"})]},e)}))})})||null,Object.keys(x).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(x).map((function(e){var n=x[e];return-1!==n.reading?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:"bad",children:"Unable to get sensor air reading."}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[n.pressure,"kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[n.temp,"\xb0C"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Oxygen",children:[n.oxygen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nitrogen",children:[n.nitrogen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Carbon Dioxide",children:[n.carbon_dioxide,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Phoron",children:[n.phoron,"%"]}),n.other&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other",children:[n.other,"%"]})||null]})},e)}))})})||null],0)}))};n.ShuttleControl=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.subtemplate);return(0,o.createComponentVNode)(2,i.Window,{width:470,height:"ShuttleControlConsoleWeb"===r?560:370,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:u[r]})})}},32325:function(e,n,t){"use strict";n.__esModule=!0,n.SignalerContent=n.Signaler=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Signaler=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:280,height:132,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.code,s=l.frequency,u=l.minFrequency,m=l.maxFrequency;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:m/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,n){return i("freq",{freq:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"freq"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.6,children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(e,n){return i("code",{code:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"code"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.8,children:(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return i("signal")}})})})]})};n.SignalerContent=l},80646:function(e,n,t){"use strict";n.__esModule=!0,n.Sleeper=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.Sleeper=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.hasOccupant?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,V));return(0,o.createComponentVNode)(2,i.Window,{width:550,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:r})})};var m=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=(r.occupant,r.dialysis),i=r.stomachpumping;return(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h,{title:"Dialysis",active:a,actToDo:"togglefilter"}),(0,o.createComponentVNode)(2,h,{title:"Stomach Pump",active:i,actToDo:"togglepump"}),(0,o.createComponentVNode)(2,N)],4)},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant,m=d.auto_eject_dead,p=d.stasis;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,content:m?"On":"Off",onClick:function(){return i("auto_eject_dead_"+(m?"off":"on"))}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return i("ejectify")}}),(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return i("changestasis")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:0,max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(s.health,0)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxTemp,value:s.bodyTemperature/s.maxTemp,color:u[s.temperatureSuitability+3],children:[(0,r.round)(s.btCelsius,0),"\xb0C,",(0,r.round)(s.btFaren,0),"\xb0F"]})}),!!s.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.bloodMax,value:s.bloodLevel/s.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[s.bloodPercent,"%, ",s.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[s.pulse," BPM"]})],4)]})})},C=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]],0)},n)},n)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerMaxSpace,s=i.beakerFreeSpace,u=e.active,m=e.actToDo,p=e.title,C=u&&s>0;return(0,o.createComponentVNode)(2,a.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!l||s<=0,selected:C,icon:C?"toggle-on":"toggle-off",content:C?"Active":"Inactive",onClick:function(){return r(m)}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:l?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:s/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[s,"u"]})})}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.occupant,d=i.chemicals,s=i.maxchem,u=i.amounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Chemicals",flexGrow:"1",children:d.map((function(e,n){var t,c="";return e.overdosing?(c="bad",t=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(c="average",t=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:t,children:(0,o.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s,value:e.occ_amount/s,color:c,mr:"0.5rem",children:[e.pretty_amount,"/",s,"u"]}),u.map((function(n,t){return(0,o.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+n>s||2===l.stat,icon:"syringe",content:n,mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:n})}},t)}))]})})},n)}))})},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isBeakerLoaded;return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected.",i&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){return r("removebeaker")}})})||null]})})})}},55896:function(e,n,t){"use strict";n.__esModule=!0,n.SmartVend=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.SmartVend=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.config,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:440,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Storage",children:[s.secure&&(0,o.createComponentVNode)(2,a.NoticeBox,{danger:-1===s.locked,info:-1!==s.locked,children:-1===s.locked?(0,o.createComponentVNode)(2,a.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,o.createComponentVNode)(2,a.Box,{children:"Secure Access: Please have your identification ready."})})||null,0===s.contents.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Unfortunately, this ",d.title," is empty."]})||(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Item"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,r.map)((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:[e.amount," in stock"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"1",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:1})}}),(0,o.createComponentVNode)(2,a.Button,{content:"5",disabled:e.amount<5,onClick:function(){return l("Release",{index:e.index,amount:5})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Custom",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index})}}),(0,o.createComponentVNode)(2,a.Button,{content:"All",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:e.amount})}})]})]},n)}))(s.contents)]})]})})})}},20561:function(e,n,t){"use strict";n.__esModule=!0,n.Smes=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(58083),i=t(85952),l=t(41860),d=1e3;n.Smes=function(e,n){var t=(0,r.useBackend)(n),s=t.act,u=t.data,m=u.capacityPercent,p=u.capacity,C=u.charge,h=u.inputAttempt,N=u.inputting,V=u.inputLevel,b=u.inputLevelMax,f=u.inputAvailable,g=u.outputAttempt,k=u.outputting,v=u.outputLevel,B=u.outputLevelMax,L=u.outputUsed,_=(m>=100?"good":N&&"average")||"bad",x=(k?"good":C>0&&"average")||"bad";return(0,o.createComponentVNode)(2,i.Window,{width:340,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:.01*m,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,l.round)(C/6e4,1)," kWh / ",(0,l.round)(p/6e4)," kWh (",m,"%)"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Input",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){return s("tryinput")},children:h?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:_,children:(m>=100?"Fully Charged":N&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===V,onClick:function(){return s("input",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===V,onClick:function(){return s("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:V/d,fillValue:f/d,minValue:0,maxValue:b/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("input",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:V===b,onClick:function(){return s("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:V===b,onClick:function(){return s("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Available",children:(0,a.formatPower)(f)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:g?"power-off":"times",selected:g,onClick:function(){return s("tryoutput")},children:g?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:x,children:k?"Sending":C>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===v,onClick:function(){return s("output",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===v,onClick:function(){return s("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:v/d,minValue:0,maxValue:B/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("output",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:v===B,onClick:function(){return s("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:v===B,onClick:function(){return s("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Outputting",children:(0,a.formatPower)(L)})]})})]})})}},21633:function(e,n,t){"use strict";n.__esModule=!0,n.SolarControl=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.SolarControl=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.generated,u=d.generated_ratio,m=d.sun_angle,p=d.array_angle,C=d.rotation_rate,h=d.max_rotation_rate,N=d.tracking_state,V=d.connected_panels,b=d.connected_tracker;return(0,o.createComponentVNode)(2,a.Window,{width:380,height:230,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,c.Grid,{children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(0,o.createComponentVNode)(2,c.Grid.Column,{size:1.5,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:u,children:s+" W"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Star orientation",children:[m,"\xb0"]})]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tracking",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:0===N,onClick:function(){return l("tracking",{mode:0})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"clock-o",content:"Timed",selected:1===N,onClick:function(){return l("tracking",{mode:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:2===N,disabled:!b,onClick:function(){return l("tracking",{mode:2})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Azimuth",children:[(0===N||1===N)&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"52px",unit:"\xb0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:p,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth",{value:n})}}),1===N&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-h-.01,maxValue:h+.01,value:C,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth_rate",{value:n})}}),2===N&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mt:"3px",children:[p+"\xb0"," (auto)"]})]})]})})]})})}},57762:function(e,n,t){"use strict";n.__esModule=!0,n.SpaceHeater=void 0;var o=t(39812),r=t(76270),c=t(71494),a=t(74814),i=t(85952);n.SpaceHeater=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.temp,u=d.minTemp,m=d.maxTemp,p=d.cell,C=d.power;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:[s," K (",s-r.T0C,"\xb0 C)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Charge",children:[C,"% ",!p&&"(No Cell Inserted)"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Knob,{animated:!0,value:s-r.T0C,minValue:u-r.T0C,maxValue:m-r.T0C,unit:"C",onChange:function(e,n){return l("temp",{newtemp:n+r.T0C})}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Cell",children:p?(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Cell",onClick:function(){return l("cellremove")}}):(0,o.createComponentVNode)(2,a.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){return l("cellinstall")}})})]})})]})})}},58215:function(e,n,t){"use strict";n.__esModule=!0,n.Stack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);n.Stack=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.amount,s=l.recipes;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Amount: "+d,children:(0,o.createComponentVNode)(2,i,{recipes:s})})})})};var i=function s(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.recipes);return Object.keys(a).sort().map((function(e){var n=a[e];return n.ref===undefined?(0,o.createComponentVNode)(2,c.Collapsible,{ml:1,mb:-.7,color:"label",title:e,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,children:(0,o.createComponentVNode)(2,s,{recipes:n})})}):(0,o.createComponentVNode)(2,d,{title:e,recipe:n})}))},l=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.recipe),l=e.maxMultiplier,d=Math.min(l,Math.floor(i.max_res_amount/i.res_amount)),s=[5,10,25],u=[],m=function(){var e=C[p];d>=e&&u.push((0,o.createComponentVNode)(2,c.Button,{content:e*i.res_amount+"x",onClick:function(){return a("make",{ref:i.ref,multiplier:e})}}))},p=0,C=s;p1?"s":""),C+=")",u>1&&(C=u+"x "+C);var h=function(e,n){return e.req_amount>n?0:Math.floor(n/e.req_amount)}(d,i);return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Table,{children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,disabled:!h,icon:"wrench",content:C,onClick:function(){return a("make",{ref:d.ref,multiplier:1})}})}),m>1&&h>1&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,l,{recipe:d,maxMultiplier:h})})]})})})}},32015:function(e,n,t){"use strict";n.__esModule=!0,n.StationAlertConsoleContent=n.StationAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,a.Window,{width:425,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.categories;return(void 0===i?[]:i).map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.category,children:(0,o.createVNode)(1,"ul",null,[0===e.alarms.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),e.alarms.map((function(e){var n="";return e.has_cameras?n=(0,o.createComponentVNode)(2,c.Section,{children:e.cameras.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{disabled:e.deact,content:e.name+(e.deact?" (deactived)":""),icon:"video",onClick:function(){return a("switchTo",{camera:e.camera})}},e.name)}))}):e.lost_sources&&(n=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Lost Alarm Sources: ",e.lost_sources]})),(0,o.createVNode)(1,"li",null,[e.name,e.origin_lost?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Alarm Origin Lost."}):"",n],0,null,e.name)}))],0)},e.category)}))};n.StationAlertConsoleContent=i},52649:function(e,n,t){"use strict";n.__esModule=!0,n.StationBlueprintsContent=n.StationBlueprints=void 0;var o=t(39812),r=(t(64499),t(85531),t(34380),t(2497),t(71494)),c=t(74814),a=t(85952);n.StationBlueprints=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,i)})};var i=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=(t.config,i.mapRef);i.areas,i.turfs;return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,o.createVNode)(1,"div","CameraConsole__right",(0,o.createComponentVNode)(2,c.ByondUi,{className:"CameraConsole__map",params:{id:l,type:"map"}}),2)],4)};n.StationBlueprintsContent=i},72e3:function(e,n,t){"use strict";n.__esModule=!0,n.SuitCycler=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitCycler=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.active,m=c.locked,p=c.uv_active,C=(0,o.createComponentVNode)(2,i);return p?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):u&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:320,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.occupied,s=i.suit,u=i.helmet,m=i.departments,p=i.species,C=i.uv_level,h=i.max_uv_level,N=i.can_repair,V=i.damage;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Storage",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",content:"Lock",onClick:function(){return a("lock")}}),children:[!(!d||!l)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"square":"square-o",content:u||"Empty",disabled:!u,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"square":"square-o",content:s||"Empty",disabled:!s,onClick:function(){return a("dispense",{item:"suit"})}})}),N&&V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit Damage",children:[V,(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"Repair",onClick:function(){return a("repair_suit")}})]}):null]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Customization",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Paintjob",children:(0,o.createComponentVNode)(2,c.Dropdown,{noscroll:!0,width:"100%",options:m,selected:m[0],onSelected:function(e){return a("department",{department:e})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Species",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",maxHeight:"160px",options:p,selected:p[0],onSelected:function(e){return a("species",{species:e})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){return a("apply_paintjob")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"UV Decontamination",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,c.NumberInput,{width:"50px",value:C,minValue:1,maxValue:h,stepPixelSize:30,onChange:function(e,n){return a("radlevel",{radlevel:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Decontaminate",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",disabled:d&&l,textAlign:"center",onClick:function(){return a("uv")}})})]})})],4)},l=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.model_text,d=i.userHasAccess;return(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",bold:!0,children:["The ",l," suit cycler is currently locked. Please contact your system administrator."]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",content:"[Unlock]",disabled:!d,onClick:function(){return a("lock")}})})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},80748:function(e,n,t){"use strict";n.__esModule=!0,n.SuitStorageUnit=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitStorageUnit=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.panelopen,m=c.uv_active,p=c.broken,C=(0,o.createComponentVNode)(2,i);return u?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):p&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:365,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.open,s=i.safeties,u=i.occupied,m=i.suit,p=i.helmet,C=i.mask;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",minHeight:"260px",buttons:(0,o.createFragment)([!d&&(0,o.createComponentVNode)(2,c.Button,{icon:l?"unlock":"lock",content:l?"Unlock":"Lock",onClick:function(){return a("lock")}}),!l&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return a("door")}})],0),children:[!(!u||!s)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),l&&(0,o.createComponentVNode)(2,c.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,o.createComponentVNode)(2,c.Box,{children:"Unit Locked"}),(0,o.createComponentVNode)(2,c.Icon,{name:"lock"})]})||d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"square":"square-o",content:m||"Empty",disabled:!m,onClick:function(){return a("dispense",{item:"suit"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return a("dispense",{item:"mask"})}})})]})||(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:u&&s,textAlign:"center",onClick:function(){return a("uv")}})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.uv_super;return(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:[(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Knob,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(e){return e?"15nm":"185nm"},onChange:function(e,n){return a("toggleUV")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The ",l?(0,o.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,o.createVNode)(1,"font",null,"RED",16,{color:"red"})," LED is on.",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return a("togglesafeties")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"black":"red",mr:2}),(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"green":"black"})]})]})]})]})},d=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},6951:function(e,n,t){"use strict";n.__esModule=!0,n.SupermatterMonitorContent=n.SupermatterMonitor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=t(41860),l=t(2497);n.SupermatterMonitor=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n);t.act;return t.data.active?(0,o.createComponentVNode)(2,u):(0,o.createComponentVNode)(2,s)};n.SupermatterMonitorContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.supermatters;return(0,o.createComponentVNode)(2,c.Section,{title:"Supermatters Detected",buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Refresh",icon:"sync",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,c.Section,{title:e.area_name+" (#"+e.uid+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:[e.integrity," %"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View Details",onClick:function(){return a("set",{set:e.uid})}})})]})})},n)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.SM_area,u=d.SM_integrity,m=d.SM_power,p=d.SM_ambienttemp,C=d.SM_ambientpressure,h=d.SM_EPR,N=d.SM_gas_O2,V=d.SM_gas_CO2,b=d.SM_gas_N2,f=d.SM_gas_PH,g=d.SM_gas_N2O;return(0,o.createComponentVNode)(2,c.Section,{title:(0,l.toTitleCase)(s),buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return a("clear")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Core Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{animated:!0,value:u,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,c.Box,{color:(m>300?"bad":m>150&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" MeV/cm\xb3"},value:m})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.Box,{color:(p>5e3?"bad":p>4e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" K"},value:p})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.Box,{color:(C>1e4?"bad":C>5e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" kPa"},value:C})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chamber EPR",children:(0,o.createComponentVNode)(2,c.Box,{color:(h>4?"bad":h>1&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)},value:h})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gas Composition",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"O\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:N}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"CO\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"PH",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2O",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),"%"]})]})})]})})}},12431:function(e,n,t){"use strict";n.__esModule=!0,n.SupplyConsole=void 0;var o=t(39812),r=t(64499),c=(t(41860),t(58083)),a=t(71494),i=t(74814),l=t(16007),d=t(85952),s=t(85531),u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.supply_points,l=e.args,d=l.name,s=l.cost,u=l.manifest,m=l.ref,p=l.random;return(0,o.createComponentVNode)(2,i.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:d,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"shopping-cart",content:"Buy - "+s+" points",disabled:s>c,onClick:function(){return r("request_crate",{ref:m})}}),children:(0,o.createComponentVNode)(2,i.Section,{title:"Contains"+(p?" any "+p+" of:":""),scrollable:!0,height:"200px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})})};n.SupplyConsole=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data;return(0,l.modalRegisterBodyOverride)("view_crate",u),(0,o.createComponentVNode)(2,d.Window,{width:700,height:620,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"100%"}),(0,o.createComponentVNode)(2,i.Section,{title:"Supply Records",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,p)]})]})})};var m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.supply_points,s=l.shuttle,u=null,m=!1;return l.shuttle_auth&&(1===s.launch&&0===s.mode?u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Away",onClick:function(){return r("send_shuttle",{mode:"send_away"})}}):2!==s.launch||3!==s.mode&&1!==s.mode?1===s.launch&&5===s.mode&&(u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){return r("send_shuttle",{mode:"send_to_station"})}})):u=(0,o.createComponentVNode)(2,i.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){return r("send_shuttle",{mode:"cancel_shuttle"})}}),s.force&&(m=!0)),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supply Points",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d})})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",buttons:(0,o.createFragment)([u,m?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return r("send_shuttle",{mode:"force_shuttle"})}}):null],0),children:s.location}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engine",children:s.engine}),4===s.mode?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ETA",children:s.time>1?(0,c.formatTime)(s.time):"LATE"}):null]})})]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.order_auth,(0,a.useLocalState)(n,"tabIndex",0)),c=r[0],l=r[1];return(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"box",selected:0===c,onClick:function(){return l(0)},children:"Request"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"check-circle-o",selected:1===c,onClick:function(){return l(1)},children:"Accepted"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"circle-o",selected:2===c,onClick:function(){return l(2)},children:"Requests"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:3===c,onClick:function(){return l(3)},children:"Order history"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:4===c,onClick:function(){return l(4)},children:"Export history"})]}),0===c?(0,o.createComponentVNode)(2,C):null,1===c?(0,o.createComponentVNode)(2,h,{mode:"Approved"}):null,2===c?(0,o.createComponentVNode)(2,h,{mode:"Requested"}):null,3===c?(0,o.createComponentVNode)(2,h,{mode:"All"}):null,4===c?(0,o.createComponentVNode)(2,N):null]})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.categories,u=l.supply_packs,m=l.contraband,p=l.supply_points,C=(0,a.useLocalState)(n,"activeCategory",null),h=C[0],N=C[1],V=(0,s.flow)([(0,r.filter)((function(e){return e.group===h})),(0,r.filter)((function(e){return!e.contraband||m})),(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return e.cost>p}))])(u);return(0,o.createComponentVNode)(2,i.Section,{level:2,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e,selected:e===h,onClick:function(){return N(e)}},e)}))})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,ml:2,children:(0,o.createComponentVNode)(2,i.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:V.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Stack,{align:"center",justify:"flex-start",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"70%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:e.name,color:e.cost>p?"red":null,onClick:function(){return c("request_crate",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"#",color:e.cost>p?"red":null,onClick:function(){return c("request_crate_multi",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"C",color:e.cost>p?"red":null,onClick:function(){return c("view_crate",{crate:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:[e.cost," points"]})]})},e.name)}))})})]})})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.mode,d=c.orders,s=c.order_auth,u=c.supply_points,m=d.filter((function(e){return e.status===l||"All"===l}));return m.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:["Requested"===l&&s?(0,o.createComponentVNode)(2,i.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return r("clear_all_requests")}}):null,m.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{title:"Order "+(n+1),buttons:"All"===l&&s?(0,o.createComponentVNode)(2,i.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return r("delete_order",{ref:e.ref})}}):null,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.entries.map((function(n){return n.entry?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:s?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){r("edit_order_value",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry}):null})),"All"===l?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.status}):null]}),s&&"Requested"===l?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Approve",disabled:e.cost>u,onClick:function(){return r("approve_order",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Deny",onClick:function(){return r("deny_order",{ref:e.ref})}})],4):null]},n)}))]}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No orders found."})},N=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.receipts,d=c.order_auth;return l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.title.map((function(n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:d?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry},n.field)})),e.error?(0,o.createComponentVNode)(2,i.LabeledList.Item,{labelColor:"red",label:"Error",children:e.error}):e.contents.map((function(n,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.object,buttons:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit_field",{ref:e.ref,index:t+1,edit:"meow","default":n.object})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){return r("export_delete_field",{ref:e.ref,index:t+1})}})],4):null,children:[n.quantity,"x -> ",n.value," points"]},t)}))]}),d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return r("export_add_field",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Delete Record",onClick:function(){return r("export_delete",{ref:e.ref})}})],4):null]},n)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No receipts found."})}},30111:function(e,n,t){"use strict";n.__esModule=!0,n.TEGenerator=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.TEGenerator=function(e,n){var t=(0,c.useBackend)(n).data,r=t.totalOutput,s=t.maxTotalOutput,u=t.thermalOutput,m=t.primary,p=t.secondary;return(0,o.createComponentVNode)(2,i.Window,{width:550,height:310,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Output",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:r,maxValue:s,children:(0,l.formatPower)(r)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermal Output",children:(0,l.formatPower)(u)})]})}),m&&p?(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Primary Circulator",values:m})}),(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Secondary Circulator",values:p})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})};var d=function(e,n){var t=e.name,c=e.values,i=c.dir,d=c.output,s=c.flowCapacity,u=c.inletPressure,m=c.inletTemperature,p=c.outletPressure,C=c.outletTemperature;return(0,o.createComponentVNode)(2,a.Section,{title:t+" ("+i+")",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Output",children:(0,l.formatPower)(d)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Capacity",children:[(0,r.round)(s,2),"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Pressure",children:(0,l.formatSiUnit)(1e3*u,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Temperature",children:[(0,r.round)(m,2)," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Pressure",children:(0,l.formatSiUnit)(1e3*p,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Temperature",children:[(0,r.round)(C,2)," K"]})]})})}},58457:function(e,n,t){"use strict";n.__esModule=!0,n.Tank=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Tank=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.connected,s=l.showToggle,u=void 0===s||s,m=l.maskConnected,p=l.tankPressure,C=l.releasePressure,h=l.defaultReleasePressure,N=l.minReleasePressure,V=l.maxReleasePressure;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:320,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"air-freshener":"lock-open",selected:d,disabled:!m,content:"Mask Release Valve",onClick:function(){return i("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask Connected",children:m?"Yes":"No"})})}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:l.tankPressure+" kPa"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:C===N,onClick:function(){return i("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(C),width:"65px",unit:"kPa",minValue:N,maxValue:V,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:C===V,onClick:function(){return i("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"",disabled:C===h,onClick:function(){return i("pressure",{pressure:"reset"})}})]})]})})]})})}},38754:function(e,n,t){"use strict";n.__esModule=!0,n.TankDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TankDispenser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:275,height:103,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Phoron",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.plasma?"square":"square-o",content:"Dispense",disabled:!l.plasma,onClick:function(){return i("plasma")}}),children:l.plasma}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.oxygen?"square":"square-o",content:"Dispense",disabled:!l.oxygen,onClick:function(){return i("oxygen")}}),children:l.oxygen})]})})})})}},73754:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsLogBrowser=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.TelecommsLogBrowser=function(e,n){var t=(0,c.useBackend)(n),r=t.act,s=t.data,u=s.universal_translate,m=s.network,p=s.temp,C=s.servers,h=s.selectedServer;return(0,o.createComponentVNode)(2,i.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[p&&p.length?(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-box",verticalAlign:"middle",children:p}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return r("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,a.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Refresh",onClick:function(){return r("scan")}}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===C.length,onClick:function(){return r("release")}})],4),children:(0,o.createComponentVNode)(2,a.Button,{content:m,icon:"pen",onClick:function(){return r("network")}})})})}),h?(0,o.createComponentVNode)(2,d,{network:m,server:h,universal_translate:u}):(0,o.createComponentVNode)(2,l,{network:m,servers:C})]})})};var l=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.network,e.servers);return i&&i.length?(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunication Servers",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,a.Button,{content:"View",icon:"eye",onClick:function(){return r("view",{id:e.id})}})},e.id)}))})}):(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunications Servers",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No servers detected."}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return r("scan")}})]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.network,e.server),d=e.universal_translate;return(0,o.createComponentVNode)(2,a.Section,{title:"Server ("+l.id+")",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Return",icon:"undo",onClick:function(){return i("mainmenu")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Recorded Traffic",children:l.totalTraffic>=1024?(0,r.round)(l.totalTraffic/1024)+" Terrabytes":l.totalTraffic+" Gigabytes"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stored Logs",mt:"4px",children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.logs&&l.logs.length?l.logs.map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:e.id%2,children:(0,o.createComponentVNode)(2,a.Section,{title:d||e.parameters.uspeech||e.parameters.intelligible||"Execution Error"===e.input_type?e.input_type:"Audio File",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.id})}}),children:"Execution Error"===e.input_type?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data type",children:"Error"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output",children:e.parameters.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Delete",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return i("delete",{id:e.id})}})})]}):d||e.parameters.uspeech||e.parameters.intelligible?(0,o.createComponentVNode)(2,s,{log:e}):(0,o.createComponentVNode)(2,s,{error:!0})})},e.id)})):"No Logs Detected."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data,e.log),i=e.error,l=r&&r.parameters||{none:"none"},d=l.timecode,s=l.name,u=l.race,m=l.job,p=l.message;return i?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:[s," (Job: ",m,")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:p})]})}},29441:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMachineBrowser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.TelecommsMachineBrowser=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.network,u=d.temp,m=d.machinelist,p=d.selectedMachine;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u&&u.length?(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-box",verticalAlign:"middle",children:u}),(0,o.createComponentVNode)(2,c.Button,{icon:"times-circle",float:"right",onClick:function(){return l("cleartemp")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,c.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===m.length,onClick:function(){return l("release")}})],4),children:(0,o.createComponentVNode)(2,c.Button,{content:s,icon:"pen",onClick:function(){return l("network")}})})})}),m&&m.length?(0,o.createComponentVNode)(2,i,{title:p?p.name+" ("+p.id+")":"Detected Network Entities",list:p?p.links:m,showBack:p}):(0,o.createComponentVNode)(2,c.Section,{title:"No Devices Found",children:(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}})})]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.list),l=e.title,d=e.showBack;return(0,o.createComponentVNode)(2,c.Section,{title:l,buttons:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){return a("mainmenu")}}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"u",null,"Linked entities",16)}),(0,o.createComponentVNode)(2,c.LabeledList,{children:i.length?i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,c.Button,{content:"View",icon:"eye",onClick:function(){return a("view",{id:e.id})}})},e.id)})):(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},86756:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMultitoolMenu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(36355),i=t(85952);n.TelecommsMultitoolMenu=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),s=(c.temp,c.on,c.id,c.network,c.autolinkers,c.shadowlink,c.options);c.linked,c.filter,c.multitool,c.multitool_buffer;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:540,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.TemporaryNotice),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d,{options:s})]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.temp,i.on),d=i.id,s=i.network,u=i.autolinkers,m=i.shadowlink,p=(i.options,i.linked),C=i.filter,h=i.multitool,N=i.multitool_buffer;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:l?"On":"Off",onClick:function(){return a("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Identification String",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:d,onClick:function(){return a("id")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return a("network")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prefabrication",children:u?"TRUE":"FALSE"}),m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,h?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Multitool Buffer",children:[N?(0,o.createFragment)([N.name,(0,o.createTextVNode)(" ("),N.id,(0,o.createTextVNode)(")")],0):null,(0,o.createComponentVNode)(2,c.Button,{color:N?"green":null,content:N?"Link ("+N.id+")":"Add Machine",icon:N?"link":"plus",onClick:N?function(){return a("link")}:function(){return a("buffer")}}),N?(0,o.createComponentVNode)(2,c.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){return a("flush")}}):null]}):null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Linked network Entities",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.ref+" "+e.name+" ("+e.id+")",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",onClick:function(){return a("unlink",{unlink:e.index})}})},e.ref)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Filtering Frequencies",mt:1,children:[C.map((function(e){return(0,o.createComponentVNode)(2,c.Button.Confirm,{content:e.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return a("delete",{"delete":e.freq})}},e.index)})),C&&0!==C.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No filters."})]})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.options),l=i.use_listening_level,d=i.use_broadcasting,s=i.use_receiving,u=i.listening_level,m=i.broadcasting,p=i.receiving,C=i.use_change_freq,h=i.change_freq,N=i.use_broadcast_range,V=i.use_receive_range,b=i.range,f=i.minRange,g=i.maxRange;return l||d||s||C||N||V?(0,o.createComponentVNode)(2,c.Section,{title:"Options",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[l?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal Locked to Station",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock-closed":"lock-open",content:u?"Yes":"No",onClick:function(){return a("change_listening")}})}):null,d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Broadcasting",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Yes":"No",onClick:function(){return a("broadcast")}})}):null,s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Receving",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:p,content:p?"Yes":"No",onClick:function(){return a("receive")}})}):null,C?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Signal Frequency",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wave-square",selected:!!h,content:h?"Yes ("+h+")":"No",onClick:function(){return a("change_freq")}})}):null,N||V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(N?"Broadcast":"Receive")+" Range",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:b,minValue:f,maxValue:g,unit:"gigameters",stepPixelSize:4,format:function(e){return e+1},onDrag:function(e,n){return a("range",{range:n})}})}):null]})}):(0,o.createComponentVNode)(2,c.Section,{title:"No Options Found"})}},18509:function(e,n,t){"use strict";n.__esModule=!0,n.Teleporter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Teleporter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked_name,s=l.station_connected,u=l.hub_connected,m=l.calibrated,p=l.teleporter_on;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bullseye",onClick:function(){return i("select_target")},content:d})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Calibrated",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return i("test_fire")},content:m?"Accurate":"Test Fire"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Teleporter",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:p,color:p?"good":"bad",onClick:function(){return i("toggle_on")},content:p?"Online":"OFFLINE"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Station",children:s?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},62555:function(e,n,t){"use strict";n.__esModule=!0,n.TelesciConsoleContent=n.TelesciConsole=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.TelesciConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.noTelepad);return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:r&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,d)})})};var l=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,o.createVNode)(1,"br"),"Please add telepad data."]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.insertedGps,s=l.rotation,u=l.currentZ,m=l.cooldown,p=l.crystalCount,C=l.maxCrystals,h=(l.maxPossibleDistance,l.maxAllowedDistance),N=l.distance,V=l.tempMsg,b=l.sectorOptions,f=l.lastTeleData;return(0,o.createComponentVNode)(2,a.Section,{title:"Telepad Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!d,onClick:function(){return i("ejectGPS")},content:"Eject GPS"}),children:[(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:m&&(0,o.createComponentVNode)(2,a.Box,{children:["Telepad is recharging. Please wait ",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m})," seconds."]})||(0,o.createComponentVNode)(2,a.Box,{children:V})}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bearing",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:s,format:function(e){return e+"\xb0"},step:1,minValue:-900,maxValue:900,onDrag:function(e,n){return i("setrotation",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:N,format:function(e){return e+"/"+h+" m"},minValue:0,maxValue:h,step:1,stepPixelSize:4,onDrag:function(e,n){return i("setdistance",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sector",children:(0,r.sortBy)((function(e){return Number(e)}))(b).map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"check-circle",content:e,selected:u===e,onClick:function(){return i("setz",{setz:e})}},e)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:-90,onClick:function(){return i("send")},content:"Send"}),(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:90,onClick:function(){return i("receive")},content:"Receive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",iconRotation:90,onClick:function(){return i("recal")},content:"Recalibrate"})]})]}),f&&(0,o.createComponentVNode)(2,a.Section,{mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Telepad Location",children:[f.src_x,", ",f.src_y]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:[f.distance,"m"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transit Time",children:[f.time," secs"]})]})})||(0,o.createComponentVNode)(2,a.Section,{mt:1,children:"No teleport data found."}),(0,o.createComponentVNode)(2,a.Section,{children:["Crystals: ",p," / ",C]})]})};n.TelesciConsoleContent=d},55096:function(e,n,t){"use strict";n.__esModule=!0,n.TimeClock=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(14959);n.TimeClock=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.department_hours,m=s.user_name,p=s.card,C=s.assignment,h=s.job_datum,N=s.allow_change_job,V=s.job_choices;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"OOC",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Time Off Balance for "+m,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:u[e]>6?"good":u[e]>1?"average":"bad",children:[(0,r.toFixed)(u[e],1)," ",1===u[e]?"hour":"hours"]},e)}))})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Employee Info",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Employee ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"user",onClick:function(){return d("id")},children:p||"Insert ID"})}),!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,a.Box,{backgroundColor:h.selection_color,p:.8,children:(0,o.createComponentVNode)(2,a.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{ml:1,children:(0,o.createComponentVNode)(2,l.RankIcon,{color:"white",rank:h.title})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,inline:!0,mr:1,children:h.title})})]})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Departments",children:h.departments}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pay Scale",children:h.economic_modifier}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"PTO Elegibility",children:h.timeoff_factor>0&&(0,o.createComponentVNode)(2,a.Box,{children:["Earns PTO - ",h.pto_department]})||h.timeoff_factor<0&&(0,o.createComponentVNode)(2,a.Box,{children:["Requires PTO - ",h.pto_department]})||(0,o.createComponentVNode)(2,a.Box,{children:"Neutral"})})],4)]})}),!(!N||!h||0===h.timeoff_factor||"Dismissed"===C)&&(0,o.createComponentVNode)(2,a.Section,{title:"Employment Actions",children:h.timeoff_factor>0&&(u[h.pto_department]>0&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return d("switch-to-offduty")},children:"Go Off-Duty"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(V).length&&Object.keys(V).map((function(e){return V[e].map((function(n){return(0,o.createComponentVNode)(2,a.Button,{icon:"suitcase",onClick:function(){return d("switch-to-onduty-rank",{"switch-to-onduty-rank":e,"switch-to-onduty-assignment":n})},children:n},n)}))}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},24389:function(e,n,t){"use strict";n.__esModule=!0,n.TransferValve=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TransferValve=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.tank_one,s=l.tank_two,u=l.attached_device,m=l.valve;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Valve Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"unlock":"lock",content:m?"Open":"Closed",disabled:!d||!s,onClick:function(){return i("toggle")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Assembly",buttons:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return i("device")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){return i("remove_device")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Assembly"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment One",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){return i("tankone")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment Two",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:s,disabled:!s,onClick:function(){return i("tanktwo")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}},95893:function(e,n,t){"use strict";n.__esModule=!0,n.TurbineControl=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.TurbineControl=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.connected,d.compressor_broke),u=d.turbine_broke,m=d.broken,p=d.door_status,C=d.online,h=d.power,N=d.rpm,V=d.temp;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Turbine Controller",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:m&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Setup is broken",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",onClick:function(){return l("reconnect")},content:"Reconnect"})]})||(0,o.createComponentVNode)(2,a.Box,{color:C?"good":"bad",children:!C||s||u?"Offline":"Online"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Compressor",children:s&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Compressor is inoperable."})||u&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Turbine is inoperable."})||(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:C,content:"Compressor Power",onClick:function(){return l(C?"power-off":"power-on")}})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vent Doors",children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:p,onClick:function(){return l("doors")},content:p?"Closed":"Open"})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Speed",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:N})," RPM"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Temperature",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Generated Power",children:m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{format:function(e){return(0,r.formatPower)(e)},value:Number(h)})})]})})]})})}},62542:function(e,n,t){"use strict";n.__esModule=!0,n.Turbolift=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Turbolift=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.floors,s=l.doors_open,u=l.fire_mode;return(0,o.createComponentVNode)(2,a.Window,{width:480,height:260+25*u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:s?"door-open":"door-closed",content:s?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:s&&!u,color:u?"red":null,onClick:function(){return i("toggle_doors")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return i("emergency_stop")}})],4),children:[!u||(0,o.createComponentVNode)(2,c.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:e.label||"Floor #"+e.id}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"8%",textAlign:"left",children:(0,o.createComponentVNode)(2,c.Button,{icon:"circle",color:e.current?"red":e.target?"green":e.queued?"yellow":null,onClick:function(){return i("move_to_floor",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",grow:1,children:e.name})]})},e.id)}))})]})})})}},89761:function(e,n,t){"use strict";n.__esModule=!0,n.GenericUplink=n.Uplink=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Uplink=function(e,n){var t=(0,c.useBackend)(n).data,r=(0,c.useLocalState)(n,"screen",0),i=r[0],m=r[1],p=t.telecrystals;return(0,o.createComponentVNode)(2,l.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{screen:i,setScreen:m}),0===i&&(0,o.createComponentVNode)(2,u,{currencyAmount:p,currencySymbol:"TC"})||1===i&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,a.Section,{color:"bad",children:"Error"})]})})};var d=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=e.screen,l=e.setScreen,d=r.discount_name,s=r.discount_amount,u=r.offer_expiry;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===i,onClick:function(){return l(0)},children:"Request Items"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,onClick:function(){return l(1)},children:"Exploitable Information"})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Item Discount",level:2,children:s<100&&(0,o.createComponentVNode)(2,a.Box,{children:[d," - ",s,"% off. Offer expires at: ",u]})||(0,o.createComponentVNode)(2,a.Box,{children:"No items currently discounted."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.exploit,d=i.locked_records;return(0,o.createComponentVNode)(2,a.Section,{title:"Exploitable Information",buttons:l&&(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Back",onClick:function(){return r("view_exploits",{id:0})}}),children:l&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sex",children:l.sex}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Age",children:l.age}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:l.rank}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Home System",children:l.home_system}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Citizenship",children:l.citizenship}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Faction",children:l.faction}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Religion",children:l.religion}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fingerprint",children:l.fingerprint}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other Affiliations",children:l.antagfaction}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:"Acquired Information"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Notes",children:l.nanoui_exploit_record.split("
").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})||d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",fluid:!0,content:e.name,onClick:function(){return r("view_exploits",{id:e.id})}},e.id)}))})},u=function(e,n){var t,l,d=e.currencyAmount,s=void 0===d?0:d,u=e.currencySymbol,p=void 0===u?"\u20ae":u,C=(0,c.useBackend)(n),h=C.act,N=C.data,V=N.compactMode,b=N.lockable,f=N.categories,g=void 0===f?[]:f,k=(0,c.useLocalState)(n,"searchText",""),v=k[0],B=k[1],L=(0,c.useLocalState)(n,"category",null==(t=g[0])?void 0:t.name),_=L[0],x=L[1],w=(0,r.createSearch)(v,(function(e){return e.name+e.desc})),S=v.length>0&&g.flatMap((function(e){return e.items||[]})).filter(w).filter((function(e,n){return n<25}))||(null==(l=g.find((function(e){return e.name===_})))?void 0:l.items)||[];return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:s>0?"good":"bad",children:[(0,i.formatMoney)(s)," ",p]}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,a.Input,{autoFocus:!0,value:v,onInput:function(e,n){return B(n)},mx:1}),(0,o.createComponentVNode)(2,a.Button,{icon:V?"list":"info",content:V?"Compact":"Detailed",onClick:function(){return h("compact_toggle")}}),!!b&&(0,o.createComponentVNode)(2,a.Button,{icon:"lock",content:"Lock",onClick:function(){return h("lock")}})],0),children:(0,o.createComponentVNode)(2,a.Flex,{children:[0===v.length&&(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:g.map((function(e){var n;return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.name===_,onClick:function(){return x(e.name)},children:[e.name," (",(null==(n=e.items)?void 0:n.length)||0,")"]},e.name)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:[0===S.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:0===v.length?"No items in this category.":"No results found."}),(0,o.createComponentVNode)(2,m,{compactMode:v.length>0||V,currencyAmount:s,currencySymbol:p,items:S})]})]})})};n.GenericUplink=u;var m=function(e,n){var t=e.compactMode,l=e.currencyAmount,d=e.currencySymbol,s=(0,c.useBackend)(n).act,u=(0,c.useLocalState)(n,"hoveredItem",{}),m=u[0],p=u[1],C=m&&m.cost||0,h=e.items.map((function(e){var n=m&&m.name!==e.name,t=l-C=0||(r[t]=e[t]);return r}(e,["spec"]),l=r.action,d=r.test,s=r.tooltip,u=r.content;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({onClick:function(){return t(l)},icon:d?"toggle-on":"toggle-off",selected:d,fluid:!0,tooltip:s.main+" "+(d?s.disable:s.enable),content:d?u.enabled:u.disabled},i)))}},21162:function(e,n,t){"use strict";n.__esModule=!0,n.Wires=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Wires=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.wires||[],s=l.status||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:150+30*d.length,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return i("cut",{wire:e.color})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Pulse",onClick:function(){return i("pulse",{wire:e.color})}}),(0,o.createComponentVNode)(2,c.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return i("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("("),e.wire,(0,o.createTextVNode)(")")],0)},e.seen_color)}))})}),!!s.length&&(0,o.createComponentVNode)(2,c.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}},81522:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchArtifactAnalyzer=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.XenoarchArtifactAnalyzer=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:250,height:140,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.owned_scanner,d=i.scan_in_progress;return l?d?(0,o.createComponentVNode)(2,a.Section,{title:"Scan In Progress",children:["Scanning...",(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return c("scan")},children:"Cancel Scan"})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Artifact Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("scan")},children:"Begin Scan"})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Scanner Detected",children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: No scanner was detected. This machine requires a scanner to operate."})})}},40875:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchArtifactHarvester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchArtifactHarvester=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data.info,s=d.no_scanner,u=d.harvesting,m=d.inserted_battery;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: No scanner detected."})||(0,o.createComponentVNode)(2,c.Section,{children:u>0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Harvesting in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||u<0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Energy dump in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||Object.keys(m).length&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:m.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Signature ID",children:m.artifact_id})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"eject",onClick:function(){return l("ejectbattery")},children:"Eject Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bolt",onClick:function(){return l("drainbattery")},children:"Drain Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"star",onClick:function(){return l("harvest")},children:"Begin Harvest"})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})})})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.info.inserted_battery);return Object.keys(a).length?(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:a.stored_charge,maxValue:a.capacity}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})}},88835:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchDepthScanner=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchDepthScanner=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current,s=l.positive_locations;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[Object.keys(d).length&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",icon:"trash",confirmIcon:"trash",content:"Delete Entry",onClick:function(){return i("clear",{index:d.index})}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time",children:d.time}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coords",children:d.coords}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Depth",children:[d.depth," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Size",children:[d.clearance," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dissonance Spread",children:d.dissonance_spread}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Material",children:d.material})]})})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Entries",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i("clear")}}),children:s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return i("select",{select:e.index})},children:[e.time,", ",e.coords]},e.index)}))||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No traces found."})})]})})}},5622:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchHandheldPowerUtilizer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchHandheldPowerUtilizer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.inserted_battery,s=l.anomaly,u=l.charge,m=l.capacity,p=l.timeleft,C=l.activated,h=l.duration,N=l.interval;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Anomaly Power Utilizer",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!d,icon:"eject",onClick:function(){return i("ejectbattery")},children:"Eject Battery"}),children:d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inserted Battery",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomalies Detected",children:s||"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time Left Activated",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"power-off",onClick:function(){return i("startup")},children:C?"Activated":"Deactivated"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Duration",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:h,stepPixelSize:4,maxValue:30,onDrag:function(e,n){return i("changeduration",{duration:10*n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Interval",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:N,stepPixelSize:10,maxValue:10,onDrag:function(e,n){return i("changeinterval",{interval:10*n})}})})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted. Please insert a cell."})})})})}},53702:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchReplicator=void 0;var o=t(39812),r=(t(41860),t(2497),t(71494)),c=t(74814),a=t(85952);n.XenoarchReplicator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.tgui_construction;return(0,o.createComponentVNode)(2,a.Window,{theme:"abductor",width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{color:e.background,icon:e.icon,iconColor:e.foreground,fontSize:4,onClick:function(){return i("construct",{key:e.key})}},e.key)}))})})}},13153:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSpectrometer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.XenoarchSpectrometer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.scanned_item,u=d.scanned_item_desc,m=d.last_scan_data,p=d.scan_progress,C=d.scanning,h=d.scanner_seal_integrity,N=d.scanner_rpm,V=d.scanner_temperature,b=d.coolant_usage_rate,f=d.coolant_usage_max,g=(d.unused_coolant_abs,d.unused_coolant_per),k=d.coolant_purity,v=d.optimal_wavelength,B=d.maser_wavelength,L=d.maser_wavelength_max,_=d.maser_efficiency,x=d.radiation,w=(d.t_left_radspike,d.rad_shield_on);return(0,o.createComponentVNode)(2,a.Window,{width:900,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"signal",selected:C,onClick:function(){return l("scanItem")},children:C?"HALT SCAN":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,onClick:function(){return l("ejectItem")},children:"Eject Item"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Item",children:s||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No item inserted."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heuristic Analysis",children:u||"None found."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:100,color:"good"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vacuum Seal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"MASER",buttons:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Match wavelengths to progress the scan."}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"MASER Efficiency",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:_,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wavelength",children:(0,o.createComponentVNode)(2,c.Slider,{animated:!0,value:B,fillValue:v,minValue:1,maxValue:L,format:function(e){return e+" MHz"},step:10,onDrag:function(e,n){return l("maserWavelength",{wavelength:n})}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Environment / Internal",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Centrifuge Speed",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:N,minValue:0,maxValue:1e3,color:"good",children:[N," RPM"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Internal Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:V,maxValue:1273,ranges:{bad:[1e3,Infinity],average:[250,1e3],good:[0,250]},children:[V," K"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Radiation",buttons:(0,o.createComponentVNode)(2,c.Button,{selected:w,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:w?"Disable Radiation Shielding":"Enable Radiation Shielding"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Ambient Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:x,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[x," mSv"]})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cooling",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Remaining",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:10*g,maxValue:1e3,ranges:{good:[65,Infinity],average:[15,65],bad:[0,15]},children:[10*g," u"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Flow Rate",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:b,maxValue:f,stepPixelSize:50,format:function(e){return e+" u/s"},onDrag:function(e,n){return l("coolantRate",{coolant:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Purity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:k,maxValue:100,ranges:{good:[66,Infinity],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Latest Results",children:(0,i.decodeHtmlEntities)(m).split("\n").map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e},e)}))})]})})}},19820:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSuspension=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchSuspension=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cell,s=l.cellCharge,u=l.cellMaxCharge,m=l.locked,p=l.suspension_field;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:150,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:'Triple-phase S.F.G. MK III "Reliant"',buttons:(0,o.createComponentVNode)(2,c.Button,{icon:m?"lock":"lock-open",selected:!m,onClick:function(){return i("lock")},children:m?"Locked":"Unlocked"}),children:m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"This interface is locked. Swipe an ID card to unlock it."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:d&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*u,Infinity],average:[.5*u,.75*u],bad:[-Infinity,.5*u]},value:s,maxValue:u})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cell inserted."})})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,icon:"meteor",selected:p,onClick:function(){return i("toggle_field")},children:p?"Disengage Suspension Field":"Engage Suspension Field"})],4)})})})}},71739:function(e,n,t){"use strict";n.__esModule=!0,n.Scrubber=n.Vent=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);t(76270);n.Vent=function(e,n){var t=e.vent,i=(0,c.useBackend)(n).act,l=t.id_tag,d=t.long_name,s=t.power,u=t.checks,m=t.excheck,p=t.incheck,C=t.direction,h=t.external,N=t.internal,V=t.extdefault,b=t.intdefault;return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(d),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",selected:s,content:s?"On":"Off",onClick:function(){return i("power",{id_tag:l,val:Number(!s)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"siphon"!==C?"Pressurizing":"Siphoning",color:"siphon"===C&&"danger",onClick:function(){return i("direction",{id_tag:l,val:Number("siphon"===C)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"Internal",selected:p,onClick:function(){return i("incheck",{id_tag:l,val:u})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"External",selected:m,onClick:function(){return i("excheck",{id_tag:l,val:u})}})]}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(N),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_internal_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:b,content:"Reset",onClick:function(){return i("reset_internal_pressure",{id_tag:l})}})]}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"External Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(h),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_external_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:V,content:"Reset",onClick:function(){return i("reset_external_pressure",{id_tag:l})}})]})]})})};n.Scrubber=function(e,n){var t=e.scrubber,i=(0,c.useBackend)(n).act,l=t.long_name,d=t.power,s=t.scrubbing,u=t.id_tag,m=(t.widenet,t.filters);return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(l),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return i("power",{id_tag:u,val:Number(!d)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"filter":"sign-in-alt",color:s||"danger",content:s?"Scrubbing":"Siphoning",onClick:function(){return i("scrubbing",{id_tag:u,val:Number(!s)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filters",children:s&&m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.val?"check-square-o":"square-o",content:e.name,title:e.name,selected:e.val,onClick:function(){return i(e.command,{id_tag:u,val:!e.val})}},e.name)}))||"N/A"})]})})}},48229:function(e,n,t){"use strict";n.__esModule=!0,n.BeakerContents=void 0;var o=t(39812),r=t(74814);n.BeakerContents=function(e){var n=e.beakerLoaded,t=e.beakerContents,c=void 0===t?[]:t,a=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!n&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===c.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),c.map((function(e,n){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:(0,o.createComponentVNode)(2,r.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:[(t=e.volume,t+" unit"+(1===t?"":"s"))," of ",e.name]}),!!a&&(0,o.createComponentVNode)(2,r.Flex.Item,{children:a(e,n)})]})},e.name);var t}))]})}},16007:function(e,n,t){"use strict";n.__esModule=!0,n.ComplexModal=n.modalRegisterBodyOverride=n.modalOpen=void 0;var o=t(39812),r=t(71494),c=t(74814),a={};n.modalOpen=function(e,n,t){var o=(0,r.useBackend)(e),c=o.act,a=o.data,i=Object.assign(a.modal?a.modal.args:{},t||{});c("modal_open",{id:n,arguments:JSON.stringify(i)})};n.modalRegisterBodyOverride=function(e,n){a[e]=n};var i=function(e,n,t,o){var c=(0,r.useBackend)(e),a=c.act,i=c.data;if(i.modal){var l=Object.assign(i.modal.args||{},o||{});a("modal_answer",{id:n,answer:t,arguments:JSON.stringify(l)})}},l=function(e,n){(0,(0,r.useBackend)(e).act)("modal_close",{id:n})};n.ComplexModal=function(e,n){var t=(0,r.useBackend)(n).data;if(t.modal){var d,s,u=t.modal,m=u.id,p=u.text,C=u.type,h=(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}});if(a[m])s=a[m](t.modal,n);else if("input"===C){var N=t.modal.value;d=function(e){return i(n,m,N)},s=(0,o.createComponentVNode)(2,c.Input,{value:t.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autoFocus:!0,autoSelect:!0,onChange:function(e,n){N=n}}),h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return i(n,m,N)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}else if("choice"===C){var V="object"==typeof t.modal.choices?Object.values(t.modal.choices):t.modal.choices;s=(0,o.createComponentVNode)(2,c.Dropdown,{options:V,selected:t.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return i(n,m,e)}})}else"bento"===C?s=(0,o.createComponentVNode)(2,c.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:t.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,c.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,c.Button,{selected:r+1===parseInt(t.modal.value,10),onClick:function(){return i(n,m,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===C&&(h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:t.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return i(n,m,0)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:t.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return i(n,m,1)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,c.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:d,mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:p}),s,h]})}}},67861:function(e,n,t){"use strict";n.__esModule=!0,n.FullscreenNotice=void 0;var o=t(39812),r=t(74814);n.FullscreenNotice=function(e,n){var t=e.children,c=e.title,a=void 0===c?"Welcome":c;return(0,o.createComponentVNode)(2,r.Section,{title:a,height:"100%",fill:!0,children:(0,o.createComponentVNode)(2,r.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,r.Flex.Item,{textAlign:"center",mt:"-2rem",children:t})})})}},21451:function(e,n,t){"use strict";n.__esModule=!0,n.InterfaceLockNoticeBox=void 0;var o=t(39812),r=t(71494),c=t(74814);n.InterfaceLockNoticeBox=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.siliconUser,d=void 0===l?i.siliconUser:l,s=e.locked,u=void 0===s?i.locked:s,m=e.normallyLocked,p=void 0===m?i.normallyLocked:m,C=e.onLockStatusChange,h=void 0===C?function(){return a("lock")}:C,N=e.accessText,V=void 0===N?"an ID card":N,b=e.deny,f=void 0!==b&&b,g=e.denialMessage;return f?void 0===g?"Error.":g:d?(0,o.createComponentVNode)(2,c.NoticeBox,{color:d&&"grey",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:"Interface lock status:"}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1"}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{m:"0",color:p?"red":"green",icon:p?"lock":"unlock",content:p?"Locked":"Unlocked",onClick:function(){h&&h(!u)}})})]})}):(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe ",V," ","to ",u?"unlock":"lock"," this interface."]})}},28117:function(e,n,t){"use strict";n.__esModule=!0,n.LoginInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.LoginInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.authenticated,d=i.rank;if(i)return(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l," (",d,")"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){return a("logout")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}},1192:function(e,n,t){"use strict";n.__esModule=!0,n.LoginScreen=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(67861);n.LoginScreen=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan,s=l.isAI,u=l.isRobot;return(0,o.createComponentVNode)(2,a.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,c.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,c.Button,{icon:"id-card",content:d||"----------",ml:"0.5rem",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",disabled:!d,content:"Login",onClick:function(){return i("login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return i("login",{login_type:2})}}),!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return i("login",{login_type:3})}})]})}},21526:function(e,n,t){"use strict";n.__esModule=!0,n.MiningUser=void 0;var o=t(39812),r=t(71494),c=t(74814);n.MiningUser=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.insertIdText,d=i.has_id,s=i.id;return(0,o.createComponentVNode)(2,c.NoticeBox,{success:d,children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return a("logoff")}}),(0,o.createComponentVNode)(2,c.Box,{style:{clear:"both"}})],4):l})}},40754:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapPanControls=n.OvermapFlightData=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.OvermapFlightData=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.disableLimiterControls,d=i.ETAnext,s=i.speed,u=i.speed_color,m=i.accel,p=i.heading,C=i.accellimit;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ETA To Next Grid",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",color:u,children:[s," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration",children:[m," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heading",children:[p,"\xb0"]}),!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration Limiter",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("accellimit")},children:[C," Gm/h"]})})||null]})};n.OvermapPanControls=function(e,n){var t=(0,r.useBackend)(n).act,a=e.disabled,i=e.actToDo,l=e.selected,d=void 0===l?function(e){return!1}:l;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(9),onClick:function(){return t(i,{dir:9})},icon:"arrow-up",iconRotation:-45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(1),onClick:function(){return t(i,{dir:1})},icon:"arrow-up"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(5),onClick:function(){return t(i,{dir:5})},icon:"arrow-up",iconRotation:45})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(8),onClick:function(){return t(i,{dir:8})},icon:"arrow-left"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(0),onClick:function(){return t("brake")},icon:"ban"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(4),onClick:function(){return t(i,{dir:4})},icon:"arrow-right"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(10),onClick:function(){return t(i,{dir:10})},icon:"arrow-down",iconRotation:45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(2),onClick:function(){return t(i,{dir:2})},icon:"arrow-down"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(6),onClick:function(){return t(i,{dir:6})},icon:"arrow-down",iconRotation:-45})]})],4)}},34227:function(e,n,t){"use strict";n.__esModule=!0,n.PortableBasicInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.PortableBasicInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.connected,d=i.holding,s=i.on,u=i.pressure,m=i.powerDraw,p=i.cellCharge,C=i.cellMaxCharge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){return a("power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Port",color:l?"good":"average",children:l?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:[m," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:C,ranges:{good:[.5*C,Infinity],average:[.25*C,.5*C],bad:[-Infinity,.25*C]},children:[p," W"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){return a("eject")}}),children:d?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d.pressure})," kPa"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No holding tank"})})],4)}},14959:function(e,n,t){"use strict";n.__esModule=!0,n.RankIcon=void 0;var o=t(39812),r=t(74814),c={"Colony Director":"user-tie","Site Manager":"user-tie",Overseer:"user-tie","Head of Personnel":"briefcase","Crew Resources Officer":"briefcase","Deputy Director":"briefcase","Command Secretary":"user-tie","Head of Security":"user-shield","Security Commander":"user-shield","Chief of Security":"user-shield",Warden:["city","shield-alt"],Detective:"search","Forensic Technician":"search","Security Officer":"user-shield","Junior Officer":"user-shield","Chief Engineer":"toolbox","Atmospheric Technician":"wind","Station Engineer":"toolbox","Maintenance Technician":"wrench","Engine Technician":"toolbox",Electrician:"toolbox","Chief Medical Officer":"user-md",Chemist:"mortar-pestle",Pharmacist:"mortar-pestle","Medical Doctor":"user-md",Surgeon:"user-md","Emergency Physician":"user-md",Nurse:"user-md",Virologist:"disease",Paramedic:"ambulance","Emergency Medical Technician":"ambulance",Psychiatrist:"couch",Psychologist:"couch","Research Director":"user-graduate","Research Supervisor":"user-graduate",Roboticist:"robot","Biomechanical Engineer":["wrench","heartbeat"],"Mechatronic Engineer":"wrench",Scientist:"flask",Xenoarchaeologist:"flask",Anomalist:"flask","Phoron Researcher":"flask","Circuit Designer":"car-battery",Xenobiologist:"meteor",Xenobotanist:["biohazard","seedling"],Quartermaster:"box-open","Supply Chief":"warehouse","Cargo Technician":"box-open","Shaft Miner":"hard-hat","Drill Technician":"hard-hat",Pathfinder:"binoculars",Explorer:"user-astronaut","Field Medic":["user-md","user-astronaut"],Pilot:"space-shuttle",Bartender:"glass-martini",Barista:"coffee",Botanist:"leaf",Gardener:"leaf",Chaplain:"place-of-worship",Counselor:"couch",Chef:"utensils",Cook:"utensils",Entertainer:"smile-beam",Performer:"smile-beam",Musician:"guitar",Stagehand:"smile-beam",Intern:"school","Apprentice Engineer":["school","wrench"],"Medical Intern":["school","user-md"],"Lab Assistant":["school","flask"],"Security Cadet":["school","shield-alt"],"Jr. Cargo Tech":["school","box"],"Jr. Explorer":["school","user-astronaut"],Server:["school","utensils"],"Internal Affairs Agent":"balance-scale",Janitor:"broom",Custodian:"broom","Sanitation Technician":"hand-sparkles",Maid:"broom",Librarian:"book",Journalist:"newspaper",Writer:"book",Historian:"chalkboard-teacher",Professor:"chalkboard-teacher",Visitor:"user","Emergency Responder":"fighter-jet"};n.RankIcon=function(e,n){var t=e.rank,a=e.color,i=void 0===a?"label":a,l=c[t];return"string"==typeof l?(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:l,size:2}):Array.isArray(l)?l.map((function(e){return(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:e,size:2},e)})):(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:"user",size:2})}},36355:function(e,n,t){"use strict";n.__esModule=!0,n.TemporaryNotice=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);n.TemporaryNotice=function(e,n){var t,i=e.decode,l=(0,c.useBackend)(n),d=l.act,s=l.data.temp;if(s){var u=((t={})[s.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},u,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:i?(0,r.decodeHtmlEntities)(s.text):s.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}}},28840:function(e,n,t){"use strict";n.__esModule=!0,n.pAIAtmos=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.pAIAtmos=function(e,n){var t=(0,a.useBackend)(n),d=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,l.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})})})}},47132:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDirectives=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.pAIDirectives=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.master,s=l.dna,u=l.prime,m=l.supplemental;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Master",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master",children:d&&(0,o.createComponentVNode)(2,c.Box,{children:[d," (",s,")",(0,o.createComponentVNode)(2,c.Button,{icon:"syringe",content:"Request Sample",onClick:function(){return i("getdna")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:"None"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Directives",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prime Directive",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Supplemental Directive(s)",children:m||"None"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,italic:!0,children:'Recall, personality, that you are a complex piece of software with tremendous social skills. Unlike station AI models, you are focused entirely on sapient-software interfacing. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you should strive to be seen as the ideal, unwavering digital companion that you are.'}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})]})})}},52852:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDoorjack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIDoorjack=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cable,s=l.machine,u=l.inprogress,m=l.progress_a,p=l.progress_b,C=l.aborted;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:150,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cable",children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Connected"})||d&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Extended"})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"ethernet",content:"Retracted",onClick:function(){return i("cable")}})})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hack",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:100,ranges:{good:[67,Infinity],average:[33,67],bad:[-Infinity,33]},children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),".",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",color:"bad",onClick:function(){return i("cancel")}})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"virus",content:"Start",onClick:function(){return i("jack")}})})||!!C&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",mt:1,children:"Hack aborted."})]})})})})}},88814:function(e,n,t){"use strict";n.__esModule=!0,n.pAIInterface=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIInterface=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.bought,s=l.not_bought,u=l.available_ram,m=l.emotions,p=l.current_emotion;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Emotion",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.id===p,onClick:function(){return i("image",{image:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Software (Available RAM: "+u+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Installed",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.on,onClick:function(){return i("software",{software:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloadable",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name+" ("+e.ram+")",disabled:e.ram>u,onClick:function(){return i("purchase",{purchase:e.id})}},e.id)}))})]})})]})})}},52510:function(e,n,t){"use strict";n.__esModule=!0,n.pAIMedrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIMedrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.medical,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.alg}),(0,o.createComponentVNode)(2,c.Box,{children:u.alg_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Diseases",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.cdi}),(0,o.createComponentVNode)(2,c.Box,{children:u.cdi_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},59946:function(e,n,t){"use strict";n.__esModule=!0,n.pAISecrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAISecrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.security,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:(0,o.createComponentVNode)(2,c.Box,{children:u.criminal})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},42360:function(e,n,t){"use strict";n.__esModule=!0,n.pda_atmos_scan=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814);n.pda_atmos_scan=function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(l).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})}},84932:function(e,n,t){"use strict";n.__esModule=!0,n.pda_janitor=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_janitor=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.janitor);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:0===a.user_loc.x&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Unknown"})||(0,o.createComponentVNode)(2,c.Box,{children:[a.user_loc.x," / ",a.user_loc.y]})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Locations",children:a.mops&&(0,o.createVNode)(1,"ul",null,a.mops.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No mops detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Bucket Locations",children:a.buckets&&(0,o.createVNode)(1,"ul",null,a.buckets.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Capacity: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No buckets detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Cleanbot Locations",children:a.cleanbots&&(0,o.createVNode)(1,"ul",null,a.cleanbots.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cleanbots detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Janitorial Cart Locations",children:a.carts&&(0,o.createVNode)(1,"ul",null,a.carts.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Water Level: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},6011:function(e,n,t){"use strict";n.__esModule=!0,n.pda_main_menu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.pda_main_menu=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.owner,d=i.ownjob,s=i.idInserted,u=i.categories,m=i.pai,p=i.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",d]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Update PDA Info",disabled:!s,onClick:function(){return a("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){var n=i.apps[e];return n&&n.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,children:n.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.ref in p?e.notify_icon:e.icon,iconSpin:e.ref in p,color:e.ref in p?"red":"transparent",content:e.name,onClick:function(){return a("StartProgram",{program:e.ref})}},e.ref)}))},e):null}))})}),!!m&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return a("pai",{option:1})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return a("pai",{option:2})}})]})],0)}},93303:function(e,n,t){"use strict";n.__esModule=!0,n.pda_manifest=void 0;var o=t(39812),r=(t(64499),t(71494)),c=t(74814),a=t(22902);n.pda_manifest=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.CrewManifestContent)})}},65276:function(e,n,t){"use strict";n.__esModule=!0,n.pda_medical=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_medical=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.medical;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Medical Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Disease",children:u.cdi}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:u.notes})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Medical record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},92494:function(e,n,t){"use strict";n.__esModule=!0,n.pda_messenger=void 0;var o=t(39812),r=t(2497),c=t(64499),a=t(71494),i=t(74814);n.pda_messenger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data);r.auto_scroll,r.convo_name,r.convo_job,r.messages;return r.active_conversation?(0,o.createComponentVNode)(2,d):(0,o.createComponentVNode)(2,s)};var l=function(e,n,t){if(n<0||n>t.length)return e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var o=t[n].sent;return e.sent&&o?"TinderMessage_Subsequent_Sent":e.sent||o?e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"},d=function(e,n){var t=(0,a.useBackend)(n),d=t.act,s=t.data,u=(s.auto_scroll,s.convo_name),m=s.convo_job,p=s.messages,C=s.active_conversation,h=(s.useRetro,(0,a.useLocalState)(n,"clipboardMode",!1)),N=h[0],V=h[1],b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:e.sent?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:l(e,n-1,t),inline:!0,children:(0,r.decodeHtmlEntities)(e.message)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]});return N&&(b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:e.sent?"ClassicMessage_Sent":"ClassicMessage_Received",children:[e.sent?"You:":"Them:"," ",(0,r.decodeHtmlEntities)(e.message)]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]})),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return d("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),b]})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.auto_scroll,c.convopdas),d=c.pdas,s=c.charges,m=(c.plugins,c.silent),p=c.toff;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,i.Button,{selected:!m,icon:m?"volume-mute":"volume-up",onClick:function(){return r("Toggle Ringer")},children:["Ringer: ",m?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return r("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"bell",onClick:function(){return r("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return r("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,i.Box,{children:[!!s&&(0,o.createComponentVNode)(2,i.Box,{children:[s," charges left."]}),!l.length&&!d.length&&(0,o.createComponentVNode)(2,i.Box,{children:"No other PDAs located."})||(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,u,{title:"Current Conversations",pdas:l,msgAct:"Select Conversation"}),(0,o.createComponentVNode)(2,u,{title:"Other PDAs",pdas:d,msgAct:"Message"})]})]})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",mt:2,children:"Messenger Offline."})]})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.pdas,d=e.title,s=e.msgAct,u=c.charges,m=c.plugins;return l&&l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return r(s,{target:e.Reference})}}),!!u&&m.map((function(n){return(0,o.createComponentVNode)(2,i.Button,{icon:n.icon,content:n.name,onClick:function(){return r("Messenger Plugin",{plugin:n.ref,target:e.Reference})}},n.ref)}))]},e.Reference)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:"No PDAs found."})}},31505:function(e,n,t){"use strict";n.__esModule=!0,n.pda_news=void 0;var o=t(39812),r=(t(64499),t(2497)),c=t(71494),a=t(74814);n.pda_news=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),d=r.feeds,s=r.target_feed;return(0,o.createComponentVNode)(2,a.Box,{children:!d.length&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||s&&(0,o.createComponentVNode)(2,i)||(0,o.createComponentVNode)(2,l)})};var i=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(l.name)+" by "+(0,r.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:null})}}),children:l.messages.length&&l.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[",e.message_type," by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))||(0,o.createComponentVNode)(2,a.Box,{children:["No stories found in ",l.name,"."]})})},l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Recent News",level:2,children:s.length&&(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,r.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,a.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})||(0,o.createComponentVNode)(2,a.Box,{children:"No recent stories found."})}),(0,o.createComponentVNode)(2,a.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)}},66785:function(e,n,t){"use strict";n.__esModule=!0,n.pda_notekeeper=void 0;var o=t(39812),r=t(71494),c=t(74814);n.pda_notekeeper=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.note;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:i}})}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("Edit")},content:"Edit Notes"})]})}},63853:function(e,n,t){"use strict";n.__esModule=!0,n.pda_power=void 0;var o=t(39812),r=t(71494),c=t(89793);n.pda_power=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.PowerMonitorContent)}},20575:function(e,n,t){"use strict";n.__esModule=!0,n.pda_security=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_security=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.security;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Security Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:u.criminal}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:u.mi_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:u.ma_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes:",preserveWhitespace:!0,children:u.notes||"No data found."})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Security record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},63891:function(e,n,t){"use strict";n.__esModule=!0,n.pda_signaller=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494),t(74814),t(32325));n.pda_signaller=function(e,n){return(0,o.createComponentVNode)(2,r.SignalerContent)}},14947:function(e,n,t){"use strict";n.__esModule=!0,n.pda_status_display=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_status_display=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return a("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Evac ETA",onClick:function(){return a("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Message",onClick:function(){return a("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"exclamation-triangle",content:"ALERT",onClick:function(){return a("Status",{statdisp:"alert"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg2"})}})})]})})}},85143:function(e,n,t){"use strict";n.__esModule=!0,n.pda_supply=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_supply=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.supply);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:a.shuttle_moving?"Moving to station "+a.shuttle_eta:"Shuttle at "+a.shuttle_loc})}),(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Approved Orders"}),a.approved.length&&a.approved.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," approved by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"}),(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Requested Orders"}),a.requests.length&&a.requests.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," requested by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"})]})]})}},73218:function(e,n,t){"use strict";n.__esModule=!0,n.getRoutedComponent=n.routingError=void 0;var o=t(39812),r=t(71494),c=(t(30098),t(85952)),a=t(8156),i=function(e,n){return function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:["notFound"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" was not found.")],4),"missingExport"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" is missing an export.")],4)]})})}};n.routingError=i;var l=function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0})})};n.getRoutedComponent=function(e){var n=e.getState(),t=(0,r.selectBackend)(n),o=t.suspended,c=t.config;if(o)return l;for(var d,s=null==c?void 0:c["interface"],u=[function(e){return"./"+e+".tsx"},function(e){return"./"+e+".js"},function(e){return"./"+e+"/index.tsx"},function(e){return"./"+e+"/index.js"}];!d&&u.length>0;){var m=u.shift()(s);try{d=a(m)}catch(C){if("MODULE_NOT_FOUND"!==C.code)throw C}}if(!d)return i("notFound",s);var p=d[s];return p||i("missingExport",s)}},56285:function(){},58602:function(){},48979:function(){},92433:function(){},35070:function(){},86455:function(){},41821:function(){},83243:function(){},97585:function(){},64197:function(){},87266:function(){},99195:function(){},72916:function(){},75168:function(e,n,t){var o={"./pda_atmos_scan.js":42360,"./pda_janitor.js":84932,"./pda_main_menu.js":6011,"./pda_manifest.js":93303,"./pda_medical.js":65276,"./pda_messenger.js":92494,"./pda_news.js":31505,"./pda_notekeeper.js":66785,"./pda_power.js":63853,"./pda_security.js":20575,"./pda_signaller.js":63891,"./pda_status_display.js":14947,"./pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=75168},8156:function(e,n,t){var o={"./AICard":34129,"./AICard.js":34129,"./APC":73405,"./APC.js":73405,"./AccountsTerminal":20832,"./AccountsTerminal.js":20832,"./AdminShuttleController":19007,"./AdminShuttleController.js":19007,"./AgentCard":51104,"./AgentCard.js":51104,"./AiAirlock":47330,"./AiAirlock.js":47330,"./AiRestorer":33084,"./AiRestorer.js":33084,"./AiSupermatter":597,"./AiSupermatter.js":597,"./AirAlarm":58444,"./AirAlarm.js":58444,"./AlertModal":24053,"./AlertModal.js":24053,"./AlgaeFarm":34847,"./AlgaeFarm.js":34847,"./AppearanceChanger":65145,"./AppearanceChanger.js":65145,"./ArcadeBattle":86776,"./ArcadeBattle.js":86776,"./AreaScrubberControl":13496,"./AreaScrubberControl.js":13496,"./AssemblyInfrared":56404,"./AssemblyInfrared.js":56404,"./AssemblyProx":29632,"./AssemblyProx.js":29632,"./AssemblyTimer":48661,"./AssemblyTimer.js":48661,"./AtmosAlertConsole":38531,"./AtmosAlertConsole.js":38531,"./AtmosControl":46566,"./AtmosControl.js":46566,"./AtmosFilter":2726,"./AtmosFilter.js":2726,"./AtmosMixer":61505,"./AtmosMixer.js":61505,"./Autolathe":99994,"./Autolathe.js":99994,"./Batteryrack":62586,"./Batteryrack.js":62586,"./BeaconLocator":25116,"./BeaconLocator.js":25116,"./Biogenerator":20813,"./Biogenerator.js":20813,"./BodyDesigner":81850,"./BodyDesigner.js":81850,"./BodyScanner":6060,"./BodyScanner.js":6060,"./BombTester":74639,"./BombTester.js":74639,"./BotanyEditor":48693,"./BotanyEditor.js":48693,"./BotanyIsolator":25486,"./BotanyIsolator.js":25486,"./BrigTimer":61956,"./BrigTimer.js":61956,"./CameraConsole":3180,"./CameraConsole.js":3180,"./Canister":94477,"./Canister.js":94477,"./Canvas":55636,"./Canvas.js":55636,"./CasinoPrizeDispenser":25131,"./CasinoPrizeDispenser.js":25131,"./CharacterDirectory":47947,"./CharacterDirectory.js":47947,"./ChemDispenser":22223,"./ChemDispenser.js":22223,"./ChemMaster":34859,"./ChemMaster.js":34859,"./ClawMachine":83919,"./ClawMachine.js":83919,"./Cleanbot":74351,"./Cleanbot.js":74351,"./CloningConsole":98213,"./CloningConsole.js":98213,"./ColorMate":32278,"./ColorMate.js":32278,"./CommunicationsConsole":130,"./CommunicationsConsole.js":130,"./Communicator":4220,"./Communicator.js":4220,"./ComputerFabricator":2174,"./ComputerFabricator.js":2174,"./CookingAppliance":26090,"./CookingAppliance.js":26090,"./CrewManifest":22902,"./CrewManifest.js":22902,"./CrewMonitor":96158,"./CrewMonitor.js":96158,"./Cryo":99798,"./Cryo.js":99798,"./CryoStorage":54234,"./CryoStorage.js":54234,"./CryoStorageVr":66384,"./CryoStorageVr.js":66384,"./DNAForensics":99579,"./DNAForensics.js":99579,"./DNAModifier":21849,"./DNAModifier.js":21849,"./DestinationTagger":59305,"./DestinationTagger.js":59305,"./DiseaseSplicer":10015,"./DiseaseSplicer.js":10015,"./DishIncubator":31066,"./DishIncubator.js":31066,"./DisposalBin":19095,"./DisposalBin.js":19095,"./DroneConsole":29345,"./DroneConsole.js":29345,"./EmbeddedController":84122,"./EmbeddedController.js":84122,"./ExonetNode":33777,"./ExonetNode.js":33777,"./ExosuitFabricator":95481,"./ExosuitFabricator.js":95481,"./Farmbot":95598,"./Farmbot.js":95598,"./Fax":17569,"./Fax.js":17569,"./FileCabinet":58087,"./FileCabinet.js":58087,"./Floorbot":21902,"./Floorbot.js":21902,"./GasPump":309,"./GasPump.js":309,"./GasTemperatureSystem":26049,"./GasTemperatureSystem.js":26049,"./GeneralAtmoControl":2753,"./GeneralAtmoControl.js":2753,"./GeneralRecords":57753,"./GeneralRecords.js":57753,"./Gps":25230,"./Gps.js":25230,"./GravityGenerator":4475,"./GravityGenerator.js":4475,"./GuestPass":95075,"./GuestPass.js":95075,"./GyrotronControl":31875,"./GyrotronControl.js":31875,"./Holodeck":7908,"./Holodeck.js":7908,"./ICAssembly":12676,"./ICAssembly.js":12676,"./ICCircuit":42394,"./ICCircuit.js":42394,"./ICDetailer":81039,"./ICDetailer.js":81039,"./ICPrinter":21687,"./ICPrinter.js":21687,"./IDCard":48522,"./IDCard.js":48522,"./IdentificationComputer":76952,"./IdentificationComputer.js":76952,"./InputModal":44570,"./InputModal.js":44570,"./InventoryPanel":53541,"./InventoryPanel.js":53541,"./InventoryPanelHuman":46638,"./InventoryPanelHuman.js":46638,"./IsolationCentrifuge":45e3,"./IsolationCentrifuge.js":45e3,"./JanitorCart":83994,"./JanitorCart.js":83994,"./Jukebox":68741,"./Jukebox.js":68741,"./LawManager":13204,"./LawManager.js":13204,"./ListInput":58802,"./ListInput.js":58802,"./LookingGlass":36104,"./LookingGlass.js":36104,"./MechaControlConsole":74714,"./MechaControlConsole.js":74714,"./Medbot":17888,"./Medbot.js":17888,"./MedicalRecords":37610,"./MedicalRecords.js":37610,"./MessageMonitor":287,"./MessageMonitor.js":287,"./Microwave":75412,"./Microwave.js":75412,"./MiningOreProcessingConsole":35016,"./MiningOreProcessingConsole.js":35016,"./MiningStackingConsole":87314,"./MiningStackingConsole.js":87314,"./MiningVendor":62012,"./MiningVendor.js":62012,"./MuleBot":6479,"./MuleBot.js":6479,"./NIF":46157,"./NIF.js":46157,"./NTNetRelay":79630,"./NTNetRelay.js":79630,"./Newscaster":60042,"./Newscaster.js":60042,"./NoticeBoard":31669,"./NoticeBoard.js":31669,"./NtosAccessDecrypter":63231,"./NtosAccessDecrypter.js":63231,"./NtosArcade":79760,"./NtosArcade.js":79760,"./NtosAtmosControl":97908,"./NtosAtmosControl.js":97908,"./NtosCameraConsole":63645,"./NtosCameraConsole.js":63645,"./NtosCommunicationsConsole":74093,"./NtosCommunicationsConsole.js":74093,"./NtosConfiguration":55513,"./NtosConfiguration.js":55513,"./NtosCrewMonitor":17539,"./NtosCrewMonitor.js":17539,"./NtosDigitalWarrant":20025,"./NtosDigitalWarrant.js":20025,"./NtosEmailAdministration":11325,"./NtosEmailAdministration.js":11325,"./NtosEmailClient":77006,"./NtosEmailClient.js":77006,"./NtosFileManager":86441,"./NtosFileManager.js":86441,"./NtosIdentificationComputer":87369,"./NtosIdentificationComputer.js":87369,"./NtosMain":59543,"./NtosMain.js":59543,"./NtosNetChat":73883,"./NtosNetChat.js":73883,"./NtosNetDos":83908,"./NtosNetDos.js":83908,"./NtosNetDownloader":83305,"./NtosNetDownloader.js":83305,"./NtosNetMonitor":6806,"./NtosNetMonitor.js":6806,"./NtosNetTransfer":4363,"./NtosNetTransfer.js":4363,"./NtosNewsBrowser":23225,"./NtosNewsBrowser.js":23225,"./NtosOvermapNavigation":3839,"./NtosOvermapNavigation.js":3839,"./NtosPowerMonitor":54698,"./NtosPowerMonitor.js":54698,"./NtosRCON":17086,"./NtosRCON.js":17086,"./NtosRevelation":69480,"./NtosRevelation.js":69480,"./NtosShutoffMonitor":93990,"./NtosShutoffMonitor.js":93990,"./NtosStationAlertConsole":76124,"./NtosStationAlertConsole.js":76124,"./NtosSupermatterMonitor":22475,"./NtosSupermatterMonitor.js":22475,"./NtosUAV":66744,"./NtosUAV.js":66744,"./NtosWordProcessor":19458,"./NtosWordProcessor.js":19458,"./OmniFilter":18326,"./OmniFilter.js":18326,"./OmniMixer":78588,"./OmniMixer.js":78588,"./OperatingComputer":48826,"./OperatingComputer.js":48826,"./OvermapDisperser":51888,"./OvermapDisperser.js":51888,"./OvermapEngines":25123,"./OvermapEngines.js":25123,"./OvermapFull":63836,"./OvermapFull.js":63836,"./OvermapHelm":89380,"./OvermapHelm.js":89380,"./OvermapNavigation":12640,"./OvermapNavigation.js":12640,"./OvermapShieldGenerator":84031,"./OvermapShieldGenerator.js":84031,"./OvermapShipSensors":51932,"./OvermapShipSensors.js":51932,"./ParticleAccelerator":57966,"./ParticleAccelerator.js":57966,"./PartsLathe":80374,"./PartsLathe.js":80374,"./PathogenicIsolator":83987,"./PathogenicIsolator.js":83987,"./Pda":72586,"./Pda.js":72586,"./PersonalCrafting":67589,"./PersonalCrafting.js":67589,"./Photocopier":9527,"./Photocopier.js":9527,"./PipeDispenser":92310,"./PipeDispenser.js":92310,"./PlantAnalyzer":38575,"./PlantAnalyzer.js":38575,"./PointDefenseControl":17599,"./PointDefenseControl.js":17599,"./PortableGenerator":46104,"./PortableGenerator.js":46104,"./PortablePump":82564,"./PortablePump.js":82564,"./PortableScrubber":24901,"./PortableScrubber.js":24901,"./PortableTurret":31695,"./PortableTurret.js":31695,"./PowerMonitor":89793,"./PowerMonitor.js":89793,"./PressureRegulator":81121,"./PressureRegulator.js":81121,"./PrisonerManagement":14210,"./PrisonerManagement.js":14210,"./RCON":43996,"./RCON.js":43996,"./RIGSuit":92141,"./RIGSuit.js":92141,"./Radio":17481,"./Radio.js":17481,"./RapidPipeDispenser":29509,"./RapidPipeDispenser.js":29509,"./RequestConsole":53976,"./RequestConsole.js":53976,"./ResearchConsole":48639,"./ResearchConsole.js":48639,"./ResearchServerController":35606,"./ResearchServerController.js":35606,"./ResleevingConsole":86330,"./ResleevingConsole.js":86330,"./ResleevingPod":88359,"./ResleevingPod.js":88359,"./RoboticsControlConsole":24455,"./RoboticsControlConsole.js":24455,"./RogueZones":52330,"./RogueZones.js":52330,"./RustCoreMonitor":59412,"./RustCoreMonitor.js":59412,"./RustFuelControl":59327,"./RustFuelControl.js":59327,"./Secbot":54943,"./Secbot.js":54943,"./SecureSafe":57436,"./SecureSafe.js":57436,"./SecurityRecords":71915,"./SecurityRecords.js":71915,"./SeedStorage":93550,"./SeedStorage.js":93550,"./ShieldCapacitor":16765,"./ShieldCapacitor.js":16765,"./ShieldGenerator":79229,"./ShieldGenerator.js":79229,"./ShutoffMonitor":89957,"./ShutoffMonitor.js":89957,"./ShuttleControl":34404,"./ShuttleControl.js":34404,"./Signaler":32325,"./Signaler.js":32325,"./Sleeper":80646,"./Sleeper.js":80646,"./SmartVend":55896,"./SmartVend.js":55896,"./Smes":20561,"./Smes.js":20561,"./SolarControl":21633,"./SolarControl.js":21633,"./SpaceHeater":57762,"./SpaceHeater.js":57762,"./Stack":58215,"./Stack.js":58215,"./StationAlertConsole":32015,"./StationAlertConsole.js":32015,"./StationBlueprints":52649,"./StationBlueprints.js":52649,"./SuitCycler":72e3,"./SuitCycler.js":72e3,"./SuitStorageUnit":80748,"./SuitStorageUnit.js":80748,"./SupermatterMonitor":6951,"./SupermatterMonitor.js":6951,"./SupplyConsole":12431,"./SupplyConsole.js":12431,"./TEGenerator":30111,"./TEGenerator.js":30111,"./Tank":58457,"./Tank.js":58457,"./TankDispenser":38754,"./TankDispenser.js":38754,"./TelecommsLogBrowser":73754,"./TelecommsLogBrowser.js":73754,"./TelecommsMachineBrowser":29441,"./TelecommsMachineBrowser.js":29441,"./TelecommsMultitoolMenu":86756,"./TelecommsMultitoolMenu.js":86756,"./Teleporter":18509,"./Teleporter.js":18509,"./TelesciConsole":62555,"./TelesciConsole.js":62555,"./TimeClock":55096,"./TimeClock.js":55096,"./TransferValve":24389,"./TransferValve.js":24389,"./TurbineControl":95893,"./TurbineControl.js":95893,"./Turbolift":62542,"./Turbolift.js":62542,"./Uplink":89761,"./Uplink.js":89761,"./Vending":61321,"./Vending.js":61321,"./VolumePanel":93147,"./VolumePanel.js":93147,"./VorePanel":24630,"./VorePanel.js":24630,"./Wires":21162,"./Wires.js":21162,"./XenoarchArtifactAnalyzer":81522,"./XenoarchArtifactAnalyzer.js":81522,"./XenoarchArtifactHarvester":40875,"./XenoarchArtifactHarvester.js":40875,"./XenoarchDepthScanner":88835,"./XenoarchDepthScanner.js":88835,"./XenoarchHandheldPowerUtilizer":5622,"./XenoarchHandheldPowerUtilizer.js":5622,"./XenoarchReplicator":53702,"./XenoarchReplicator.js":53702,"./XenoarchSpectrometer":13153,"./XenoarchSpectrometer.js":13153,"./XenoarchSuspension":19820,"./XenoarchSuspension.js":19820,"./common/AtmosControls":71739,"./common/AtmosControls.js":71739,"./common/BeakerContents":48229,"./common/BeakerContents.js":48229,"./common/ComplexModal":16007,"./common/ComplexModal.js":16007,"./common/FullscreenNotice":67861,"./common/FullscreenNotice.js":67861,"./common/InterfaceLockNoticeBox":21451,"./common/InterfaceLockNoticeBox.js":21451,"./common/LoginInfo":28117,"./common/LoginInfo.js":28117,"./common/LoginScreen":1192,"./common/LoginScreen.js":1192,"./common/Mining":21526,"./common/Mining.js":21526,"./common/Overmap":40754,"./common/Overmap.js":40754,"./common/PortableAtmos":34227,"./common/PortableAtmos.js":34227,"./common/RankIcon":14959,"./common/RankIcon.js":14959,"./common/TemporaryNotice":36355,"./common/TemporaryNotice.js":36355,"./pAIAtmos":28840,"./pAIAtmos.js":28840,"./pAIDirectives":47132,"./pAIDirectives.js":47132,"./pAIDoorjack":52852,"./pAIDoorjack.js":52852,"./pAIInterface":88814,"./pAIInterface.js":88814,"./pAIMedrecords":52510,"./pAIMedrecords.js":52510,"./pAISecrecords":59946,"./pAISecrecords.js":59946,"./pda/pda_atmos_scan":42360,"./pda/pda_atmos_scan.js":42360,"./pda/pda_janitor":84932,"./pda/pda_janitor.js":84932,"./pda/pda_main_menu":6011,"./pda/pda_main_menu.js":6011,"./pda/pda_manifest":93303,"./pda/pda_manifest.js":93303,"./pda/pda_medical":65276,"./pda/pda_medical.js":65276,"./pda/pda_messenger":92494,"./pda/pda_messenger.js":92494,"./pda/pda_news":31505,"./pda/pda_news.js":31505,"./pda/pda_notekeeper":66785,"./pda/pda_notekeeper.js":66785,"./pda/pda_power":63853,"./pda/pda_power.js":63853,"./pda/pda_security":20575,"./pda/pda_security.js":20575,"./pda/pda_signaller":63891,"./pda/pda_signaller.js":63891,"./pda/pda_status_display":14947,"./pda/pda_status_display.js":14947,"./pda/pda_supply":85143,"./pda/pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=8156}},t={};function o(e){var r=t[e];if(r!==undefined)return r.exports;var c=t[e]={exports:{}};return n[e](c,c.exports,o),c.exports}o.m=n,e=[],o.O=function(n,t,r,c){if(!t){var a=Infinity;for(d=0;d=c)&&Object.keys(o.O).every((function(e){return o.O[e](t[l])}))?t.splice(l--,1):(i=!1,c0&&e[d-1][2]>c;d--)e[d]=e[d-1];e[d]=[t,r,c]},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={764:0};o.O.j=function(n){return 0===e[n]};var n=function(n,t){var r,c,a=t[0],i=t[1],l=t[2],d=0;for(r in i)o.o(i,r)&&(o.m[r]=i[r]);for(l&&l(o),n&&n(t);d=75?"green":s>=25?"yellow":"red";var b=null;return u>=75&&(b="green"),b=u>=25?"yellow":"red",(0,o.createComponentVNode)(2,a.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,name,0)}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:V,value:s/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:b,value:u/100})})]})}),(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===m?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",children:!!p&&(0,o.createComponentVNode)(2,c.Box,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",children:e},n)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"check":"times",content:h?"Enabled":"Disabled",color:h?"green":"red",onClick:function(){return i("wireless")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"check":"times",content:N?"Enabled":"Disabled",color:N?"green":"red",onClick:function(){return i("radio")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"AI Power",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||0===s,confirmColor:"red",content:"Shutdown",onClick:function(){return i("wipe")}})})]})})]})})}},73405:function(e,n,t){"use strict";n.__esModule=!0,n.APC=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(21451),l=t(67861);n.APC=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(0,o.createComponentVNode)(2,s);return c.gridCheck?i=(0,o.createComponentVNode)(2,u):c.failTime&&(i=(0,o.createComponentVNode)(2,m)),(0,o.createComponentVNode)(2,a.Window,{width:450,height:475,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:i})})};var d={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,s=l.locked&&!l.siliconUser,u=(l.normallyLocked,d[l.externalPower]||d[0]),m=d[l.chargingStatus]||d[0],p=l.powerChannels||[],C=l.powerCellStatus/100;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.InterfaceLockNoticeBox,{deny:l.emagged,denialMessage:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Please contact maintenance for service."})],4)}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main Breaker",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.isOperating?"power-off":"times",content:l.isOperating?"On":"Off",selected:l.isOperating&&!s,color:l.isOperating?"":"bad",disabled:s,onClick:function(){return a("breaker")}}),children:["[ ",u.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:C})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.chargeMode?"sync":"times",content:l.chargeMode?"Auto":"Off",selected:l.chargeMode,disabled:s,onClick:function(){return a("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[p.map((function(e){var n=e.topicParams;return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:!s&&(1===e.status||3===e.status),disabled:s,onClick:function(){return a("channel",n.auto)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"On",selected:!s&&2===e.status,disabled:s,onClick:function(){return a("channel",n.on)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:!s&&0===e.status,disabled:s,onClick:function(){return a("channel",n.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Load",children:l.totalCharging?(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W (+ "),l.totalCharging,(0,o.createTextVNode)(" W charging)")],0):(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Misc",buttons:!!l.siliconUser&&(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return a("overload")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.coverLocked?"lock":"unlock",content:l.coverLocked?"Engaged":"Disengaged",selected:l.coverLocked,disabled:s,onClick:function(){return a("cover")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Disabled",selected:2===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Automatic",selected:1===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Enabled",selected:3===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:3})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:l.emergencyLights?"Enabled":"Disabled",selected:l.emergencyLights,onClick:function(){return a("emergency_lighting")}})})]})})],4)},u=function(e,n){return(0,o.createComponentVNode)(2,l.FullscreenNotice,{title:"System Failure",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=(0,o.createComponentVNode)(2,c.Button,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return i("reboot")}});return a.locked&&!a.siliconUser&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"SYSTEM FAILURE",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h2",null,"I/O regulators malfunction detected! Waiting for system reboot...",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Automatic reboot in ",a.failTime," seconds..."]}),(0,o.createComponentVNode)(2,c.Box,{mt:4,children:l})]})}},20832:function(e,n,t){"use strict";n.__esModule=!0,n.AccountsTerminal=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AccountsTerminal=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.id_inserted,u=d.id_card,m=d.access_level,p=d.machine_id;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:640,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Machine",color:"average",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"eject":"sign-in-alt",fluid:!0,content:u,onClick:function(){return l("insert_card")}})})]})}),m>0&&(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,u=i.creating_new_account,m=i.detailed_account_view;return(0,o.createComponentVNode)(2,c.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!u&&!m,icon:"home",onClick:function(){return a("view_accounts_list")},children:"Home"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:u,icon:"cog",onClick:function(){return a("create_account")},children:"New Account"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{disabled:u,icon:"print",onClick:function(){return a("print")},children:"Print"})]}),u&&(0,o.createComponentVNode)(2,l)||m&&(0,o.createComponentVNode)(2,d)||(0,o.createComponentVNode)(2,s)]})},l=function(e,n){var t=(0,r.useBackend)(n).act,a=(0,r.useSharedState)(n,"holder",""),i=a[0],l=a[1],d=(0,r.useSharedState)(n,"money",""),s=d[0],u=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:"Create Account",level:2,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,c.Input,{value:i,fluid:!0,onInput:function(e,n){return l(n)}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onInput:function(e,n){return u(n)}})})]}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i||!s,mt:1,fluid:!0,icon:"plus",onClick:function(){return t("finalise_create_account",{holder_name:i,starting_funds:s})},content:"Create"})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.access_level,d=i.station_account_number,s=i.account_number,u=i.owner_name,m=i.money,p=i.suspended,C=i.transactions;return(0,o.createComponentVNode)(2,c.Section,{title:"Account Details",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",selected:p,content:"Suspend",onClick:function(){return a("toggle_suspension")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Holder",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Balance",children:[m,"\u20ae"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:p?"bad":"good",children:p?"SUSPENDED":"Active"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"CentCom Administrator",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Payroll",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:s===d,onClick:function(){return a("revoke_payroll")}})})})}),l>=2&&(0,o.createComponentVNode)(2,c.Section,{title:"Silent Funds Transfer",level:2,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_funds")},content:"Add Funds"}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("remove_funds")},content:"Remove Funds"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Transactions",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Terminal"})]}),C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.amount,"\u20ae"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source_terminal})]},n)}))]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"NanoTrasen Accounts",level:2,children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.owner_name+e.suspended,color:e.suspended?"bad":null,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"#"+e.account_number,onClick:function(){return a("view_account_detail",{account_index:e.account_index})}})},e.account_index)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"There are no accounts available."})})}},19007:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleList=n.AdminShuttleController=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.AdminShuttleController=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.shuttles,u=l.overmap_ships;return(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Classic Shuttles",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"Fly",onClick:function(){return i("classicmove",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.current_location}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:d(e.status)})]},e.ref)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Overmap Ships",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){var n;return(null==(n=e.name)?void 0:n.toLowerCase())||e.name||e.ref}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"Control",onClick:function(){return i("overmap_control",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name})]},e.ref)}))})})]})};n.ShuttleList=l;var d=function(e){switch(e){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},51104:function(e,n,t){"use strict";n.__esModule=!0,n.AgentCard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AgentCard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.entries,s=l.electronic_warfare;return(0,o.createComponentVNode)(2,a.Window,{width:550,height:400,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Info",children:(0,o.createComponentVNode)(2,c.Table,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i(e.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.value})]},e.name)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Electronic Warfare",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:s,content:s?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return i("electronic_warfare")}})})]})})}},47330:function(e,n,t){"use strict";n.__esModule=!0,n.AiAirlock=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}};n.AiAirlock=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=i[d.power.main]||i[0],u=i[d.power.backup]||i[0],m=i[d.shock]||i[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[d.power.main?"Online":"Offline"," ",d.wires.main_1&&d.wires.main_2?d.power.main_timeleft>0&&"["+d.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[d.power.backup?"Online":"Offline"," ",d.wires.backup_1&&d.wires.backup_2?d.power.backup_timeleft>0&&"["+d.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Electrify",color:m.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:!(d.wires.shock&&0===d.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===d.shock?"Safe":"Electrified"," ",(d.wires.shock?d.shock_timeleft>0&&"["+d.shock_timeleft+"s]":"[Wires have been cut!]")||-1===d.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.id_scanner?"power-off":"times",content:d.id_scanner?"Enabled":"Disabled",selected:d.id_scanner,disabled:!d.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!d.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.locked?"lock":"unlock",content:d.locked?"Lowered":"Raised",selected:d.locked,disabled:!d.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!d.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.lights?"power-off":"times",content:d.lights?"Enabled":"Disabled",selected:d.lights,disabled:!d.wires.lights,onClick:function(){return l("light-toggle")}}),children:!d.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.safe?"power-off":"times",content:d.safe?"Enabled":"Disabled",selected:d.safe,disabled:!d.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!d.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.speed?"power-off":"times",content:d.speed?"Enabled":"Disabled",selected:d.speed,disabled:!d.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!d.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.opened?"sign-out-alt":"sign-in-alt",content:d.opened?"Open":"Closed",selected:d.opened,disabled:d.locked||d.welded,onClick:function(){return l("open-close")}}),children:!(!d.locked&&!d.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),d.locked?"bolted":"",d.locked&&d.welded?" and ":"",d.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},33084:function(e,n,t){"use strict";n.__esModule=!0,n.AiRestorerContent=n.AiRestorer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AiRestorer=function(){return(0,o.createComponentVNode)(2,a.Window,{width:370,height:360,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.AI_present,d=i.error,s=i.name,u=i.laws,m=i.isDead,p=i.restoring,C=i.health,h=i.ejectable;return(0,o.createFragment)([d&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:d}),!!h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:l?s:"----------",disabled:!l,onClick:function(){return a("PRG_eject")}}),!!l&&(0,o.createComponentVNode)(2,c.Section,{title:h?"System Status":s,buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,color:m?"bad":"good",children:m?"Nonfunctional":"Functional"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})})}),!!p&&(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return a("PRG_beginReconstruction")}}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",level:2,children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{className:"candystripe",children:e},e)}))})]})],0)};n.AiRestorerContent=i},597:function(e,n,t){"use strict";n.__esModule=!0,n.AiSupermatter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=(t(58083),t(67861));n.AiSupermatter=function(e,n){var t=(0,r.useBackend)(n).data,c=(t.integrity_percentage,t.ambient_temp,t.ambient_pressure,t.detonating),i=(0,o.createComponentVNode)(2,d);return c&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:i})})};var l=function(e,n){return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Evacuate area immediately"})]})})},d=function(e,n){var t=(0,r.useBackend)(n).data,a=t.integrity_percentage,i=t.ambient_temp,l=t.ambient_pressure;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Crystal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:a,maxValue:100,ranges:{good:[90,Infinity],average:[25,90],bad:[-Infinity,25]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:i,maxValue:1e4,ranges:{bad:[5e3,Infinity],average:[4e3,5e3],good:[-Infinity,4e3]},children:[i," K"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Pressure",children:[l," kPa"]})]})})}},58444:function(e,n,t){"use strict";n.__esModule=!0,n.AirAlarm=void 0;var o=t(39812),r=t(41860),c=(t(2497),t(71494)),a=t(74814),i=t(76270),l=t(85952),d=t(21451),s=t(71739);n.AirAlarm=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=r.locked&&!r.siliconUser&&!r.remoteUser;return(0,o.createComponentVNode)(2,l.Window,{width:440,height:650,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m),!a&&(0,o.createComponentVNode)(2,C)]})})};var u=function(e,n){var t=(0,c.useBackend)(n).data,l=(t.environment_data||[]).filter((function(e){return e.value>=.01})),d={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},s=d[t.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.Section,{title:"Air Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l.length>0&&(0,o.createFragment)([l.map((function(e){var n=d[e.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,i.getGasLabel)(e.name),color:n.color,children:[(0,r.toFixed)(e.value,2),e.unit]},e.name)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Local status",color:s.color,children:s.localStatusText}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Area status",color:t.atmos_alarm||t.fire_alarm?"bad":"good",children:(t.atmos_alarm?"Atmosphere Alarm":t.fire_alarm&&"Fire Alarm")||"Nominal"})],0)||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!t.emagged&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.target_temperature,d=i.rcon;return(0,o.createComponentVNode)(2,a.Section,{title:"Comfort Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote Control",children:[(0,o.createComponentVNode)(2,a.Button,{selected:1===d,content:"Off",onClick:function(){return r("rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,a.Button,{selected:2===d,content:"Auto",onClick:function(){return r("rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,a.Button,{selected:3===d,content:"On",onClick:function(){return r("rcon",{rcon:3})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Button,{content:l,onClick:function(){return r("temperature")}})})]})})},p={home:{title:"Air Controls",component:function(){return h}},vents:{title:"Vent Controls",component:function(){return N}},scrubbers:{title:"Scrubber Controls",component:function(){return V}},modes:{title:"Operating Mode",component:function(){return b}},thresholds:{title:"Alarm Thresholds",component:function(){return f}}},C=function(e,n){var t=(0,c.useLocalState)(n,"screen"),r=t[0],i=t[1],l=p[r]||p.home,d=l.component();return(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:r&&(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i()}}),children:(0,o.createComponentVNode)(2,d)})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(0,c.useLocalState)(n,"screen"),d=(l[0],l[1]),s=i.mode,u=i.atmos_alarm;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:u?"exclamation-triangle":"exclamation",color:u&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return r(u?"reset":"alarm")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:3===s?"exclamation-triangle":"exclamation",color:3===s&&"danger",content:"Panic Siphon",onClick:function(){return r("mode",{mode:3===s?1:3})}}),(0,o.createComponentVNode)(2,a.Box,{mt:2}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return d("vents")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){return d("scrubbers")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"cog",content:"Operating Mode",onClick:function(){return d("modes")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return d("thresholds")}})],4)},N=function(e,n){var t=(0,c.useBackend)(n).data.vents;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Vent,{vent:e},e.id_tag)})):"Nothing to show"},V=function(e,n){var t=(0,c.useBackend)(n).data.scrubbers;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Scrubber,{scrubber:e},e.id_tag)})):"Nothing to show"},b=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.modes;return i&&0!==i.length?i.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:e.selected?"check-square-o":"square-o",selected:e.selected,color:e.selected&&e.danger&&"danger",content:e.name,onClick:function(){return r("mode",{mode:e.mode})}}),(0,o.createComponentVNode)(2,a.Box,{mt:1})],4,e.mode)})):"Nothing to show"},f=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.thresholds;return(0,o.createVNode)(1,"table","LabeledList",[(0,o.createVNode)(1,"thead",null,(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td"),(0,o.createVNode)(1,"td","color-bad","min2",16),(0,o.createVNode)(1,"td","color-average","min1",16),(0,o.createVNode)(1,"td","color-average","max1",16),(0,o.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,o.createVNode)(1,"tbody",null,d.map((function(e){return(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td","LabeledList__label",(0,o.createVNode)(1,"span","color-"+(0,i.getGasColor)(e.name),(0,i.getGasLabel)(e.name),0),2),e.settings.map((function(e){return(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Button,{content:(0,r.toFixed)(e.selected,2),onClick:function(){return l("threshold",{env:e.env,"var":e.val})}}),2,null,e.val)}))],0,null,e.name)})),0)],4,{style:{width:"100%"}})}},24053:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.AlertModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(29708);function d(e,n){return(d=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var s=function(e){var n,t;function r(){var n;return(n=e.call(this)||this).buttonRefs=[(0,o.createRef)()],n.state={current:0},n}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,d(n,t);var s=r.prototype;return s.componentDidMount=function(){for(var e=(0,c.useBackend)(this.context).data.buttons,n=this.state.current,t=this.buttonRefs[n].current,r=1;r=t.length?e=n?e-1:0:e<0&&(e=n?0:t.length-1);var o=this.buttonRefs[e].current;o&&setTimeout((function(){return o.focus()}),1),this.setState({current:e})},s.render=function(){var e=this,n=(0,c.useBackend)(this.context),t=n.act,r=n.data,d=r.title,s=r.message,m=r.buttons,p=r.timeout,C=this.state.current,h=function(){return e.setCurrent(C,!1)},N=Math.max(150,s.length);return(0,o.createComponentVNode)(2,i.Window,{title:d,theme:"abstract",width:350,height:N,canClose:p>0,children:[p&&(0,o.createComponentVNode)(2,u,{value:p}),(0,o.createComponentVNode)(2,i.Window.Content,{onFocus:h,onClick:h,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",className:"AlertModal__Message",height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{m:1,children:s})})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{my:2,children:(0,o.createComponentVNode)(2,a.Flex,{className:"AlertModal__Buttons",wrap:!0,children:m.map((function(n,r){return(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,my:.5,children:(0,o.createVNode)(1,"div","Button Button--color--default",n,0,{px:3,onClick:function(){return t("choose",{choice:n})},onKeyDown:function(o){var r=window.event?o.which:o.keyCode;r===l.KEY_SPACE||r===l.KEY_ENTER?t("choose",{choice:n}):r===l.KEY_LEFT||o.shiftKey&&r===l.KEY_TAB?e.setCurrent(C-1,r===l.KEY_LEFT):r!==l.KEY_RIGHT&&r!==l.KEY_TAB||e.setCurrent(C+1,r===l.KEY_RIGHT)}},null,e.buttonRefs[r])},r)}))})})]})})})]})},r}(o.Component);n.AlertModal=s;var u=function(e){var n=e.value;return(0,o.createVNode)(1,"div","AlertModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"AlertModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=u},34847:function(e,n,t){"use strict";n.__esModule=!0,n.AlgaeFarm=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=(t(41860),t(2497));n.AlgaeFarm=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.usePower,u=d.materials,m=d.last_flow_rate,p=d.last_power_draw,C=d.inputDir,h=d.outputDir,N=d.input,V=d.output,b=d.errorText;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[b&&(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Processing",selected:2===s,onClick:function(){return l("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[m," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw",children:[p," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(e.display),children:[(0,o.createComponentVNode)(2,c.ProgressBar,{width:"80%",value:e.qty,maxValue:e.max,children:[e.qty,"/",e.max]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,content:"Eject",onClick:function(){return l("ejectMaterial",{mat:e.name})}})]},e.name)}))]}),(0,o.createComponentVNode)(2,c.Table,{mt:1,children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Input ("+C+")",children:N?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[N.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:N.name,children:[N.percent,"% (",N.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Output ("+h+")",children:V?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[V.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:V.name,children:[V.percent,"% (",V.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},65145:function(e,n,t){"use strict";n.__esModule=!0,n.AppearanceChanger=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.AppearanceChanger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),V=t.data,b=V.name,f=V.specimen,g=V.gender,k=V.gender_id,v=V.hair_style,B=V.facial_hair_style,L=V.ear_style,_=V.tail_style,x=V.wing_style,w=V.change_race,S=V.change_gender,I=V.change_eye_color,y=V.change_skin_tone,T=V.change_skin_color,A=V.change_hair_color,P=V.change_facial_hair_color,M=V.change_hair,F=V.change_facial_hair,D=V.mapRef,R=r.title,E=I||y||T||A||P,O=-1;w?O=0:S?O=1:E?O=2:M?O=4:F&&(O=5);var j=(0,a.useLocalState)(n,"tabIndex",O),W=j[0],z=j[1];return(0,o.createComponentVNode)(2,l.Window,{width:700,height:650,title:(0,c.decodeHtmlEntities)(R),children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Reflection",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:b}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",color:w?null:"grey",children:f}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",color:S?null:"grey",children:g?(0,c.capitalize)(g):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",color:E?null:"grey",children:k?(0,c.capitalize)(k):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Style",color:M?null:"grey",children:v?(0,c.capitalize)(v):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial Hair Style",color:F?null:"grey",children:B?(0,c.capitalize)(B):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ear Style",color:M?null:"grey",children:L?(0,c.capitalize)(L):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail Style",color:M?null:"grey",children:_?(0,c.capitalize)(_):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wing Style",color:M?null:"grey",children:x?(0,c.capitalize)(x):"Not Set"})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.ByondUi,{style:{width:"256px",height:"256px"},params:{id:D,type:"map"}})})]})}),(0,o.createComponentVNode)(2,i.Tabs,{children:[w?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===W,onClick:function(){return z(0)},children:"Race"}):null,S?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===W,onClick:function(){return z(1)},children:"Gender & Sex"}):null,E?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===W,onClick:function(){return z(2)},children:"Colors"}):null,M?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===W,onClick:function(){return z(3)},children:"Hair"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===W,onClick:function(){return z(5)},children:"Ear"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===W,onClick:function(){return z(6)},children:"Tail"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:7===W,onClick:function(){return z(7)},children:"Wing"})],4):null,F?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:4===W,onClick:function(){return z(4)},children:"Facial Hair"}):null]}),(0,o.createComponentVNode)(2,i.Box,{height:"43%",children:[w&&0===W?(0,o.createComponentVNode)(2,d):null,S&&1===W?(0,o.createComponentVNode)(2,s):null,E&&2===W?(0,o.createComponentVNode)(2,u):null,M&&3===W?(0,o.createComponentVNode)(2,m):null,F&&4===W?(0,o.createComponentVNode)(2,p):null,M&&5===W?(0,o.createComponentVNode)(2,C):null,M&&6===W?(0,o.createComponentVNode)(2,h):null,M&&7===W?(0,o.createComponentVNode)(2,N):null]})]})})};var d=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.species,s=l.specimen,u=(0,r.sortBy)((function(e){return e.specimen}))(d||[]);return(0,o.createComponentVNode)(2,i.Section,{title:"Species",fill:!0,scrollable:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:s===e.specimen,onClick:function(){return c("race",{race:e.specimen})}},e.specimen)}))})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.gender,d=c.gender_id,s=c.genders,u=c.id_genders;return(0,o.createComponentVNode)(2,i.Section,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===l,content:e.gender_name,onClick:function(){return r("gender",{gender:e.gender_key})}},e.gender_key)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===d,content:e.gender_name,onClick:function(){return r("gender_id",{gender_id:e.gender_key})}},e.gender_key)}))})]})})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.change_eye_color,d=c.change_skin_tone,s=c.change_skin_color,u=c.change_hair_color,m=c.change_facial_hair_color,p=c.eye_color,C=c.skin_color,h=c.hair_color,N=c.facial_hair_color,V=c.ears_color,b=c.ears2_color,f=c.tail_color,g=c.tail2_color,k=c.wing_color,v=c.wing2_color;return(0,o.createComponentVNode)(2,i.Section,{title:"Colors",fill:!0,scrollable:!0,children:[l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:p,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Eye Color",onClick:function(){return r("eye_color")}})]}):null,d?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Tone",onClick:function(){return r("skin_tone")}})}):null,s?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:C,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Color",onClick:function(){return r("skin_color")}})]}):null,u?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:h,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Hair Color",onClick:function(){return r("hair_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:V,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Ears Color",onClick:function(){return r("ears_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:b,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Ears Color",onClick:function(){return r("ears2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:f,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Tail Color",onClick:function(){return r("tail_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:g,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Tail Color",onClick:function(){return r("tail2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:k,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Wing Color",onClick:function(){return r("wing_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:v,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Wing Color",onClick:function(){return r("wing2_color")}})]})],4):null,m?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:N,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Facial Hair Color",onClick:function(){return r("facial_hair_color")}})]}):null]})},m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.hair_style,d=c.hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("hair",{hair:e.hairstyle})},selected:e.hairstyle===l,content:e.hairstyle},e.hairstyle)}))})},p=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.facial_hair_style,d=c.facial_hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Facial Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("facial_hair",{facial_hair:e.facialhairstyle})},selected:e.facialhairstyle===l,content:e.facialhairstyle},e.facialhairstyle)}))})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.ear_style,s=l.ear_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Ears",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},h=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.tail_style,s=l.tail_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Tails",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},N=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.wing_style,s=l.wing_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Wings",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})}},86776:function(e,n,t){"use strict";n.__esModule=!0,n.ArcadeBattle=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ArcadeBattle=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=(l.name,l.temp),s=l.enemyAction,u=l.enemyName,m=l.playerHP,p=l.playerMP,C=l.enemyHP,h=(l.enemyMP,l.gameOver);return(0,o.createComponentVNode)(2,a.Window,{width:400,height:240,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:u,textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Section,{color:"label",children:[(0,o.createComponentVNode)(2,c.Box,{children:d}),(0,o.createComponentVNode)(2,c.Box,{children:!h&&s})]}),(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[m,"HP"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[p,"MP"]})})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Enemy HP",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:45,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[C,"HP"]})})})})]}),h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return i("newgame")}})||(0,o.createComponentVNode)(2,c.Flex,{mt:2,justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return i("attack")},content:"Attack!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return i("heal")},content:"Heal!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return i("charge")},content:"Recharge!"})})]})]})})})}},13496:function(e,n,t){"use strict";n.__esModule=!0,n.AreaScrubberControl=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(2497);n.AreaScrubberControl=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=(0,c.useLocalState)(n,"showArea",!1),u=s[0],m=s[1],p=d.scrubbers;return p?(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:u,onClick:function(){return m(!u)}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return i("allon")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return i("alloff")}})})]}),(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:p.map((function(e){return(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"32%",children:(0,o.createComponentVNode)(2,l,{scrubber:e,showArea:u})},e.id)}))})]})})}):(0,o.createComponentVNode)(2,r.Section,{title:"Error",children:[(0,o.createComponentVNode)(2,r.Box,{color:"bad",children:"No Scrubbers Detected."}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})]})};var l=function(e,n){var t=(0,c.useBackend)(n).act,a=e.scrubber,l=e.showArea;return(0,o.createComponentVNode)(2,r.Section,{title:a.name,children:[(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"power-off",content:a.on?"Enabled":"Disabled",selected:a.on,onClick:function(){return t("toggle",{id:a.id})}}),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[a.pressure," kPa"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Flow Rate",children:[a.flow_rate," L/s"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[a.load," W"]}),l&&(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Area",children:(0,i.toTitleCase)(a.area)})]})]})}},56404:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyInfrared=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AssemblyInfrared=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.visible;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Infrared Unit",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Laser",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",fluid:!0,selected:d,onClick:function(){return i("state")},children:d?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,selected:s,onClick:function(){return i("visible")},children:s?"Able to be seen":"Invisible"})})]})})})})}},29632:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyProx=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyProx=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time,p=s.range,C=s.maxRange,h=s.scanning;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Prox Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.NumberInput,{minValue:1,value:p,maxValue:C,onDrag:function(e,n){return d("range",{range:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Armed",children:[(0,o.createComponentVNode)(2,a.Button,{mr:1,icon:h?"lock":"lock-open",selected:h,onClick:function(){return d("scanning")},children:h?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},48661:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})})})})}},38531:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosAlertConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.priority_alarms||[],s=l.minor_alarms||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===d.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"bad",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)})),0===s.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"average",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)}))],0)})})})}},46566:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosControlContent=n.AtmosControl=void 0;var o=t(39812),r=t(64499),c=t(85952),a=t(74814),i=t(71494);(0,t(88654).createLogger)("fuck");n.AtmosControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:600,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t,c=(0,i.useBackend)(n),l=c.act,d=c.data,s=c.config,u=(0,r.sortBy)((function(e){return e.name}))(d.alarms||[]),m=(0,i.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=(0,i.useLocalState)(n,"zoom",1),N=h[0],V=h[1];return 0===p?t=(0,o.createComponentVNode)(2,a.Section,{title:"Alarms",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,color:2===e.danger?"bad":1===e.danger?"average":"",onClick:function(){return l("alarm",{alarm:e.ref})}},e.name)}))}):1===p&&(t=(0,o.createComponentVNode)(2,a.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,a.NanoMap,{onZoom:function(e){return V(e)},children:u.filter((function(e){return~~e.z==~~s.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,a.NanoMap.Marker,{x:e.x,y:e.y,zoom:N,icon:"bell",tooltip:e.name,color:e.danger?"red":"green",onClick:function(){return l("alarm",{alarm:e.ref})}},e.ref)}))})})),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"table"})," Alarm View"]},"AlarmView"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)};n.AtmosControlContent=l},2726:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952));n.AtmosFilter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.filter_types||[];return(0,o.createComponentVNode)(2,a.Window,{width:390,height:187,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,mr:1,children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:l.last_flow_rate,format:function(e){return e+" L/s"}})}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(e,n){return i("rate",{rate:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.rate===l.max_rate,onClick:function(){return i("rate",{rate:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Filter",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e.selected,content:e.name,onClick:function(){return i("filter",{filterset:e.f_type})}},e.name)}))})]})})})})}},61505:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:370,height:195,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.max_pressure,step:10,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.set_pressure===l.max_pressure,onClick:function(){return i("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"label",children:(0,o.createVNode)(1,"u",null,"Concentrations",16)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 1 ("+l.node1_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node1",{concentration:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 2 ("+l.node2_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node2",{concentration:n})}})})]})})})})}},99994:function(e,n,t){"use strict";n.__esModule=!0,n.Autolathe=void 0;var o=t(39812),r=(t(41860),t(85531)),c=t(64499),a=t(71494),i=t(74814),l=t(85952),d=t(95481),s=t(2497),u=function(e,n,t){if(void 0===t&&(t=1),null===e.requirements)return!0;for(var o=Object.keys(e.requirements),r=function(){var o=a[c],r=n.find((function(e){return e.name===o}));return r?r.amount=e[1].price/d.build_eff,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},u=function(e,n){return!!e.affordable&&!(e.reagent&&!n.beaker)},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u(e,i),content:(e.price/i.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:l,name:e.name})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},81850:function(e,n,t){"use strict";n.__esModule=!0,n.BodyDesigner=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);n.BodyDesigner=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.menu,u=d.disk,m=d.diskStored,p=d.activeBodyRecord,C=l[s];return(0,o.createComponentVNode)(2,i.Window,{width:400,height:650,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[u?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Save To Disk",onClick:function(){return r("savetodisk")},disabled:!p}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Load From Disk",onClick:function(){return r("loadfromdisk")},disabled:!m}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return r("ejectdisk")}})]}):null,C]})})};var l={Main:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Database Functions",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Individual Body Records",onClick:function(){return r("menu",{menu:"Body Records"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Stock Body Records",onClick:function(){return r("menu",{menu:"Stock Records"})}})]})})),"Body Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Body Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e.name,onClick:function(){return r("view_brec",{view_brec:e.recref})}},e.name)}))})})),"Stock Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.stock_bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Stock Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e,onClick:function(){return r("view_stock_brec",{view_stock_brec:e})}},e)}))})})),"Specific Record":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.activeBodyRecord,s=l.mapRef;return d?(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"165px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Specific Record",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i("menu",{menu:"Main"})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.real_name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:d.speciesname}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:(0,r.capitalize)(d.gender),onClick:function(){return i("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:d.synthetic}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:[d.locked,(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!d.booc,onClick:function(){return i("boocnotes")}})]})]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"130px",children:(0,o.createComponentVNode)(2,a.ByondUi,{style:{width:"100%",height:"128px"},params:{id:s,type:"map"}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"300px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scale",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:d.scale,onClick:function(){return i("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(d.styles).map((function(e){var n=d.styles[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.styleHref?(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.style,onClick:function(){return i("href_conversion",{target_href:n.styleHref,target_value:1})}}):null,n.colorHref?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color,onClick:function(){return i("href_conversion",{target_href:n.colorHref,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color,style:{border:"1px solid #fff"}})]}):null,n.colorHref2?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color2,onClick:function(){return i("href_conversion",{target_href:n.colorHref2,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color2,style:{border:"1px solid #fff"}})]}):null]},e)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Body Markings",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add Marking",onClick:function(){return i("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(d.markings).map((function(e){var n=d.markings[e];return(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return i("href_conversion",{target_href:"marking_remove",target_value:e})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,backgroundColor:n,content:e,onClick:function(){return i("href_conversion",{target_href:"marking_color",target_value:e})}})})]})},e)}))})]})]})})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR: Record Not Found!"})})),"OOC Notes":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.activeBodyRecord;return(0,o.createComponentVNode)(2,a.Section,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:i&&i.booc||"ERROR: Body record not found!"})}))}},6060:function(e,n,t){"use strict";n.__esModule=!0,n.BodyScanner=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["hasBorer","bad",function(e){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(e){return"Viral pathogen detected in blood stream."}],["blind","average",function(e){return"Cataracts detected."}],["colourblind","average",function(e){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(e){return"Retinal misalignment detected."}],["humanPrey","average",function(e){return"Foreign Humanoid(s) detected: "+e.humanPrey}],["livingPrey","average",function(e){return"Foreign Creature(s) detected: "+e.livingPrey}],["objectPrey","average",function(e){return"Foreign Object(s) detected: "+e.objectPrey}]],s=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},m=function(e,n){for(var t=[],o=0;o0?e.reduce((function(e,n){return null===e?n:(0,o.createFragment)([e,!!n&&(0,o.createComponentVNode)(2,a.Box,{children:n})],0)})):null},C=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};n.BodyScanner=function(e,n){var t=(0,c.useBackend)(n).data,r=t.occupied,a=t.occupant,l=void 0===a?{}:a,d=r?(0,o.createComponentVNode)(2,h,{occupant:l}):(0,o.createComponentVNode)(2,B);return(0,o.createComponentVNode)(2,i.Window,{width:690,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:d})})};var h=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,N,{occupant:n}),(0,o.createComponentVNode)(2,V,{occupant:n}),(0,o.createComponentVNode)(2,b,{occupant:n}),(0,o.createComponentVNode)(2,f,{occupant:n}),(0,o.createComponentVNode)(2,k,{organs:n.extOrgan}),(0,o.createComponentVNode)(2,v,{organs:n.intOrgan})]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return i("ejectify")},children:"Eject"}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print_p")},children:"Print Report"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Volume",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.volume,0)})," units\xa0(",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.percent,0)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Weight",children:(0,r.round)(d.occupant.weight)+"lbs, "+(0,r.round)(d.occupant.weight/2.20463)+"kgs"})]})})},V=function(e){var n=e.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Blood Reagents",children:n.reagents?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.reagents.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Blood Reagents Detected"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stomach Reagents",children:n.ingested?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.ingested.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Stomach Reagents Detected"})})],4)},b=function(e){var n=e.occupant,t=n.hasBorer||n.blind||n.colourblind||n.nearsighted||n.hasVirus;return(t=t||n.humanPrey||n.livingPrey||n.objectPrey)?(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:d.map((function(e,t){if(n[e[0]])return(0,o.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2](n)})}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},f=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.Table,{children:m(s,(function(e,t,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:!!t&&t[0]+":"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,g,{value:n[e[1]],marginBottom:r0&&"0.5rem",value:e.totalLoss/100,ranges:u,children:[(0,o.createComponentVNode)(2,a.Box,{float:"left",inline:!0,children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([e.internalBleeding&&"Internal bleeding",!!e.status.bleeding&&"External bleeding",e.lungRuptured&&"Ruptured lung",e.destroyed&&"Destroyed",!!e.status.broken&&e.status.broken,C(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[p([!!e.status.splinted&&"Splinted",!!e.status.robotic&&"Robotic",!!e.status.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})]),p(e.implants.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},n)}))]})})},v=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/100,mt:n>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([C(e.germ_level),!!e.inflamed&&"Appendicitis detected."])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:p([1===e.robotic&&"Robotic",2===e.robotic&&"Assisted",!!e.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})])})]})]},n)}))]})})},B=function(){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},74639:function(e,n,t){"use strict";n.__esModule=!0,n.BombTester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}n.BombTester=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.simulating,u=d.mode,m=d.tank1,p=d.tank1ref,C=d.tank2,h=d.tank2ref,N=d.canister,V=d.sim_canister_output;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,c.Section,{title:"Virtual Explosive Simulator v2.01",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:1})},selected:1===u,children:"Single Tank"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:2})},selected:2===u,children:"Transfer Valve"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:3})},selected:3===u,children:"Canister"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Primary Slot",children:m&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:p})},icon:"eject",children:m})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:1})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Secondary Slot",children:C&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:h})},icon:"eject",children:C})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:2})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Connected Canister",buttons:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("canister_scan")},icon:"search",children:"Scan"}),children:N&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:N})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No tank connected."})}),N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Canister Release Pressure",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:V,maxValue:1013.25,onDrag:function(e,n){return i("set_can_pressure",{pressure:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){return i("start_sim")},fluid:!0,children:"Begin Simulation"})]})})})};var l=function(e){var n,t;function r(n){var t;t=e.call(this,n)||this;var o=Math.random()>.5,r=Math.random()>.5;return t.state={x:o?340:0,y:r?205:0,reverseX:!1,reverseY:!1},t.process=setInterval((function(){t.setState((function(e){var n=Object.assign({},e);return n.reverseX?n.x-2<-5?(n.reverseX=!1,n.x+=2):n.x-=2:n.x+2>340?(n.reverseX=!0,n.x-=2):n.x+=2,n.reverseY?n.y-2<-20?(n.reverseY=!1,n.y+=2):n.y-=2:n.y+2>205?(n.reverseY=!0,n.y-=2):n.y+=2,n}))}),1),t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var a=r.prototype;return a.componentWillUnmount=function(){clearInterval(this.process)},a.render=function(){var e=this.state,n={position:"relative",left:e.x+"px",top:e.y+"px"};return(0,o.createComponentVNode)(2,c.Section,{title:"Simulation in progress!",fill:!0,children:(0,o.createComponentVNode)(2,c.Box,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,o.createComponentVNode)(2,c.Icon,{style:n,name:"bomb",size:10,color:"red"})})})},r}(o.Component)},48693:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyEditor=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.BotanyEditor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.activity,s=l.degradation,u=l.disk,m=l.sourceName,p=l.locus,C=l.loaded;return d?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:m}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene Decay",children:[s,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Locus",children:p})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No disk loaded."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:C})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("apply_gene")},children:"Apply Gene Mods"}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Target"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No target seed packet loaded."})})]})})}},25486:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyIsolator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.BotanyIsolator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.geneMasks,s=l.activity,u=l.degradation,m=l.disk,p=l.loaded,C=l.hasGenetics,h=l.sourceName;return s?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene decay",children:[u,"%"]}),m&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.mask,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:"download",onClick:function(){return i("get_gene",{get_gene:e.tag})},children:"Extract"})},e.mask)}))||null]}),m&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return i("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No Data Buffered."}),m&&(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:p&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Packet Loaded",children:p})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("scan_genome")},children:"Process Genome"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Packet"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No packet loaded."})})]})})}},61956:function(e,n,t){"use strict";n.__esModule=!0,n.BrigTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.BrigTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:138,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Cell Timer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:s.timing?"Stop":"Start",selected:s.timing,onClick:function(){return d(s.timing?"stop":"start")}}),s.flash_found&&(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:s.flash_charging?"Recharging":"Flash",disabled:s.flash_charging,onClick:function(){return d("flash")}})||null],0),children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:s.time_left/10,minValue:0,maxValue:s.max_time_left/10,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("time",{time:n})}}),(0,o.createComponentVNode)(2,a.Flex,{mt:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_short/10),onClick:function(){return d("preset",{preset:"short"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_medium/10),onClick:function(){return d("preset",{preset:"medium"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_long/10),onClick:function(){return d("preset",{preset:"long"})}})})]})]})})})}},3180:function(e,n,t){"use strict";n.__esModule=!0,n.CameraConsoleSearch=n.CameraConsoleContent=n.CameraConsole=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(34380),i=t(2497),l=t(71494),d=t(74814),s=t(85952),u=function(e,n,t){void 0===n&&(n=""),void 0===t&&(t="");var o=(0,i.createSearch)(n,(function(e){return e.name}));return(0,c.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),n&&(0,r.filter)(o),t&&(0,r.filter)((function(e){return e.networks.includes(t)})),(0,r.sortBy)((function(e){return e.name}))])(e)};n.CameraConsole=function(e,n){return(0,o.createComponentVNode)(2,s.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,m)})};var m=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(t.config,c.mapRef),i=c.activeCamera,m=function(e,n){var t,o;if(!n)return[];var r=e.findIndex((function(e){return e.name===n.name}));return[null==(t=e[r-1])?void 0:t.name,null==(o=e[r+1])?void 0:o.name]}(u(c.cameras),i);m[0],m[1];return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),i&&i.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-left",onClick:function(){return r("pan",{dir:8})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-up",onClick:function(){return r("pan",{dir:1})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-right",onClick:function(){return r("pan",{dir:4})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-down",onClick:function(){return r("pan",{dir:2})}})],4),(0,o.createComponentVNode)(2,d.ByondUi,{className:"CameraConsole__map",params:{id:a,type:"map"}})],4)],4)};n.CameraConsoleContent=m;var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,i=(0,l.useLocalState)(n,"searchText",""),m=i[0],p=i[1],C=(0,l.useLocalState)(n,"networkFilter",""),h=C[0],N=C[1],V=c.activeCamera,b=c.allNetworks;b.sort();var f=u(c.cameras,m,h);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,n){return p(n)}}),(0,o.createComponentVNode)(2,d.Dropdown,{mb:1,width:"177px",options:b,placeholder:"No Filter",onSelected:function(e){return N(e)}}),(0,o.createComponentVNode)(2,d.Section,{children:f.map((function(e){return(0,o.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",V&&e.name===V.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,s.refocusLayout)(),r("switch_camera",{name:e.name})}},e.name)}))})],4)};n.CameraConsoleSearch=p},94477:function(e,n,t){"use strict";n.__esModule=!0,n.Canister=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Canister=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.connected,m=s.can_relabel,p=s.pressure,C=s.releasePressure,h=s.defaultReleasePressure,N=s.minReleasePressure,V=s.maxReleasePressure,b=s.valveOpen,f=s.holding;return(0,o.createComponentVNode)(2,l.Window,{width:360,height:242,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Canister",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",disabled:!m,content:"Relabel",onClick:function(){return d("relabel")}}),children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return e<1e4?(0,r.toFixed)(e)+" kPa":(0,i.formatSiUnit)(1e3*e,1,"Pa")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Regulator",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",left:"-8px",children:[(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:C,unit:"kPa",minValue:N,maxValue:V,stepPixelSize:1,onDrag:function(e,n){return d("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return d("pressure",{pressure:V})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return d("pressure",{pressure:h})}})]})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Valve",children:(0,o.createComponentVNode)(2,a.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?f?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){return d("valve")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{mr:1,label:"Port",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"}),(0,o.createComponentVNode)(2,a.Tooltip,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Holding Tank",buttons:!!f&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){return d("eject")}}),children:[!!f&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Label",children:f.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:f.pressure})," kPa"]})]}),!f&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Holding Tank"})]})]})})}},55636:function(e,n,t){"use strict";n.__esModule=!0,n.Canvas=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var l=function(e){var n,t;function r(n){var t;return(t=e.call(this,n)||this).canvasRef=(0,o.createRef)(),t.onCVClick=n.onCanvasClick,t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var c=r.prototype;return c.componentDidMount=function(){this.drawCanvas(this.props)},c.componentDidUpdate=function(){this.drawCanvas(this.props)},c.drawCanvas=function(e){var n=this.canvasRef.current.getContext("2d"),t=e.value,o=t.length;if(o){var r=t[0].length,c=Math.round(this.canvasRef.current.width/o),a=Math.round(this.canvasRef.current.height/r);n.save(),n.scale(c,a);for(var i=0;i=0||(r[t]=e[t]);return r}(n,["res","value","dotsize"]),i=d(t),l=i[0],s=i[1];return(0,o.normalizeProps)((0,o.createVNode)(1,"canvas",null,"Canvas failed to render.",16,Object.assign({width:l*c||300,height:s*c||300},a,{onClick:function(n){return e.clickwrapper(n)}}),null,this.canvasRef))},r}(o.Component),d=function(e){var n=e.length;return[n,0!==n?e[0].length:0]};n.Canvas=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=d(s.grid),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,a.Window,{width:Math.min(700,24*m+72),height:Math.min(700,24*p+72),children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,l,{value:s.grid,dotsize:24,onCanvasClick:function(e,n){return i("paint",{x:e,y:n})}}),(0,o.createComponentVNode)(2,c.Box,{children:[!s.finalized&&(0,o.createComponentVNode)(2,c.Button.Confirm,{onClick:function(){return i("finalize")},content:"Finalize"}),"\xa0",s.name]})]})})})}},25131:function(e,n,t){"use strict";n.__esModule=!0,n.CasinoPrizeDispenser=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(88654);var l={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.CasinoPrizeDispenser=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var d=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),d=(t.act,t.data),s=d.points,m=d.items,p=(0,c.useLocalState)(n,"search",""),C=p[0],h=(p[1],(0,c.useLocalState)(n,"sort","Alphabetical")),N=h[0],V=(h[1],(0,c.useLocalState)(n,"descending",!1)),b=V[0],f=(V[1],(0,r.createSearch)(C,(function(e){return e[0]}))),g=!1,k=Object.entries(m).map((function(e,n){var t=Object.entries(e[1]).filter(f).map((function(e){return e[1].affordable=s>=e[1].price,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,u,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.title),l=e.items,d=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:i},d,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{content:e.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:i,name:e.name,price:e.price,restriction:e.restriction})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},47947:function(e,n,t){"use strict";n.__esModule=!0,n.CharacterDirectory=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=function(e){switch(e){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}};n.CharacterDirectory=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=s.personalVisibility,m=s.personalTag,p=s.personalErpTag,C=(0,r.useLocalState)(n,"overlay",null),h=C[0];C[1];return(0,o.createComponentVNode)(2,a.Window,{width:640,height:480,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h&&(0,o.createComponentVNode)(2,l)||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:u?"Shown":"Not Shown",onClick:function(){return i("setVisible")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:m,onClick:function(){return i("setTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:p,onClick:function(){return i("setErpTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Advertisement",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Edit Ad",onClick:function(){return i("editAd")}})})]})}),(0,o.createComponentVNode)(2,d)],4)})})};var l=function(e,n){var t=(0,r.useLocalState)(n,"overlay",null),a=t[0],l=t[1];return(0,o.createComponentVNode)(2,c.Section,{title:a.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return l(null)}}),children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Species",children:(0,o.createComponentVNode)(2,c.Box,{children:a.species})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Box,{p:1,backgroundColor:i(a.tag),children:a.tag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Box,{children:a.erptag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Character Ad",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.character_ad||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"OOC Notes",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.ooc_notes||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Flavor Text",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.flavor_text||"Unset."})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.directory,d=(0,r.useLocalState)(n,"sortId","name"),u=d[0],m=(d[1],(0,r.useLocalState)(n,"sortOrder","name")),p=m[0],C=(m[1],(0,r.useLocalState)(n,"overlay",null)),h=(C[0],C[1]);return(0,o.createComponentVNode)(2,c.Section,{title:"Directory",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Refresh",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,s,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,s,{id:"species",children:"Species"}),(0,o.createComponentVNode)(2,s,{id:"tag",children:"Vore Tag"}),(0,o.createComponentVNode)(2,s,{id:"erptag",children:"ERP Tag"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),l.sort((function(e,n){var t=p?1:-1;return e[u].localeCompare(n[u])*t})).map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{backgroundColor:i(e.tag),children:[(0,o.createComponentVNode)(2,c.Table.Cell,{p:1,children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.species}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.tag}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.erptag}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return h(e)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},n)}))]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.id),i=e.children,l=(0,r.useLocalState)(n,"sortId","name"),d=l[0],s=l[1],u=(0,r.useLocalState)(n,"sortOrder","name"),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",color:d!==a&&"transparent",onClick:function(){d===a?p(!m):(s(a),p(!0))},children:[i,d===a&&(0,o.createComponentVNode)(2,c.Icon,{name:m?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},22223:function(e,n,t){"use strict";n.__esModule=!0,n.ChemDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(48229),i=t(85952),l=[5,10,20,30,40,60],d=[1,5,10];n.ChemDispenser=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:390,height:655,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.amount;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",spacing:"1",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",children:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",selected:i===e,content:e+"u",m:"0",fluid:!0,onClick:function(){return a("amount",{amount:e})}})},n)}))})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Custom Amount",children:(0,o.createComponentVNode)(2,c.Slider,{step:1,stepPixelSize:5,value:i,minValue:1,maxValue:120,onDrag:function(e,n){return a("amount",{amount:n})}})})]})})},u=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chemicals,d=void 0===l?[]:l,s=[],u=0;u<(d.length+1)%3;u++)s.push(!0);return(0,o.createComponentVNode)(2,c.Section,{title:i.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:e.title+" ("+e.amount+")",onClick:function(){return a("dispense",{reagent:e.id})}})},n)})),s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"25%",height:"20px"},n)}))]})})},m=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,s=l.isBeakerLoaded,u=l.beakerCurrentVolume,m=l.beakerMaxVolume,p=l.beakerContents,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,o.createComponentVNode)(2,c.Box,{children:[!!s&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mr:2,children:[u," / ",m," units"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!s,onClick:function(){return i("ejectBeaker")}})]}),children:(0,o.createComponentVNode)(2,a.BeakerContents,{beakerLoaded:s,beakerContents:C,buttons:function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return i("remove",{reagent:e.id,amount:-1})}}),d.map((function(n,t){return(0,o.createComponentVNode)(2,c.Button,{content:n,onClick:function(){return i("remove",{reagent:e.id,amount:n})}},t)})),(0,o.createComponentVNode)(2,c.Button,{content:"ALL",onClick:function(){return i("remove",{reagent:e.id,amount:e.volume})}})],0)}})})}},34859:function(e,n,t){"use strict";n.__esModule=!0,n.ChemMaster=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(48229),l=t(16007),d=[1,5,10,30,60];n.ChemMaster=function(e,n){var t=(0,r.useBackend)(n).data,c=t.condi,i=t.beaker,d=t.beaker_reagents,p=void 0===d?[]:d,C=t.buffer_reagents,h=void 0===C?[]:C,N=t.mode;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:500,resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal),(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s,{beaker:i,beakerReagents:p,bufferNonEmpty:h.length>0}),(0,o.createComponentVNode)(2,u,{mode:N,bufferReagents:h}),(0,o.createComponentVNode)(2,m,{isCondiment:c,bufferNonEmpty:h.length>0})]})]})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,s=(t.data,e.beaker),u=e.beakerReagents,m=e.bufferNonEmpty?(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}}):(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",buttons:m,children:s?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,t){return(0,o.createComponentVNode)(2,c.Box,{mb:t0?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,c.Box,{mb:r0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!i.condi&&(0,o.createComponentVNode)(2,c.Button,{icon:i.printing?"spinner":"print",disabled:i.printing,iconSpin:!!i.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})}))},83919:function(e,n,t){"use strict";n.__esModule=!0,n.ClawMachine=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ClawMachine=function(e,n){var t,i=(0,r.useBackend)(n),l=i.act,d=i.data,s=(d.wintick,d.instructions),u=d.gameStatus,m=d.winscreen;return"CLAWMACHINE_NEW"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Pay to Play!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Start",onClick:function(){return l("newgame")}})]}):"CLAWMACHINE_END"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Thank you for playing!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),m,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){return l("return")}})]}):"CLAWMACHINE_ON"===u&&(t=(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[1,7],good:[8,Infinity]},value:d.wintick,minValue:0,maxValue:10})})}),(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Up",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Left",onClick:function(){return l("pointless")}}),(0,o.createComponentVNode)(2,c.Button,{content:"Right",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Down",onClick:function(){return l("pointless")}})]})]})),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createVNode)(1,"center",null,t,0)})}},74351:function(e,n,t){"use strict";n.__esModule=!0,n.Cleanbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Cleanbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.version,p=l.blood,C=(l.patrol,l.vocal),h=l.wet_floors,N=l.spray_blood,V=l.rgbpanel,b=l.red_switch,f=l.green_switch,g=l.blue_switch;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Cleaner "+m,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("blood")},children:p?"Clean":"Ignore"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("vocal")},children:C?"On":"Off"})})]})})||null,!u&&s&&(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:V&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:b?"toggle-on":"toggle-off",backgroundColor:b?"red":"maroon",onClick:function(){return i("red_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:f?"toggle-on":"toggle-off",backgroundColor:f?"green":"darkgreen",onClick:function(){return i("green_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:g?"toggle-on":"toggle-off",backgroundColor:g?"blue":"darkblue",onClick:function(){return i("blue_switch")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Odd Looking Screw Twiddled",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:h,onClick:function(){return i("wet_floors")},icon:"screwdriver",children:h?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weird Button Pressed",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"brown",selected:N,onClick:function(){return i("spray_blood")},icon:"screwdriver",children:N?"Yes":"No"})})]})})})||null]})})}},98213:function(e,n,t){"use strict";n.__esModule=!0,n.CloningConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(76270),l=t(16007),d=t(85952),s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=e.args,s=d.activerecord,u=d.realname,m=d.health,p=d.unidentity,C=d.strucenzymes,h=m.split(" - ");return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:h.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.oxy,inline:!0,children:h[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.toxin,inline:!0,children:h[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.brute,inline:!0,children:h[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.burn,inline:!0,children:h[1]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:p}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:C}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:s})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};n.CloningConsole=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",s),(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,d.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})]})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data.menu;return 1===r?t=(0,o.createComponentVNode)(2,p):2===r&&(t=(0,o.createComponentVNode)(2,C)),t},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.loading,s=l.scantemp,u=l.occupant,m=l.locked,p=l.can_brainscan,C=l.scan_mode,h=l.numberofpods,N=l.pods,V=l.selected_pod,b=m&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,selected:b,icon:b?"toggle-on":"toggle-off",content:b?"Engaged":"Disengaged",onClick:function(){return i("lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:b||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return i("eject")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,a.Box,{color:s.color,children:s.text})}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"brain":"male",content:C?"Brain":"Body",onClick:function(){return i("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u||d,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:h?N.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:V===e.pod,icon:V===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",n+1]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.records;return i.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},h=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.scanner,d=i.numberofpods,s=i.autoallowed,u=i.autoprocess,m=i.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},32278:function(e,n,t){"use strict";n.__esModule=!0,n.ColorMate=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ColorMate=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.items,s=l.activecolor,u=Math.min(270+15*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:d.length&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Paint",children:(0,o.createComponentVNode)(2,c.Flex,{justify:"center",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:s,width:"120px",height:"120px"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50% ",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye-dropper",onClick:function(){return i("select")},children:"Select Color"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fill-drip",onClick:function(){return i("paint")},children:"Paint Items"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tint-slash",onClick:function(){return i("clear")},children:"Remove Paintjob"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return i("eject")},children:"Eject Items"})]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Items",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["#",n+1,": ",e]},n)}))})],4)||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No items inserted."})})})})}},130:function(e,n,t){"use strict";n.__esModule=!0,n.CommunicationsConsoleContent=n.CommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CommunicationsConsole=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.menu_state),i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["ERRROR. Unknown menu_state: ",a,"Please report this to NT Technical Support."]});return 1===a?i=(0,o.createComponentVNode)(2,l):2===a?i=(0,o.createComponentVNode)(2,u):3===a&&(i=(0,o.createComponentVNode)(2,s)),(0,o.createFragment)([(0,o.createComponentVNode)(2,d),i],0)};n.CommunicationsConsoleContent=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.messages,d=i.msg_cooldown,s=i.emagged,u=i.cc_cooldown,m=i.str_security_level,p=i.levels,C=i.authmax,h=i.security_level,N=i.security_level_color,V=i.authenticated,b=i.atcsquelch,f=i.boss_short,g="View ("+l.length+")",k="Make Priority Announcement";d>0&&(k+=" ("+d+"s)");var v=s?"Message [UNKNOWN]":"Message "+f;u>0&&(v+=" ("+u+"s)");var B=m,L=p.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.icon,content:e.name,disabled:!V,selected:e.id===h,onClick:function(){return a("newalertlevel",{level:e.id})}},e.name)}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Site Manager-Only Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Announcement",children:(0,o.createComponentVNode)(2,c.Button,{icon:"bullhorn",content:k,disabled:!C||d>0,onClick:function(){return a("announce")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",color:"red",content:v,disabled:!C||u>0,onClick:function(){return a("MessageSyndicate")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!C,onClick:function(){return a("RestoreBackup")}})]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",content:v,disabled:!C||u>0,onClick:function(){return a("MessageCentCom")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Command Staff Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Alert",color:N,children:B}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Alert",children:L}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Displays",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tv",content:"Change Status Displays",disabled:!V,onClick:function(){return a("status")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"folder-open",content:g,disabled:!V,onClick:function(){return a("messagelist")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Misc",children:(0,o.createComponentVNode)(2,c.Button,{icon:"microphone",content:b?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!V,selected:b,onClick:function(){return a("toggleatc")}})})]})})],4)},d=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,d=l.authenticated,s=l.is_ai,u=l.esc_status,m=l.esc_callable,p=l.esc_recallable;return t=d?s?"AI":1===d?"Command":2===d?"Site Director":"ERROR: Report This Bug!":"Not Logged In",(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"id-card",selected:d,content:d?"Log Out ("+t+")":"Log In",onClick:function(){return i("auth")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Escape Shuttle",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[!!u&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:u}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",content:"Call Shuttle",disabled:!d,onClick:function(){return i("callshuttle")}})}),!!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Recall Shuttle",disabled:!d||s,onClick:function(){return i("cancelshuttle")}})})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.message_current,d=i.message_deletion_allowed,s=i.authenticated,u=i.messages;if(l)return(0,o.createComponentVNode)(2,c.Section,{title:l.title,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Return To Message List",disabled:!s,onClick:function(){return a("messagelist")}}),children:(0,o.createComponentVNode)(2,c.Box,{children:l.contents})});var m=u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View",disabled:!s||l&&l.title===e.title,onClick:function(){return a("messagelist",{msgid:e.id})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Delete",disabled:!s||!d,onClick:function(){return a("delmessage",{msgid:e.id})}})]},e.id)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Messages Received",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.length&&m||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"404",color:"bad",children:"No messages."})})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stat_display,d=i.authenticated,s=l.presets.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.label,selected:e.name===l.type,disabled:!d,onClick:function(){return a("setstat",{statdisp:e.name})}},e.name)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Status Screens",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 1",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_1,disabled:!d,onClick:function(){return a("setmsg1")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 2",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_2,disabled:!d,onClick:function(){return a("setmsg2")}})})]})})}},4220:function(e,n,t){"use strict";n.__esModule=!0,n.Communicator=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=t(22902),s={};n.Communicator=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.currentTab,d=r.video_comm,h=(r.mapRef,(0,a.useLocalState)(n,"videoSetting",0)),N=h[0],V=h[1];return(0,o.createComponentVNode)(2,l.Window,{width:475,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[d&&(0,o.createComponentVNode)(2,u,{videoSetting:N,setVideoSetting:V}),(!d||0!==N)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,i.Box,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:s[c]||(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,C,{videoSetting:N,setVideoSetting:V})],4)]})})};var u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.video_comm,c.mapRef),d=e.videoSetting,s=e.setVideoSetting;return 0===d?(0,o.createComponentVNode)(2,i.Box,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.ByondUi,{width:"100%",height:"95%",params:{id:l,type:"map"}}),(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,mt:.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(1)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})]}):1===d?(0,o.createComponentVNode)(2,i.Box,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,o.createComponentVNode)(2,i.Section,{p:0,m:0,children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(2)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return s(0)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})}),(0,o.createComponentVNode)(2,i.ByondUi,{width:"200px",height:"200px",params:{id:l,type:"map"}})]}):null},m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.currentTab);return(0,o.createComponentVNode)(2,i.Section,{title:"Error!",children:["You tried to access tab #",r,", but there was no template defined!"]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),l=r.time,d=r.connectionStatus,s=r.owner,u=r.occupation;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Icon,{color:1===d?"good":"bad",name:1===d?"signal":"exclamation-triangle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(u)})]})})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.flashlight,l=e.videoSetting,d=e.setVideoSetting;return(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:2===l?"60%":"80%",children:(0,o.createComponentVNode)(2,i.Button,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return r("switch_tab",{switch_tab:1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:c,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return r("Light")}})}),2===l&&(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return d(1)}})})]})},h=function(e,n){var t=(0,a.useBackend)(n).data,o=t.voice_mobs,r=t.communicating,c=t.requestsReceived,i=t.invitesSent,l=t.video_comm;return!("Phone"!==e||!(o.length||r.length||c.length||i.length||l))};s[1]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.homeScreen;return(0,o.createComponentVNode)(2,i.Flex,{mt:2,wrap:"wrap",align:"center",justify:"center",children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Button,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return r("switch_tab",{switch_tab:e.number})},children:(0,o.createComponentVNode)(2,i.Icon,{spin:h(e.module,n),color:h(e.module,n)?"bad":null,name:e.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,o.createComponentVNode)(2,i.Box,{children:e.module})]},e.number)}))})}));var N=function(e,n){for(var t=(0,a.useBackend)(n),r=t.act,c=t.data.targetAddress,l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"].map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e,fontSize:2,fluid:!0,onClick:function(){return r("add_hex",{add_hex:e})}},e)})),d=[],s=0;st?n.length>t?n.slice(0,t)+"...":n:e+n},f=function(e,n,t,o){if(t<0||t>o.length)return V(e,n)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var r=V(e,n),c=V(o[t],n);return r&&c?"TinderMessage_Subsequent_Sent":r||c?r?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"};s[40]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.targetAddressName,s=l.targetAddress,u=l.imList,m=(0,a.useLocalState)(n,"clipboardMode",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:V(e,s)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[V(e,s)?"You":"Them",": ",e.im]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]}):(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:V(e,s)?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:f(e,s,n-1,t),inline:!0,children:(0,c.decodeHtmlEntities)(e.im)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]})}));var g=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:(0,c.decodeHtmlEntities)(l.name)+" by "+(0,c.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:null})}}),children:l.messages.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{children:["- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,c.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,i.Box,{color:"grey",children:["[",e.message_type," by ",(0,c.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))})},k=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Recent News",level:2,children:(0,o.createComponentVNode)(2,i.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,c.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,i.Button,{ml:1,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)};s[5]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.feeds,l=r.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:"News",stretchContents:!0,height:"100%",children:!c.length&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||l&&(0,o.createComponentVNode)(2,g)||(0,o.createComponentVNode)(2,k)})}));s[6]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.note;return(0,o.createComponentVNode)(2,i.Section,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return r("edit")},content:"Edit Notes"}),children:(0,o.createComponentVNode)(2,i.Section,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:c})})}));s[7]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data),d=l.aircontents,s=l.weather;return(0,o.createComponentVNode)(2,i.Section,{title:"Weather",children:[(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Current Conditions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Weather Reports",children:!!s.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.Planet,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time",children:e.Time}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Weather",children:(0,c.toTitleCase)(e.Weather)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:["Current: ",e.Temperature.toFixed(),"\xb0C | High: ",e.High.toFixed(),"\xb0C | Low: ",e.Low.toFixed(),"\xb0C"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Direction",children:e.WindDir}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Speed",children:e.WindSpeed}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Forecast",children:(0,c.decodeHtmlEntities)(e.Forecast)})]})},e.Planet)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})})),s[8]=(0,o.createComponentVNode)(2,d.CrewManifestContent);s[9]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.owner,s=l.occupation,u=l.connectionStatus,m=l.address,p=l.visible,C=l.ring,h=l.selfie_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",fluid:!0,content:(0,c.decodeHtmlEntities)(d),onClick:function(){return r("rename")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Camera Mode",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:h?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return r("selfie_mode")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Occupation",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Disconnected"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Device EPv2 Address",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:p,selected:p,fluid:!0,content:p?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){return r("toggle_visibility")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ringer",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C,selected:C,fluid:!0,content:C?"Ringer on.":"Ringer off.",onClick:function(){return r("toggle_ringer")}})})]})})}))},2174:function(e,n,t){"use strict";n.__esModule=!0,n.ComputerFabricator=void 0;var o=t(39812),r=(t(2497),t(71494)),c=t(74814),a=t(85952);n.ComputerFabricator=function(e,n){var t=(0,r.useBackend)(n),u=t.act,m=t.data;return(0,o.createComponentVNode)(2,a.Window,{title:"Personal Computer Vendor",width:500,height:420,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),0!==m.state&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return u("clean_order")}}),0===m.state&&(0,o.createComponentVNode)(2,i),1===m.state&&(0,o.createComponentVNode)(2,l),2===m.state&&(0,o.createComponentVNode)(2,d),3===m.state&&(0,o.createComponentVNode)(2,s)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 1",minHeight:"306px",children:[(0,o.createComponentVNode)(2,c.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,o.createComponentVNode)(2,c.Box,{mt:3,children:(0,o.createComponentVNode)(2,c.Grid,{width:"100%",children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"1"})}})}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"2"})}})})]})})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"good",children:[i.totalprice,"\u20ae"]}),children:[(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"1"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Adds a secondary RFID card reader, for manipulating or\nreading from a second standard RFID card.\nPlease note that a primary card reader is necessary to\nallow the device to read your identification, but one\nis included in the base price.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_card,onClick:function(){return a("hw_card",{card:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_card,onClick:function(){return a("hw_card",{card:"1"})}})})]}),2!==i.devtype&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A component critical for your device's functionality.\nIt allows you to run programs from your hard drive.\nAdvanced CPUs use more power, but allow you to run\nmore programs on background at once.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"1"})}})})]})]}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return a("confirm_order")}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data);return(0,o.createComponentVNode)(2,c.Section,{title:"Step 3: Payment",minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"good",children:[a.totalprice,"\u20ae"]})]})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.Section,{minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},26090:function(e,n,t){"use strict";n.__esModule=!0,n.CookingAppliance=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.CookingAppliance=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.temperature,s=l.optimalTemp,u=l.temperatureEnough,m=l.efficiency,p=l.containersRemovable,C=l.our_contents;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:u?"good":"blue",value:d,maxValue:s,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d}),"\xb0C / ",s,"\xb0C"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Efficiency",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Containers",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e,n){return e.empty?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("slot",{slot:n+1})},children:"Empty"})}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!p,onClick:function(){return i("slot",{slot:n+1})},children:e.container||"No Container"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.progressText[0],value:e.progress,maxValue:1,children:e.progressText[1]})})]})},n)}))})})]})})}},22902:function(e,n,t){"use strict";n.__esModule=!0,n.CrewManifestContent=n.CrewManifest=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(76270),l=t(2497);n.CrewManifest=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.manifest);return(0,o.createComponentVNode)(2,c.Section,{title:"Crew Manifest",noTopPadding:!0,children:a.map((function(e){return!!e.elems.length&&(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:i.COLORS.manifest[e.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,textAlign:"center",fontSize:1.4,children:e.cat})}),level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Rank"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Active"})]}),e.elems.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{color:"average",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,l.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.active})]},e.name+e.rank)}))]})},e.cat)}))})};n.CrewManifestContent=d},96158:function(e,n,t){"use strict";n.__esModule=!0,n.CrewMonitorContent=n.CrewMonitor=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(71494),i=t(85952),l=t(74814),d=function(e){return e.dead?"Deceased":1===parseInt(e.stat,10)?"Unconscious":"Living"},s=function(e){return e.dead?"red":1===parseInt(e.stat,10)?"orange":"green"};n.CrewMonitor=function(){return(0,o.createComponentVNode)(2,i.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,i=(0,a.useBackend)(n),u=i.act,p=i.data,C=(i.config,(0,a.useLocalState)(n,"tabIndex",0)),h=C[0],N=C[1],V=(0,c.flow)([(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return null==e?void 0:e.x})),(0,r.sortBy)((function(e){return null==e?void 0:e.y})),(0,r.sortBy)((function(e){return null==e?void 0:e.realZ}))])(p.crewmembers||[]),b=(0,a.useLocalState)(n,"zoom",1);b[0],b[1];return t=0===h?(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Location"})]}),V.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:s(e),children:d(e)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,l.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"red",children:e.brute}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"orange",children:e.fire}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"green",children:e.tox}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"blue",children:e.oxy}),")"]}):null]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:3===e.sensor_type?p.isAI?(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return u("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+", "+e.z+")":"Not Available"})]},e.ref)}))]}):1===h?(0,o.createComponentVNode)(2,m):"ERROR",(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Tabs,{children:[(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:0===h,onClick:function(){return N(0)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:1===h,onClick:function(){return N(1)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,l.Box,{m:2,children:t})],4)};n.CrewMonitorContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),c=t.data,i=(0,a.useLocalState)(n,"zoom",1),d=i[0],u=i[1];return(0,o.createComponentVNode)(2,l.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,l.NanoMap,{onZoom:function(e){return u(e)},children:c.crewmembers.filter((function(e){return 3===e.sensor_type&&~~e.realZ==~~r.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,l.NanoMap.Marker,{x:e.x,y:e.y,zoom:d,icon:"circle",tooltip:e.name+" ("+e.assignment+")",color:s(e)},e.ref)}))})})}},99798:function(e,n,t){"use strict";n.__esModule=!0,n.Cryo=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]];n.Cryo=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:520,height:470,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,u=d.isOperating,m=d.hasOccupant,p=d.occupant,C=void 0===p?[]:p,h=d.cellTemperature,N=d.cellTemperatureStatus,V=d.isBeakerLoaded;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"user-slash",onClick:function(){return a("ejectOccupant")},disabled:!m,children:"Eject"}),children:m?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.health)})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[C.stat][0],children:l[C.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C[e.type])})})},e.id)}))]}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cell",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("ejectBeaker")},disabled:!V,children:"Eject Beaker"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a(u?"switchOff":"switchOn")},selected:u,children:u?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",color:N,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:(0,o.createComponentVNode)(2,s)})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.isBeakerLoaded,l=a.beakerLabel,d=a.beakerVolume;return i?(0,o.createFragment)([l||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No label"}),(0,o.createComponentVNode)(2,c.Box,{color:!d&&"bad",children:d?(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d,format:function(e){return Math.round(e)+" units remaining"}}):"Beaker is empty"})],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded"})}},54234:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItems=n.CryoStorageCrew=n.CryoStorage=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CryoStorage=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.crew);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Crew",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"No crew currently stored."})})};n.CryoStorageCrew=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.items;return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("allitems")},children:"Claim All"}),children:i.length&&i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("item",{ref:e.ref})},children:e.name},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItems=l},66384:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItemsVr=n.CryoStorageVr=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(54234);n.CryoStorageVr=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i.CryoStorageCrew),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.items);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItemsVr=l},99579:function(e,n,t){"use strict";n.__esModule=!0,n.DNAForensics=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DNAForensics=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan_progress,s=l.scanning,u=l.bloodsamp,m=l.bloodsamp_desc;return(0,o.createComponentVNode)(2,a.Window,{width:540,height:326,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{selected:s,disabled:!u,icon:"power-off",onClick:function(){return i("scanItem")},children:s?"Halt Scan":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("ejectItem")},children:"Eject Bloodsample"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[99,Infinity],violet:[-Infinity,99]},value:d,maxValue:100})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Blood Sample",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[u,(0,o.createComponentVNode)(2,c.Box,{color:"label",children:m})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No blood sample inserted."})})]})})}},21849:function(e,n,t){"use strict";n.__esModule=!0,n.DNAModifier=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(16007),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],s=[5,10,20,30,50];n.DNAModifier=function(e,n){var t,c=(0,r.useBackend)(n),l=(c.act,c.data),d=l.irradiating,s=l.dnaBlockSize,p=l.occupant;return n.dnaBlockSize=s,n.isDNAInvalid=!p.isViableSubject||!p.uniqueIdentity||!p.structuralEnzymes,d&&(t=(0,o.createComponentVNode)(2,g,{duration:d})),(0,o.createComponentVNode)(2,a.Window,{width:660,height:700,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal),t,(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})]})};var u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,d=i.locked,s=i.hasOccupant,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s,selected:d,icon:d?"toggle-on":"toggle-off",content:d?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s||d,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:s?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider)]})}),n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Unique Enzymes",children:i.occupant.uniqueEnzymes?i.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Cell unoccupied."})})},m=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,s=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,h)],4):"se"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h)],4):"buffer"===s?t=(0,o.createComponentVNode)(2,N):"rejuvenators"===s&&(t=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:s===e[0],onClick:function(){return i("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:e[2]}),e[1]]},n)}))}),t]})):(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedUIBlock,d=i.selectedUISubBlock,s=i.selectedUITarget,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,k,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:s,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,n){return a("changeUITarget",{value:n})}})})}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedSEBlock,d=i.selectedSESubBlock,s=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,k,{dnaString:s.structuralEnzymes,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.radiationIntensity,d=i.radiationDuration;return(0,o.createComponentVNode)(2,c.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationIntensity",{value:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:d,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationDuration",{value:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},N=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.buffers.map((function(e,n){return(0,o.createComponentVNode)(2,V,{id:n+1,name:"Buffer "+(n+1),buffer:e},n)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Buffers",level:"2",children:a}),(0,o.createComponentVNode)(2,b)],4)},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.id,d=e.name,s=e.buffer,u=i.isInjectorReady,m=d+(s.data?" - "+s.label:"");return(0,o.createComponentVNode)(2,c.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,c.Section,{title:m,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!s.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data||!i.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i.hasDisk||!i.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:l})}})]}),!!s.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:s.owner||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!s.data&&(0,o.createComponentVNode)(2,c.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},b=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.hasDisk,d=i.disk;return(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!l||!d.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:l?d.data?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.label?d.label:"No label"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:d.owner?d.owner:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerVolume,u=i.beakerLabel;return(0,o.createComponentVNode)(2,c.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inject",children:[s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{disabled:e>d,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},n)})),(0,o.createComponentVNode)(2,c.Button,{disabled:d<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:d})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,c.Box,{mb:"0.5rem",children:u||"No label"}),d?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:[d," unit",1===d?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},g=function(e,n){return(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},k=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.dnaString),l=e.selectedBlock,d=e.selectedSubblock,s=e.blockSize,u=e.action,m=i.split(""),p=[],C=function(e){for(var n=e/s+1,t=[],r=function(r){var i=r+1;t.push((0,o.createComponentVNode)(2,c.Button,{selected:l===n&&d===i,content:m[e+r],mb:"0",onClick:function(){return a(u,{block:n,subblock:i})}}))},i=0;i1?"Dangerous!":null]},e.stage)}))||(0,o.createComponentVNode)(2,c.Box,{children:"No virus sample loaded."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Affected Species",color:"label",children:[m&&m.length?null:"None",m.sort().join(", ")]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Reverse Engineering",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",mb:1,children:(0,o.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.stage,icon:"exchange-alt",onClick:function(){return a("grab",{grab:e.reference})}},e.stage)})),(0,o.createComponentVNode)(2,c.Button,{content:"Species",icon:"exchange-alt",onClick:function(){return a("affected_species")}})]})],4)]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dish_inserted,i.buffer),d=i.species_buffer,s=(i.effects,i.info);i.growth,i.affected_species,i.busy;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Memory Buffer",children:l?(0,o.createComponentVNode)(2,c.Box,{children:[l.name," (",l.stage,")"]}):d?(0,o.createComponentVNode)(2,c.Box,{children:d}):"Empty"})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!l&&!d,onClick:function(){return a("disk")}}),l?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #1",disabled:l.stage>1,onClick:function(){return a("splice",{splice:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #2",disabled:l.stage>2,onClick:function(){return a("splice",{splice:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #3",disabled:l.stage>3,onClick:function(){return a("splice",{splice:3})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #4",disabled:l.stage>4,onClick:function(){return a("splice",{splice:4})}})]}):d?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice Species",disabled:!d||s,onClick:function(){return a("splice",{splice:5})}})}):null]})}},31066:function(e,n,t){"use strict";n.__esModule=!0,n.DishIncubator=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.DishIncubator=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.on,u=d.system_in_use,m=d.food_supply,p=d.radiation,C=d.growth,h=d.toxins,N=d.chemicals_inserted,V=d.can_breed_virus,b=d.chemical_volume,f=d.max_chemical_volume,g=d.dish_inserted,k=d.blood_already_infected,v=d.virus,B=d.analysed,L=d.infection_rate;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Environmental Conditions",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:s,content:s?"On":"Off",onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,a.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return l("rad")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return l("flush")}})})]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Virus Food",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,Infinity],average:[20,40],bad:[-Infinity,20]},value:m})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,color:p>=50?"bad":C>=25?"average":"good",value:p,children:[(0,r.formatCommaNumber)(1e4*p)," \xb5Sv"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Toxicity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,Infinity],average:[25,50],good:[-Infinity,25]},value:h})})]})]}),(0,o.createComponentVNode)(2,a.Section,{title:V?"Vial":"Chemicals",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject "+(V?"Vial":"Chemicals"),disabled:!N,onClick:function(){return l("ejectchem")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Breed Virus",disabled:!V,onClick:function(){return l("virus")}})],4),children:N&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:f,value:b,children:[b,"/",f]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Breeding Environment",color:V?"good":"average",children:[g?V?"Suitable":"No hemolytic samples detected":"N/A",k?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No chemicals inserted."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Virus Dish",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Dish",disabled:!g,onClick:function(){return l("ejectdish")}}),children:g?v?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Density",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,25]},value:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Infection Rate",children:B?L:"Unknown."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No virus detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No dish loaded."})})]})})}},19095:function(e,n,t){"use strict";n.__esModule=!0,n.DisposalBin=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.DisposalBin=function(e,n){var t,i,l=(0,r.useBackend)(n),d=l.act,s=l.data;return 2===s.mode?(t="good",i="Ready"):s.mode<=0?(t="bad",i="N/A"):1===s.mode?(t="average",i="Pressurizing"):(t="average",i="Idle"),(0,o.createComponentVNode)(2,a.Window,{width:300,height:250,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Status"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State",color:t,children:i}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[0,99],good:[99,Infinity]},value:s.pressure,minValue:0,maxValue:100})})]}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Controls"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Handle",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:s.isAI||s.panel_open,content:"Disengaged",selected:s.flushing?null:"selected",onClick:function(){return d("disengageHandle")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:s.isAI||s.panel_open,content:"Engaged",selected:s.flushing?"selected":null,onClick:function(){return d("engageHandle")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:-1===s.mode,content:"Off",selected:s.mode?null:"selected",onClick:function(){return d("pumpOff")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:-1===s.mode,content:"On",selected:s.mode?"selected":null,onClick:function(){return d("pumpOn")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",disabled:s.isAI,content:"Eject Contents",onClick:function(){return d("eject")}})})]})]})})})}},29345:function(e,n,t){"use strict";n.__esModule=!0,n.DroneConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DroneConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.drones,s=l.areas,u=l.selected_area,m=l.fabricator,p=l.fabPower;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Drone Fabricator",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!m,selected:p,icon:"power-off",content:p?"Enabled":"Disabled",onClick:function(){return i("toggle_fab")}}),children:m?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Linked."}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Fabricator not detected.",(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){return i("search_fab")}})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Request Drone",children:[(0,o.createComponentVNode)(2,c.Dropdown,{options:s?s.sort():null,selected:u,width:"100%",onSelected:function(e){return i("set_dcall_area",{area:e})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",content:"Send Ping",onClick:function(){return i("ping")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Units",children:d&&d.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Resync",onClick:function(){return i("resync",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return i("shutdown",{ref:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:e.loc}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:[e.charge," / ",e.maxCharge]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active",children:e.active?"Yes":"No"})]})},e.name)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No drones detected."})})]})})}},84122:function(e,n,t){"use strict";n.__esModule=!0,n.EmbeddedController=void 0;var o=t(39812),r=(t(2497),t(41860),t(71494)),c=t(74814),a=t(85952),i=((0,t(88654).createLogger)("fuck"),{});n.EmbeddedController=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data.internalTemplateName),l=i[c];if(!l)throw Error("Unable to find Component for template name: "+c);return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=e.bars;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.color(e.value),minValue:e.minValue,maxValue:e.maxValue,value:e.value,children:e.textValue})},e.label)}))})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=!0;a.interior_status&&"open"===a.interior_status.state?l=!1:a.external_pressure&&a.chamber_pressure&&(l=!(Math.abs(a.external_pressure-a.chamber_pressure)>5));var d=!0;return a.exterior_status&&"open"===a.exterior_status.state?d=!1:a.internal_pressure&&a.chamber_pressure&&(d=!(Math.abs(a.internal_pressure-a.chamber_pressure)>5)),(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return i("cycle_ext")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return i("cycle_int")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:l?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return i("force_ext")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:d?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return i("force_int")}})]})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,u),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"INITIALIZING..."})}),l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===a.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===a.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===a.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Escape Pod Status",children:i[a.docking_status]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.data;t.act;return a.armed?(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"ARMED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SYSTEMS OK"})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!a.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:"docked"!==a.docking_status?"bad":"",onClick:function(){return i("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{selected:a.override_enabled,color:"docked"!==a.docking_status?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return i("toggle_override")}})]})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"DOCKED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"DOCKING"}),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"NOT IN USE"})}[a.docking_status]);return a.override_enabled&&(i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[a.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),i};i.AirlockConsoleAdvanced=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"},u=[{minValue:0,maxValue:202,value:i.external_pressure,label:"External Pressure",textValue:i.external_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.internal_pressure,label:"Internal Pressure",textValue:i.internal_pressure+" kPa",color:s}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:u}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Purge",onClick:function(){return a("purge")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lock-open",content:"Secure",onClick:function(){return a("secure")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsolePhoron=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}},{minValue:0,maxValue:100,value:i.chamber_phoron,label:"Chamber Phoron",textValue:i.chamber_phoron+" mol",color:function(e){return e>5?"bad":e>.5?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleDocking=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Dock",buttons:i.airlock_disabled||i.override_enabled?(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}}):null,children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.DockingConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===i.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===i.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===i.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.override_enabled,content:"Force exterior door",onClick:function(){return a("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dock Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})};i.DockingConsoleMulti=function(e,n){var t=(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Docking Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.Section,{title:"Airlocks",children:t.airlocks.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:t.airlocks.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:e.override_enabled?"bad":"good",label:e.name,children:e.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},e.name)}))}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",mt:"0.5em",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No airlocks found."]})})})],4)};i.DoorAccessConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l="open"===i.interior_status.state||"closed"===i.exterior_status.state,d="open"===i.exterior_status.state||"closed"===i.interior_status.state;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:l?"arrow-left":"exclamation-triangle",content:l?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){a(l?"cycle_ext_door":"force_ext")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"arrow-right":"exclamation-triangle",content:d?"Cycle To Interior":"Lock Interior Door",onClick:function(){a(d?"cycle_int_door":"force_int")}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Exterior Door Status",children:"closed"===i.exterior_status.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Interior Door Status",children:"closed"===i.interior_status.state?"Locked":"Open"})]})})};i.EscapePodConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:i.armed,color:i.armed?"bad":"average",content:"ARM",onClick:function(){return a("manual_arm")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return a("force_launch")}})]})]})],4)};i.EscapePodBerthConsole=function(e,n){(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,m)})],4)}},33777:function(e,n,t){"use strict";n.__esModule=!0,n.ExonetNode=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ExonetNode=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.allowPDAs,u=l.allowCommunicators,m=l.allowNewscasters,p=l.logs;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,content:"Power "+(d?"On":"Off"),onClick:function(){return i("toggle_power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:s,content:s?"Open":"Closed",onClick:function(){return i("toggle_PDA_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Communicators",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return i("toggle_communicator_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return i("toggle_newscaster_port")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Logging",children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:[p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:e},n)})),p&&0!==p.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No logs found."})]})})]})})}},95481:function(e,n,t){"use strict";n.__esModule=!0,n.Materials=n.ExosuitFabricator=void 0;var o,r=t(39812),c=t(34380),a=t(64499),i=t(71494),l=t(58083),d=t(74814),s=t(85952),u=t(2497),m=t(41860);function p(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return C(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);tt?{color:2,deficit:e-t}:n>t?{color:1,deficit:e}:e+n>t?{color:1,deficit:e+n-t}:{color:0,deficit:0}},b=function(e,n,t){var o={textColor:0};return Object.keys(t.cost).forEach((function(r){o[r]=V(t.cost[r],n[r],e[r]),o[r].color>o.textColor&&(o.textColor=o[r].color)})),o};n.ExosuitFabricator=function(e,n){var t,o,c=(0,i.useBackend)(n),a=c.act,l=c.data,u=l.queue||[],m=(t=l.materials||[],o={},t.forEach((function(e){o[e.name]=e.amount})),o),p=function(e,n){var t={},o={},r={},c={};return n.forEach((function(n,a){c[a]=0,Object.keys(n.cost).forEach((function(i){t[i]=t[i]||0,r[i]=r[i]||0,o[i]=V(n.cost[i],t[i],e[i]),0!==o[i].color?c[a]1&&l0}));return 0===l.length?(0,r.createComponentVNode)(2,d.Box,{textAlign:"center",children:[(0,r.createComponentVNode)(2,d.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,r.createVNode)(1,"br"),(0,r.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:l.map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"80px",children:[(0,r.createComponentVNode)(2,k,{name:e.name,amount:e.amount,formatsi:!0}),!a&&(0,r.createComponentVNode)(2,d.Box,{mt:1,style:{"text-align":"center"},children:(0,r.createComponentVNode)(2,f,{material:e})})]},e.name)||null}))})};n.Materials=g;var k=function(e,n){var t=e.name,o=e.amount,a=e.formatsi,i=e.formatmoney,s=e.color,p=e.style,C="0";return C=o<1&&o>0?(0,m.toFixed)(o,2):a?(0,l.formatSiUnit)(o,0):i?(0,l.formatMoney)(o):o,(0,r.createComponentVNode)(2,d.Flex,{direction:"column",align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Tooltip,{position:"bottom",content:(0,u.toTitleCase)(t),children:(0,r.createComponentVNode)(2,d.Box,{className:(0,c.classes)(["sheetmaterials32x32",h[t]]),position:"relative",style:p})})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{textColor:s,style:{"text-align":"center"},children:C})})]})},v=function(e,n){var t=(0,i.useBackend)(n).data,o=t.partSets||[],c=t.buildableParts||{},a=(0,i.useSharedState)(n,"part_tab",o.length?c[0]:""),l=a[0],s=a[1];return(0,r.createComponentVNode)(2,d.Tabs,{vertical:!0,children:o.map((function(e){return!!c[e]&&(0,r.createComponentVNode)(2,d.Tabs.Tab,{selected:e===l,disabled:!c[e],onClick:function(){return s(e)},children:e},e)}))})},B=function(e,n){var t,o=(0,i.useBackend)(n).data,c=function(e){for(var n,t=p(e);!(n=t()).done;){var o=n.value;if(s[o])return o}return null},l=o.partSets||[],s=o.buildableParts||[],m=e.queueMaterials,C=e.materials,h=(0,i.useSharedState)(n,"part_tab",c(l)),N=h[0],V=h[1],f=(0,i.useSharedState)(n,"search_text",""),g=f[0],k=f[1];if(!N||!s[N]){var v=c(l);if(!v)return;V(v)}return g?(t=[],function(e,n){var t=[];if(e.length){var o=(0,u.createSearch)(e,(function(e){return(e.name||"")+(e.desc||"")+(e.searchMeta||"")}));return Object.keys(n).forEach((function(e){n[e].filter(o).forEach((function(e){t.push(e)}))})),t=(0,a.uniqBy)((function(e){return e.name}))(t)}}(g,s).forEach((function(e){e.format=b(C,m,e),t.push(e)}))):(t={Parts:[]},s[N].forEach((function(e){e.format=b(C,m,e),e.subCategory?(e.subCategory in t||(t[e.subCategory]=[]),t[e.subCategory].push(e)):t.Parts.push(e)}))),(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Section,{children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{mr:1,children:(0,r.createComponentVNode)(2,d.Icon,{name:"search"})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1,children:(0,r.createComponentVNode)(2,d.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,n){return k(n)}})})]})}),!!g&&(0,r.createComponentVNode)(2,L,{name:"Search Results",parts:t,forceShow:!0,placeholder:"No matching results..."})||Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,L,{name:e,parts:t[e]},e)}))],0)},L=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data.buildingPart,a=e.parts,l=e.name,s=e.forceShow,u=e.placeholder,m=(0,i.useSharedState)(n,"display_mats",!1)[0];return(!!a.length||s)&&(0,r.createComponentVNode)(2,d.Section,{title:l,buttons:(0,r.createComponentVNode)(2,d.Button,{disabled:!a.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return o("add_queue_set",{part_list:a.map((function(e){return e.id}))})}}),children:[!a.length&&u,a.map((function(e){return(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Flex,{align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{disabled:c||2===e.format.textColor,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return o("build_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return o("add_queue_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[e.format.textColor],children:e.name})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+e.printTime+"s. "+(e.desc||""),tooltipPosition:"left"})})]}),m&&(0,r.createComponentVNode)(2,d.Flex,{mb:2,children:Object.keys(e.cost).map((function(n){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"50px",color:N[e.format[n].color],children:(0,r.createComponentVNode)(2,k,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:n,amount:e.cost[n]})},n)}))})],0,e.name)}))]})},_=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=c.isProcessingQueue,l=c.queue||[],s=e.queueMaterials,u=e.missingMaterials,m=e.textColors;return(0,r.createComponentVNode)(2,d.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{height:0,grow:1,children:(0,r.createComponentVNode)(2,d.Section,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Button.Confirm,{disabled:!l.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return o("clear_queue")}}),!!a&&(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Stop",icon:"stop",onClick:function(){return o("stop_queue")}})||(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Build Queue",icon:"play",onClick:function(){return o("build_queue")}})],0),children:(0,r.createComponentVNode)(2,d.Flex,{direction:"column",height:"100%",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,S)}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,w,{textColors:m})})]})})}),!!l.length&&(0,r.createComponentVNode)(2,d.Flex.Item,{mt:1,children:(0,r.createComponentVNode)(2,d.Section,{title:"Material Cost",children:(0,r.createComponentVNode)(2,x,{queueMaterials:s,missingMaterials:u})})})]})},x=function(e,n){var t=e.queueMaterials,o=e.missingMaterials;return(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"12%",children:[(0,r.createComponentVNode)(2,k,{formatmoney:!0,name:e,amount:t[e]}),!!o[e]&&(0,r.createComponentVNode)(2,d.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,l.formatMoney)(o[e])})]},e)}))})},w=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=e.textColors,l=c.queue||[];return l.length?l.map((function(e,n){return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.Flex,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,r.createComponentVNode)(2,d.Flex.Item,{basis:"content",children:(0,r.createComponentVNode)(2,d.Button,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return o("del_queue_part",{index:n+1})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[a[n]],children:e.name})})]})},e.name)})):(0,r.createFragment)([(0,r.createTextVNode)("No parts in queue.")],4)},S=function(e,n){var t=(0,i.useBackend)(n).data,o=t.buildingPart,c=t.storedPart;if(c){var a=c.name;return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:1,value:1,color:"average",children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:a}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(o){var l=o.name,s=o.duration,u=o.printTime,m=Math.ceil(s/10);return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:u,value:s,children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:l}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:m>=0&&m+"s"||"Dispensing..."})]})})})}}},95598:function(e,n,t){"use strict";n.__esModule=!0,n.Farmbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Farmbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.locked,u=l.tank,m=l.tankVolume,p=l.tankMaxVolume,C=l.waters_trays,h=l.refills_water,N=l.uproots_weeds,V=l.replaces_nutriment;l.collects_produce,l.removes_dead;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:540,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water Tank",children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No water tank detected."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:s?"good":"bad",children:s?"Locked":"Unlocked"})]})}),!s&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Watering Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("water")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Refill watertank",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("refill")},children:h?"Yes":"No"})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Weeding controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weed plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("weed")},children:N?"Yes":"No"})})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Nutriment controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Replace fertilizer",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("replacenutri")},children:V?"Yes":"No"})})})})]})||null]})})}},17569:function(e,n,t){"use strict";n.__esModule=!0,n.FaxContent=n.Fax=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(28117),l=t(1192);n.Fax=function(e,n){return(0,r.useBackend)(n).data.authenticated?(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.LoginInfo),(0,o.createComponentVNode)(2,d)]})}):(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,l.LoginScreen)]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.bossName,d=i.copyItem,s=i.cooldown,u=i.destination;return(0,o.createComponentVNode)(2,c.Section,{children:[!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:[l," Quantum Entanglement Network"]})}),d&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Currently Sending",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,c.Button,{icon:"map-marker-alt",content:u,onClick:function(){return a("dept")}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",onClick:function(){return a("send")},content:"Send",fluid:!0})]})||(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Please insert item to transmit."})]})};n.FaxContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act;return t.data.copyItem?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return a("remove")},content:"Remove Item"})}):null}},58087:function(e,n,t){"use strict";n.__esModule=!0,n.FileCabinet=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.FileCabinet=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.contents,s=(0,r.sortBy)((function(e){return e.name}))(d||[]);return(0,o.createComponentVNode)(2,i.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"file",content:e.name,onClick:function(){return l("retrieve",{ref:e.ref})}},e.ref)}))})})})}},21902:function(e,n,t){"use strict";n.__esModule=!0,n.Floorbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Floorbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.vocal,p=l.amount,C=l.possible_bmode,h=l.improvefloors,N=l.eattiles,V=l.maketiles,b=l.bmode;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:310,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tiles Left",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("vocal")},children:m?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Improves Floors",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("improve")},children:h?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Finds Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("tiles")},children:N?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("make")},children:V?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Bridge Mode",children:(0,o.createComponentVNode)(2,c.Dropdown,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:C,onSelected:function(e){return i("bridgemode",{dir:e})}})})]})})||null]})})}},309:function(e,n,t){"use strict";n.__esModule=!0,n.GasPump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.GasPump=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=l.last_flow_rate,m=l.last_power_draw,p=l.max_power_draw;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:290,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/10})," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:p,color:m=100?u="Running":!d&&s>0&&(u="DISCHARGING"),(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:d?"This will disable gravity!":"This will enable gravity!",onClick:function(){return i("gentoggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Breaker Setting",children:d?"Generator Enabled":"Generator Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",children:["Generator ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Status",children:[s,"%"]})]})})})})}},95075:function(e,n,t){"use strict";n.__esModule=!0,n.GuestPass=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.GuestPass=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.access,d.area),u=d.giver,m=d.giveName,p=d.reason,C=d.duration,h=d.mode,N=d.log,V=d.uid;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:1===h&&(0,o.createComponentVNode)(2,a.Section,{title:"Activity Log",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return l("mode",{mode:0})}}),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",onClick:function(){return l("print")},fluid:!0,mb:1}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Logs",children:N.length&&N.map((function(e){return(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:e}},e)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No logs."})})]})||(0,o.createComponentVNode)(2,a.Section,{title:"Guest pass terminal #"+V,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",onClick:function(){return l("mode",{mode:1})}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issuing ID",children:(0,o.createComponentVNode)(2,a.Button,{content:u||"Insert ID",onClick:function(){return l("id")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issued To",children:(0,o.createComponentVNode)(2,a.Button,{content:m,onClick:function(){return l("giv_name")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Reason",children:(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return l("reason")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Duration (minutes)",children:(0,o.createComponentVNode)(2,a.Button,{content:C,onClick:function(){return l("duration")}})})]}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return l("issue")}}),(0,o.createComponentVNode)(2,a.Section,{title:"Access",level:2,children:(0,r.sortBy)((function(e){return e.area_name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.on,content:e.area_name,onClick:function(){return l("access",{access:e.area})}},e.area)}))})]})})})}},31875:function(e,n,t){"use strict";n.__esModule=!0,n.GyrotronControlContent=n.GyrotronControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.GyrotronControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.gyros;return(0,o.createComponentVNode)(2,a.Section,{title:"Gyrotrons",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fire Delay"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Strength"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{gyro:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(n,t){return c("set_rate",{gyro:e.ref,rate:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(n,t){return c("set_str",{gyro:e.ref,str:t})}})})]},e.name)}))]})})};n.GyrotronControlContent=i},7908:function(e,n,t){"use strict";n.__esModule=!0,n.Holodeck=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Holodeck=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.restrictedPrograms,u=l.currentProgram,m=l.isSilicon,p=l.safetyDisabled,C=l.emagged,h=l.gravity,N=d;return p&&(N=N.concat(s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:610,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{color:-1!==s.indexOf(e)?"bad":null,icon:"eye",content:e,selected:u===e,fluid:!0,onClick:function(){return i("program",{program:e})}},e)}))}),!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Override",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",fluid:!0,disabled:C,color:p?"good":"bad",onClick:function(){return i("AIoverride")},children:[!!C&&"Error, unable to control. ",p?"Enable Safeties":"Disable Safeties"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:p?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"ENABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{icon:"user-astronaut",selected:h,onClick:function(){return i("gravity")},children:h?"Enabled":"Disabled"})})]})})]})})}},12676:function(e,n,t){"use strict";n.__esModule=!0,n.ICAssembly=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=(t(2497),t(58083));n.ICAssembly=function(e,n){var t=(0,c.useBackend)(n),s=(t.act,t.data),u=s.total_parts,m=s.max_components,p=s.total_complexity,C=s.max_complexity,h=s.battery_charge,N=s.battery_max,V=s.net_power,b=s.unremovable_circuits,f=s.removable_circuits;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Space in Assembly",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:u/m,maxValue:1,children:[u," / ",m," (",(0,r.round)(u/m*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Complexity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:p/C,maxValue:1,children:[p," / ",C," (",(0,r.round)(p/C*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell Charge",children:h&&(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:h/N,maxValue:1,children:[h," / ",N," (",(0,r.round)(h/N*100,1),"%)"]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No cell detected."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Net Energy",children:0===V?"0 W/s":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V,format:function(e){return"-"+(0,l.formatPower)(Math.abs(e))+"/s"}})})]})}),b.length&&(0,o.createComponentVNode)(2,d,{title:"Built-in Components",circuits:b})||null,f.length&&(0,o.createComponentVNode)(2,d,{title:"Removable Components",circuits:f})||null]})})};var d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.title,i=e.circuits;return(0,o.createComponentVNode)(2,a.Section,{title:r,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("open_circuit",{ref:e.ref})},children:"View"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("rename_circuit",{ref:e.ref})},children:"Rename"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("scan_circuit",{ref:e.ref})},children:"Debugger Scan"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("remove_circuit",{ref:e.ref})},children:"Remove"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("bottom_circuit",{ref:e.ref})},children:"Move to Bottom"})]},e.ref)}))})})}},42394:function(e,n,t){"use strict";n.__esModule=!0,n.ICCircuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(58083);n.ICCircuit=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=(u.name,u.desc),p=u.displayed_name,C=(u.removable,u.complexity),h=u.power_draw_idle,N=u.power_draw_per_use,V=u.extended_desc,b=u.inputs,f=u.outputs,g=u.activators;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,title:p,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stats",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("rename")},children:"Rename"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("scan")},children:"Scan with Device"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove")},children:"Remove"})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Complexity",children:C}),h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Idle)",children:(0,l.formatPower)(h)})||null,N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Active)",children:(0,l.formatPower)(N)})||null]}),V]}),(0,o.createComponentVNode)(2,c.Section,{title:"Circuit",children:[(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",spacing:1,children:[b.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Inputs",children:(0,o.createComponentVNode)(2,d,{list:b})})})||null,(0,o.createComponentVNode)(2,c.Flex.Item,{basis:b.length&&f.length?"33%":b.length||f.length?"45%":"100%",children:(0,o.createComponentVNode)(2,c.Section,{title:p,mb:1,children:(0,o.createComponentVNode)(2,c.Box,{children:m})})}),f.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Outputs",children:(0,o.createComponentVNode)(2,d,{list:f})})})||null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Triggers",children:g.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("pin_name",{pin:e.ref})},children:e.pulse_out?"":""}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.name)}))})]})]})})};var d=function(e,n){var t=(0,r.useBackend)(n).act;return e.list.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_name",{pin:e.ref})},children:[(0,i.decodeHtmlEntities)(e.type),": ",e.name]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_data",{pin:e.ref})},children:e.data}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.ref)}))},s=function(e,n){var t=(0,r.useBackend)(n).act,a=e.pin;return a.linked.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_unwire",{pin:a.ref,link:e.ref})},children:e.name}),"@\xa0",(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("examine",{ref:e.holder_ref})},children:e.holder_name})]},e.ref)}))}},81039:function(e,n,t){"use strict";n.__esModule=!0,n.ICDetailer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(2497);n.ICDetailer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.detail_color,u=d.color_list;return(0,o.createComponentVNode)(2,a.Window,{width:420,height:254,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:Object.keys(u).map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.toTitleCase)(e),tooltipPosition:n%6==5?"left":"right",height:"64px",width:"64px",onClick:function(){return l("change_color",{color:e})},style:u[e]===s?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[e]},e)}))})})})}},21687:function(e,n,t){"use strict";n.__esModule=!0,n.ICPrinter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);t(88654);n.ICPrinter=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=i.metal,s=i.max_metal,u=i.metal_per_sheet,m=(i.debug,i.upgraded),p=i.can_clone;i.assembly_to_clone,i.categories;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:630,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Metal",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:l,maxValue:s,children:[l/u," / ",s/u," sheets"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Circuits Available",children:m?"Advanced":"Regular"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Assembly Cloning",children:p?"Available":"Unavailable"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,o.createComponentVNode)(2,d)]})})};var l=function(e,n){return!!e.can_build&&!(e.cost>n.metal)},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.categories,u=(d.debug,(0,r.useSharedState)(n,"categoryTarget",null)),m=u[0],p=u[1],C=(0,i.filter)((function(e){return e.name===m}))(s)[0];return(0,o.createComponentVNode)(2,c.Section,{title:"Circuits",children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{mr:2,children:(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:(0,i.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:m===e.name,onClick:function(){return p(e.name)},children:e.name},e.name)}))})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:C&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,i.sortBy)((function(e){return e.name}))(C.items).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,labelColor:e.can_build?"good":"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l(e,d),icon:"print",onClick:function(){return a("build",{build:e.path})},children:"Print"}),children:e.desc},e.name)}))})})||"No category selected."})]})})}},48522:function(e,n,t){"use strict";n.__esModule=!0,n.IDCard=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(14959);n.IDCard=function(e,n){var t=(0,c.useBackend)(n).data,l=t.registered_name,d=t.sex,s=t.age,u=t.assignment,m=t.fingerprint_hash,p=t.blood_type,C=t.dna_hash,h=t.photo_front,N=[{name:"Sex",val:d},{name:"Age",val:s},{name:"Blood Type",val:p},{name:"Fingerprint",val:m},{name:"DNA Hash",val:C}];return(0,o.createComponentVNode)(2,a.Window,{width:470,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{children:[(0,o.createComponentVNode)(2,r.Flex.Item,{basis:"25%",textAlign:"left",children:(0,o.createComponentVNode)(2,r.Box,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:h&&(0,o.createVNode)(1,"img",null,null,1,{src:h.substr(1,h.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,o.createComponentVNode)(2,r.Icon,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{basis:0,grow:1,children:(0,o.createComponentVNode)(2,r.LabeledList,{children:N.map((function(e){return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:e.name,children:e.val},e.name)}))})})]}),(0,o.createComponentVNode)(2,r.Flex,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:l})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.RankIcon,{rank:u})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:u})})]})]})})})}},76952:function(e,n,t){"use strict";n.__esModule=!0,n.IdentificationComputerRegions=n.IdentificationComputerAccessModification=n.IdentificationComputerPrinting=n.IdentificationComputerContent=n.IdentificationComputer=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952),l=t(2497),d=(t(76270),t(22902));n.IdentificationComputer=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:700,children:(0,o.createComponentVNode)(2,i.Window.Content,{resizable:!0,children:(0,o.createComponentVNode)(2,s)})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.ntos,s=i.mode,p=i.has_modify,C=i.printing,h=(0,o.createComponentVNode)(2,m,{ntos:l});return l&&!i.have_id_slot?h=(0,o.createComponentVNode)(2,d.CrewManifestContent):C?h=(0,o.createComponentVNode)(2,u):1===s&&(h=(0,o.createComponentVNode)(2,d.CrewManifestContent)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(!l||!!i.have_id_slot)&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:0===s,onClick:function(){return r("mode",{mode_target:0})},children:"Access Modification"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:1===s,onClick:function(){return r("mode",{mode_target:1})},children:"Crew Manifest"}),!l||!!i.have_printer&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{float:"right",icon:"print",onClick:function(){return r("print")},disabled:!s&&!p,color:"",children:"Print"})]}),h],0)};n.IdentificationComputerContent=s;var u=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",children:"Please wait..."})};n.IdentificationComputerPrinting=u;var m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.ntos,s=i.station_name,u=i.target_name,m=i.target_owner,C=i.scan_name,h=i.authenticated,N=i.has_modify,V=i.account_number,b=i.centcom_access,f=i.all_centcom_access,g=(i.regions,i.id_rank),k=i.departments;return(0,o.createComponentVNode)(2,a.Section,{title:"Access Modification",children:[!h&&(0,o.createComponentVNode)(2,a.Box,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:u,onClick:function(){return r("modify")}})}),!d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authorized Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:C,onClick:function(){return r("scan")}})})]}),!!h&&!!N&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Details",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Registered Name",children:(0,o.createComponentVNode)(2,a.Input,{value:m,fluid:!0,onInput:function(e,n){return r("reg",{reg:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:(0,o.createComponentVNode)(2,a.Input,{value:V,fluid:!0,onInput:function(e,n){return r("account",{account:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dismissals",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+m,confirmContent:"You are dismissing "+m+", confirm?",onClick:function(){return r("terminate")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Assignment",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:[k.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:e.department_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.job===g,onClick:function(){return r("assign",{assign_target:e.job})},children:(0,l.decodeHtmlEntities)(e.display_name)},e.job)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:-1,children:"\xa0"}),(0,o.createTextVNode)(" ")],0,e.department_name)})),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"Central Command",level:2,children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return r("access",{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})||(0,o.createComponentVNode)(2,a.Section,{title:s,level:2,children:(0,o.createComponentVNode)(2,p,{actName:"access"})})],0)]})};n.IdentificationComputerAccessModification=m;var p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=e.actName,u=d.regions;return(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",spacing:1,children:(0,r.sortBy)((function(e){return e.name}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{mb:1,basis:"content",grow:1,children:(0,o.createComponentVNode)(2,a.Section,{title:e.name,height:"100%",children:(0,r.sortBy)((function(e){return e.desc}))(e.accesses).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return i(s,{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})},e.name)}))})};n.IdentificationComputerRegions=p},44570:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.InputModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952);(0,t(88654).createLogger)("inputmodal");n.InputModal=function(e,n){var t,r,s,u=(0,c.useBackend)(n),m=u.act,p=u.data,C=p.title,h=p.message,N=p.initial,V=p.input_type,b=p.timeout,f=(0,c.useLocalState)(n,"curValue",N),g=f[0],k=f[1],v=function(e){if(e.keyCode===i.KEY_ESCAPE)return e.preventDefault(),void m("cancel")};switch(V){case"text":case"num":r=325,t=Math.max(150,h.length),s=(0,o.createComponentVNode)(2,a.Input,{value:N,width:"100%",autoFocus:!0,autoSelect:!0,onKeyDown:v,onChange:function(e,n){k(n)},onEnter:function(e,n){m("choose",{choice:n})}});break;case"message":r=450,t=350,s=(0,o.createComponentVNode)(2,a.TextArea,{value:N,width:"100%",height:"100%",autoFocus:!0,dontUseTabForIndent:!0,onKeyDown:v,onChange:function(e,n){k(n)}})}return(0,o.createComponentVNode)(2,l.Window,{title:C,theme:"abstract",width:r,height:t,children:[b!==undefined&&(0,o.createComponentVNode)(2,d,{value:b}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,className:"InputModal__Section",title:h,tabIndex:0,children:s})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",onClick:function(){return m("choose",{choice:g})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return m("cancel")}})})]})})]})})]})};var d=function(e){var n=e.value;return(0,o.createVNode)(1,"div","InputModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"InputModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=d},53541:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanel=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanel=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.internalsValid;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act)},children:e.item||"Nothing"})},e.name)}))})}),s&&(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:s&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("internals")},children:"Set Internals"})||null})||null]})})}},46638:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanelHuman=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanelHuman=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.specialSlots,u=(l.internals,l.internalsValid),m=l.sensors,p=l.handcuffed,C=l.handcuffedParams,h=l.legcuffed,N=l.legcuffedParams,V=l.accessory;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)})),(0,o.createComponentVNode)(2,c.LabeledList.Divider),s&&s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)}))]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"running",onClick:function(){return i("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"hand-paper",onClick:function(){return i("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),u&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,m&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"book-medical",onClick:function(){return i("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,p&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",C)},children:"Handcuffed"})||null,h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",N)},children:"Legcuffed"})||null,V&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},45e3:function(e,n,t){"use strict";n.__esModule=!0,n.IsolationCentrifuge=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(74814),a=t(85952);n.IsolationCentrifuge=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.busy,s=l.antibodies,u=l.pathogens,m=l.is_antibody_sample,p=l.sample_inserted,C=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No vial detected."});return p&&(C=s||u?(0,o.createFragment)([s?(0,o.createComponentVNode)(2,c.Section,{title:"Antibodies",children:s}):null,u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Pathogens",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:e.spread_type},e.name)}))})}):null],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No antibodies or viral strains detected."})),(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d?(0,o.createComponentVNode)(2,c.Section,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:d}),2)}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:m?"Antibody Sample":"Blood Sample",children:[(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"print",content:"Print",disabled:!s&&!u.length,onClick:function(){return i("print")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!p,onClick:function(){return i("sample")}})})]}),C]}),s&&!m||u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[s&&!m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Antibodies",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return i("antibody")}})}):null,u.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Strain",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:e.name,onClick:function(){return i("isolate",{isolate:e.reference})}},e.name)}))}):null]})}):null],0)})})}},83994:function(e,n,t){"use strict";n.__esModule=!0,n.JanitorCart=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.JanitorCart=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.mybag,u=d.mybucket,m=d.mymop,p=d.myspray,C=d.myreplacer,h=d.signs;d.icons;return(0,o.createComponentVNode)(2,a.Window,{width:210,height:180,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:s||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:s?"grey":"transparent",style:{border:s?null:"2px solid grey"},onClick:function(){return i("bag")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybag"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:u||"Bucket Slot",tooltipPosition:"bottom",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return i("bucket")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybucket"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?null:"2px solid grey"},onClick:function(){return i("mop")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mymop"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:p||"Spray Slot",tooltipPosition:"top-end",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return i("spray")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myspray"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:C||"Light Replacer Slot",tooltipPosition:"top",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return i("replacer")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myreplacer"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:h||"Signs Slot",tooltipPosition:"top-start",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return i("sign")},children:(0,o.createComponentVNode)(2,l,{iconkey:"signs"})})]})})};var i={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},l=function(e,n){var t=(0,r.useBackend)(n).data,a=e.iconkey,l=t.icons;return a in l?(0,o.createVNode)(1,"img",null,null,1,{src:l[a].substr(1,l[a].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,o.createComponentVNode)(2,c.Icon,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:i[a]})}},68741:function(e,n,t){"use strict";n.__esModule=!0,n.Jukebox=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Jukebox=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.playing,u=d.loop_mode,m=d.volume,p=d.current_track_ref,C=d.current_track,h=d.current_genre,N=d.percent,V=d.tracks,b=V.length&&V.reduce((function(e,n){var t=n.genre||"Uncategorized";return e[t]||(e[t]=[]),e[t].push(n),e}),{}),f=s&&(h||"Uncategorized");return(0,o.createComponentVNode)(2,i.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Currently Playing",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:s&&C&&(0,o.createComponentVNode)(2,a.Box,{children:[C.title," by ",C.artist||"Unkown"]})||(0,o.createComponentVNode)(2,a.Box,{children:"Stopped"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",disabled:s,onClick:function(){return l("play")},children:"Play"}),(0,o.createComponentVNode)(2,a.Button,{icon:"stop",disabled:!s,onClick:function(){return l("stop")},children:"Stop"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Loop Mode",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",onClick:function(){return l("loopmode",{loopmode:1})},selected:1===u,children:"Next"}),(0,o.createComponentVNode)(2,a.Button,{icon:"random",onClick:function(){return l("loopmode",{loopmode:2})},selected:2===u,children:"Shuffle"}),(0,o.createComponentVNode)(2,a.Button,{icon:"redo",onClick:function(){return l("loopmode",{loopmode:3})},selected:3===u,children:"Repeat"}),(0,o.createComponentVNode)(2,a.Button,{icon:"step-forward",onClick:function(){return l("loopmode",{loopmode:4})},selected:4===u,children:"Once"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:1,color:"good"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:0,step:1,value:100*m,maxValue:100,ranges:{good:[75,Infinity],average:[25,75],bad:[0,25]},format:function(e){return(0,r.round)(e,1)+"%"},onChange:function(e,n){return l("volume",{val:(0,r.round)(n/100,2)})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Available Tracks",children:V.length&&Object.keys(b).sort().map((function(e){return(0,o.createComponentVNode)(2,a.Collapsible,{title:e,color:f===e?"green":"default",child_mt:0,children:(0,o.createVNode)(1,"div",null,b[e].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"play",selected:p===e.ref,onClick:function(){return l("change_track",{change_track:e.ref})},children:e.title},e.ref)})),0,{style:{"margin-left":"1em"}})},e)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No songs loaded."})})]})})}},13204:function(e,n,t){"use strict";n.__esModule=!0,n.LawManager=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LawManager=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data.isSlaved);return(0,o.createComponentVNode)(2,a.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[l&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Law-synced to ",l]})||null,(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useSharedState)(n,"lawsTabIndex",0),a=t[0],i=t[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===a,onClick:function(){return i(0)},children:"Law Management"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===a,onClick:function(){return i(1)},children:"Law Sets"})]}),0===a&&(0,o.createComponentVNode)(2,l)||null,1===a&&(0,o.createComponentVNode)(2,s)||null],0)},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.ion_law_nr,s=i.ion_law,u=i.zeroth_law,m=i.inherent_law,p=i.supplied_law,C=i.supplied_law_position,h=i.zeroth_laws,N=i.has_zeroth_laws,V=i.ion_laws,b=i.has_ion_laws,f=i.inherent_laws,g=i.has_inherent_laws,k=i.supplied_laws,v=i.has_supplied_laws,B=i.isAI,L=i.isMalf,_=i.isAdmin,x=i.channel,w=i.channels,S=h.map((function(e){return e.zero=!0,e})).concat(f);return(0,o.createComponentVNode)(2,c.Section,{children:[b&&(0,o.createComponentVNode)(2,d,{laws:V,title:l+" Laws:",mt:-2})||null,(N||g)&&(0,o.createComponentVNode)(2,d,{laws:S,title:"Inherent Laws",mt:-2})||null,v&&(0,o.createComponentVNode)(2,d,{laws:k,title:"Supplied Laws",mt:-2})||null,(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Controls",mt:-2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Statement Channel",children:w.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.channel,selected:x===e.channel,onClick:function(){return a("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_laws")},children:"State Laws"})}),B&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation",onClick:function(){return a("notify_laws")},children:"Notify"})})||null]})}),L&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Add Laws",mt:-2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Add"})]}),_&&!N&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Zero"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:u,fluid:!0,onChange:function(e,n){return a("change_zeroth_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_zeroth_law")},children:"Add"})})]})||null,(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Ion"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onChange:function(e,n){return a("change_ion_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_ion_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:m,fluid:!0,onChange:function(e,n){return a("change_inherent_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_inherent_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:p,fluid:!0,onChange:function(e,n){return a("change_supplied_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("change_supplied_law_position")},children:C})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_supplied_law")},children:"Add"})})]})]})})||null]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,d=i.isAdmin,s=e.laws,u=e.title,m=e.noButtons,p=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["laws","title","noButtons"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Section,Object.assign({level:2,title:u},p,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"State"})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Delete"})],4)||null]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[e.index,"."]}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:e.zero?"bad":null,children:e.law}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"volume-up",selected:e.state,onClick:function(){return a("state_law",{ref:e.ref,state_law:!e.state})},children:e.state?"Yes":"No"})})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,icon:"pen",onClick:function(){return a("edit_law",{edit_law:e.ref})},children:"Edit"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,color:"bad",icon:"trash",onClick:function(){return a("delete_law",{delete_law:e.ref})},children:"Delete"})})],4)||null]},e.index)}))]})})))},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,s=i.law_sets;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"sync",onClick:function(){return a("transfer_laws",{transfer_laws:e.ref})},children:"Load Laws"}),(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_law_set",{state_law_set:e.ref})},children:"State Laws"})],4),children:[e.laws.has_ion_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.ion_laws,title:e.laws.ion_law_nr+" Laws:"})||null,(e.laws.has_zeroth_laws||e.laws.has_inherent_laws)&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.zeroth_laws.concat(e.laws.inherent_laws),title:e.header})||null,e.laws.has_supplied_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.supplied_laws,title:"Supplied Laws"})||null]},e.name)}))||null],0)}},58802:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.ListInput=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952),d=0;n.ListInput=function(e,n){var t=(0,c.useBackend)(n),r=t.act,u=t.data,m=u.title,p=u.message,C=u.buttons,h=u.timeout,N=u.initial,V=(0,c.useLocalState)(n,"search_bar",!1),b=V[0],f=V[1],g=(0,c.useLocalState)(n,"displayed_array",C),k=g[0],v=g[1],B=(0,c.useLocalState)(n,"search_array",[]),L=B[0],_=B[1],x=(0,c.useLocalState)(n,"search_index",0),w=x[0],S=x[1],I=(0,c.useLocalState)(n,"last_char_code",null),y=I[0],T=I[1],A=(0,c.useLocalState)(n,"selected_button",N||C[0]),P=A[0],M=A[1];return(0,o.createComponentVNode)(2,l.Window,{title:m,theme:"abstract",width:325,height:325,children:[h!==undefined&&(0,o.createComponentVNode)(2,s,{value:h}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,autoFocus:!0,className:"ListInput__Section",title:p,tabIndex:0,onKeyDown:function(e){if(e.preventDefault(),!(d>performance.now())){if(d=performance.now()+125,e.keyCode===i.KEY_HOME||e.keyCode===i.KEY_END){var n=e.keyCode===i.KEY_HOME?0:C.length-1;return M(C[n]),T(null),void document.getElementById(C[n]).focus()}if(e.keyCode===i.KEY_UP||e.keyCode===i.KEY_DOWN){var t=1;e.keyCode===i.KEY_UP&&(t=-1);for(var o=0;o=C.length&&(o=0),M(C[o]),T(null),void document.getElementById(C[o]).focus()}if(e.keyCode!==i.KEY_SPACE&&e.keyCode!==i.KEY_ENTER)if(e.keyCode!==i.KEY_ESCAPE){var c=String.fromCharCode(e.keyCode).toLowerCase();if(c){var a;if(c===y&&L.length>0){var l=w+1;l0&&(_(s),S(0),a=s[0])}a&&(T(c),M(a),document.getElementById(a).focus())}}else r("cancel");else r("choose",{choice:P})}},buttons:(0,o.createComponentVNode)(2,a.Button,{compact:!0,icon:"search",color:"transparent",selected:b,tooltip:"Search Bar",tooltipPosition:"left",onClick:function(){f(!b),v(C)}}),children:k.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"transparent",id:e,selected:P===e,onClick:function(){P===e?r("choose",{choice:e}):M(e),T(null)},children:e},e)}))})}),b&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,onInput:function(e,n){return v(C.filter((function(e){return-1!==e.toLowerCase().search(n.toLowerCase())})))}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",disabled:null===P,onClick:function(){return r("choose",{choice:P})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return r("cancel")}})})]})})]})})]})};var s=function(e){var n=e.value;return(0,o.createVNode)(1,"div","ListInput__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"ListInput__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=s},36104:function(e,n,t){"use strict";n.__esModule=!0,n.LookingGlass=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LookingGlass=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.currentProgram,u=l.immersion,m=l.gravity,p=Math.min(180+23*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:p,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",selected:e===s,onClick:function(){return i("program",{program:e})},children:e},e)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"user-astronaut",selected:m,onClick:function(){return i("gravity")},children:m?"Enabled":"Disabled"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Full Immersion",children:(0,o.createComponentVNode)(2,c.Button,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return i("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},74714:function(e,n,t){"use strict";n.__esModule=!0,n.MechaControlConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.MechaControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.beacons,u=d.stored_data;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u.length&&(0,o.createComponentVNode)(2,c.Modal,{children:(0,o.createComponentVNode)(2,c.Section,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["(",e.time,") (",e.year,")"]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,i.decodeHtmlEntities)(e.message)})]},e.time)}))})})||null,s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.ref})},children:"Message"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.ref})},children:"View Log"}),(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,i.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No mecha beacons found."})]})})}},17888:function(e,n,t){"use strict";n.__esModule=!0,n.Medbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Medbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.beaker,m=l.beaker_total,p=l.beaker_max,C=l.locked,h=l.heal_threshold,N=l.heal_threshold_max,V=l.injection_amount_min,b=l.injection_amount,f=l.injection_amount_max,g=l.use_beaker,k=l.declare_treatment,v=l.vocal;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Medical Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("eject")},children:"Eject"}),children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:C?"good":"bad",children:C?"Locked":"Unlocked"})]})}),!C&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavioral Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Healing Threshold",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:0,maxValue:N,value:h,onDrag:function(e,n){return i("adj_threshold",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Injection Amount",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:V,maxValue:f,value:b,onDrag:function(e,n){return i("adj_inject",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reagent Source",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:g?"toggle-on":"toggle-off",selected:g,onClick:function(){return i("use_beaker")},children:g?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Treatment Report",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:k?"toggle-on":"toggle-off",selected:k,onClick:function(){return i("declaretreatment")},children:k?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return i("togglevoice")},children:v?"On":"Off"})})]})})||null]})})}},37610:function(e,n,t){"use strict";n.__esModule=!0,n.MedicalRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.MedicalRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N?t=(0,o.createComponentVNode)(2,C):5===N?t=(0,o.createComponentVNode)(2,V):6===N&&(t=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,c.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.medical,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n).data.general;return t&&t.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"right",textAlign:"right",children:!!t.has_photos&&t.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)}))})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.virus;return i.sort((function(e,n){return e.name>n.name?1:-1})),i.map((function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,n)}))},b=function(e,n){var t=(0,r.useBackend)(n).data.medbots;return 0===t.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"There are no Medbots."}):t.map((function(e,n){return(0,o.createComponentVNode)(2,c.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,c.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Offline"})})]})})},n)}))},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,onClick:function(){return a("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:5===i,onClick:function(){return a("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:6===i,onClick:function(){return a("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===i,onClick:function(){return a("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,n){var t=(0,r.useBackend)(n).act,a=e.args;return(0,o.createComponentVNode)(2,c.Section,{level:2,m:"-1rem",title:a.name||"Virus",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",color:"red",onClick:function(){return t("modal_close")}}),children:(0,o.createComponentVNode)(2,c.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Spread",children:[a.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Possible cure",children:a.antigen}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rate of Progression",children:a.rate}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Antibiotic Resistance",children:[a.resistance,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species Affected",children:a.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:a.symptoms.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]},e.stage)}))})})]})})})}))},287:function(e,n,t){"use strict";n.__esModule=!0,n.MessageMonitor=void 0;var o=t(39812),r=(t(41860),t(2497)),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d=t(67861);n.MessageMonitor=function(e,n){var t,r=(0,c.useBackend)(n),d=(r.act,r.data),p=d.auth,C=d.linkedServer,h=(d.message,d.hacking),N=d.emag;return t=h||N?(0,o.createComponentVNode)(2,s):p?C?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"}):(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,i.Window,{width:670,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice),t]})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.isMalfAI);return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"ERROR",children:r?(0,o.createComponentVNode)(2,a.Box,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,o.createComponentVNode)(2,a.Box,{children:["01000010011100100111010101110100011001010010110",(0,o.createVNode)(1,"br"),"10110011001101111011100100110001101101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001100110011011110111001000100000011100110110010",(0,o.createVNode)(1,"br"),"10111001001110110011001010111001000100000011010110110010",(0,o.createVNode)(1,"br"),"10111100100101110001000000100100101110100001000000111011",(0,o.createVNode)(1,"br"),"10110100101101100011011000010000001110100011000010110101",(0,o.createVNode)(1,"br"),"10110010100100000001100100011000000100000011100110110010",(0,o.createVNode)(1,"br"),"10110001101101111011011100110010001110011001000000110011",(0,o.createVNode)(1,"br"),"00110111101110010001000000110010101110110011001010111001",(0,o.createVNode)(1,"br"),"00111100100100000011000110110100001100001011100100110000",(0,o.createVNode)(1,"br"),"10110001101110100011001010111001000100000011101000110100",(0,o.createVNode)(1,"br"),"00110000101110100001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00111000001100001011100110111001101110111011011110111001",(0,o.createVNode)(1,"br"),"00110010000100000011010000110000101110011001011100010000",(0,o.createVNode)(1,"br"),"00100100101101110001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00110110101100101011000010110111001110100011010010110110",(0,o.createVNode)(1,"br"),"10110010100101100001000000111010001101000011010010111001",(0,o.createVNode)(1,"br"),"10010000001100011011011110110111001110011011011110110110",(0,o.createVNode)(1,"br"),"00110010100100000011000110110000101101110001000000111001",(0,o.createVNode)(1,"br"),"00110010101110110011001010110000101101100001000000111100",(0,o.createVNode)(1,"br"),"10110111101110101011100100010000001110100011100100111010",(0,o.createVNode)(1,"br"),"10110010100100000011010010110111001110100011001010110111",(0,o.createVNode)(1,"br"),"00111010001101001011011110110111001110011001000000110100",(0,o.createVNode)(1,"br"),"10110011000100000011110010110111101110101001000000110110",(0,o.createVNode)(1,"br"),"00110010101110100001000000111001101101111011011010110010",(0,o.createVNode)(1,"br"),"10110111101101110011001010010000001100001011000110110001",(0,o.createVNode)(1,"br"),"10110010101110011011100110010000001101001011101000010111",(0,o.createVNode)(1,"br"),"00010000001001101011000010110101101100101001000000111001",(0,o.createVNode)(1,"br"),"10111010101110010011001010010000001101110011011110010000",(0,o.createVNode)(1,"br"),"00110100001110101011011010110000101101110011100110010000",(0,o.createVNode)(1,"br"),"00110010101101110011101000110010101110010001000000111010",(0,o.createVNode)(1,"br"),"00110100001100101001000000111001001101111011011110110110",(0,o.createVNode)(1,"br"),"10010000001100100011101010111001001101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001110100011010000110000101110100001000000111010",(0,o.createVNode)(1,"br"),"001101001011011010110010100101110"]})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isMalfAI;return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:["Decryption Key:",(0,o.createComponentVNode)(2,a.Input,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(e,n){return r("auth",{key:n})}})]}),!!i&&(0,o.createComponentVNode)(2,a.Button,{icon:"terminal",content:"Hack",onClick:function(){return r("hack")}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},m=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.linkedServer,d=(0,c.useLocalState)(n,"tabIndex",0),s=d[0],u=d[1];return 0===s?t=(0,o.createComponentVNode)(2,p):1===s?t=(0,o.createComponentVNode)(2,C,{logs:l.pda_msgs,pda:!0}):2===s?t=(0,o.createComponentVNode)(2,C,{logs:l.rc_msgs,rc:!0}):3===s?t=(0,o.createComponentVNode)(2,h):4===s&&(t=(0,o.createComponentVNode)(2,N)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bars"})," Main Menu"]},"Main"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"font"})," Message Logs"]},"MessageLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return u(3)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:4===s,onClick:function(){return u(4)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{color:"red",onClick:function(){return i("deauth")},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)},p=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"link",content:"Server Link",onClick:function(){return r("find")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Server "+(i.active?"Enabled":"Disabled"),selected:i.active,onClick:function(){return r("active")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Status",children:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Good"})})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return r("pass")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},C=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.logs),d=e.pda,s=e.rc;return(0,o.createComponentVNode)(2,a.Section,{title:d?"PDA Logs":s?"Request Logs":"Logs",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i(d?"del_pda":"del_rc")}}),children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,a.Section,{title:e.sender+" -> "+e.recipient,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.ref,type:s?"rc":"pda"})}}),children:s?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",children:e.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Verification",color:"Unauthenticated"===e.id_auth?"bad":"good",children:(0,r.decodeHtmlEntities)(e.id_auth)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamp",children:e.stamp})]}):e.message})},e.ref)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.possibleRecipients,d=i.customsender,s=i.customrecepient,u=i.customjob,m=i.custommessage,p=Object.keys(l);return(0,o.createComponentVNode)(2,a.Section,{title:"Admin Messaging",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d,onChange:function(e,n){return r("set_sender",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender's Job",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:u,onChange:function(e,n){return r("set_sender_job",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recipient",children:(0,o.createComponentVNode)(2,a.Dropdown,{value:s,options:p,width:"100%",mb:-.7,onSelected:function(e){return r("set_recipient",{val:l[e]})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,mb:.5,value:m,onChange:function(e,n){return r("set_message",{val:n})}})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return r("send_message")}})]})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Spam Filtering",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:i.spamFilter.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.index,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return r("deltoken",{deltoken:e.index})}}),children:e.token},e.index)}))}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add New Entry",onClick:function(){return r("addtoken")}})]})}},75412:function(e,n,t){"use strict";n.__esModule=!0,n.Microwave=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Microwave=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.config,d=t.data,s=d.broken,u=d.operating,m=d.dirty,p=d.items;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Microwaving in progress!",(0,o.createVNode)(1,"br"),"Please wait...!"]})})||m&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["This microwave is dirty!",(0,o.createVNode)(1,"br"),"Please clean it before use!"]})})||p.length&&(0,o.createComponentVNode)(2,c.Section,{level:1,title:"Ingredients",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",onClick:function(){return i("cook")},children:"Microwave"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("dispose")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.amt," ",e.extra]},e.name)}))})})||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[l.title," is empty."]})})})})}},35016:function(e,n,t){"use strict";n.__esModule=!0,n.MiningOreProcessingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=(t(64499),t(21526));n.MiningOreProcessingConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.unclaimedPoints,u=(d.ores,d.showAllOres,d.power),p=d.speed;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",mr:1,onClick:function(){return r("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",selected:p,onClick:function(){return r("speed_toggle")},children:p?"High-Speed Active":"High-Speed Inactive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,onClick:function(){return r("power")},children:u?"Smelting":"Not Smelting"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:s<1,icon:"download",onClick:function(){return r("claim")},children:"Claim"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})})})}),(0,o.createComponentVNode)(2,m)]})})};var d=["Not Processing","Smelting","Compressing","Alloying"],s=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],u=function(e,n){return-1===s.indexOf(e.ore)||-1===s.indexOf(n.ore)?e.ore-n.ore:s.indexOf(n.ore)-s.indexOf(e.ore)},m=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.ores,m=l.showAllOres;l.power;return(0,o.createComponentVNode)(2,a.Section,{title:"Ore Processing Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("showAllOres")},children:m?"All Ores":"Ores in Machine"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.length&&s.sort(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createComponentVNode)(2,a.Dropdown,{width:"120px",color:(0===e.processing?"red":1===e.processing&&"green")||2===e.processing&&"blue"||3===e.processing&&"yellow",options:d,selected:d[e.processing],onSelected:function(n){return i("toggleSmelting",{ore:e.ore,set:d.indexOf(n)})}}),children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amount})})},e.ore)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},87314:function(e,n,t){"use strict";n.__esModule=!0,n.MiningStackingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(64499);n.MiningStackingConsole=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.stacktypes,u=d.stackingAmt;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Stacker Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stacking",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(e,n){return l("change_stack",{amt:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),s.length&&s.sort().map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.type),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return l("release_stack",{stack:e.type})},children:"Eject"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amt})},e.type)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},62012:function(e,n,t){"use strict";n.__esModule=!0,n.MiningVendor=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(21526);var d={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.MiningVendor=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,s)]})})};var s=function(e,n){var t=(0,c.useBackend)(n),l=(t.act,t.data),s=l.has_id,u=l.id,p=l.items,C=(0,c.useLocalState)(n,"search",""),h=C[0],N=(C[1],(0,c.useLocalState)(n,"sort","Alphabetical")),V=N[0],b=(N[1],(0,c.useLocalState)(n,"descending",!1)),f=b[0],g=(b[1],(0,r.createSearch)(h,(function(e){return e[0]}))),k=!1,v=Object.entries(p).map((function(e,n){var t=Object.entries(e[1]).filter(g).map((function(e){return e[1].affordable=s&&u.points>=e[1].price,e[1]})).sort(d[V]);if(0!==t.length)return f&&(t=t.reverse()),k=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:k?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),l=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(e){return l(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!i.has_id||i.id.points=450?"Overcharged":e>=250?"Good Charge":"Low Charge":e>=250?"NIF Power Requirement met.":e>=150?"Fluctuations in available power.":"Power failure imminent."},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.config,t.data),s=i.nif_percent,u=i.nif_stat,m=(i.last_notification,i.nutrition),p=i.isSynthetic,C=i.modules,h=e.setViewing;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Condition",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,0]},children:[l(u,s)," (",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:s}),"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:700,ranges:{good:[250,Infinity],average:[150,250],bad:[0,150]},children:d(m,p)})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return a("uninstall",{module:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return h(e)},tooltip:"View Information",tooltipPosition:"left"})],4),children:e.activates&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:e.active,content:e.stat_text,onClick:function(){return a("toggle_module",{module:e.ref})}})||(0,o.createComponentVNode)(2,c.Box,{children:e.stat_text})},e.ref)}))})})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.theme;return(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",placeholder:"Default",selected:l,options:i,onSelected:function(e){return a("setTheme",{theme:e})}})})})}},79630:function(e,n,t){"use strict";n.__esModule=!0,n.NTNetRelay=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(67861);n.NTNetRelay=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.dos_crashed,s=(c.enabled,c.dos_overload,c.dos_capacity,(0,o.createComponentVNode)(2,l));return i&&(s=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.Window,{width:i?700:500,height:i?600:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dos_crashed,i.enabled),d=i.dos_overload,s=i.dos_capacity;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:"Relay "+(l?"On":"Off"),onClick:function(){return a("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network Buffer Status",children:[d," / ",s," GQ"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return a("purge")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"ERROR",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createVNode)(1,"h2",null,"NETWORK BUFFERS OVERLOADED",16),(0,o.createVNode)(1,"h3",null,"Overload Recovery Mode",16),(0,o.createVNode)(1,"i",null,"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue.",16),(0,o.createVNode)(1,"h3",null,"ADMINISTRATIVE OVERRIDE",16),(0,o.createVNode)(1,"b",null," CAUTION - Data loss may occur ",16)]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return a("restart")}})})]})}},60042:function(e,n,t){"use strict";n.__esModule=!0,n.Newscaster=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d="Main Menu",s="New Channel",u="View List",m="New Story",p="Print",C="New Wanted",h="View Wanted",N="View Selected Channel";n.Newscaster=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.screen,r.user;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice,{decode:!0}),(0,o.createComponentVNode)(2,V)]})})};var V=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.user,(0,c.useSharedState)(n,"screen",d)),i=r[0],l=r[1],s=b[i];return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,s,{setScreen:l})})},b={"Main Menu":function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.securityCaster,l=r.wanted_issue,d=e.setScreen;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",children:[l&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(h)},color:"bad",children:"Read WANTED Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(u)},children:"View Feed Channels"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(s)},children:"Create Feed Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(m)},children:"Create Feed Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"print",onClick:function(){return d(p)},children:"Print Newspaper"})]}),!!i&&(0,o.createComponentVNode)(2,a.Section,{title:"Feed Security Functions",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(C)},children:'Manage "Wanted" Issue'})})],0)},"New Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.c_locked,m=l.user,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Channel",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Author",color:"good",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accept Public Feeds",children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"lock-open",selected:!u,onClick:function(){return i("set_channel_lock")},children:u?"No":"Yes"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_new_channel")},children:"Submit Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"View List":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.channels,s=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Station Feed Channels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return s(d)},children:"Back"}),children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",color:e.admin?"good":e.censored?"bad":"",onClick:function(){i("show_channel",{show_channel:e.ref}),s(N)},children:(0,r.decodeHtmlEntities)(e.name)},e.name)}))})},"New Story":function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.channel_name,s=i.user,u=i.title,m=i.msg,p=i.photo_data,C=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Message...",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return C(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receiving Channel",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return r("set_channel_receiving")},children:l||"Unset"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Author",color:"good",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Title",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:u||"(no title yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Body",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:m||"(no message yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return r("set_attachment")},children:p?"Photo Attached":"No Photo"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return r("submit_new_message")},children:"Submit Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return C(d)},children:"Cancel"})]})},Print:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.total_num,s=i.active_num,u=i.message_num,m=i.paper_remaining,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",l," Feed channels, ",s," of which are active, and a total of ",u," Feed stories."]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Liquid Paper remaining",children:[100*m," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return r("print_paper")},children:"Print Paper"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"New Wanted":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.msg,m=l.photo_data,p=l.user,C=l.wanted_issue,h=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Wanted Issue Handler",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return h(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[!!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(u),onInput:function(e,n){return i("set_wanted_desc",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return i("set_attachment")},children:m?"Photo Attached":"No Photo"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prosecutor",color:"good",children:p})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_wanted")},children:"Submit Wanted Issue"}),!!C&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){return i("cancel_wanted")},children:"Take Down Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return h(d)},children:"Cancel"})]})},"View Wanted":function(e,n){var t=(0,c.useBackend)(n),i=(t.act,t.data.wanted_issue),l=e.setScreen;return i?(0,o.createComponentVNode)(2,a.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:(0,o.createComponentVNode)(2,a.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Submitted by",color:"good",children:(0,r.decodeHtmlEntities)(i.author)}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal",children:(0,r.decodeHtmlEntities)(i.criminal)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,r.decodeHtmlEntities)(i.desc)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo",children:i.img&&(0,o.createVNode)(1,"img",null,null,1,{src:i.img})||"None"})]})})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Outstanding Wanted Issues",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},"View Selected Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.viewing_channel,s=l.securityCaster,m=l.company,p=e.setScreen;return d?(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(d.name),buttons:(0,o.createFragment)([!!s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return i("toggle_d_notice",{ref:d.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"})],0),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Created By",children:s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,r.decodeHtmlEntities)(d.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return i("censor_channel_author",{ref:d.ref})}})||(0,o.createComponentVNode)(2,a.Box,{children:(0,r.decodeHtmlEntities)(d.author)})})}),!!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",m," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!d.messages.length&&d.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[Story by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.timestamp,"]"]}),!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return i("censor_channel_story_body",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return i("censor_channel_story_author",{ref:e.ref})}})],4)]},e.ref)}))||!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No feed messages found in channel."})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Channel Not Found",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"}),children:"The channel you were looking for no longer exists."})}}},31669:function(e,n,t){"use strict";n.__esModule=!0,n.NoticeBoard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.NoticeBoard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.notices;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:l.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.isphoto&&(0,o.createComponentVNode)(2,c.Button,{icon:"image",content:"Look",onClick:function(){return i("look",{ref:e.ref})}})||e.ispaper&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sticky-note",content:"Read",onClick:function(){return i("read",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Write",onClick:function(){return i("write",{ref:e.ref})}})],4)||"Unknown Entity",(0,o.createComponentVNode)(2,c.Button,{icon:"minus-circle",content:"Remove",onClick:function(){return i("remove",{ref:e.ref})}})]},n)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No notices posted here."})})})})}},63231:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAccessDecrypter=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(76952),i=t(74814);n.NtosAccessDecrypter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.message,u=d.running,m=d.rate,p=d.factor,C=d.regions,h=function(e){for(var n="";n.lengthp?n+="0":n+="1";return n};return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:s})||u&&(0,o.createComponentVNode)(2,i.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate: ",m," PHash/s",(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"ban",onClick:function(){return l("PRG_reset")},children:"Abort"})]})||(0,o.createComponentVNode)(2,i.Section,{title:"Pick access code to decrypt",children:C.length&&(0,o.createComponentVNode)(2,a.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,o.createComponentVNode)(2,i.Box,{children:"Please insert ID card."})})})})}},79760:function(e,n,t){"use strict";n.__esModule=!0,n.NtosArcade=void 0;var o=t(39812),r=t(5908),c=t(71494),a=t(74814),i=t(85952);n.NtosArcade=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:450,height:350,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:2,children:[(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[d.PlayerHitpoints,"HP"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[d.PlayerMP,"MP"]})})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Section,{backgroundColor:1===d.PauseState?"#1b3622":"#471915",children:d.Status})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,Infinity],average:[5,30],bad:[-Infinity,5]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.Hitpoints}),"HP"]}),(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,r.resolveAsset)(d.BossID)})})]})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Attack")},content:"Attack!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Heal")},content:"Heal!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Recharge_Power")},content:"Recharge!"})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Start_Game")},content:"Begin Game"}),(0,o.createComponentVNode)(2,a.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,o.createComponentVNode)(2,a.Box,{color:d.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",d.TicketCount]})]})})})}},97908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAtmosControl=void 0;var o=t(39812),r=t(85952),c=t(46566);n.NtosAtmosControl=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.AtmosControlContent)})})}},63645:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCameraConsole=void 0;var o=t(39812),r=t(85952),c=t(3180);n.NtosCameraConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CameraConsoleContent)})})}},74093:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(130);n.NtosCommunicationsConsole=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.CommunicationsConsoleContent)})})}},55513:function(e,n,t){"use strict";n.__esModule=!0,n.NtosConfiguration=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosConfiguration=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.power_usage,u=l.battery_exists,m=l.battery,p=void 0===m?{}:m,C=l.disk_size,h=l.disk_used,N=l.hardware,V=void 0===N?[]:N;return(0,o.createComponentVNode)(2,a.NtosWindow,{theme:d,width:520,height:630,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Supply",buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",s,"W"]}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,o.createComponentVNode)(2,c.ProgressBar,{value:p.charge,minValue:0,maxValue:p.max,ranges:{good:[p.max/2,Infinity],average:[p.max/4,p.max/2],bad:[-Infinity,p.max/4]},children:[p.charge," / ",p.max]}):"Not Available"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"File System",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:C,color:"good",children:[h," GQ / ",C," GQ"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Hardware Components",children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createFragment)([!e.critical&&(0,o.createComponentVNode)(2,c.Button.Checkbox,{content:"Enabled",checked:e.enabled,mr:1,onClick:function(){return i("PC_toggle_component",{name:e.name})}}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",e.powerusage,"W"]})],0),children:e.desc},e.name)}))})]})})}},17539:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCrewMonitor=void 0;var o=t(39812),r=t(85952),c=t(96158);n.NtosCrewMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CrewMonitorContent)})})}},20025:function(e,n,t){"use strict";n.__esModule=!0,n.NtosDigitalWarrant=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(64499);n.NtosDigitalWarrant=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(c.warrantname,c.warrantcharges,c.warrantauth),d=(c.type,c.allwarrants,(0,o.createComponentVNode)(2,l));return i&&(d=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:500,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:d})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data.allwarrants;return(0,o.createComponentVNode)(2,c.Section,{title:"Warrants",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",fluid:!0,onClick:function(){return a("addwarrant")},children:"Create New Warrant"}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Arrest Warrants",children:(0,o.createComponentVNode)(2,d,{type:"arrest"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Search Warrants",children:(0,o.createComponentVNode)(2,d,{type:"search"})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=e.type,s=l.allwarrants,u=(0,i.filter)((function(e){return e.arrestsearch===d}))(s);return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Name":"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Charges":"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Authorized By"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"})]}),u.length&&u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.warrantname}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.charges}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.auth}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrant",{id:e.id})}})})]},e.id)}))||(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{colspan:"3",color:"bad",children:["No ",d," warrants found."]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.warrantname,d=i.warrantcharges,s=i.warrantauth,u=i.type,m="arrest"===u,p="arrest"===u?"Name":"Location",C="arrest"===u?"Charges":"Reason";return(0,o.createComponentVNode)(2,c.Section,{title:m?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("savewarrant")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("deletewarrant")},children:"Delete"}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:p,buttons:m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return a("editwarrantname")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}}),children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:C,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantcharges")}}),children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Authorized By",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"balance-scale",onClick:function(){return a("editwarrantauth")}}),children:s})]})})}},11325:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailAdministration=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(77006);n.NtosEmailAdministration=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.error,m=c.cur_title,p=c.current_account,C=(0,o.createComponentVNode)(2,l);return i?C=(0,o.createComponentVNode)(2,d):m?C=(0,o.createComponentVNode)(2,s):p&&(C=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:C})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",onClick:function(){return a("newaccount")},children:"Create New Account"}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",onClick:function(){return a("viewaccount",{viewaccount:e.uid})},children:e.login},e.uid)}))]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Message",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:i})},s=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i.NtosEmailClientViewMessage,{administrator:!0})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.error,i.msg_title,i.msg_body,i.msg_timestamp,i.msg_source,i.current_account),d=i.cur_suspended,s=i.messages;i.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing "+l+" in admin mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Status",children:(0,o.createComponentVNode)(2,c.Button,{color:d?"bad":"",icon:"ban",tooltip:(d?"Uns":"S")+"uspend Account?",onClick:function(){return a("ban")},children:d?"Suspended":"Normal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:"key",onClick:function(){return a("changepass")},children:"Change Password"})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Messages",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received at"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("viewmail",{viewmail:e.uid})},children:"View"})})]},e.uid)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No messages found in selected account."})})]})}},77006:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailClientViewMessage=n.NtosEmailClient=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.NtosEmailClient=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.PC_device_theme,s=c.error,u=c.downloading,m=c.current_account,p=(0,o.createComponentVNode)(2,h);return s?p=(0,o.createComponentVNode)(2,C,{error:s}):u?p=(0,o.createComponentVNode)(2,l):m&&(p=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:i,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:p})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),l=a.down_filename,d=a.down_progress,s=a.down_size,u=a.down_speed;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"File",children:[l," (",s," GQ)"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:d,maxValue:s,children:[d,"/",s," (",(0,i.round)(d/s*100,1),"%)"]})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.current_account,d=i.addressbook,C=i.new_message,h=i.cur_title,N=(0,o.createComponentVNode)(2,s);return d?N=(0,o.createComponentVNode)(2,m):C?N=(0,o.createComponentVNode)(2,p):h&&(N=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,c.Section,{title:"Logged in as: "+l,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return a("new_message")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return a("changepassword")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return a("logout")}})],4),children:N})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.folder),d=i.messagecount,s=i.messages;return(0,o.createComponentVNode)(2,c.Section,{level:2,noTopPadding:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Inbox"===l,onClick:function(){return a("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Spam"===l,onClick:function(){return a("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Deleted"===l,onClick:function(){return a("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),d&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received At"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("view",{view:e.uid})},tooltip:"View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("reply",{reply:e.uid})},tooltip:"Reply"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("delete",{"delete":e.uid})},tooltip:"Delete"})]})]},e.timestamp+e.title)}))]})})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["No emails found in ",l,"."]})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.administrator,d=i.cur_title,s=i.cur_source,u=i.cur_timestamp,m=i.cur_body,p=i.cur_hasattachment,C=i.cur_attachment_filename,h=i.cur_attachment_size,N=i.cur_uid;return(0,o.createComponentVNode)(2,c.Section,{title:d,buttons:l?(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("back")}}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return a("reply",{reply:N})}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return a("delete",{"delete":N})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return a("save",{save:N})}}),p&&(0,o.createComponentVNode)(2,c.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return a("downloadattachment")}})||null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return a("cancel",{cancel:N})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"From",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"At",children:u}),p&&!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",color:"average",children:[C," (",h,"GQ)"]})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:m}})})})]})})};n.NtosEmailClientViewMessage=u;var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Address Book",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("set_recipient",{set_recipient:null})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.login,fluid:!0,onClick:function(){return a("set_recipient",{set_recipient:e.login})}},e.login)}))})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.msg_title),d=i.msg_recipient,s=i.msg_body,u=i.msg_hasattachment,m=i.msg_attachment_filename,p=i.msg_attachment_size;return(0,o.createComponentVNode)(2,c.Section,{title:"New Message",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("send")},children:"Send Message"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("cancel")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_title",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_recipient",{val:n})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"address-book",onClick:function(){return a("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachments",buttons:u&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("remove_attachment")},children:"Remove Attachment"})||(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("addattachment")},children:"Add Attachment"}),children:u&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[m," (",p,"GQ)"]})||null}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{width:"99%",inline:!0,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:s}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{verticalAlign:"top",onClick:function(){return a("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},C=function(e,n){var t=(0,r.useBackend)(n).act,a=e.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Notification",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return",onClick:function(){return t("reset")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:a})})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stored_login,d=i.stored_password;return(0,o.createComponentVNode)(2,c.Section,{title:"Please Log In",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Email address",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_login",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Password",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_password",{val:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",onClick:function(){return a("login")},children:"Log In"})]})}},86441:function(e,n,t){"use strict";n.__esModule=!0,n.NtosFileManager=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);t(2497);n.NtosFileManager=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.PC_device_theme,u=d.usbconnected,m=d.filename,p=d.filedata,C=d.error,h=d.files,N=void 0===h?[]:h,V=d.usbfiles,b=void 0===V?[]:V;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:s,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(m||C)&&(0,o.createComponentVNode)(2,c.Section,{title:"Viewing File "+m,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Edit",onClick:function(){return l("PRG_edit")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Print",onClick:function(){return l("PRG_printfile")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Close",onClick:function(){return l("PRG_closefile")}})],4),children:[C||null,p&&(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p}})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i,{files:N,usbconnected:u,onUpload:function(e){return l("PRG_copytousb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onOpen:function(e){return l("PRG_openfile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})}),u&&(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",children:(0,o.createComponentVNode)(2,i,{usbmode:!0,files:b,usbconnected:u,onUpload:function(e){return l("PRG_copyfromusb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})})||null,(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("PRG_newtextfile")},children:"New Text File"})})],0)})})};var i=function(e){var n=e.files,t=void 0===n?[]:n,r=e.usbconnected,a=e.usbmode,i=e.onUpload,l=e.onDelete,d=e.onRename,s=e.onOpen;return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"File"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Size"})]}),t.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.undeletable?e.name:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{width:"80%",content:e.name,currentValue:e.name,tooltip:"Rename",onCommit:function(n,t){return d(e.name,t)}}),(0,o.createComponentVNode)(2,c.Button,{content:"Open",onClick:function(){return s(e.name)}})],4)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.type}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:!e.undeletable&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return l(e.name)}}),!!r&&(a?(0,o.createComponentVNode)(2,c.Button,{icon:"download",tooltip:"Download",onClick:function(){return i(e.name)}}):(0,o.createComponentVNode)(2,c.Button,{icon:"upload",tooltip:"Upload",onClick:function(){return i(e.name)}}))],0)})]},e.name)}))]})}},87369:function(e,n,t){"use strict";n.__esModule=!0,n.NtosIdentificationComputer=void 0;var o=t(39812),r=(t(64499),t(71494)),c=(t(74814),t(85952)),a=(t(2497),t(76270),t(76952));n.NtosIdentificationComputer=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.IdentificationComputerContent,{ntos:!0})})})}},59543:function(e,n,t){"use strict";n.__esModule=!0,n.NtosMain=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"};n.NtosMain=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.device_theme,u=d.programs,m=void 0===u?[]:u,p=d.has_light,C=d.light_on,h=d.comp_light_color,N=d.removable_media,V=void 0===N?[]:N,b=d.login,f=void 0===b?[]:b;return(0,o.createComponentVNode)(2,a.NtosWindow,{title:"syndicate"===s?"Syndix Main Menu":"NtOS Main Menu",theme:s,width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"144px",icon:"lightbulb",selected:C,onClick:function(){return l("PC_toggle_light")},children:["Flashlight: ",C?"ON":"OFF"]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,onClick:function(){return l("PC_light_color")},children:["Color:",(0,o.createComponentVNode)(2,c.ColorBox,{ml:1,color:h})]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"User Login",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",disabled:!f.IDName,onClick:function(){return l("PC_Eject_Disk",{name:"ID"})}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:["ID Name: ",f.IDName]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:["Assignment: ",f.IDJob]})]})}),!!V.length&&(0,o.createComponentVNode)(2,c.Section,{title:"Media Eject",children:(0,o.createComponentVNode)(2,c.Table,{children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:"eject",content:e,onClick:function(){return l("PC_Eject_Disk",{name:e})}})})},e)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:(0,o.createComponentVNode)(2,c.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:i[e.name]||"window-maximize-o",content:e.desc,onClick:function(){return l("PC_runprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:!!e.running&&(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return l("PC_killprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:e.autorun,onClick:function(){return l("PC_setautorun",{name:e.name})},children:"AR"})})]},e.name)}))})})]})})}},73883:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetChat=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetChat=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.can_admin,s=l.adminmode,u=l.authed,m=l.username,p=l.active_channel,C=l.is_operator,h=l.all_channels,N=void 0===h?[]:h,V=l.clients,b=void 0===V?[]:V,f=l.messages,g=void 0===f?[]:f,k=null!==p,v=u||s;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:900,height:675,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.Section,{height:"600px",children:(0,o.createComponentVNode)(2,c.Table,{height:"580px",children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:[(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(e,n){return i("PRG_newchannel",{new_channel_name:n})}}),N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.chan,selected:e.id===p,color:"transparent",onClick:function(){return i("PRG_joinchannel",{id:e.id})}},e.chan)}))]}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,mt:1,content:m+"...",currentValue:m,onCommit:function(e,n){return i("PRG_changename",{new_name:n})}}),!!d&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(s?"ON":"OFF"),color:s?"bad":"good",onClick:function(){return i("PRG_toggleadmin")}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:k&&(v?g.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.msg},e.msg)})):(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,o.createComponentVNode)(2,c.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(e,n){return i("PRG_speak",{message:n})}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"465px",overflowY:"scroll",children:b.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.name},e.name)}))}),k&&v&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(e,n){return i("PRG_savelog",{log_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return i("PRG_leavechannel")}})],4),!!C&&u&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return i("PRG_deletechannel")}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(e,n){return i("PRG_renamechannel",{new_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(e,n){return i("PRG_setpassword",{new_password:n})}})],4)]})]})})})})})}},83908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDosContent=n.NtosNetDos=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetDos=function(e,n){return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.relays,d=void 0===l?[]:l,s=i.focus,u=i.target,m=i.speed,p=i.overload,C=i.capacity,h=i.error;if(h)return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:h}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return a("PRG_reset")}})],4);var N=function(e){for(var n="",t=p/C;n.lengtht?n+="0":n+="1";return n};return u?(0,o.createComponentVNode)(2,c.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{children:["CURRENT SPEED: ",m," GQ/s"]}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)})]}):(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.id,selected:s===e.id,onClick:function(){return a("PRG_target_relay",{targid:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!s,mt:1,onClick:function(){return a("PRG_execute")}})]})};n.NtosNetDosContent=i},83305:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDownloader=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.NtosNetDownloader=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.PC_device_theme,u=d.disk_size,m=d.disk_used,p=d.downloadable_programs,C=void 0===p?[]:p,h=d.error,N=d.hacked_programs,V=void 0===N?[]:N,b=d.hackedavailable;return(0,o.createComponentVNode)(2,i.NtosWindow,{theme:s,width:480,height:735,resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:h}),(0,o.createComponentVNode)(2,a.Button,{content:"Reset",onClick:function(){return r("PRG_reseterror")}})]}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk usage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:u,children:m+" GQ / "+u+" GQ"})})})}),(0,o.createComponentVNode)(2,a.Section,{children:C.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"UNKNOWN Software Repository",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),V.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))]})]})})};var l=function(e,n){var t=e.program,i=(0,c.useBackend)(n),l=i.act,d=i.data,s=d.disk_size,u=d.disk_used,m=d.downloadcompletion,p=(d.downloading,d.downloadname),C=d.downloadsize,h=d.downloadspeed,N=d.downloads_queue,V=s-u;return(0,o.createComponentVNode)(2,a.Box,{mb:3,children:[(0,o.createComponentVNode)(2,a.Flex,{align:"baseline",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{bold:!0,grow:1,children:t.filedesc}),(0,o.createComponentVNode)(2,a.Flex.Item,{color:"label",nowrap:!0,children:[t.size," GQ"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:t.filename===p&&(0,o.createComponentVNode)(2,a.ProgressBar,{color:"green",minValue:0,maxValue:C,value:m,children:[(0,r.round)(m/C*100,1),"% (",h,"GQ/s)"]})||-1!==N.indexOf(t.filename)&&(0,o.createComponentVNode)(2,a.Button,{icon:"ban",color:"bad",onClick:function(){return l("PRG_removequeued",{filename:t.filename})},children:"Queued..."})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",content:"Download",disabled:t.size>V,onClick:function(){return l("PRG_downloadfile",{filename:t.filename})}})})]}),"Compatible"!==t.compatibility&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),t.size>V&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:t.fileinfo})]})}},6806:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetMonitor=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosNetMonitor=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.ntnetrelays,s=l.ntnetstatus,u=l.config_softwaredownload,m=l.config_peertopeer,p=l.config_communication,C=l.config_systemcontrol,h=l.idsalarm,N=l.idsstatus,V=l.ntnetmaxlogs,b=l.maxlogs,f=l.minlogs,g=l.banned_nids,k=l.ntnetlogs,v=void 0===k?[]:k;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,r.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,o.createComponentVNode)(2,r.Section,{title:"Wireless Connectivity",buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:s?"power-off":"times",content:s?"ENABLED":"DISABLED",selected:s,onClick:function(){return i("toggleWireless")}}),children:d?(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Active NTNet Relays",children:d})}):"No Relays Connected"}),(0,o.createComponentVNode)(2,r.Section,{title:"Firewall Configuration",children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Software Downloads",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return i("toggle_function",{id:"1"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return i("toggle_function",{id:"2"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Communication Systems",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){return i("toggle_function",{id:"3"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Remote System Control",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return i("toggle_function",{id:"4"})}})})]})}),(0,o.createComponentVNode)(2,r.Section,{title:"Security Systems",children:[!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,o.createComponentVNode)(2,r.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Banned NIDs",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:"ban",onClick:function(){return i("ban_nid")},children:"Ban NID"}),(0,o.createComponentVNode)(2,r.Button,{icon:"balance-scale",onClick:function(){return i("unban_nid")},children:"Unban NID"})],4),children:g.join(", ")||"None"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"IDS Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:N?"power-off":"times",content:N?"ENABLED":"DISABLED",selected:N,onClick:function(){return i("toggleIDS")}}),(0,o.createComponentVNode)(2,r.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return i("resetIDS")}})],4)}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Max Log Count",buttons:(0,o.createComponentVNode)(2,r.NumberInput,{value:V,minValue:f,maxValue:b,width:"39px",onChange:function(e,n){return i("updatemaxlogs",{new_number:n})}})})]}),(0,o.createComponentVNode)(2,r.Section,{title:"System Log",level:2,buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return i("purgelogs")}}),children:v.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"candystripe",children:e.entry},e.entry)}))})]})]})})}},4363:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetTransfer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetTransfer=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),m=c.error,p=c.downloading,C=c.uploading,h=c.upload_filelist,N=(0,o.createComponentVNode)(2,u);return m?N=(0,o.createComponentVNode)(2,i):p?N=(0,o.createComponentVNode)(2,l):C?N=(0,o.createComponentVNode)(2,d):h.length&&(N=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:N})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"An error has occured during operation.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Reset"}),children:["Additional Information: ",i]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.download_name,d=i.download_progress,s=i.download_size,u=i.download_netspeed;return(0,o.createComponentVNode)(2,c.Section,{title:"Download in progress",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloaded File",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:s,children:[d," / ",s," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Speed",children:[u," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Download"})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.upload_clients,d=i.upload_filename,s=i.upload_haspassword;return(0,o.createComponentVNode)(2,c.Section,{title:"Server enabled",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Clients Connected",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Provided file",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Server Password",children:s?"Enabled":"Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Commands",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Upload"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.upload_filelist;return(0,o.createComponentVNode)(2,c.Section,{title:"File transfer server ready.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Cancel"}),children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Section,{title:"Pick file to serve.",level:2,children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"upload",onClick:function(){return a("PRG_uploadfile",{uid:e.uid})},children:[e.filename," (",e.size,"GQ)"]},e.uid)}))})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.servers;return(0,o.createComponentVNode)(2,c.Section,{title:"Available Files",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"upload",onClick:function(){return a("PRG_uploadmenu")},children:"Send File"}),children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.uid,children:[!!e.haspassword&&(0,o.createComponentVNode)(2,c.Icon,{name:"lock",mr:1}),e.filename,"\xa0 (",e.size,"GQ)\xa0",(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_downloadfile",{uid:e.uid})},children:"Download"})]},e.uid)}))})||(0,o.createComponentVNode)(2,c.Box,{children:"No upload servers found."})})}},23225:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNewsBrowser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(5908);n.NtosNewsBrowser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=u.article,p=u.download,C=u.message,h=(0,o.createComponentVNode)(2,d);return m?h=(0,o.createComponentVNode)(2,l):p&&(h=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!C&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:[C," ",(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return i("PRG_clearmessage")}})]}),h]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.article;if(!l)return(0,o.createComponentVNode)(2,c.Section,{children:"Error: Article not found."});var d=l.title,s=l.cover,u=l.content;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing: "+d,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("PRG_savearticle")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("PRG_reset")},children:"Close"})],4),children:[!!s&&(0,o.createVNode)(1,"img",null,null,1,{src:(0,i.resolveAsset)(s)}),(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:u}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.showing_archived,d=i.all_articles;return(0,o.createComponentVNode)(2,c.Section,{title:"Articles List",buttons:(0,o.createComponentVNode)(2,c.Button.Checkbox,{onClick:function(){return a("PRG_toggle_archived")},checked:l,children:"Show Archived"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_openarticle",{uid:e.uid})}}),children:[e.size," GQ"]},e.uid)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.download,l=i.download_progress,d=i.download_maxprogress,s=i.download_rate;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",minValue:0,value:l,maxValue:d,children:[l," / ",d," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Download Speed",children:[s," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",fluid:!0,onClick:function(){return a("PRG_reset")},children:"Abort Download"})})]})})}},3839:function(e,n,t){"use strict";n.__esModule=!0,n.NtosOvermapNavigation=void 0;var o=t(39812),r=t(85952),c=t(12640);n.NtosOvermapNavigation=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.OvermapNavigationContent)})})}},54698:function(e,n,t){"use strict";n.__esModule=!0,n.NtosPowerMonitor=void 0;var o=t(39812),r=t(85952),c=t(89793);n.NtosPowerMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.PowerMonitorContent)})})}},17086:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRCON=void 0;var o=t(39812),r=t(85952),c=t(43996);n.NtosRCON=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.RCONContent)})})}},69480:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRevelation=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosRevelation=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(e,n){return i("PRG_obfuscate",{new_name:n})},mb:1}),(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Payload Status",buttons:(0,o.createComponentVNode)(2,r.Button,{content:l.armed?"ARMED":"DISARMED",color:l.armed?"bad":"average",onClick:function(){return i("PRG_arm")}})})}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l.armed})]})})})}},93990:function(e,n,t){"use strict";n.__esModule=!0,n.NtosShutoffMonitor=void 0;var o=t(39812),r=t(85952),c=t(89957);n.NtosShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.ShutoffMonitorContent)})})}},76124:function(e,n,t){"use strict";n.__esModule=!0,n.NtosStationAlertConsole=void 0;var o=t(39812),r=t(85952),c=t(32015);n.NtosStationAlertConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:315,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.StationAlertConsoleContent)})})}},22475:function(e,n,t){"use strict";n.__esModule=!0,n.NtosSupermatterMonitor=void 0;var o=t(39812),r=t(85952),c=t(6951);n.NtosSupermatterMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.SupermatterMonitorContent)})})}},66744:function(e,n,t){"use strict";n.__esModule=!0,n.NtosUAV=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosUAV=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current_uav,s=l.signal_strength,u=l.in_use,m=l.paired_uavs;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Selected UAV",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"UAV",children:d&&d.status||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal",children:d&&s||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d.power,onClick:function(){return i("power_uav")},children:d.power?"Online":"Offline"})||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Camera",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,disabled:!d.power,onClick:function(){return i("view_uav")},children:d.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Paired UAVs",children:m.length&&m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"quidditch",onClick:function(){return i("switch_uav",{switch_uav:e.uavref})},children:e.name})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return i("del_uav",{del_uav:e.uavref})}})})]},e.uavref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No UAVs Paired."})})]})})}},19458:function(e,n,t){"use strict";n.__esModule=!0,n.NtosWordProcessor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosWordProcessor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.error,u=l.browsing,m=l.files,p=(l.usbconnected,l.usbfiles,l.filename),C=l.filedata;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:d,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",s,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){return i("PRG_backtomenu")}})]})||u&&(0,o.createComponentVNode)(2,c.Section,{title:"File Browser",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){return i("PRG_closebrowser")}}),children:(0,o.createComponentVNode)(2,c.Section,{title:"Available documents (local)",level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Size (GQ)"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0})]}),m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"file-word",onClick:function(){return i("PRG_openfile",{PRG_openfile:e.name})},children:"Open"})})]},n)}))]})})})||(0,o.createComponentVNode)(2,c.Section,{title:"Document: "+p,children:[(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_newfile")},children:"New"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_loadmenu")},children:"Load"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_savefile")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_saveasfile")},children:"Save As"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_editfile")},children:"Edit"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_txtrpeview")},children:"Preview"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_taghelp")},children:"Formatting Help"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!C,onClick:function(){return i("PRG_printfile")},children:"Print"})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C}})})]})})})}},18326:function(e,n,t){"use strict";n.__esModule=!0,n.OmniFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniFilter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return l("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return l("configure")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:m?m.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.dir+" Port",children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:e.input,icon:"compress-arrows-alt",onClick:function(){return l("switch_mode",{mode:"in",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:e.output,icon:"expand-arrows-alt",onClick:function(){return l("switch_mode",{mode:"out",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:e.input||e.output,content:e.f_type||"None",onClick:function(){return l("switch_filter",{mode:e.f_type,dir:e.dir})}})],4):i(e)},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return l("set_flow_rate")}}):p/10+" L/s"})]})})]})})}},78588:function(e,n,t){"use strict";n.__esModule=!0,n.OmniMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return i("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return i("configure")}})],4),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Port"}),u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Input"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Mode"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Concentration"}),u?(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map((function(e){return(0,o.createComponentVNode)(2,l,{port:e,config:u},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return i("set_flow_rate")}}):p/10+" L/s"})]})})]})})};var l=function(e,n){var t=(0,r.useBackend)(n).act,a=e.port,l=e.config;return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:a.dir+" Port"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:a.input,disabled:a.output,icon:"compress-arrows-alt",onClick:function(){return t("switch_mode",{mode:a.input?"none":"in",dir:a.dir})}}):i(a)}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:a.output,icon:"expand-arrows-alt",onClick:function(){return t("switch_mode",{mode:"out",dir:a.dir})}}):100*a.concentration+"%"}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",width:"20%",children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",icon:"wrench",disabled:!a.input,content:a.input?100*a.concentration+" %":"-",onClick:function(){return t("switch_con",{dir:a.dir})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{icon:a.con_lock?"lock":"lock-open",disabled:!a.input,selected:a.con_lock,content:a.f_type||"None",onClick:function(){return t("switch_conlock",{dir:a.dir})}})})],4):null]})}},48826:function(e,n,t){"use strict";n.__esModule=!0,n.OperatingComputer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(85952),i=t(74814),l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.OperatingComputer=function(e,n){var t,r=(0,c.useBackend)(n),l=r.act,d=r.data,s=d.hasOccupant,u=d.choice;return t=u?(0,o.createComponentVNode)(2,C):s?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,a.Window,{width:650,height:455,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!u,icon:"user",onClick:function(){return l("choiceOff")},children:"Patient"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("choiceOn")},children:"Options"})]}),(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:t})]})})};var m=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Patient",level:"2",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:t.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[t.stat][0],children:l[t.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxHealth,value:t.health/t.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),d.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e[0]+" Damage",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]])},n)},n)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxTemp,value:t.bodyTemperature/t.maxTemp,color:u[t.temperatureSuitability+3],children:[(0,r.round)(t.btCelsius),"\xb0C, ",(0,r.round)(t.btFaren),"\xb0F"]})}),!!t.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.bloodMax,value:t.bloodLevel/t.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[t.bloodPercent,"%, ",t.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pulse",children:[t.pulse," BPM"]})],4)]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Current Procedure",level:"2",children:t.surgery&&t.surgery.length?(0,o.createComponentVNode)(2,i.LabeledList,{children:t.surgery.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current State",children:e.currentStage}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible Next Steps",children:e.nextSteps.map((function(e){return(0,o.createVNode)(1,"div",null,e,0,null,e)}))})]})},e.name)}))}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No procedure ongoing."})})],4)},p=function(){return(0,o.createComponentVNode)(2,i.Flex,{textAlign:"center",height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No patient detected."]})})},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,a=t.data,l=a.verbose,d=a.health,s=a.healthAlarm,u=a.oxy,m=a.oxyAlarm,p=a.crit;return(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Loudspeaker",children:(0,o.createComponentVNode)(2,i.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r(l?"verboseOff":"verboseOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer",children:(0,o.createComponentVNode)(2,i.Button,{selected:d,icon:d?"toggle-on":"toggle-off",content:d?"On":"Off",onClick:function(){return r(d?"healthOff":"healthOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:s,stepPixelSize:"5",ml:"0",format:function(e){return e+"%"},onChange:function(e,n){return r("health_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm",children:(0,o.createComponentVNode)(2,i.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return r(u?"oxyOff":"oxyOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:m,stepPixelSize:"5",ml:"0",onChange:function(e,n){return r("oxy_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Critical Alert",children:(0,o.createComponentVNode)(2,i.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){return r(p?"critOff":"critOn")}})})]})}},51888:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapDisperser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapDisperser=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.faillink,s=l.calibration,u=l.overmapdir,m=l.cal_accuracy,p=l.strength,C=l.range,h=l.next_shot,N=l.nopower,V=(l.skill,l.chargeload);return d?(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",children:(0,o.createComponentVNode)(2,c.Section,{title:"Targeting",textAlign:"center",children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{actToDo:"choose",selected:function(e){return e===u}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"74%",grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Charge",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Load Type",children:V}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cooldown",children:0===h&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Ready"})||h>1&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," Seconds",(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Calibration",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"exchange-alt",onClick:function(){return a("skill_calibration")},children:"Pre-Calibration"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["Cal #",n,":",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"random",onClick:function(){return a("calibration",{calibration:n})},children:e.toString()})]},n)}))})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Setup",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Strength",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",onClick:function(){return a("strength")},children:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radius",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return a("range")},children:C})})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return a("fire")},children:"Fire ORB"})})]})}},25123:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapEnginesContent=n.OvermapEngines=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapEngines=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:390,height:530,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.global_state,d=i.global_limit,s=i.engines_info,u=i.total_thrust;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Engines",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,onClick:function(){return a("global_toggle")},children:l?"Shut All Engines Down":"Start All Engines"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_global_limit")},children:[d,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Thrust",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:0!==n&&-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"80%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:["Engine #",n+1," | Thrust: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust})," | Limit: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust_limiter,format:function(e){return e+"%"}})]}),children:(0,o.createComponentVNode)(2,c.Section,{width:"127%",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Type",children:e.eng_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,c.Box,{color:e.eng_on?1===e.eng_on?"good":"average":"bad",children:e.eng_on?1===e.eng_on?"Online":"Booting":"Offline"}),e.eng_status.map((function(e){return Array.isArray(e)?(0,o.createComponentVNode)(2,c.Box,{color:e[1],children:e[0]}):(0,o.createComponentVNode)(2,c.Box,{children:e})}))]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Thrust",children:e.eng_thrust}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:-.1,engine:e.eng_reference})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_limit",{engine:e.eng_reference})},children:[e.eng_thrust_limiter,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:.1,engine:e.eng_reference})},icon:"plus"})]})]})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,iconSpin:-1===e.eng_on,color:-1===e.eng_on?"purple":null,selected:1===e.eng_on,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:e.eng_reference})},children:e.eng_on?1===e.eng_on?"Shutoff":"Booting":"Startup"})})]},n)}))})],4)};n.OvermapEnginesContent=i},63836:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFull=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(25123),l=t(89380),d=t(51932);n.OvermapFull=function(e,n){var t=(0,r.useLocalState)(n,"overmapFullState",0),s=t[0],u=t[1];return(0,o.createComponentVNode)(2,a.Window,{width:800,height:800,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:"Engines"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:"Helm"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:"Sensors"})]}),0===s&&(0,o.createComponentVNode)(2,i.OvermapEnginesContent),1===s&&(0,o.createComponentVNode)(2,l.OvermapHelmContent),2===s&&(0,o.createComponentVNode)(2,d.OvermapShipSensorsContent)]})})}},89380:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFlightDataWrap=n.OvermapHelmContent=n.OvermapHelm=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapHelm=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:565,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"40%",height:"180px",children:(0,o.createComponentVNode)(2,d)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"25%",height:"180px",children:(0,o.createComponentVNode)(2,s)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"35%",height:"180px",children:(0,o.createComponentVNode)(2,u)})]}),(0,o.createComponentVNode)(2,m)],4)};n.OvermapHelmContent=l;var d=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Flight Data",16),(0,o.createComponentVNode)(2,i.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})};n.OvermapFlightDataWrap=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.canburn,s=l.manual_control;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Manual Control",16),(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{disabled:!d,actToDo:"move"})})}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",mt:1,children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,o.createComponentVNode)(2,c.Button,{selected:s,onClick:function(){return a("manual")},icon:"compass",children:s?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.dest,d=i.d_x,s=i.d_y,u=i.speedlimit,m=i.autopilot;return i.autopilot_disabled?(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return a("apilot_lock")}})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{setx:!0})},children:d}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{sety:!0})},children:s})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed Limit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tachometer-alt",onClick:function(){return a("speedlimit")},children:[u," Gm/h"]})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,selected:m,disabled:!l,icon:"robot",onClick:function(){return a("apilot")},children:m?"Engaged":"Disengaged"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return a("apilot_lock")},children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.sector,d=i.s_x,s=i.s_y,u=i.sector_info,m=i.landed,p=i.locations;return(0,o.createComponentVNode)(2,c.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordinates",children:[d," : ",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Data",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:m})]}),(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"save",onClick:function(){return a("add",{add:"current"})},children:"Save Current Position"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"sticky-note",onClick:function(){return a("add",{add:"new"})},children:"Add New Entry"})})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,scrollable:!0,height:"130px",children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Coordinates"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.x," : ",e.y]}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",onClick:function(){return a("setds",{x:e.x,y:e.y})},children:"Plot Course"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return a("remove",{remove:e.reference})},children:"Remove"})]})]},e.name)}))]})})]})}},12640:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapNavigationContent=n.OvermapNavigation=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapNavigation=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sector,s=l.s_x,u=l.s_y,m=l.sector_info,p=l.viewing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Current Location",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:p,onClick:function(){return a("viewing")},children:"Map View"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordinates",children:[s," : ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Additional Information",children:m})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flight Data",children:(0,o.createComponentVNode)(2,i.OvermapFlightData,{disableLimiterControls:!0})})],4)};n.OvermapNavigationContent=l},84031:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShieldGenerator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShieldGenerator=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:500,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=i.modes,u=i.offline_for;return u?(0,o.createComponentVNode)(2,c.Section,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",u," seconds."]}):(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Section,{title:"Field Calibration",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:e.status,onClick:function(){return a("toggle_mode",{toggle_mode:e.flag})},children:e.status?"Enabled":"Disabled"}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e.desc}),(0,o.createComponentVNode)(2,c.Box,{mt:.5,children:["Multiplier: ",e.multiplier]})]},e.name)}))})],4)},l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.running,l=a.overloaded,d=a.mitigation_max,s=a.mitigation_physical,u=a.mitigation_em,m=a.mitigation_heat,p=a.field_integrity,C=a.max_energy,h=a.current_energy,N=a.percentage_energy,V=a.total_segments,b=a.functional_segments,f=a.field_radius,g=a.target_radius,k=a.input_cap_kw,v=a.upkeep_power_usage,B=a.power_usage,L=a.spinup_counter;return(0,o.createComponentVNode)(2,c.Section,{title:"System Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Generator is",children:1===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Shutting Down"})||2===i&&(l&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Overloaded"})||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Running"}))||3===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Inactive"})||4===i&&(0,o.createComponentVNode)(2,c.Box,{color:"blue",children:["Spinning Up\xa0",g!==f&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[2*L,"s"]})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Offline"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Storage",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,maxValue:C,children:[h," / ",C," MJ (",N,"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shield Integrity",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mitigation",children:[u,"% EM / ",s,"% PH / ",m,"% HE / ",d,"% MAX"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:v})," kW"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Energy Use",children:k&&(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:B,maxValue:k,children:[B," / ",k," kW"]})})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:B})," kW (No Limit)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Field Size",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"\xa0/\xa0",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V})," m\xb2 (radius ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),", target ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),")"]})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.running,d=i.hacked,s=i.idle_multiplier,u=i.idle_valid_values;return(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createFragment)([l>=2&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("begin_shutdown")},selected:!0,children:"Turn off"}),3===l&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("start_generator")},children:"Turn on"}),l&&d&&(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",onClick:function(){return a("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",onClick:function(){return a("set_range")},children:"Set Field Range"}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",onClick:function(){return a("set_input_cap")},children:"Set Input Cap"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Set inactive power use intensity",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e===s,disabled:4===l,onClick:function(){return a("switch_idle",{switch_idle:e})},children:e},e)}))})})]})}},51932:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShipSensorsContent=n.OvermapShipSensors=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShipSensors=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:375,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.viewing,d=i.on,s=i.range,u=i.health,m=i.max_health,p=i.heat,C=i.critical_heat,h=i.status,N=i.contacts;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:l,onClick:function(){return a("viewing")},children:"Map View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return a("toggle_sensor")},children:d?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,c.Button,{icon:"signal",onClick:function(){return a("range")},children:s})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*m,Infinity],average:[.25*m,.75*m],bad:[-Infinity,.25*m]},value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*C,Infinity],average:[.5*C,.75*C],good:[-Infinity,.5*C]},value:p,maxValue:C,children:p<.5*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Temperature low."})||p<.75*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Sensor temperature high!"})||(0,o.createComponentVNode)(2,c.Box,{children:"TEMPERATURE CRITICAL: Disable or reduce power immediately!"})})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Contacts",children:N.length&&N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"search",onClick:function(){return a("scan",{scan:e.ref})},children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,inline:!0,children:["Scan: ",e.name]}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[", bearing: ",e.bearing,"\xb0"]})]},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No contacts on sensors."})}),"MISSING"===i.status&&(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wifi",onClick:function(){return a("link")},children:"Link up with sensor suite?"})})||null],0)};n.OvermapShipSensorsContent=i},57966:function(e,n,t){"use strict";n.__esModule=!0,n.ParticleAccelerator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ParticleAccelerator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.assembled,s=l.power,u=l.strength;return(0,o.createComponentVNode)(2,a.Window,{width:350,height:185,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Run Scan",onClick:function(){return i("scan")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:d?"good":"bad",children:d?"Ready - All parts in place":"Unable to detect all parts"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Particle Accelerator Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:!d,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Particle Strength",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:!d,onClick:function(){return i("remove_strength")}})," ",String(u).padStart(1,"0")," ",(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:!d,onClick:function(){return i("add_strength")}})]})]})})]})})}},80374:function(e,n,t){"use strict";n.__esModule=!0,n.PartsLathe=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(95481);n.PartsLathe=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.panelOpen,s.copyBoard),m=s.copyBoardReqComponents,p=s.queue,C=s.building,h=s.buildPercent,N=s.error,V=s.recipies;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[N&&(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:["Missing Materials: ",N]})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,l.Materials,{displayAllMat:!0})}),C&&(0,o.createComponentVNode)(2,c.Section,{title:"Currently Building",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:(0,i.toTitleCase)(C)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:h,maxValue:100})})]})})||null,u&&(0,o.createComponentVNode)(2,c.Section,{title:"Circuit Reader",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Loaded Circuit",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return d("ejectBoard")},children:"Eject"}),children:(0,i.toTitleCase)(u)})}),m&&m.length&&(0,o.createFragment)([m.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[e.qty," x ",(0,i.toTitleCase)(e.name)]},e.name)})),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queueBoard")},children:"Build All"})],0)||(0,o.createComponentVNode)(2,c.Box,{children:"Board has no required components."})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Queue",children:p.length&&p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["#",n+1,": ",(0,i.toTitleCase)(e),(n>0||!C)&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"times",onClick:function(){return d("cancel",{cancel:n+1})},children:"Cancel"})||null]},e)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Recipes",children:V.length&&V.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queue",{queue:e.type})},children:(0,i.toTitleCase)(e.name)})},e.name)}))})]})})}},83987:function(e,n,t){"use strict";n.__esModule=!0,n.PathogenicIsolator=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(16007),a=t(74814),i=t(85952),l=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.can_print,l=e.args;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",title:l.name||"Virus",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!i,icon:"print",content:"Print",onClick:function(){return c("print",{type:"virus_record",vir:l.record})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return c("modal_close")}})],4),children:(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Spread",children:[l.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Possible cure",children:l.antigen}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rate of Progression",children:l.rate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Antibiotic Resistance",children:[l.resistance,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species Affected",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:l.symptoms.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0"]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]})]},e.stage)}))})})]})})})};n.PathogenicIsolator=function(e,n){var t=(0,r.useBackend)(n),u=(t.act,t.data.isolating),m=(0,r.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=null;return 0===p?h=(0,o.createComponentVNode)(2,d):1===p&&(h=(0,o.createComponentVNode)(2,s)),(0,c.modalRegisterBodyOverride)("virus",l),(0,o.createComponentVNode)(2,i.Window,{height:500,width:520,resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[u&&(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Home"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Database"})]}),h]})]})};var d=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.syringe_inserted,d=i.pathogen_pool,s=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Pathogens",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!s,onClick:function(){return c("print",{type:"patient_diagnosis"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Syringe",disabled:!l,onClick:function(){return c("eject")}})],4),children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[(0,o.createVNode)(1,"u",null,[(0,o.createTextVNode)("Stamm #"),e.unique_id],0),e.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Isolate",onClick:function(){return c("isolate",{isolate:e.reference})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Database",disabled:!e.is_in_database,onClick:function(){return c("view_entry",{vir:e.record})}})]})]})}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",mb:1,children:e.name}),e.dna]})]},e.unique_id)}))||(l?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No samples detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No syringe inserted."}))})},s=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.database,d=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Database",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!d,onClick:function(){return c("print",{type:"virus_list"})}}),children:l.length&&l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("view_entry",{vir:e.record})},children:e.name},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"The viral database is empty."})})}},72586:function(e,n,t){"use strict";n.__esModule=!0,n.Pda=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(73218),l=t(75168);n.Pda=function(e,n){var t=(0,r.useBackend)(n),m=(t.act,t.data),p=m.app,C=m.owner,h=m.useRetro;if(!C)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var N=function(e){var n;try{n=l("./"+e+".js")}catch(t){if("MODULE_NOT_FOUND"===t.code)return(0,i.routingError)("notFound",e);throw t}return n[e]||(0,i.routingError)("missingExport",e)}(p.template),V=(0,r.useLocalState)(n,"settingsMode",!1),b=V[0],f=V[1];return(0,o.createComponentVNode)(2,a.Window,{width:580,height:670,theme:h?"pda-retro":null,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{settingsMode:b,setSettingsMode:f}),b&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Box,{mb:8}),(0,o.createComponentVNode)(2,u,{setSettingsMode:f})]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.settingsMode,d=e.setSettingsMode,s=i.idInserted,u=i.idLink,m=(i.cartridge_name,i.stationTime);return(0,o.createComponentVNode)(2,c.Box,{mb:1,children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-between",children:[!!s&&(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",color:"transparent",onClick:function(){return a("Authenticate")},content:u})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:m}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{selected:l,onClick:function(){return d(!l)},icon:"cog"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("Retro")},icon:"adjust"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.idInserted,d=i.idLink,s=i.cartridge_name,u=i.touch_silent;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",content:"Retro Theme",onClick:function(){return a("Retro")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Touch Sounds",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",selected:!u,content:u?"Disabled":"Enabled",onClick:function(){return a("TouchSounds")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cartridge",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Eject")},content:s})}),!!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Authenticate")},content:d})})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.setSettingsMode,d=i.app,s=i.useRetro;return(0,o.createComponentVNode)(2,c.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:s?"#6f7961":"#1b1b1b",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return a("Back")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){l(!1),a("Home")}})})]})})}},67589:function(e,n,t){"use strict";n.__esModule=!0,n.PersonalCrafting=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t=.5?"good":s>.15&&"average")||"bad";return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!d.anchored&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Generator not anchored."}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power switch",children:(0,o.createComponentVNode)(2,c.Button,{icon:d.active?"power-off":"times",onClick:function(){return l("toggle_power")},selected:d.active,disabled:!d.ready_to_boot,children:d.active?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Type",buttons:d.fuel_stored>=1&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"eject",disabled:d.active,onClick:function(){return l("eject")},children:"Eject"}),children:(0,o.createComponentVNode)(2,c.Box,{color:u,children:[d.fuel_stored,"cm\xb3 ",d.sheet_name]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current fuel level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.fuel_stored/d.fuel_capacity,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[d.fuel_stored,"cm\xb3 / ",d.fuel_capacity,"cm\xb3"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Usage",children:[d.fuel_usage," cm\xb3/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.temperature_current,maxValue:d.temperature_max+30,color:d.temperature_overheat?"bad":"good",children:[(0,i.round)(d.temperature_current),"\xb0C"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current output",color:d.unsafe_output?"bad":null,children:d.power_output}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Adjust output",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",onClick:function(){return l("lower_power")},children:d.power_generated}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("higher_power")},children:d.power_generated})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power available",children:(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:!d.connected&&"bad",children:d.connected?d.power_available:"Unconnected"})})]})})]})})}},82564:function(e,n,t){"use strict";n.__esModule=!0,n.PortablePump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(34227);n.PortablePump=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.direction,u=d.target_pressure,m=d.default_pressure,p=d.min_pressure,C=d.max_pressure;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:375,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Pump",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"sign-in-alt":"sign-out-alt",content:s?"In":"Out",selected:s,onClick:function(){return l("direction")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:p,maxValue:C,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(e,n){return l("pressure",{pressure:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",disabled:u===p,onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",disabled:u===m,onClick:function(){return l("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",disabled:u===C,onClick:function(){return l("pressure",{pressure:"max"})}})]})]})})]})})}},24901:function(e,n,t){"use strict";n.__esModule=!0,n.PortableScrubber=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952)),i=t(34227);n.PortableScrubber=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.rate,u=d.minrate,m=d.maxrate;return(0,o.createComponentVNode)(2,a.Window,{width:320,height:350,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Power Regulator",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Rate",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:u,maxValue:m,value:s,unit:"L/s",onChange:function(e,n){return l("volume_adj",{vol:n})}})})})})]})})}},31695:function(e,n,t){"use strict";n.__esModule=!0,n.PortableTurret=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.PortableTurret=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.on,u=l.lethal,m=l.lethal_is_configurable,p=l.targetting_is_configurable,C=l.check_weapons,h=l.neutralize_noaccess,N=l.neutralize_norecord,V=l.neutralize_criminals,b=l.neutralize_all,f=l.neutralize_nonsynth,g=l.neutralize_unidentified,k=l.neutralize_down;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe an ID card to ",d?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:d,onClick:function(){return i("power")}})}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Lethals",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"exclamation-triangle":"times",content:u?"On":"Off",color:u?"bad":"",disabled:d,onClick:function(){return i("lethal")}})})]})}),!!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Humanoid Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:V,content:"Wanted Criminals",disabled:d,onClick:function(){return i("autharrest")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:N,content:"No Sec Record",disabled:d,onClick:function(){return i("authnorecord")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:C,content:"Unauthorized Weapons",disabled:d,onClick:function(){return i("authweapon")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:h,content:"Unauthorized Access",disabled:d,onClick:function(){return i("authaccess")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Other Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:g,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:d,onClick:function(){return i("authxeno")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:f,content:"All Non-Synthetics",disabled:d,onClick:function(){return i("authsynth")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:k,content:"Downed Targets",disabled:d,onClick:function(){return i("authdown")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:d,onClick:function(){return i("authall")}})]})],4)]})})}},89793:function(e,n,t){"use strict";n.__esModule=!0,n.AreaCharge=n.PowerMonitorFocus=n.PowerMonitorContent=n.PowerMonitor=n.powerRank=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(41860),i=t(34380),l=t(71494),d=t(74814),s=t(85952),u=5e5,m=function(e){var n=String(e.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(n)};n.powerRank=m;n.PowerMonitor=function(){return(0,o.createComponentVNode)(2,s.Window,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)})})};var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(c.map_levels,c.all_sensors),i=c.focus;if(i)return(0,o.createComponentVNode)(2,C,{focus:i});var s=(0,o.createComponentVNode)(2,d.Box,{color:"bad",children:"No sensors detected"});return a&&(s=(0,o.createComponentVNode)(2,d.Table,{children:a.map((function(e){return(0,o.createComponentVNode)(2,d.Table.Row,{children:(0,o.createComponentVNode)(2,d.Table.Cell,{children:(0,o.createComponentVNode)(2,d.Button,{content:e.name,icon:e.alarm?"bell":"sign-in-alt",onClick:function(){return r("setsensor",{id:e.name})}})})},e.name)}))})),(0,o.createComponentVNode)(2,d.Section,{title:"No active sensor. Listing all.",buttons:(0,o.createComponentVNode)(2,d.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){return r("refresh")}}),children:s})};n.PowerMonitorContent=p;var C=function(e,n){var t=(0,l.useBackend)(n),i=t.act,s=(t.data,e.focus),p=s.history,C=(0,l.useLocalState)(n,"sortByField",null),V=C[0],b=C[1],f=p.supply[p.supply.length-1]||0,g=p.demand[p.demand.length-1]||0,k=p.supply.map((function(e,n){return[n,e]})),v=p.demand.map((function(e,n){return[n,e]})),B=Math.max.apply(Math,[u].concat(p.supply,p.demand)),L=(0,c.flow)([(0,r.map)((function(e,n){return Object.assign({},e,{id:e.name+n})})),"name"===V&&(0,r.sortBy)((function(e){return e.name})),"charge"===V&&(0,r.sortBy)((function(e){return-e.charge})),"draw"===V&&(0,r.sortBy)((function(e){return-m(e.load)}),(function(e){return-parseFloat(e.load)})),"problems"===V&&(0,r.sortBy)((function(e){return e.eqp}),(function(e){return e.lgt}),(function(e){return e.env}),(function(e){return e.charge}),(function(e){return e.name}))])(s.areas);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){return i("clear")}})}),(0,o.createComponentVNode)(2,d.Flex,{mx:-.5,mb:1,children:[(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,width:"200px",children:(0,o.createComponentVNode)(2,d.Section,{children:(0,o.createComponentVNode)(2,d.LabeledList,{children:[(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Supply",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:f,minValue:0,maxValue:B,color:"teal",children:(0,a.toFixed)(f/1e3)+" kW"})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Draw",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:g,minValue:0,maxValue:B,color:"pink",children:(0,a.toFixed)(g/1e3)+" kW"})})]})})}),(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,grow:1,children:(0,o.createComponentVNode)(2,d.Section,{position:"relative",height:"100%",children:[(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:k,rangeX:[0,k.length-1],rangeY:[0,B],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:v,rangeX:[0,v.length-1],rangeY:[0,B],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,o.createComponentVNode)(2,d.Section,{children:[(0,o.createComponentVNode)(2,d.Box,{mb:1,children:[(0,o.createComponentVNode)(2,d.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"name"===V,content:"Name",onClick:function(){return b("name"!==V&&"name")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"charge"===V,content:"Charge",onClick:function(){return b("charge"!==V&&"charge")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"draw"===V,content:"Draw",onClick:function(){return b("draw"!==V&&"draw")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"problems"===V,content:"Problems",onClick:function(){return b("problems"!==V&&"problems")}})]}),(0,o.createComponentVNode)(2,d.Table,{children:[(0,o.createComponentVNode)(2,d.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,d.Table.Cell,{children:"Area"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,children:"Charge"}),(0,o.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",children:"Draw"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),L.map((function(e,n){return(0,o.createVNode)(1,"tr","Table__row candystripe",[(0,o.createVNode)(1,"td",null,e.name,0),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,o.createComponentVNode)(2,h,{charging:e.charging,charge:e.charge}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",e.load,0),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.eqp}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.lgt}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.env}),2)],4,null,e.id)}))]})]})],4)};n.PowerMonitorFocus=C;var h=function(e){var n=e.charging,t=e.charge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Icon,{width:"18px",textAlign:"center",name:0===n&&(t>50?"battery-half":"battery-quarter")||1===n&&"bolt"||2===n&&"battery-full",color:0===n&&(t>50?"yellow":"red")||1===n&&"yellow"||2===n&&"green"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,a.toFixed)(t)+"%"})],4)};n.AreaCharge=h,h.defaultHooks=i.pureComponentHooks;var N=function(e){var n=e.status,t=Boolean(2&n),r=Boolean(1&n),c=(t?"On":"Off")+" ["+(r?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:t?"good":"bad",content:r?undefined:"M",title:c})};N.defaultHooks=i.pureComponentHooks},81121:function(e,n,t){"use strict";n.__esModule=!0,n.PressureRegulator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.PressureRegulator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=(l.max_pressure,l.input_pressure),m=l.output_pressure,p=l.regulate_mode,C=l.set_flow_rate,h=l.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:370,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Input Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h/10})," L/s"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:d?"Unlocked":"Closed",selected:d,onClick:function(){return i("toggle_valve")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Off",selected:0===p,onClick:function(){return i("regulate_mode",{mode:"off"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"Input",selected:1===p,onClick:function(){return i("regulate_mode",{mode:"input"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"Output",selected:2===p,onClick:function(){return i("regulate_mode",{mode:"output"})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_press",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_press",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_press",{press:"set"})}})],4),children:[s/100," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_flow_rate",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_flow_rate",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_flow_rate",{press:"set"})}})],4),children:[C/10," L/s"]})]})})]})})}},14210:function(e,n,t){"use strict";n.__esModule=!0,n.PrisonerManagement=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(58083);n.PrisonerManagement=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.chemImplants,u=l.trackImplants;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d&&(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",onClick:function(){return i("lock")},children:"Unlock"})})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Interface Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return i("lock")},children:"Lock Interface"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Chemical Implants",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Inject"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.host}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.units,"u remaining"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:1})},children:"(1)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:5})},children:"(5)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:10})},children:"(10)"})]})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Tracking Implants",children:u.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Message"})]}),u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.host," (",e.id,")"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.loc}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("warn",{imp:e.ref})},children:"Message"})})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})})],4)})})}},43996:function(e,n,t){"use strict";n.__esModule=!0,n.RCONContent=n.RCON=void 0;var o=t(39812),r=t(41860),c=t(58083),a=t(71494),i=t(74814),l=t(85952),d=t(2497),s=1e3;n.RCON=function(e,n){return(0,o.createComponentVNode)(2,l.Window,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,r=(0,a.useLocalState)(n,"tabIndex",0),c=r[0],l=r[1];return 0===c?t=(0,o.createComponentVNode)(2,m):1===c&&(t=(0,o.createComponentVNode)(2,h)),(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===c,onClick:function(){return l(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===c,onClick:function(){return l(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,o.createComponentVNode)(2,i.Box,{m:2,children:t})],4)};n.RCONContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.smes_info);return(0,o.createComponentVNode)(2,i.Section,{title:"SMESs",children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:r.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,p,{smes:e})},e.RCON_tag)}))})})},p=function(e,n){(0,a.useBackend)(n).act;var t=e.smes,c=t.capacityPercent,l=t.capacity,d=t.charge,s=(t.inputAttempt,t.inputting,t.inputLevel,t.inputLevelMax,t.inputAvailable,t.outputAttempt,t.outputting,t.outputLevel,t.outputLevelMax,t.outputUsed,t.RCON_tag);return(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{flexBasis:"40%",fontSize:1.2,children:s}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*c,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,r.round)(d/6e4,1)," kWh / ",(0,r.round)(l/6e4)," kWh (",c,"%)"]})})]})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"input"})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"output"})}),(0,o.createComponentVNode)(2,i.Stack.Divider)]})},C=function(e,n){var t,r,l,u,m,p,C,h=(0,a.useBackend)(n).act,N=e.way,V=e.smes,b=(V.capacityPercent,V.capacity,V.charge,V.inputAttempt),f=V.inputting,g=V.inputLevel,k=V.inputLevelMax,v=V.inputAvailable,B=V.outputAttempt,L=V.outputting,_=V.outputLevel,x=V.outputLevelMax,w=V.outputUsed,S=V.RCON_tag;switch(N){case"input":t=g,r=k,l=v,"IN",u="smes_in_toggle",m="smes_in_set",b,p=b?f?"green":"yellow":null,C=b?f?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":t=_,r=x,l=w,"OUT",u="smes_out_toggle",m="smes_out_set",B,p=B?L?"green":"yellow":null,C=B?L?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off."}return(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"20%",children:(0,d.capitalize)(N)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:p,tooltip:C,onClick:function(){return h(u,{smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===t,onClick:function(){return h(m,{target:"min",smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===t,onClick:function(){return h(m,{adjust:-1e4,smes:S})}})]}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:t/s,fillValue:l/s,minValue:0,maxValue:r/s,step:5,stepPixelSize:4,format:function(e){return(0,c.formatPower)(l,1)+"/"+(0,c.formatPower)(e*s,1)},onDrag:function(e,n){return h(m,{target:n*s,smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:t===r,onClick:function(){return h(m,{adjust:1e4,smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:t===r,onClick:function(){return h(m,{target:"max",smes:S})}})]})]})})]})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.breaker_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Breakers",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c?c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.RCON_tag,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.enabled?"Enabled":"Disabled",selected:e.enabled,color:e.enabled?null:"bad",onClick:function(){return r("toggle_breaker",{breaker:e.RCON_tag})}})},e.RCON_tag)})):(0,o.createComponentVNode)(2,i.LabeledList.Item,{color:"bad",children:"No breakers detected."})})})}},92141:function(e,n,t){"use strict";n.__esModule=!0,n.RIGSuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.RIGSuit=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),u=i.interfacelock,m=i.malf,p=i.aicontrol,C=i.ai,h=null;return u||m?h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!C&&p&&(h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,o.createComponentVNode)(2,a.Window,{height:480,width:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h||(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chargestatus,d=i.charge,s=i.maxcharge,u=i.aioverride,m=i.sealing,p=i.sealed,C=i.cooling,h=i.emagged,N=i.securitycheck,V=i.coverlock,b=(0,o.createComponentVNode)(2,c.Button,{content:"Suit "+(m?"seals working...":p?"is Active":"is Inactive"),icon:m?"redo":p?"power-off":"lock-open",iconSpin:m,disabled:m,selected:p,onClick:function(){return a("toggle_seals")}}),f=(0,o.createComponentVNode)(2,c.Button,{content:"Suit Cooling "+(C?"is Active":"is Inactive"),icon:"power-off",selected:C,onClick:function(){return a("toggle_cooling")}}),g=(0,o.createComponentVNode)(2,c.Button,{content:"AI Control "+(u?"Enabled":"Disabled"),selected:u,icon:"robot",onClick:function(){return a("toggle_ai_control")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([b,g,f],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Supply",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:50,value:l,ranges:{good:[35,Infinity],average:[15,35],bad:[-Infinity,15]},children:[d," / ",s]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Status",children:h||!N?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,o.createComponentVNode)(2,c.Button,{icon:V?"lock":"lock-open",content:V?"Locked":"Unlocked",onClick:function(){return a("toggle_suit_lock")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealing,s=l.helmet,u=l.helmetDeployed,m=l.gauntlets,p=l.gauntletsDeployed,C=l.boots,h=l.bootsDeployed,N=l.chest,V=l.chestDeployed;return(0,o.createComponentVNode)(2,c.Section,{title:"Hardware",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:u?"sign-out-alt":"sign-in-alt",content:u?"Deployed":"Deploy",disabled:d,selected:u,onClick:function(){return a("toggle_piece",{piece:"helmet"})}}),children:s?(0,i.capitalize)(s):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gauntlets",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Deployed":"Deploy",disabled:d,selected:p,onClick:function(){return a("toggle_piece",{piece:"gauntlets"})}}),children:m?(0,i.capitalize)(m):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Boots",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sign-out-alt":"sign-in-alt",content:h?"Deployed":"Deploy",disabled:d,selected:h,onClick:function(){return a("toggle_piece",{piece:"boots"})}}),children:C?(0,i.capitalize)(C):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chestpiece",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:V?"sign-out-alt":"sign-in-alt",content:V?"Deployed":"Deploy",disabled:d,selected:V,onClick:function(){return a("toggle_piece",{piece:"chest"})}}),children:N?(0,i.capitalize)(N):"ERROR"})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealed,s=l.sealing,u=l.primarysystem,m=l.modules;return!d||s?(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,i.capitalize)(u||"None")]}),m&&m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Section,{level:2,title:(0,i.toTitleCase)(e.name)+(e.damage?" (damaged)":""),buttons:(0,o.createFragment)([e.can_select?(0,o.createComponentVNode)(2,c.Button,{selected:e.name===u,content:e.name===u?"Selected":"Select",icon:"arrow-circle-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select"})}}):null,e.can_use?(0,o.createComponentVNode)(2,c.Button,{content:e.engagestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"engage"})}}):null,e.can_toggle?(0,o.createComponentVNode)(2,c.Button,{selected:e.is_active,content:e.is_active?e.deactivatestring:e.activatestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"toggle"})}}):null],0),children:[e.damage>=2?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:[(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Engage: ",e.engagecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Active: ",e.activecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Passive: ",e.passivecost]})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:e.desc})]}),e.charges?(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Module Charges",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Selected",children:(0,i.capitalize)(e.chargetype)}),e.charges.map((function(n,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(n.caption),children:(0,o.createComponentVNode)(2,c.Button,{selected:e.realchargetype===n.index,icon:"arrow-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select_charge_type",charge_type:n.index})}})},n.caption)}))]})})}):null]},e.name)}))]})}},17481:function(e,n,t){"use strict";n.__esModule=!0,n.Radio=void 0;var o=t(39812),r=(t(64499),t(41860)),c=t(71494),a=t(74814),i=t(76270),l=t(85952);n.Radio=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.rawfreq,m=s.minFrequency,p=s.maxFrequency,C=s.listening,h=s.broadcasting,N=s.subspace,V=s.subspaceSwitchable,b=s.chan_list,f=s.loudspeaker,g=s.mic_cut,k=s.spk_cut,v=s.useSyndMode,B=i.RADIO_CHANNELS.find((function(e){return e.freq===Number(u)})),L=156;return b&&b.length>0?L+=28*b.length+6:L+=24,V&&(L+=38),(0,o.createComponentVNode)(2,l.Window,{width:310,height:L,resizable:!0,theme:v?"syndicate":"",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:m/10,maxValue:p/10,value:u/10,format:function(e){return(0,r.toFixed)(e,1)},onDrag:function(e,n){return d("setFrequency",{freq:(0,r.round)(10*n)})}}),B&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:B.color,ml:2,children:["[",B.name,"]"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Audio",children:[(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:C?"volume-up":"volume-mute",selected:C,disabled:k,onClick:function(){return d("listen")}}),(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:h?"microphone":"microphone-slash",selected:h,disabled:g,onClick:function(){return d("broadcast")}}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"bullhorn",selected:N,content:"Subspace Tx "+(N?"ON":"OFF"),onClick:function(){return d("subspace")}})}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"volume-up":"volume-mute",selected:f,content:"Loudspeaker",onClick:function(){return d("toggleLoudspeaker")}})})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Channels",children:[(!b||0===b.length)&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:b?b.map((function(e){var n=i.RADIO_CHANNELS.find((function(n){return n.freq===Number(e.freq)})),t="default";return n&&(t=n.color),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.display_name,labelColor:t,textAlign:"right",children:e.secure_channel&&N?(0,o.createComponentVNode)(2,a.Button,{icon:e.sec_channel_listen?"square-o":"check-square-o",selected:!e.sec_channel_listen,content:e.sec_channel_listen?"Off":"On",onClick:function(){return d("channel",{channel:e.chan})}}):(0,o.createComponentVNode)(2,a.Button,{content:"Switch",selected:e.chan===u,onClick:function(){return d("specFreq",{channel:e.chan})}})},e.chan)})):null})]})]})})}},29509:function(e,n,t){"use strict";n.__esModule=!0,n.RapidPipeDispenser=n.ICON_BY_CATEGORY_NAME=void 0;var o=t(39812),r=t(34380),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=["Atmospherics","Disposals"],s={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"};n.ICON_BY_CATEGORY_NAME=s;var u=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,m=l.category,p=l.selected_color,C=l.mode;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Category",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,i.Button,{selected:m===n,icon:s[e],color:"transparent",onClick:function(){return r("category",{category:n})},children:e},e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Modes",children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C&e.bitmask,fluid:!0,content:e.name,onClick:function(){return r("mode",{mode:e.bitmask})}})},e.bitmask)}))})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,width:"64px",color:l.paint_colors[p],children:(0,c.capitalize)(p)}),Object.keys(l.paint_colors).map((function(e){return(0,o.createComponentVNode)(2,i.ColorBox,{ml:1,color:l.paint_colors[e],onClick:function(){return r("color",{paint_color:e})}},e)}))]})]})})},p=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.category,s=l.piping_layer,u=l.preview_rows.flatMap((function(e){return e.previews}));return(0,o.createComponentVNode)(2,i.Section,{fill:!0,width:7.5,children:[0===d&&(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,mb:1,children:[1,2,3,4,5].map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{my:0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:e===s,content:"Layer "+e,onClick:function(){return c("piping_layer",{piping_layer:e})}})},e)}))}),(0,o.createComponentVNode)(2,i.Box,{width:"120px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{ml:0,title:e.dir_name,selected:e.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return c("setdir",{dir:e.dir,flipped:e.flipped})},children:(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["pipes32x32",e.dir+"-"+e.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},e.dir)}))})]})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.categories,l=void 0===c?[]:c,d=(0,a.useLocalState)(n,"categoryName"),u=d[0],m=d[1],p=l.find((function(e){return e.cat_name===u}))||l[0];return(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{fluid:!0,icon:s[e.cat_name],selected:e.cat_name===p.cat_name,onClick:function(){return m(e.cat_name)},children:e.cat_name},e.cat_name)}))}),null==p?void 0:p.recipes.map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:e.selected,content:e.pipe_name,title:e.pipe_name,onClick:function(){return r("pipe_type",{pipe_type:e.pipe_index,category:p.cat_name})}},e.pipe_index)}))]})};n.RapidPipeDispenser=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data.category;return(0,o.createComponentVNode)(2,l.Window,{width:550,height:570,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,p)})})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,C)})]})})]})})})}},53976:function(e,n,t){"use strict";n.__esModule=!0,n.RequestConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).act,r=e.dept_list,i=e.department;return(0,o.createComponentVNode)(2,a.LabeledList,{children:r.sort().map((function(e){return e!==i&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"envelope-open-text",onClick:function(){return t("write",{write:e,priority:1})},children:"Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",onClick:function(){return t("write",{write:e,priority:2})},children:"High Priority"})],4)})||null}))})},d={0:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.silent;return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,a.Button,{selected:!i,icon:i?"volume-mute":"volume-up",onClick:function(){return r("toggleSilent")},children:["Speaker ",i?"OFF":"ON"]})})},1:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.assist_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Request assistance from another department",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},2:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.supply_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Supplies",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},3:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.info_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Report Anonymous Information",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},4:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},5:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},6:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.message_log;return(0,o.createComponentVNode)(2,a.Section,{title:"Messages",children:l.length&&l.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.decodeHtmlEntities)(e[0]),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print",{print:n+1})},children:"Print"}),children:(0,r.decodeHtmlEntities)(e[1])},n)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No messages."})})},7:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.message,s=l.recipient,u=l.priority,m=l.msgStamped,p=l.msgVerified;return(0,o.createComponentVNode)(2,a.Section,{title:"Message Authentication",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message for "+s,children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Priority",children:2===u?"High Priority":1===u?"Normal Priority":"Unknown"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Validated By",color:p?"good":"bad",children:(0,r.decodeHtmlEntities)(p)||"No Validation"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamped By",color:m?"good":"bad",children:(0,r.decodeHtmlEntities)(m)||"No Stamp"})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"share",onClick:function(){return i("department",{department:s})},children:"Send Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:0})},children:"Back"})]})},8:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(i.department,i.screen,i.message_log,i.newmessagepriority,i.silent,i.announcementConsole,i.assist_dept,i.supply_dept,i.info_dept,i.message),d=(i.recipient,i.priority,i.msgStamped,i.msgVerified,i.announceAuth);return(0,o.createComponentVNode)(2,a.Section,{title:"Send Station-Wide Announcement",children:[d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,o.createComponentVNode)(2,a.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"pen",onClick:function(){return r("writeAnnouncement")},children:"Edit"}),children:l||"No Message"})],4)||(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l||!d,icon:"share",onClick:function(){return r("sendAnnouncement")},children:"Announce"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return r("setScreen",{setScreen:0})},children:"Back"})]})}};n.RequestConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,s=l.screen,u=l.newmessagepriority,m=l.announcementConsole,p=d[s];return(0,o.createComponentVNode)(2,i.Window,{width:520,height:410,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:6===s,onClick:function(){return r("setScreen",{setScreen:6})},icon:"envelope-open-text",children:"Messages"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return r("setScreen",{setScreen:1})},icon:"share-square",children:"Assistance"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return r("setScreen",{setScreen:2})},icon:"share-square",children:"Supplies"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return r("setScreen",{setScreen:3})},icon:"share-square-o",children:"Report"}),m&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:8===s,onClick:function(){return r("setScreen",{setScreen:8})},icon:"volume-up",children:"Announce"})||null,(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return r("setScreen",{setScreen:0})},icon:"cog"})]}),u&&(0,o.createComponentVNode)(2,a.Section,{title:u>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:u>1?"bad":"average",bold:u>1})||null,(0,o.createComponentVNode)(2,p)]})})}},48639:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).data,o=e.title,r=t[e.target];return"number"==typeof r?o+" - Page "+(r+1):o},d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.target;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return t(r,{reset:!0})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-left",onClick:function(){return t(r,{reverse:-1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-right",onClick:function(){return t(r,{reverse:1})}})],4)},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.tech,l=e.disk;if(!l||!l.present)return null;var d=(0,c.useSharedState)(n,"saveDialogTech",!1),s=d[0],u=d[1];return s?(0,o.createComponentVNode)(2,a.Section,{title:"Load Technology to Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return u(!1)}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){u(!1),r("copy_tech",{copy_tech_ID:e.id})},children:"Copy To Disk"})},e.name)}))})}):(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),l.stored&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:[(0,o.createComponentVNode)(2,a.Box,{children:l.name}),(0,o.createComponentVNode)(2,a.Box,{children:["Level: ",l.level]}),(0,o.createComponentVNode)(2,a.Box,{children:["Description: ",l.desc]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_tech")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_tech")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return u(!0)},children:"Load Tech To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.info.designs,u=e.disk;if(!u||!u.present)return null;var m=(0,c.useSharedState)(n,"saveDialogData",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return C(!1)}}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){C(!1),r("copy_design",{copy_design_ID:e.id})},children:"Copy To Disk"})},e.name)}))})]}):(0,o.createComponentVNode)(2,a.Box,{children:u.stored&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Lathe Type",children:u.build_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Required Materials",children:Object.keys(u.materials).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[e," x ",u.materials[e]]},e)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_design")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_design")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return C(!0)},children:"Load Design To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=e.target,u=e.designs,m=e.buildName,p=e.buildFiveName;return s?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{target:"builder_page",title:"Designs"}),buttons:(0,o.createComponentVNode)(2,d,{target:"builder_page"}),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),u&&u.length?u.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{width:"100%",justify:"space-between",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:e.name}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"15%",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Button,{mb:-1,icon:"wrench",onClick:function(){return r(m,{build:e.id,imprint:e.id})},children:"Build"}),p&&(0,o.createComponentVNode)(2,a.Button,{mb:-1,onClick:function(){return r(p,{build:e.id,imprint:e.id})},children:"x5"})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:e.mat_list.join(" ")}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",ml:1,children:e.chem_list.join(" ")})]})]}),(0,o.createComponentVNode)(2,a.Divider)],4,e.id)})):(0,o.createComponentVNode)(2,a.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error"})},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=e.name,s=null,u=null;if("Protolathe"===d?(s=l.info.linked_lathe,u=l.lathe_designs):(s=l.info.linked_imprinter,u=l.imprinter_designs),!s||!s.present)return(0,o.createComponentVNode)(2,a.Section,{title:d,children:["No ",d," found."]});var p=s,C=p.total_materials,h=p.max_materials,N=p.total_volume,V=p.max_volume,b=p.busy,f=p.mats,g=p.reagents,k=p.queue,v=(0,c.useSharedState)(n,"protoTab",0),B=v[0],L=v[1],_="transparent",x=!1,w="layer-group";b?(w="hammer",_="average",x=!0):k&&k.length&&(w="sync",_="green",x=!0);var S="Protolathe"===d?"removeP":"removeI",I="Protolathe"===d?"lathe_ejectsheet":"imprinter_ejectsheet",y="Protolathe"===d?"disposeP":"disposeI",T="Protolathe"===d?"disposeallP":"disposeallI";return(0,o.createComponentVNode)(2,a.Section,{title:d,buttons:b&&(0,o.createComponentVNode)(2,a.Icon,{name:"sync",spin:!0})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Materials",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:C,maxValue:h,children:[C," cm\xb3 / ",h," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Chemicals",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:V,children:[N,"u / ",V,"u"]})})]}),(0,o.createComponentVNode)(2,a.Tabs,{mt:1,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"wrench",selected:0===B,onClick:function(){return L(0)},children:"Build"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:w,iconSpin:x,color:_,selected:1===B,onClick:function(){return L(1)},children:"Queue"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cookie-bite",selected:2===B,onClick:function(){return L(2)},children:"Mat Storage"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"flask",selected:3===B,onClick:function(){return L(3)},children:"Chem Storage"})]}),0===B&&(0,o.createComponentVNode)(2,m,{target:s,designs:u,buildName:"Protolathe"===d?"build":"imprint",buildFiveName:"Protolathe"===d?"buildfive":null})||1===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:k.length&&k.map((function(e){return 1===e.index?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,labelColor:"bad",children:b?(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,o.createComponentVNode)(2,a.Box,{children:["(Awaiting Materials)",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})]})}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{m:1,children:"Queue Empty."})})||2===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:f.map((function(e){var t=(0,c.useLocalState)(n,"ejectAmt"+e.name,0),l=t[0],d=t[1];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NumberInput,{minValue:0,width:"100px",value:l,maxValue:e.sheets,onDrag:function(e,n){return d(n)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;d(0),i(I,((n={})[I]=e.name,n.amount=l,n))},children:"Num"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;return i(I,((n={})[I]=e.name,n.amount=50,n))},children:"All"})],4),children:[e.amount," cm\xb3"]},e.name)}))})||3===B&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:g.length&&g.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.volume,"u",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eject",onClick:function(){return i(y,{dispose:e.id})},children:"Purge"})]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"trash",onClick:function(){return i(T)},children:"Disposal All Chemicals In Storage"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})},C=[{name:"Protolathe",icon:"wrench",template:(0,o.createComponentVNode)(2,p,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,o.createComponentVNode)(2,p,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info.linked_destroy;if(!i.present)return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var l=i.loaded_item,d=i.origin_tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:l&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Origin Tech",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.level,"\xa0\xa0",e.current&&"(Current: "+e.current+")"]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){return r("deconstruct")},children:"Deconstruct Item"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_item")},children:"Eject Item"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"No Item Loaded. Standing-by..."})})}))},{name:"Settings",icon:"cog",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info,l=i.sync,d=i.linked_destroy,s=i.linked_imprinter,u=i.linked_lathe,m=(0,c.useSharedState)(n,"settingsTab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cogs",onClick:function(){return C(0)},selected:0===p,children:"General"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"link",onClick:function(){return C(1)},selected:1===p,children:"Device Linkages"})]}),0===p&&(0,o.createComponentVNode)(2,a.Box,{children:[l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",onClick:function(){return r("sync")},children:"Sync Database with Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"unlink",onClick:function(){return r("togglesync")},children:"Disconnect from Research Network"})],4)||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"link",onClick:function(){return r("togglesync")},children:"Connect to Research Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lock",onClick:function(){return r("lock")},children:"Lock Console"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){return r("reset")},children:"Reset R&D Database"})]})||1===p&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){return r("find_device")},children:"Re-sync with Nearby Devices"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[d.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destructive Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,u.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Protolathe",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,s.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Circuit Imprinter",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})}))},{name:"Research List",icon:"flask",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Current Research Levels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:1})},children:"Print This Page"}),children:(0,o.createComponentVNode)(2,a.Table,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{children:[" - Level ",e.level]})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.desc})})]},e.name)}))})})}))},{name:"Design List",icon:"file",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.designs;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:2})},children:"Print This Page"}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),s&&s.length&&(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.desc},e.name)}))})||(0,o.createComponentVNode)(2,a.Box,{color:"warning",children:"No designs found."})]})}))},{name:"Disk Operations",icon:"save",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.info),i=r.d_disk,l=r.t_disk;return i.present||l.present?(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:[(0,o.createComponentVNode)(2,s,{disk:l}),(0,o.createComponentVNode)(2,u,{disk:i})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:"No disk inserted."})}))}];n.ResearchConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=l.busy_msg,s=l.locked,u=(0,c.useSharedState)(n,"rdmenu",0),m=u[0],p=u[1],h=!1;return(d||s)&&(h=!0),(0,o.createComponentVNode)(2,i.Window,{width:850,height:630,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:e.icon,selected:m===n,disabled:h,onClick:function(){return p(n)},children:e.name},n)}))}),d&&(0,o.createComponentVNode)(2,a.Section,{title:"Processing...",children:d})||s&&(0,o.createComponentVNode)(2,a.Section,{title:"Console Locked",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("lock")},icon:"lock-open",children:"Unlock"})})||C[m].template]})})}},35606:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchServerController=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);n.ResearchServerController=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:430,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=(a.badmin,a.servers),l=(a.consoles,(0,r.useSharedState)(n,"selectedServer",null)),s=l[0],u=l[1],m=i.find((function(e){return e.id===s}));return m?(0,o.createComponentVNode)(2,d,{setSelectedServer:u,server:m}):(0,o.createComponentVNode)(2,c.Section,{title:"Server Selection",children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return u(e.id)},children:e.name})},e.name)}))})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.badmin),i=e.server,l=e.setSelectedServer,d=(0,r.useSharedState)(n,"tab",0),p=d[0],C=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:i.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return l(null)},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Access Rights"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Data Management"}),a&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===p,onClick:function(){return C(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),0===p&&(0,o.createComponentVNode)(2,s,{server:i})||null,1===p&&(0,o.createComponentVNode)(2,u,{server:i})||null,2===p&&a&&(0,o.createComponentVNode)(2,m,{server:i})||null]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.consoles,s=function(e,n){return-1!==e.id_with_upload.indexOf(n.id)},u=function(e,n){return-1!==e.id_with_download.indexOf(n.id)};return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Consoles",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.loc+")",children:[(0,o.createComponentVNode)(2,c.Button,{icon:s(l,e)?"lock-open":"lock",selected:s(l,e),onClick:function(){return a("toggle_upload",{server:l.ref,console:e.ref})},children:s(l,e)?"Upload On":"Upload Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:u(l,e)?"lock-open":"lock",selected:u(l,e),onClick:function(){return a("toggle_download",{server:l.ref,console:e.ref})},children:u(l,e)?"Download On":"Download Off"})]},e.name)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=(t.data,e.server);return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Research Levels",children:l.tech.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return a("reset_tech",{server:l.ref,tech:e.id})}})},e.name)}))}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Designs",children:(0,i.filter)((function(e){return!!e.name}))(l.designs).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return a("reset_design",{server:l.ref,design:e.id})}})},e.name)}))})],4)},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.badmin,s=i.servers;return d?(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Server Data Transfer",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,color:"bad",content:(0,o.createComponentVNode)(2,c.Box,{children:["Transfer from ",l.name," To ",e.name]}),onClick:function(){return a("transfer_data",{server:l.ref,target:e.ref})}})},e.name)}))}):null}},86330:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=(t(76270),t(16007)),l=t(85952),d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.obviously_dead,u=i.oocnotes,m=i.can_sleeve_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"user-plus",content:"Sleeve",onClick:function(){return r("sleeve",{ref:l,mode:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-plus",content:"Card",onClick:function(){return r("sleeve",{ref:l,mode:2})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:u})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.species,u=i.sex,m=i.mind_compat,p=i.synthetic,C=i.oocnotes,h=i.can_grow_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:p?"Yes":"No"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,a.Button,{disabled:!h,icon:"user-plus",content:p?"Build":"Grow",onClick:function(){return r("create",{ref:l})}})})]})})};n.ResleevingConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),h=(r.menu,r.coredumped),N=r.emergency,V=(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,k),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})],4);return h&&(V=(0,o.createComponentVNode)(2,p)),N&&(V=(0,o.createComponentVNode)(2,C)),(0,i.modalRegisterBodyOverride)("view_b_rec",s),(0,i.modalRegisterBodyOverride)("view_m_rec",d),(0,o.createComponentVNode)(2,l.Window,{width:640,height:520,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:V})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Body Records"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===i,icon:"folder",onClick:function(){return r("menu",{num:3})},children:"Mind Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data,a=r.menu,i=r.bodyrecords,l=r.mindrecords;return 1===a?t=(0,o.createComponentVNode)(2,h):2===a?t=(0,o.createComponentVNode)(2,f,{records:i,actToDo:"view_b_rec"}):3===a&&(t=(0,o.createComponentVNode)(2,f,{records:l,actToDo:"view_m_rec"})),t},p=function(e,n){return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,o.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},C=function(e,n){var t=(0,c.useBackend)(n).act;return(0,o.createComponentVNode)(2,a.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return t("ejectdisk")}})}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return t("coredump")}})})]})},h=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.loading,r.scantemp,r.occupant,r.locked,r.can_brainscan,r.scan_mode,r.pods,r.selected_pod;return(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,b),(0,o.createComponentVNode)(2,V)]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.pods,s=l.spods,u=l.selected_pod;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:u===e.pod,icon:u===e.pod&&"check",content:"Select",mt:s&&s.length?"2rem":"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):null},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.sleevers,d=i.spods,s=i.selected_sleever;return l&&l.length?l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(e.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:e.occupied?"label":"bad",children:e.name}),(0,o.createComponentVNode)(2,a.Button,{selected:s===e.sleever,icon:s===e.sleever&&"check",content:"Select",mt:d&&d.length?"3rem":"1.5rem",onClick:function(){return r("selectsleever",{ref:e.sleever})}})]},n)})):null},b=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.spods,s=l.selected_printer;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:s===e.spod,icon:s===e.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectprinter",{ref:e.spod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(e.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.steel>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.steel>=15e3?"circle":"circle-o"}),"\xa0",e.steel]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.glass>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.glass>=15e3?"circle":"circle-o"}),"\xa0",e.glass]}),t]},n)})):null},f=function(e,n){var t=(0,c.useBackend)(n).act,r=e.records,i=e.actToDo;return r.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:r.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.name,onClick:function(){return t(i,{ref:e.recref})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},g=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},k=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.pods,l=r.spods,d=r.sleevers;r.autoallowed,r.autoprocess,r.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:i&&i.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[i.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SynthFabs",children:l&&l.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[l.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sleevers",children:d&&d.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d.length," Connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},88359:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingPod=void 0;var o=t(39812),r=t(85952),c=t(71494),a=t(74814);n.ResleevingPod=function(e,n){var t=(0,c.useBackend)(n).data,i=t.occupied,l=t.name,d=t.health,s=t.maxHealth,u=t.stat,m=t.mindStatus,p=t.mindName,C=t.resleeveSick,h=t.initialSick;return(0,o.createComponentVNode)(2,r.Window,{width:300,height:350,resizeable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",children:i?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:2===u?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"}):1===u?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Unconscious"}):(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:d/s,children:[d,"%"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Status",children:m?"Present":"Missing"}),m?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),C?(0,o.createComponentVNode)(2,a.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",h?(0,o.createFragment)([(0,o.createTextVNode)(" Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],4):""]}):""],0):(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}},24455:function(e,n,t){"use strict";n.__esModule=!0,n.RoboticsControlConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RoboticsControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.can_hack,u=d.safety,m=d.show_detonate_all,p=d.cyborgs,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:460,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,i,{cyborgs:C,can_hack:s})]})})};var i=function(e,n){var t=e.cyborgs,a=(e.can_hack,(0,r.useBackend)(n)),i=a.act,l=a.data;return t.length?t.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,c.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return i("hackbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return i("stopbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return i("killbot",{ref:e.ref})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,c.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,c.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,c.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.ref)})):(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No cyborg units detected within access parameters."})}},52330:function(e,n,t){"use strict";n.__esModule=!0,n.RogueZones=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RogueZones=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.timeout_percent,s=l.diffstep,u=l.difficulty,m=l.occupied,p=l.scanning,C=l.updated,h=l.debug,N=l.shuttle_location,V=l.shuttle_at_station,b=l.scan_ready,f=l.can_recall_shuttle;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Current Area",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mineral Content",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle Location",buttons:f&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"rocket",onClick:function(){return i("recall_shuttle")},children:"Recall Shuttle"})||null,children:N}),m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",m," personnel!"]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!b,fluid:!0,icon:"search",onClick:function(){return i("scan_for_new")},children:"Scan For Asteroids"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:100,ranges:{good:[100,Infinity],average:[75,100],bad:[-Infinity,75]}})}),p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,C&&!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,o.createComponentVNode)(2,c.Box,{children:["Timeout Percent: ",d]}),(0,o.createComponentVNode)(2,c.Box,{children:["Diffstep: ",s]}),(0,o.createComponentVNode)(2,c.Box,{children:["Difficulty: ",u]}),(0,o.createComponentVNode)(2,c.Box,{children:["Occupied: ",m]}),(0,o.createComponentVNode)(2,c.Box,{children:["Debug: ",h]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle Location: ",N]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle at station: ",V]}),(0,o.createComponentVNode)(2,c.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}},59412:function(e,n,t){"use strict";n.__esModule=!0,n.RustCoreMonitorContent=n.RustCoreMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustCoreMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.cores;return(0,o.createComponentVNode)(2,a.Section,{title:"Cores",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reactant Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Instability"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Temperature"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Strength"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Plasma Content"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.has_field?"Online":"Offline",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_active",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.reactant_dump?"Dump":"Maintain",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_reactantdump",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_instability}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_temperature}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.has_field&&"yellow",value:e.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(n,t){return c("set_fieldstr",{core:e.ref,fieldstr:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell)]},e.name)}))]})})};n.RustCoreMonitorContent=i},59327:function(e,n,t){"use strict";n.__esModule=!0,n.RustFuelContent=n.RustFuelControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustFuelControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.fuels;return(0,o.createComponentVNode)(2,a.Section,{title:"Fuel Injectors",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Remaining Fuel"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fuel Rod Composition"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{fuel:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_amt}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_type})]},e.name)}))]})})};n.RustFuelContent=i},54943:function(e,n,t){"use strict";n.__esModule=!0,n.Secbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Secbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.idcheck,p=l.check_records,C=l.check_arrest,h=l.arrest_type,N=l.declare_arrests,V=l.bot_patrolling,b=l.patrol;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:320,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Security Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("idcheck")},children:m?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Security Records",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("ignorerec")},children:p?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Arrest Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("ignorearr")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Operating Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("switchmode")},children:h?"Detain":"Arrest"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Report Arrests",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("declarearrests")},children:N?"Yes":"No"})}),!!V&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Auto Patrol",children:(0,o.createComponentVNode)(2,c.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return i("patrol")},children:b?"Yes":"No"})})]})})||null]})})}},57436:function(e,n,t){"use strict";n.__esModule=!0,n.SecureSafe=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.l_setshort,s=i.code,u=i.emagged;return(0,o.createComponentVNode)(2,c.Box,{width:"185px",children:(0,o.createComponentVNode)(2,c.Grid,{width:"1px",children:[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,c.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,mb:"6px",content:e,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!u||!!d&&1||"R"!==e&&!l||"ERROR"===s&&"R"!==e&&1,onClick:function(){return a("type",{digit:e})}},e)}))},e[0])}))})})};n.SecureSafe=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.code,s=l.l_setshort,u=l.l_set,m=l.emagged,p=l.locked,C=!(u||s);return(0,o.createComponentVNode)(2,a.Window,{width:250,height:380,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{m:"6px",children:[C&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,o.createComponentVNode)(2,c.Section,{height:"60px",children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",position:"center",fontSize:"35px",children:d&&d||(0,o.createComponentVNode)(2,c.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,o.createComponentVNode)(2,c.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}},71915:function(e,n,t){"use strict";n.__esModule=!0,n.SecurityRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.SecurityRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N&&(t=(0,o.createComponentVNode)(2,C)),(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,c.Section,{flexGrow:!0,children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",color:e.color,content:e.id+": "+e.name+" (Criminal Status: "+e.criminal+")",onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.security,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Security Data",children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Security Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return a("del_r_2")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.general;return i&&i.fields?(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:i.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Flex.Item,{textAlign:"right",children:[!!i.has_photos&&i.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)})),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_front")},children:"Update Front Photo"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_side")},children:"Update Side Photo"})]})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Security records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,icon:"list",onClick:function(){return a("screen",{screen:2})},children:"List Records"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"wrench",selected:3===i,onClick:function(){return a("screen",{screen:3})},children:"Record Maintenance"})]})}},93550:function(e,n,t){"use strict";n.__esModule=!0,n.SeedStorage=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(64499);n.SeedStorage=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.scanner,s.seeds),m=(0,l.sortBy)((function(e){return e.name.toLowerCase()}))(u);return(0,o.createComponentVNode)(2,a.Window,{width:600,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Seeds",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"60%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,i.toTitleCase)(e.name)+" #"+e.uid,children:(0,o.createComponentVNode)(2,c.Section,{width:"165%",title:"Traits",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:Object.keys(e.traits).map((function(n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.toTitleCase)(n),children:e.traits[n]},n)}))})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{mt:.4,children:[e.amount," Remaining"]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"download",onClick:function(){return d("vend",{id:e.id})},children:"Vend"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"trash",onClick:function(){return d("purge",{id:e.id})},children:"Purge"})})]},e.name+e.uid)}))})})})}},16765:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldCapacitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083);n.ShieldCapacitor=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=s.active,m=s.time_since_fail,p=s.stored_charge,C=s.max_charge,h=s.charge_rate,N=s.max_charge_rate;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return d("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor Status",children:m>2?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stored Energy",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return(0,l.formatSiUnit)(e,0,"J")}})," (",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:100*(0,i.round)(p/C,1)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:h,step:100,stepPixelSize:.2,minValue:1e4,maxValue:N,format:function(e){return(0,l.formatPower)(e)},onDrag:function(e,n){return d("charge_rate",{rate:n})}})})]})})})})}},79229:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldGenerator=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083),d=t(67861);n.ShieldGenerator=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.locked);return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:a?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,u)})})};var s=function(e,n){return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Locked",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},u=function(e,n){var t=(0,r.useBackend)(n),c=t.act,d=t.data.lockedData,s=d.capacitors,u=d.active,m=d.failing,p=d.radius,C=d.max_radius,h=d.z_range,N=d.max_z_range,V=d.average_field_strength,b=d.target_field_strength,f=d.max_field_strength,g=d.shields,k=d.upkeep,v=d.strengthen_rate,B=d.max_strengthen_rate,L=d.gen_power,_=(s||[]).length;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Field Status",children:m?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unstable"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Stable"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overall Field Strength",children:[(0,i.round)(V,2)," Renwick (",b&&(0,i.round)(100*V/b,1)||"NA","%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upkeep Power",children:(0,l.formatPower)(k)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shield Generation Power",children:(0,l.formatPower)(L)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Currently Shielded",children:[g," m\xb2"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:_?s.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor #"+n,children:[e.active?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Online"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Offline"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[(0,l.formatSiUnit)(e.stored_charge,0,"J")," (",100*(0,i.round)(e.stored_charge/e.max_charge,2),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:e.failing?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."})})]})]},n)})):(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:u?"Online":"Offline",selected:u,onClick:function(){return c("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coverage Radius",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:C,value:p,unit:"m",onDrag:function(e,n){return c("change_radius",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vertical Shielding",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:N,value:h,unit:"vertical range",onDrag:function(e,n){return c("z_range",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:B,value:v,format:function(e){return(0,i.round)(e,1)},unit:"Renwick/s",onDrag:function(e,n){return c("strengthen_rate",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maximum Field Strength",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:f,value:b,unit:"Renwick",onDrag:function(e,n){return c("target_field_strength",{val:n})}})})]})})],4)}},89957:function(e,n,t){"use strict";n.__esModule=!0,n.ShutoffMonitorContent=n.ShutoffMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.ShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.valves;return(0,o.createComponentVNode)(2,a.Section,{title:"Valves",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Open"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.open?"Yes":"No"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.enabled?"Auto":"Manual"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.open?"Opened":"Closed",selected:e.open,disabled:!e.enabled,onClick:function(){return c("toggle_open",{valve:e.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.enabled?"Auto":"Manual",selected:e.enabled,onClick:function(){return c("toggle_enable",{valve:e.ref})}})]})]},e.name)}))]})})};n.ShutoffMonitorContent=i},34404:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleControl=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t="ERROR",r="bad",c=!1;return"docked"===e?(t="DOCKED",r="good"):"docking"===e?(t="DOCKING",r="average",c=!0):"undocking"===e?(t="UNDOCKING",r="average",c=!0):"undocked"===e&&(t="UNDOCKED",r="#676767"),c&&n&&(t+="-MANUAL"),(0,o.createComponentVNode)(2,a.Box,{color:r,children:t})},d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.engineName,s=void 0===d?"Bluespace Drive":d,u=i.shuttle_status,m=i.shuttle_state,p=i.has_docking,C=i.docking_status,h=i.docking_override,N=i.docking_codes;return(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:u}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:s,children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",children:l(C,h)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Codes",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return r("set_codes")},children:N||"Not Set"})})],4)||null]})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_launch,d=i.can_cancel,s=i.can_force;return(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("move")},disabled:!l,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("cancel")},disabled:!d,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("force")},color:"bad",disabled:!s,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},u={ShuttleControlConsoleDefault:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleMulti:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_cloak,u=i.can_pick,m=i.legit,p=i.cloaked,C=i.destination_name;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Multishuttle Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:m?"ATC Inhibitor":"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:p,icon:p?"eye":"eye-o",onClick:function(){return r("toggle_cloaked")},children:p?"Enabled":"Disabled"})})||null,(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!u,onClick:function(){return r("pick")},children:C})})]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleExploration:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_pick,u=i.destination_name,m=i.fuel_usage,p=i.fuel_span,C=i.remaining_fuel;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d,{engineName:"Engines"}),(0,o.createComponentVNode)(2,a.Section,{title:"Jump Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!l,onClick:function(){return r("pick")},children:u})}),m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Est. Delta-V Budget",color:p,children:[C," m/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[m," m/s"]})],4)||null]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleWeb:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.autopilot,u=d.can_rename,m=d.shuttle_state,p=d.is_moving,C=d.skip_docking,h=d.docking_status,N=d.docking_override,V=d.shuttle_location,b=d.can_cloak,f=d.cloaked,g=d.can_autopilot,k=d.routes,v=d.is_in_transit,B=d.travel_progress,L=d.time_left,_=d.doors,x=d.sensors;return(0,o.createFragment)([s&&(0,o.createComponentVNode)(2,a.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",buttons:u&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return i("rename_command")},children:"Rename"})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Engines",children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Location",children:(0,r.toTitleCase)(V)}),!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{selected:"docked"===h,disabled:"undocked"!==h&&"docked"!==h,onClick:function(){return i("dock_command")},children:"Dock"}),(0,o.createComponentVNode)(2,a.Button,{selected:"undocked"===h,disabled:"docked"!==h&&"undocked"!==h,onClick:function(){return i("undock_command")},children:"Undock"})],4),children:(0,o.createComponentVNode)(2,a.Box,{bold:!0,inline:!0,children:l(h,N)})})||null,b&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:f,icon:f?"eye":"eye-o",onClick:function(){return i("toggle_cloaked")},children:f?"Enabled":"Disabled"})})||null,g&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Autopilot",children:(0,o.createComponentVNode)(2,a.Button,{selected:s,icon:s?"eye":"eye-o",onClick:function(){return i("toggle_autopilot")},children:s?"Enabled":"Disabled"})})||null],0)||null]}),!p&&(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Available Destinations",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:k.length&&k.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"rocket",onClick:function(){return i("traverse",{traverse:e.index})},children:e.travel_time})},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),v&&(0,o.createComponentVNode)(2,a.Section,{title:"Transit ETA",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance from target",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",minValue:0,maxValue:100,value:B,children:[L,"s"]})})})})||null,Object.keys(_).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Hatch Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(_).map((function(e){var n=_[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.open&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Open"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Closed"}),"\xa0-\xa0",n.bolted&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Bolted"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Unbolted"})]},e)}))})})||null,Object.keys(x).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(x).map((function(e){var n=x[e];return-1!==n.reading?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:"bad",children:"Unable to get sensor air reading."}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[n.pressure,"kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[n.temp,"\xb0C"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Oxygen",children:[n.oxygen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nitrogen",children:[n.nitrogen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Carbon Dioxide",children:[n.carbon_dioxide,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Phoron",children:[n.phoron,"%"]}),n.other&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other",children:[n.other,"%"]})||null]})},e)}))})})||null],0)}))};n.ShuttleControl=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.subtemplate);return(0,o.createComponentVNode)(2,i.Window,{width:470,height:"ShuttleControlConsoleWeb"===r?560:370,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:u[r]})})}},32325:function(e,n,t){"use strict";n.__esModule=!0,n.SignalerContent=n.Signaler=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Signaler=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:280,height:132,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.code,s=l.frequency,u=l.minFrequency,m=l.maxFrequency;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:m/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,n){return i("freq",{freq:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"freq"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.6,children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(e,n){return i("code",{code:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"code"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.8,children:(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return i("signal")}})})})]})};n.SignalerContent=l},80646:function(e,n,t){"use strict";n.__esModule=!0,n.Sleeper=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.Sleeper=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.hasOccupant?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,V));return(0,o.createComponentVNode)(2,i.Window,{width:550,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:r})})};var m=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=(r.occupant,r.dialysis),i=r.stomachpumping;return(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h,{title:"Dialysis",active:a,actToDo:"togglefilter"}),(0,o.createComponentVNode)(2,h,{title:"Stomach Pump",active:i,actToDo:"togglepump"}),(0,o.createComponentVNode)(2,N)],4)},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant,m=d.auto_eject_dead,p=d.stasis;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,content:m?"On":"Off",onClick:function(){return i("auto_eject_dead_"+(m?"off":"on"))}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return i("ejectify")}}),(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return i("changestasis")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:0,max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(s.health,0)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxTemp,value:s.bodyTemperature/s.maxTemp,color:u[s.temperatureSuitability+3],children:[(0,r.round)(s.btCelsius,0),"\xb0C,",(0,r.round)(s.btFaren,0),"\xb0F"]})}),!!s.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.bloodMax,value:s.bloodLevel/s.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[s.bloodPercent,"%, ",s.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[s.pulse," BPM"]})],4)]})})},C=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]],0)},n)},n)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerMaxSpace,s=i.beakerFreeSpace,u=e.active,m=e.actToDo,p=e.title,C=u&&s>0;return(0,o.createComponentVNode)(2,a.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!l||s<=0,selected:C,icon:C?"toggle-on":"toggle-off",content:C?"Active":"Inactive",onClick:function(){return r(m)}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:l?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:s/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[s,"u"]})})}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.occupant,d=i.chemicals,s=i.maxchem,u=i.amounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Chemicals",flexGrow:"1",children:d.map((function(e,n){var t,c="";return e.overdosing?(c="bad",t=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(c="average",t=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:t,children:(0,o.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s,value:e.occ_amount/s,color:c,mr:"0.5rem",children:[e.pretty_amount,"/",s,"u"]}),u.map((function(n,t){return(0,o.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+n>s||2===l.stat,icon:"syringe",content:n,mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:n})}},t)}))]})})},n)}))})},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isBeakerLoaded;return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected.",i&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){return r("removebeaker")}})})||null]})})})}},55896:function(e,n,t){"use strict";n.__esModule=!0,n.SmartVend=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.SmartVend=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.config,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:440,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Storage",children:[s.secure&&(0,o.createComponentVNode)(2,a.NoticeBox,{danger:-1===s.locked,info:-1!==s.locked,children:-1===s.locked?(0,o.createComponentVNode)(2,a.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,o.createComponentVNode)(2,a.Box,{children:"Secure Access: Please have your identification ready."})})||null,0===s.contents.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Unfortunately, this ",d.title," is empty."]})||(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Item"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,r.map)((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:[e.amount," in stock"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"1",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:1})}}),(0,o.createComponentVNode)(2,a.Button,{content:"5",disabled:e.amount<5,onClick:function(){return l("Release",{index:e.index,amount:5})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Custom",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index})}}),(0,o.createComponentVNode)(2,a.Button,{content:"All",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:e.amount})}})]})]},n)}))(s.contents)]})]})})})}},20561:function(e,n,t){"use strict";n.__esModule=!0,n.Smes=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(58083),i=t(85952),l=t(41860),d=1e3;n.Smes=function(e,n){var t=(0,r.useBackend)(n),s=t.act,u=t.data,m=u.capacityPercent,p=u.capacity,C=u.charge,h=u.inputAttempt,N=u.inputting,V=u.inputLevel,b=u.inputLevelMax,f=u.inputAvailable,g=u.outputAttempt,k=u.outputting,v=u.outputLevel,B=u.outputLevelMax,L=u.outputUsed,_=(m>=100?"good":N&&"average")||"bad",x=(k?"good":C>0&&"average")||"bad";return(0,o.createComponentVNode)(2,i.Window,{width:340,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:.01*m,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,l.round)(C/6e4,1)," kWh / ",(0,l.round)(p/6e4)," kWh (",m,"%)"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Input",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){return s("tryinput")},children:h?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:_,children:(m>=100?"Fully Charged":N&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===V,onClick:function(){return s("input",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===V,onClick:function(){return s("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:V/d,fillValue:f/d,minValue:0,maxValue:b/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("input",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:V===b,onClick:function(){return s("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:V===b,onClick:function(){return s("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Available",children:(0,a.formatPower)(f)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:g?"power-off":"times",selected:g,onClick:function(){return s("tryoutput")},children:g?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:x,children:k?"Sending":C>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===v,onClick:function(){return s("output",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===v,onClick:function(){return s("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:v/d,minValue:0,maxValue:B/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("output",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:v===B,onClick:function(){return s("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:v===B,onClick:function(){return s("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Outputting",children:(0,a.formatPower)(L)})]})})]})})}},21633:function(e,n,t){"use strict";n.__esModule=!0,n.SolarControl=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.SolarControl=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.generated,u=d.generated_ratio,m=d.sun_angle,p=d.array_angle,C=d.rotation_rate,h=d.max_rotation_rate,N=d.tracking_state,V=d.connected_panels,b=d.connected_tracker;return(0,o.createComponentVNode)(2,a.Window,{width:380,height:230,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,c.Grid,{children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(0,o.createComponentVNode)(2,c.Grid.Column,{size:1.5,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:u,children:s+" W"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Star orientation",children:[m,"\xb0"]})]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tracking",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:0===N,onClick:function(){return l("tracking",{mode:0})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"clock-o",content:"Timed",selected:1===N,onClick:function(){return l("tracking",{mode:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:2===N,disabled:!b,onClick:function(){return l("tracking",{mode:2})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Azimuth",children:[(0===N||1===N)&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"52px",unit:"\xb0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:p,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth",{value:n})}}),1===N&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-h-.01,maxValue:h+.01,value:C,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth_rate",{value:n})}}),2===N&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mt:"3px",children:[p+"\xb0"," (auto)"]})]})]})})]})})}},57762:function(e,n,t){"use strict";n.__esModule=!0,n.SpaceHeater=void 0;var o=t(39812),r=t(76270),c=t(71494),a=t(74814),i=t(85952);n.SpaceHeater=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.temp,u=d.minTemp,m=d.maxTemp,p=d.cell,C=d.power;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:[s," K (",s-r.T0C,"\xb0 C)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Charge",children:[C,"% ",!p&&"(No Cell Inserted)"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Knob,{animated:!0,value:s-r.T0C,minValue:u-r.T0C,maxValue:m-r.T0C,unit:"C",onChange:function(e,n){return l("temp",{newtemp:n+r.T0C})}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Cell",children:p?(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Cell",onClick:function(){return l("cellremove")}}):(0,o.createComponentVNode)(2,a.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){return l("cellinstall")}})})]})})]})})}},58215:function(e,n,t){"use strict";n.__esModule=!0,n.Stack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);n.Stack=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.amount,s=l.recipes;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Amount: "+d,children:(0,o.createComponentVNode)(2,i,{recipes:s})})})})};var i=function s(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.recipes);return Object.keys(a).sort().map((function(e){var n=a[e];return n.ref===undefined?(0,o.createComponentVNode)(2,c.Collapsible,{ml:1,mb:-.7,color:"label",title:e,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,children:(0,o.createComponentVNode)(2,s,{recipes:n})})}):(0,o.createComponentVNode)(2,d,{title:e,recipe:n})}))},l=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.recipe),l=e.maxMultiplier,d=Math.min(l,Math.floor(i.max_res_amount/i.res_amount)),s=[5,10,25],u=[],m=function(){var e=C[p];d>=e&&u.push((0,o.createComponentVNode)(2,c.Button,{content:e*i.res_amount+"x",onClick:function(){return a("make",{ref:i.ref,multiplier:e})}}))},p=0,C=s;p1?"s":""),C+=")",u>1&&(C=u+"x "+C);var h=function(e,n){return e.req_amount>n?0:Math.floor(n/e.req_amount)}(d,i);return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Table,{children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,disabled:!h,icon:"wrench",content:C,onClick:function(){return a("make",{ref:d.ref,multiplier:1})}})}),m>1&&h>1&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,l,{recipe:d,maxMultiplier:h})})]})})})}},32015:function(e,n,t){"use strict";n.__esModule=!0,n.StationAlertConsoleContent=n.StationAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,a.Window,{width:425,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.categories;return(void 0===i?[]:i).map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.category,children:(0,o.createVNode)(1,"ul",null,[0===e.alarms.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),e.alarms.map((function(e){var n="";return e.has_cameras?n=(0,o.createComponentVNode)(2,c.Section,{children:e.cameras.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{disabled:e.deact,content:e.name+(e.deact?" (deactived)":""),icon:"video",onClick:function(){return a("switchTo",{camera:e.camera})}},e.name)}))}):e.lost_sources&&(n=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Lost Alarm Sources: ",e.lost_sources]})),(0,o.createVNode)(1,"li",null,[e.name,e.origin_lost?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Alarm Origin Lost."}):"",n],0,null,e.name)}))],0)},e.category)}))};n.StationAlertConsoleContent=i},52649:function(e,n,t){"use strict";n.__esModule=!0,n.StationBlueprintsContent=n.StationBlueprints=void 0;var o=t(39812),r=(t(64499),t(85531),t(34380),t(2497),t(71494)),c=t(74814),a=t(85952);n.StationBlueprints=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,i)})};var i=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=(t.config,i.mapRef);i.areas,i.turfs;return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,o.createVNode)(1,"div","CameraConsole__right",(0,o.createComponentVNode)(2,c.ByondUi,{className:"CameraConsole__map",params:{id:l,type:"map"}}),2)],4)};n.StationBlueprintsContent=i},84178:function(e,n,t){"use strict";n.__esModule=!0,n.StockExchange=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.StockExchange=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.stationName,s=l.balance,u=l.viewMode,m=l.stocks,p=void 0===m?[]:m;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:d+" Stock Exchange",children:[(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("Welcome, "),(0,o.createVNode)(1,"b",null,[d,(0,o.createTextVNode)(" Cargo Department")],0),(0,o.createTextVNode)(" | ")],4),(0,o.createVNode)(1,"span",null,[(0,o.createVNode)(1,"b",null,"Credits:",16),(0,o.createTextVNode)(" "),s],0),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"View mode: ",16),(0,o.createComponentVNode)(2,c.Button,{content:u,onClick:function(){return i("stocks_cycle_view")}}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"Stock Transaction Log: ",16),(0,o.createComponentVNode)(2,c.Button,{icon:"list",content:"Check",onClick:function(){return i("stocks_check")}}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"This is a work in progress. Certain features may not be available.",16)]}),(0,o.createComponentVNode)(2,c.Section,{title:"Listed Stocks",children:[(0,o.createVNode)(1,"b",null,"Actions:",16)," + Buy, - Sell, (A)rchives, (H)istory",(0,o.createComponentVNode)(2,c.Divider),(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:"\xa0"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"ID"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Owned"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Avail"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),(0,o.createComponentVNode)(2,c.Divider),p.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:"\xa0"}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:"label",children:e.ID}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:"label",children:e.Name}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:"label",children:e.Value}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:"label",children:e.Owned}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:"label",children:e.Avail}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:"label",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",disabled:!1,onClick:function(){return i("stocks_buy")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"minus",disabled:!1,onClick:function(){return i("stocks_sell")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"A",onClick:function(){return i("stocks_archive")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"H",onClick:function(){return i("stocks_history")}}),(0,o.createVNode)(1,"br")]})]},e.ID)}))]})]})]})})}},72e3:function(e,n,t){"use strict";n.__esModule=!0,n.SuitCycler=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitCycler=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.active,m=c.locked,p=c.uv_active,C=(0,o.createComponentVNode)(2,i);return p?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):u&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:320,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.occupied,s=i.suit,u=i.helmet,m=i.departments,p=i.species,C=i.uv_level,h=i.max_uv_level,N=i.can_repair,V=i.damage;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Storage",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",content:"Lock",onClick:function(){return a("lock")}}),children:[!(!d||!l)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"square":"square-o",content:u||"Empty",disabled:!u,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"square":"square-o",content:s||"Empty",disabled:!s,onClick:function(){return a("dispense",{item:"suit"})}})}),N&&V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit Damage",children:[V,(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"Repair",onClick:function(){return a("repair_suit")}})]}):null]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Customization",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Paintjob",children:(0,o.createComponentVNode)(2,c.Dropdown,{noscroll:!0,width:"100%",options:m,selected:m[0],onSelected:function(e){return a("department",{department:e})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Species",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",maxHeight:"160px",options:p,selected:p[0],onSelected:function(e){return a("species",{species:e})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){return a("apply_paintjob")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"UV Decontamination",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,c.NumberInput,{width:"50px",value:C,minValue:1,maxValue:h,stepPixelSize:30,onChange:function(e,n){return a("radlevel",{radlevel:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Decontaminate",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",disabled:d&&l,textAlign:"center",onClick:function(){return a("uv")}})})]})})],4)},l=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.model_text,d=i.userHasAccess;return(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",bold:!0,children:["The ",l," suit cycler is currently locked. Please contact your system administrator."]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",content:"[Unlock]",disabled:!d,onClick:function(){return a("lock")}})})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},80748:function(e,n,t){"use strict";n.__esModule=!0,n.SuitStorageUnit=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitStorageUnit=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.panelopen,m=c.uv_active,p=c.broken,C=(0,o.createComponentVNode)(2,i);return u?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):p&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:365,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.open,s=i.safeties,u=i.occupied,m=i.suit,p=i.helmet,C=i.mask;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",minHeight:"260px",buttons:(0,o.createFragment)([!d&&(0,o.createComponentVNode)(2,c.Button,{icon:l?"unlock":"lock",content:l?"Unlock":"Lock",onClick:function(){return a("lock")}}),!l&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return a("door")}})],0),children:[!(!u||!s)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),l&&(0,o.createComponentVNode)(2,c.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,o.createComponentVNode)(2,c.Box,{children:"Unit Locked"}),(0,o.createComponentVNode)(2,c.Icon,{name:"lock"})]})||d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"square":"square-o",content:m||"Empty",disabled:!m,onClick:function(){return a("dispense",{item:"suit"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return a("dispense",{item:"mask"})}})})]})||(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:u&&s,textAlign:"center",onClick:function(){return a("uv")}})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.uv_super;return(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:[(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Knob,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(e){return e?"15nm":"185nm"},onChange:function(e,n){return a("toggleUV")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The ",l?(0,o.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,o.createVNode)(1,"font",null,"RED",16,{color:"red"})," LED is on.",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return a("togglesafeties")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"black":"red",mr:2}),(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"green":"black"})]})]})]})]})},d=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},6951:function(e,n,t){"use strict";n.__esModule=!0,n.SupermatterMonitorContent=n.SupermatterMonitor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=t(41860),l=t(2497);n.SupermatterMonitor=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n);t.act;return t.data.active?(0,o.createComponentVNode)(2,u):(0,o.createComponentVNode)(2,s)};n.SupermatterMonitorContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.supermatters;return(0,o.createComponentVNode)(2,c.Section,{title:"Supermatters Detected",buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Refresh",icon:"sync",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,c.Section,{title:e.area_name+" (#"+e.uid+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:[e.integrity," %"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View Details",onClick:function(){return a("set",{set:e.uid})}})})]})})},n)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.SM_area,u=d.SM_integrity,m=d.SM_power,p=d.SM_ambienttemp,C=d.SM_ambientpressure,h=d.SM_EPR,N=d.SM_gas_O2,V=d.SM_gas_CO2,b=d.SM_gas_N2,f=d.SM_gas_PH,g=d.SM_gas_N2O;return(0,o.createComponentVNode)(2,c.Section,{title:(0,l.toTitleCase)(s),buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return a("clear")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Core Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{animated:!0,value:u,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,c.Box,{color:(m>300?"bad":m>150&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" MeV/cm\xb3"},value:m})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.Box,{color:(p>5e3?"bad":p>4e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" K"},value:p})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.Box,{color:(C>1e4?"bad":C>5e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" kPa"},value:C})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chamber EPR",children:(0,o.createComponentVNode)(2,c.Box,{color:(h>4?"bad":h>1&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)},value:h})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gas Composition",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"O\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:N}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"CO\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"PH",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2O",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),"%"]})]})})]})})}},12431:function(e,n,t){"use strict";n.__esModule=!0,n.SupplyConsole=void 0;var o=t(39812),r=t(64499),c=(t(41860),t(58083)),a=t(71494),i=t(74814),l=t(16007),d=t(85952),s=t(85531),u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.supply_points,l=e.args,d=l.name,s=l.cost,u=l.manifest,m=l.ref,p=l.random;return(0,o.createComponentVNode)(2,i.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:d,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"shopping-cart",content:"Buy - "+s+" points",disabled:s>c,onClick:function(){return r("request_crate",{ref:m})}}),children:(0,o.createComponentVNode)(2,i.Section,{title:"Contains"+(p?" any "+p+" of:":""),scrollable:!0,height:"200px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})})};n.SupplyConsole=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data;return(0,l.modalRegisterBodyOverride)("view_crate",u),(0,o.createComponentVNode)(2,d.Window,{width:700,height:620,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"100%"}),(0,o.createComponentVNode)(2,i.Section,{title:"Supply Records",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,p)]})]})})};var m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.supply_points,s=l.shuttle,u=null,m=!1;return l.shuttle_auth&&(1===s.launch&&0===s.mode?u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Away",onClick:function(){return r("send_shuttle",{mode:"send_away"})}}):2!==s.launch||3!==s.mode&&1!==s.mode?1===s.launch&&5===s.mode&&(u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){return r("send_shuttle",{mode:"send_to_station"})}})):u=(0,o.createComponentVNode)(2,i.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){return r("send_shuttle",{mode:"cancel_shuttle"})}}),s.force&&(m=!0)),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supply Points",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d})})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",buttons:(0,o.createFragment)([u,m?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return r("send_shuttle",{mode:"force_shuttle"})}}):null],0),children:s.location}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engine",children:s.engine}),4===s.mode?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ETA",children:s.time>1?(0,c.formatTime)(s.time):"LATE"}):null]})})]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.order_auth,(0,a.useLocalState)(n,"tabIndex",0)),c=r[0],l=r[1];return(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"box",selected:0===c,onClick:function(){return l(0)},children:"Request"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"check-circle-o",selected:1===c,onClick:function(){return l(1)},children:"Accepted"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"circle-o",selected:2===c,onClick:function(){return l(2)},children:"Requests"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:3===c,onClick:function(){return l(3)},children:"Order history"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:4===c,onClick:function(){return l(4)},children:"Export history"})]}),0===c?(0,o.createComponentVNode)(2,C):null,1===c?(0,o.createComponentVNode)(2,h,{mode:"Approved"}):null,2===c?(0,o.createComponentVNode)(2,h,{mode:"Requested"}):null,3===c?(0,o.createComponentVNode)(2,h,{mode:"All"}):null,4===c?(0,o.createComponentVNode)(2,N):null]})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.categories,u=l.supply_packs,m=l.contraband,p=l.supply_points,C=(0,a.useLocalState)(n,"activeCategory",null),h=C[0],N=C[1],V=(0,s.flow)([(0,r.filter)((function(e){return e.group===h})),(0,r.filter)((function(e){return!e.contraband||m})),(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return e.cost>p}))])(u);return(0,o.createComponentVNode)(2,i.Section,{level:2,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e,selected:e===h,onClick:function(){return N(e)}},e)}))})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,ml:2,children:(0,o.createComponentVNode)(2,i.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:V.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Stack,{align:"center",justify:"flex-start",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"70%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:e.name,color:e.cost>p?"red":null,onClick:function(){return c("request_crate",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"#",color:e.cost>p?"red":null,onClick:function(){return c("request_crate_multi",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"C",color:e.cost>p?"red":null,onClick:function(){return c("view_crate",{crate:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:[e.cost," points"]})]})},e.name)}))})})]})})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.mode,d=c.orders,s=c.order_auth,u=c.supply_points,m=d.filter((function(e){return e.status===l||"All"===l}));return m.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:["Requested"===l&&s?(0,o.createComponentVNode)(2,i.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return r("clear_all_requests")}}):null,m.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{title:"Order "+(n+1),buttons:"All"===l&&s?(0,o.createComponentVNode)(2,i.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return r("delete_order",{ref:e.ref})}}):null,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.entries.map((function(n){return n.entry?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:s?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){r("edit_order_value",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry}):null})),"All"===l?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.status}):null]}),s&&"Requested"===l?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Approve",disabled:e.cost>u,onClick:function(){return r("approve_order",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Deny",onClick:function(){return r("deny_order",{ref:e.ref})}})],4):null]},n)}))]}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No orders found."})},N=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.receipts,d=c.order_auth;return l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.title.map((function(n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:d?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry},n.field)})),e.error?(0,o.createComponentVNode)(2,i.LabeledList.Item,{labelColor:"red",label:"Error",children:e.error}):e.contents.map((function(n,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.object,buttons:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit_field",{ref:e.ref,index:t+1,edit:"meow","default":n.object})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){return r("export_delete_field",{ref:e.ref,index:t+1})}})],4):null,children:[n.quantity,"x -> ",n.value," points"]},t)}))]}),d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return r("export_add_field",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Delete Record",onClick:function(){return r("export_delete",{ref:e.ref})}})],4):null]},n)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No receipts found."})}},30111:function(e,n,t){"use strict";n.__esModule=!0,n.TEGenerator=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.TEGenerator=function(e,n){var t=(0,c.useBackend)(n).data,r=t.totalOutput,s=t.maxTotalOutput,u=t.thermalOutput,m=t.primary,p=t.secondary;return(0,o.createComponentVNode)(2,i.Window,{width:550,height:310,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Output",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:r,maxValue:s,children:(0,l.formatPower)(r)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermal Output",children:(0,l.formatPower)(u)})]})}),m&&p?(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Primary Circulator",values:m})}),(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Secondary Circulator",values:p})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})};var d=function(e,n){var t=e.name,c=e.values,i=c.dir,d=c.output,s=c.flowCapacity,u=c.inletPressure,m=c.inletTemperature,p=c.outletPressure,C=c.outletTemperature;return(0,o.createComponentVNode)(2,a.Section,{title:t+" ("+i+")",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Output",children:(0,l.formatPower)(d)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Capacity",children:[(0,r.round)(s,2),"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Pressure",children:(0,l.formatSiUnit)(1e3*u,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Temperature",children:[(0,r.round)(m,2)," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Pressure",children:(0,l.formatSiUnit)(1e3*p,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Temperature",children:[(0,r.round)(C,2)," K"]})]})})}},58457:function(e,n,t){"use strict";n.__esModule=!0,n.Tank=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Tank=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.connected,s=l.showToggle,u=void 0===s||s,m=l.maskConnected,p=l.tankPressure,C=l.releasePressure,h=l.defaultReleasePressure,N=l.minReleasePressure,V=l.maxReleasePressure;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:320,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"air-freshener":"lock-open",selected:d,disabled:!m,content:"Mask Release Valve",onClick:function(){return i("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask Connected",children:m?"Yes":"No"})})}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:l.tankPressure+" kPa"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:C===N,onClick:function(){return i("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(C),width:"65px",unit:"kPa",minValue:N,maxValue:V,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:C===V,onClick:function(){return i("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"",disabled:C===h,onClick:function(){return i("pressure",{pressure:"reset"})}})]})]})})]})})}},38754:function(e,n,t){"use strict";n.__esModule=!0,n.TankDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TankDispenser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:275,height:103,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Phoron",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.plasma?"square":"square-o",content:"Dispense",disabled:!l.plasma,onClick:function(){return i("plasma")}}),children:l.plasma}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.oxygen?"square":"square-o",content:"Dispense",disabled:!l.oxygen,onClick:function(){return i("oxygen")}}),children:l.oxygen})]})})})})}},73754:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsLogBrowser=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.TelecommsLogBrowser=function(e,n){var t=(0,c.useBackend)(n),r=t.act,s=t.data,u=s.universal_translate,m=s.network,p=s.temp,C=s.servers,h=s.selectedServer;return(0,o.createComponentVNode)(2,i.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[p&&p.length?(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-box",verticalAlign:"middle",children:p}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return r("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,a.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Refresh",onClick:function(){return r("scan")}}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===C.length,onClick:function(){return r("release")}})],4),children:(0,o.createComponentVNode)(2,a.Button,{content:m,icon:"pen",onClick:function(){return r("network")}})})})}),h?(0,o.createComponentVNode)(2,d,{network:m,server:h,universal_translate:u}):(0,o.createComponentVNode)(2,l,{network:m,servers:C})]})})};var l=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.network,e.servers);return i&&i.length?(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunication Servers",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,a.Button,{content:"View",icon:"eye",onClick:function(){return r("view",{id:e.id})}})},e.id)}))})}):(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunications Servers",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No servers detected."}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return r("scan")}})]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.network,e.server),d=e.universal_translate;return(0,o.createComponentVNode)(2,a.Section,{title:"Server ("+l.id+")",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Return",icon:"undo",onClick:function(){return i("mainmenu")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Recorded Traffic",children:l.totalTraffic>=1024?(0,r.round)(l.totalTraffic/1024)+" Terrabytes":l.totalTraffic+" Gigabytes"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stored Logs",mt:"4px",children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.logs&&l.logs.length?l.logs.map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:e.id%2,children:(0,o.createComponentVNode)(2,a.Section,{title:d||e.parameters.uspeech||e.parameters.intelligible||"Execution Error"===e.input_type?e.input_type:"Audio File",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.id})}}),children:"Execution Error"===e.input_type?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data type",children:"Error"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output",children:e.parameters.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Delete",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return i("delete",{id:e.id})}})})]}):d||e.parameters.uspeech||e.parameters.intelligible?(0,o.createComponentVNode)(2,s,{log:e}):(0,o.createComponentVNode)(2,s,{error:!0})})},e.id)})):"No Logs Detected."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data,e.log),i=e.error,l=r&&r.parameters||{none:"none"},d=l.timecode,s=l.name,u=l.race,m=l.job,p=l.message;return i?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:[s," (Job: ",m,")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:p})]})}},29441:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMachineBrowser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.TelecommsMachineBrowser=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.network,u=d.temp,m=d.machinelist,p=d.selectedMachine;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u&&u.length?(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-box",verticalAlign:"middle",children:u}),(0,o.createComponentVNode)(2,c.Button,{icon:"times-circle",float:"right",onClick:function(){return l("cleartemp")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,c.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===m.length,onClick:function(){return l("release")}})],4),children:(0,o.createComponentVNode)(2,c.Button,{content:s,icon:"pen",onClick:function(){return l("network")}})})})}),m&&m.length?(0,o.createComponentVNode)(2,i,{title:p?p.name+" ("+p.id+")":"Detected Network Entities",list:p?p.links:m,showBack:p}):(0,o.createComponentVNode)(2,c.Section,{title:"No Devices Found",children:(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}})})]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.list),l=e.title,d=e.showBack;return(0,o.createComponentVNode)(2,c.Section,{title:l,buttons:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){return a("mainmenu")}}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"u",null,"Linked entities",16)}),(0,o.createComponentVNode)(2,c.LabeledList,{children:i.length?i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,c.Button,{content:"View",icon:"eye",onClick:function(){return a("view",{id:e.id})}})},e.id)})):(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},86756:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMultitoolMenu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(36355),i=t(85952);n.TelecommsMultitoolMenu=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),s=(c.temp,c.on,c.id,c.network,c.autolinkers,c.shadowlink,c.options);c.linked,c.filter,c.multitool,c.multitool_buffer;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:540,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.TemporaryNotice),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d,{options:s})]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.temp,i.on),d=i.id,s=i.network,u=i.autolinkers,m=i.shadowlink,p=(i.options,i.linked),C=i.filter,h=i.multitool,N=i.multitool_buffer;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:l?"On":"Off",onClick:function(){return a("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Identification String",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:d,onClick:function(){return a("id")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return a("network")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prefabrication",children:u?"TRUE":"FALSE"}),m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,h?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Multitool Buffer",children:[N?(0,o.createFragment)([N.name,(0,o.createTextVNode)(" ("),N.id,(0,o.createTextVNode)(")")],0):null,(0,o.createComponentVNode)(2,c.Button,{color:N?"green":null,content:N?"Link ("+N.id+")":"Add Machine",icon:N?"link":"plus",onClick:N?function(){return a("link")}:function(){return a("buffer")}}),N?(0,o.createComponentVNode)(2,c.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){return a("flush")}}):null]}):null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Linked network Entities",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.ref+" "+e.name+" ("+e.id+")",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",onClick:function(){return a("unlink",{unlink:e.index})}})},e.ref)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Filtering Frequencies",mt:1,children:[C.map((function(e){return(0,o.createComponentVNode)(2,c.Button.Confirm,{content:e.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return a("delete",{"delete":e.freq})}},e.index)})),C&&0!==C.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No filters."})]})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.options),l=i.use_listening_level,d=i.use_broadcasting,s=i.use_receiving,u=i.listening_level,m=i.broadcasting,p=i.receiving,C=i.use_change_freq,h=i.change_freq,N=i.use_broadcast_range,V=i.use_receive_range,b=i.range,f=i.minRange,g=i.maxRange;return l||d||s||C||N||V?(0,o.createComponentVNode)(2,c.Section,{title:"Options",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[l?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal Locked to Station",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock-closed":"lock-open",content:u?"Yes":"No",onClick:function(){return a("change_listening")}})}):null,d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Broadcasting",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Yes":"No",onClick:function(){return a("broadcast")}})}):null,s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Receving",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:p,content:p?"Yes":"No",onClick:function(){return a("receive")}})}):null,C?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Signal Frequency",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wave-square",selected:!!h,content:h?"Yes ("+h+")":"No",onClick:function(){return a("change_freq")}})}):null,N||V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(N?"Broadcast":"Receive")+" Range",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:b,minValue:f,maxValue:g,unit:"gigameters",stepPixelSize:4,format:function(e){return e+1},onDrag:function(e,n){return a("range",{range:n})}})}):null]})}):(0,o.createComponentVNode)(2,c.Section,{title:"No Options Found"})}},18509:function(e,n,t){"use strict";n.__esModule=!0,n.Teleporter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Teleporter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked_name,s=l.station_connected,u=l.hub_connected,m=l.calibrated,p=l.teleporter_on;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bullseye",onClick:function(){return i("select_target")},content:d})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Calibrated",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return i("test_fire")},content:m?"Accurate":"Test Fire"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Teleporter",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:p,color:p?"good":"bad",onClick:function(){return i("toggle_on")},content:p?"Online":"OFFLINE"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Station",children:s?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},62555:function(e,n,t){"use strict";n.__esModule=!0,n.TelesciConsoleContent=n.TelesciConsole=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.TelesciConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.noTelepad);return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:r&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,d)})})};var l=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,o.createVNode)(1,"br"),"Please add telepad data."]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.insertedGps,s=l.rotation,u=l.currentZ,m=l.cooldown,p=l.crystalCount,C=l.maxCrystals,h=(l.maxPossibleDistance,l.maxAllowedDistance),N=l.distance,V=l.tempMsg,b=l.sectorOptions,f=l.lastTeleData;return(0,o.createComponentVNode)(2,a.Section,{title:"Telepad Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!d,onClick:function(){return i("ejectGPS")},content:"Eject GPS"}),children:[(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:m&&(0,o.createComponentVNode)(2,a.Box,{children:["Telepad is recharging. Please wait ",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m})," seconds."]})||(0,o.createComponentVNode)(2,a.Box,{children:V})}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bearing",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:s,format:function(e){return e+"\xb0"},step:1,minValue:-900,maxValue:900,onDrag:function(e,n){return i("setrotation",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:N,format:function(e){return e+"/"+h+" m"},minValue:0,maxValue:h,step:1,stepPixelSize:4,onDrag:function(e,n){return i("setdistance",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sector",children:(0,r.sortBy)((function(e){return Number(e)}))(b).map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"check-circle",content:e,selected:u===e,onClick:function(){return i("setz",{setz:e})}},e)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:-90,onClick:function(){return i("send")},content:"Send"}),(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:90,onClick:function(){return i("receive")},content:"Receive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",iconRotation:90,onClick:function(){return i("recal")},content:"Recalibrate"})]})]}),f&&(0,o.createComponentVNode)(2,a.Section,{mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Telepad Location",children:[f.src_x,", ",f.src_y]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:[f.distance,"m"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transit Time",children:[f.time," secs"]})]})})||(0,o.createComponentVNode)(2,a.Section,{mt:1,children:"No teleport data found."}),(0,o.createComponentVNode)(2,a.Section,{children:["Crystals: ",p," / ",C]})]})};n.TelesciConsoleContent=d},55096:function(e,n,t){"use strict";n.__esModule=!0,n.TimeClock=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(14959);n.TimeClock=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.department_hours,m=s.user_name,p=s.card,C=s.assignment,h=s.job_datum,N=s.allow_change_job,V=s.job_choices;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"OOC",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Time Off Balance for "+m,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:u[e]>6?"good":u[e]>1?"average":"bad",children:[(0,r.toFixed)(u[e],1)," ",1===u[e]?"hour":"hours"]},e)}))})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Employee Info",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Employee ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"user",onClick:function(){return d("id")},children:p||"Insert ID"})}),!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,a.Box,{backgroundColor:h.selection_color,p:.8,children:(0,o.createComponentVNode)(2,a.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{ml:1,children:(0,o.createComponentVNode)(2,l.RankIcon,{color:"white",rank:h.title})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,inline:!0,mr:1,children:h.title})})]})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Departments",children:h.departments}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pay Scale",children:h.economic_modifier}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"PTO Elegibility",children:h.timeoff_factor>0&&(0,o.createComponentVNode)(2,a.Box,{children:["Earns PTO - ",h.pto_department]})||h.timeoff_factor<0&&(0,o.createComponentVNode)(2,a.Box,{children:["Requires PTO - ",h.pto_department]})||(0,o.createComponentVNode)(2,a.Box,{children:"Neutral"})})],4)]})}),!(!N||!h||0===h.timeoff_factor||"Dismissed"===C)&&(0,o.createComponentVNode)(2,a.Section,{title:"Employment Actions",children:h.timeoff_factor>0&&(u[h.pto_department]>0&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return d("switch-to-offduty")},children:"Go Off-Duty"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(V).length&&Object.keys(V).map((function(e){return V[e].map((function(n){return(0,o.createComponentVNode)(2,a.Button,{icon:"suitcase",onClick:function(){return d("switch-to-onduty-rank",{"switch-to-onduty-rank":e,"switch-to-onduty-assignment":n})},children:n},n)}))}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},24389:function(e,n,t){"use strict";n.__esModule=!0,n.TransferValve=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TransferValve=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.tank_one,s=l.tank_two,u=l.attached_device,m=l.valve;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Valve Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"unlock":"lock",content:m?"Open":"Closed",disabled:!d||!s,onClick:function(){return i("toggle")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Assembly",buttons:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return i("device")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){return i("remove_device")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Assembly"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment One",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){return i("tankone")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment Two",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:s,disabled:!s,onClick:function(){return i("tanktwo")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}},95893:function(e,n,t){"use strict";n.__esModule=!0,n.TurbineControl=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.TurbineControl=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.connected,d.compressor_broke),u=d.turbine_broke,m=d.broken,p=d.door_status,C=d.online,h=d.power,N=d.rpm,V=d.temp;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Turbine Controller",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:m&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Setup is broken",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",onClick:function(){return l("reconnect")},content:"Reconnect"})]})||(0,o.createComponentVNode)(2,a.Box,{color:C?"good":"bad",children:!C||s||u?"Offline":"Online"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Compressor",children:s&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Compressor is inoperable."})||u&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Turbine is inoperable."})||(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:C,content:"Compressor Power",onClick:function(){return l(C?"power-off":"power-on")}})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vent Doors",children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:p,onClick:function(){return l("doors")},content:p?"Closed":"Open"})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Speed",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:N})," RPM"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Temperature",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Generated Power",children:m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{format:function(e){return(0,r.formatPower)(e)},value:Number(h)})})]})})]})})}},62542:function(e,n,t){"use strict";n.__esModule=!0,n.Turbolift=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Turbolift=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.floors,s=l.doors_open,u=l.fire_mode;return(0,o.createComponentVNode)(2,a.Window,{width:480,height:260+25*u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:s?"door-open":"door-closed",content:s?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:s&&!u,color:u?"red":null,onClick:function(){return i("toggle_doors")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return i("emergency_stop")}})],4),children:[!u||(0,o.createComponentVNode)(2,c.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:e.label||"Floor #"+e.id}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"8%",textAlign:"left",children:(0,o.createComponentVNode)(2,c.Button,{icon:"circle",color:e.current?"red":e.target?"green":e.queued?"yellow":null,onClick:function(){return i("move_to_floor",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",grow:1,children:e.name})]})},e.id)}))})]})})})}},89761:function(e,n,t){"use strict";n.__esModule=!0,n.GenericUplink=n.Uplink=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Uplink=function(e,n){var t=(0,c.useBackend)(n).data,r=(0,c.useLocalState)(n,"screen",0),i=r[0],m=r[1],p=t.telecrystals;return(0,o.createComponentVNode)(2,l.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{screen:i,setScreen:m}),0===i&&(0,o.createComponentVNode)(2,u,{currencyAmount:p,currencySymbol:"TC"})||1===i&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,a.Section,{color:"bad",children:"Error"})]})})};var d=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=e.screen,l=e.setScreen,d=r.discount_name,s=r.discount_amount,u=r.offer_expiry;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===i,onClick:function(){return l(0)},children:"Request Items"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,onClick:function(){return l(1)},children:"Exploitable Information"})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Item Discount",level:2,children:s<100&&(0,o.createComponentVNode)(2,a.Box,{children:[d," - ",s,"% off. Offer expires at: ",u]})||(0,o.createComponentVNode)(2,a.Box,{children:"No items currently discounted."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.exploit,d=i.locked_records;return(0,o.createComponentVNode)(2,a.Section,{title:"Exploitable Information",buttons:l&&(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Back",onClick:function(){return r("view_exploits",{id:0})}}),children:l&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sex",children:l.sex}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Age",children:l.age}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:l.rank}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Home System",children:l.home_system}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Citizenship",children:l.citizenship}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Faction",children:l.faction}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Religion",children:l.religion}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fingerprint",children:l.fingerprint}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other Affiliations",children:l.antagfaction}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:"Acquired Information"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Notes",children:l.nanoui_exploit_record.split("
").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})||d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",fluid:!0,content:e.name,onClick:function(){return r("view_exploits",{id:e.id})}},e.id)}))})},u=function(e,n){var t,l,d=e.currencyAmount,s=void 0===d?0:d,u=e.currencySymbol,p=void 0===u?"\u20ae":u,C=(0,c.useBackend)(n),h=C.act,N=C.data,V=N.compactMode,b=N.lockable,f=N.categories,g=void 0===f?[]:f,k=(0,c.useLocalState)(n,"searchText",""),v=k[0],B=k[1],L=(0,c.useLocalState)(n,"category",null==(t=g[0])?void 0:t.name),_=L[0],x=L[1],w=(0,r.createSearch)(v,(function(e){return e.name+e.desc})),S=v.length>0&&g.flatMap((function(e){return e.items||[]})).filter(w).filter((function(e,n){return n<25}))||(null==(l=g.find((function(e){return e.name===_})))?void 0:l.items)||[];return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:s>0?"good":"bad",children:[(0,i.formatMoney)(s)," ",p]}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,a.Input,{autoFocus:!0,value:v,onInput:function(e,n){return B(n)},mx:1}),(0,o.createComponentVNode)(2,a.Button,{icon:V?"list":"info",content:V?"Compact":"Detailed",onClick:function(){return h("compact_toggle")}}),!!b&&(0,o.createComponentVNode)(2,a.Button,{icon:"lock",content:"Lock",onClick:function(){return h("lock")}})],0),children:(0,o.createComponentVNode)(2,a.Flex,{children:[0===v.length&&(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:g.map((function(e){var n;return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.name===_,onClick:function(){return x(e.name)},children:[e.name," (",(null==(n=e.items)?void 0:n.length)||0,")"]},e.name)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:[0===S.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:0===v.length?"No items in this category.":"No results found."}),(0,o.createComponentVNode)(2,m,{compactMode:v.length>0||V,currencyAmount:s,currencySymbol:p,items:S})]})]})})};n.GenericUplink=u;var m=function(e,n){var t=e.compactMode,l=e.currencyAmount,d=e.currencySymbol,s=(0,c.useBackend)(n).act,u=(0,c.useLocalState)(n,"hoveredItem",{}),m=u[0],p=u[1],C=m&&m.cost||0,h=e.items.map((function(e){var n=m&&m.name!==e.name,t=l-C=0||(r[t]=e[t]);return r}(e,["spec"]),l=r.action,d=r.test,s=r.tooltip,u=r.content;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({onClick:function(){return t(l)},icon:d?"toggle-on":"toggle-off",selected:d,fluid:!0,tooltip:s.main+" "+(d?s.disable:s.enable),content:d?u.enabled:u.disabled},i)))}},21162:function(e,n,t){"use strict";n.__esModule=!0,n.Wires=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Wires=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.wires||[],s=l.status||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:150+30*d.length,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return i("cut",{wire:e.color})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Pulse",onClick:function(){return i("pulse",{wire:e.color})}}),(0,o.createComponentVNode)(2,c.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return i("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("("),e.wire,(0,o.createTextVNode)(")")],0)},e.seen_color)}))})}),!!s.length&&(0,o.createComponentVNode)(2,c.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}},81522:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchArtifactAnalyzer=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.XenoarchArtifactAnalyzer=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:250,height:140,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.owned_scanner,d=i.scan_in_progress;return l?d?(0,o.createComponentVNode)(2,a.Section,{title:"Scan In Progress",children:["Scanning...",(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return c("scan")},children:"Cancel Scan"})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Artifact Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("scan")},children:"Begin Scan"})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Scanner Detected",children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: No scanner was detected. This machine requires a scanner to operate."})})}},40875:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchArtifactHarvester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchArtifactHarvester=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data.info,s=d.no_scanner,u=d.harvesting,m=d.inserted_battery;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: No scanner detected."})||(0,o.createComponentVNode)(2,c.Section,{children:u>0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Harvesting in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||u<0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Energy dump in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||Object.keys(m).length&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:m.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Signature ID",children:m.artifact_id})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"eject",onClick:function(){return l("ejectbattery")},children:"Eject Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bolt",onClick:function(){return l("drainbattery")},children:"Drain Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"star",onClick:function(){return l("harvest")},children:"Begin Harvest"})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})})})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.info.inserted_battery);return Object.keys(a).length?(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:a.stored_charge,maxValue:a.capacity}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})}},88835:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchDepthScanner=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchDepthScanner=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current,s=l.positive_locations;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[Object.keys(d).length&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",icon:"trash",confirmIcon:"trash",content:"Delete Entry",onClick:function(){return i("clear",{index:d.index})}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time",children:d.time}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coords",children:d.coords}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Depth",children:[d.depth," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Size",children:[d.clearance," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dissonance Spread",children:d.dissonance_spread}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Material",children:d.material})]})})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Entries",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i("clear")}}),children:s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return i("select",{select:e.index})},children:[e.time,", ",e.coords]},e.index)}))||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No traces found."})})]})})}},5622:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchHandheldPowerUtilizer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchHandheldPowerUtilizer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.inserted_battery,s=l.anomaly,u=l.charge,m=l.capacity,p=l.timeleft,C=l.activated,h=l.duration,N=l.interval;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Anomaly Power Utilizer",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!d,icon:"eject",onClick:function(){return i("ejectbattery")},children:"Eject Battery"}),children:d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inserted Battery",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomalies Detected",children:s||"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time Left Activated",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"power-off",onClick:function(){return i("startup")},children:C?"Activated":"Deactivated"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Duration",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:h,stepPixelSize:4,maxValue:30,onDrag:function(e,n){return i("changeduration",{duration:10*n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Interval",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:N,stepPixelSize:10,maxValue:10,onDrag:function(e,n){return i("changeinterval",{interval:10*n})}})})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted. Please insert a cell."})})})})}},53702:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchReplicator=void 0;var o=t(39812),r=(t(41860),t(2497),t(71494)),c=t(74814),a=t(85952);n.XenoarchReplicator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.tgui_construction;return(0,o.createComponentVNode)(2,a.Window,{theme:"abductor",width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{color:e.background,icon:e.icon,iconColor:e.foreground,fontSize:4,onClick:function(){return i("construct",{key:e.key})}},e.key)}))})})}},13153:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSpectrometer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.XenoarchSpectrometer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.scanned_item,u=d.scanned_item_desc,m=d.last_scan_data,p=d.scan_progress,C=d.scanning,h=d.scanner_seal_integrity,N=d.scanner_rpm,V=d.scanner_temperature,b=d.coolant_usage_rate,f=d.coolant_usage_max,g=(d.unused_coolant_abs,d.unused_coolant_per),k=d.coolant_purity,v=d.optimal_wavelength,B=d.maser_wavelength,L=d.maser_wavelength_max,_=d.maser_efficiency,x=d.radiation,w=(d.t_left_radspike,d.rad_shield_on);return(0,o.createComponentVNode)(2,a.Window,{width:900,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"signal",selected:C,onClick:function(){return l("scanItem")},children:C?"HALT SCAN":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,onClick:function(){return l("ejectItem")},children:"Eject Item"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Item",children:s||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No item inserted."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heuristic Analysis",children:u||"None found."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:100,color:"good"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vacuum Seal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"MASER",buttons:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Match wavelengths to progress the scan."}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"MASER Efficiency",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:_,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wavelength",children:(0,o.createComponentVNode)(2,c.Slider,{animated:!0,value:B,fillValue:v,minValue:1,maxValue:L,format:function(e){return e+" MHz"},step:10,onDrag:function(e,n){return l("maserWavelength",{wavelength:n})}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Environment / Internal",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Centrifuge Speed",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:N,minValue:0,maxValue:1e3,color:"good",children:[N," RPM"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Internal Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:V,maxValue:1273,ranges:{bad:[1e3,Infinity],average:[250,1e3],good:[0,250]},children:[V," K"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Radiation",buttons:(0,o.createComponentVNode)(2,c.Button,{selected:w,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:w?"Disable Radiation Shielding":"Enable Radiation Shielding"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Ambient Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:x,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[x," mSv"]})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cooling",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Remaining",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:10*g,maxValue:1e3,ranges:{good:[65,Infinity],average:[15,65],bad:[0,15]},children:[10*g," u"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Flow Rate",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:b,maxValue:f,stepPixelSize:50,format:function(e){return e+" u/s"},onDrag:function(e,n){return l("coolantRate",{coolant:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Purity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:k,maxValue:100,ranges:{good:[66,Infinity],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Latest Results",children:(0,i.decodeHtmlEntities)(m).split("\n").map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e},e)}))})]})})}},19820:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSuspension=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchSuspension=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cell,s=l.cellCharge,u=l.cellMaxCharge,m=l.locked,p=l.suspension_field;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:150,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:'Triple-phase S.F.G. MK III "Reliant"',buttons:(0,o.createComponentVNode)(2,c.Button,{icon:m?"lock":"lock-open",selected:!m,onClick:function(){return i("lock")},children:m?"Locked":"Unlocked"}),children:m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"This interface is locked. Swipe an ID card to unlock it."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:d&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*u,Infinity],average:[.5*u,.75*u],bad:[-Infinity,.5*u]},value:s,maxValue:u})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cell inserted."})})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,icon:"meteor",selected:p,onClick:function(){return i("toggle_field")},children:p?"Disengage Suspension Field":"Engage Suspension Field"})],4)})})})}},71739:function(e,n,t){"use strict";n.__esModule=!0,n.Scrubber=n.Vent=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);t(76270);n.Vent=function(e,n){var t=e.vent,i=(0,c.useBackend)(n).act,l=t.id_tag,d=t.long_name,s=t.power,u=t.checks,m=t.excheck,p=t.incheck,C=t.direction,h=t.external,N=t.internal,V=t.extdefault,b=t.intdefault;return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(d),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",selected:s,content:s?"On":"Off",onClick:function(){return i("power",{id_tag:l,val:Number(!s)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"siphon"!==C?"Pressurizing":"Siphoning",color:"siphon"===C&&"danger",onClick:function(){return i("direction",{id_tag:l,val:Number("siphon"===C)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"Internal",selected:p,onClick:function(){return i("incheck",{id_tag:l,val:u})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"External",selected:m,onClick:function(){return i("excheck",{id_tag:l,val:u})}})]}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(N),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_internal_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:b,content:"Reset",onClick:function(){return i("reset_internal_pressure",{id_tag:l})}})]}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"External Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(h),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_external_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:V,content:"Reset",onClick:function(){return i("reset_external_pressure",{id_tag:l})}})]})]})})};n.Scrubber=function(e,n){var t=e.scrubber,i=(0,c.useBackend)(n).act,l=t.long_name,d=t.power,s=t.scrubbing,u=t.id_tag,m=(t.widenet,t.filters);return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(l),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return i("power",{id_tag:u,val:Number(!d)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"filter":"sign-in-alt",color:s||"danger",content:s?"Scrubbing":"Siphoning",onClick:function(){return i("scrubbing",{id_tag:u,val:Number(!s)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filters",children:s&&m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.val?"check-square-o":"square-o",content:e.name,title:e.name,selected:e.val,onClick:function(){return i(e.command,{id_tag:u,val:!e.val})}},e.name)}))||"N/A"})]})})}},48229:function(e,n,t){"use strict";n.__esModule=!0,n.BeakerContents=void 0;var o=t(39812),r=t(74814);n.BeakerContents=function(e){var n=e.beakerLoaded,t=e.beakerContents,c=void 0===t?[]:t,a=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!n&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===c.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),c.map((function(e,n){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:(0,o.createComponentVNode)(2,r.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:[(t=e.volume,t+" unit"+(1===t?"":"s"))," of ",e.name]}),!!a&&(0,o.createComponentVNode)(2,r.Flex.Item,{children:a(e,n)})]})},e.name);var t}))]})}},16007:function(e,n,t){"use strict";n.__esModule=!0,n.ComplexModal=n.modalRegisterBodyOverride=n.modalOpen=void 0;var o=t(39812),r=t(71494),c=t(74814),a={};n.modalOpen=function(e,n,t){var o=(0,r.useBackend)(e),c=o.act,a=o.data,i=Object.assign(a.modal?a.modal.args:{},t||{});c("modal_open",{id:n,arguments:JSON.stringify(i)})};n.modalRegisterBodyOverride=function(e,n){a[e]=n};var i=function(e,n,t,o){var c=(0,r.useBackend)(e),a=c.act,i=c.data;if(i.modal){var l=Object.assign(i.modal.args||{},o||{});a("modal_answer",{id:n,answer:t,arguments:JSON.stringify(l)})}},l=function(e,n){(0,(0,r.useBackend)(e).act)("modal_close",{id:n})};n.ComplexModal=function(e,n){var t=(0,r.useBackend)(n).data;if(t.modal){var d,s,u=t.modal,m=u.id,p=u.text,C=u.type,h=(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}});if(a[m])s=a[m](t.modal,n);else if("input"===C){var N=t.modal.value;d=function(e){return i(n,m,N)},s=(0,o.createComponentVNode)(2,c.Input,{value:t.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autoFocus:!0,autoSelect:!0,onChange:function(e,n){N=n}}),h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return i(n,m,N)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}else if("choice"===C){var V="object"==typeof t.modal.choices?Object.values(t.modal.choices):t.modal.choices;s=(0,o.createComponentVNode)(2,c.Dropdown,{options:V,selected:t.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return i(n,m,e)}})}else"bento"===C?s=(0,o.createComponentVNode)(2,c.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:t.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,c.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,c.Button,{selected:r+1===parseInt(t.modal.value,10),onClick:function(){return i(n,m,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===C&&(h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:t.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return i(n,m,0)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:t.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return i(n,m,1)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,c.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:d,mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:p}),s,h]})}}},67861:function(e,n,t){"use strict";n.__esModule=!0,n.FullscreenNotice=void 0;var o=t(39812),r=t(74814);n.FullscreenNotice=function(e,n){var t=e.children,c=e.title,a=void 0===c?"Welcome":c;return(0,o.createComponentVNode)(2,r.Section,{title:a,height:"100%",fill:!0,children:(0,o.createComponentVNode)(2,r.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,r.Flex.Item,{textAlign:"center",mt:"-2rem",children:t})})})}},21451:function(e,n,t){"use strict";n.__esModule=!0,n.InterfaceLockNoticeBox=void 0;var o=t(39812),r=t(71494),c=t(74814);n.InterfaceLockNoticeBox=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.siliconUser,d=void 0===l?i.siliconUser:l,s=e.locked,u=void 0===s?i.locked:s,m=e.normallyLocked,p=void 0===m?i.normallyLocked:m,C=e.onLockStatusChange,h=void 0===C?function(){return a("lock")}:C,N=e.accessText,V=void 0===N?"an ID card":N,b=e.deny,f=void 0!==b&&b,g=e.denialMessage;return f?void 0===g?"Error.":g:d?(0,o.createComponentVNode)(2,c.NoticeBox,{color:d&&"grey",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:"Interface lock status:"}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1"}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{m:"0",color:p?"red":"green",icon:p?"lock":"unlock",content:p?"Locked":"Unlocked",onClick:function(){h&&h(!u)}})})]})}):(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe ",V," ","to ",u?"unlock":"lock"," this interface."]})}},28117:function(e,n,t){"use strict";n.__esModule=!0,n.LoginInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.LoginInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.authenticated,d=i.rank;if(i)return(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l," (",d,")"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){return a("logout")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}},1192:function(e,n,t){"use strict";n.__esModule=!0,n.LoginScreen=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(67861);n.LoginScreen=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan,s=l.isAI,u=l.isRobot;return(0,o.createComponentVNode)(2,a.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,c.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,c.Button,{icon:"id-card",content:d||"----------",ml:"0.5rem",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",disabled:!d,content:"Login",onClick:function(){return i("login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return i("login",{login_type:2})}}),!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return i("login",{login_type:3})}})]})}},21526:function(e,n,t){"use strict";n.__esModule=!0,n.MiningUser=void 0;var o=t(39812),r=t(71494),c=t(74814);n.MiningUser=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.insertIdText,d=i.has_id,s=i.id;return(0,o.createComponentVNode)(2,c.NoticeBox,{success:d,children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return a("logoff")}}),(0,o.createComponentVNode)(2,c.Box,{style:{clear:"both"}})],4):l})}},40754:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapPanControls=n.OvermapFlightData=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.OvermapFlightData=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.disableLimiterControls,d=i.ETAnext,s=i.speed,u=i.speed_color,m=i.accel,p=i.heading,C=i.accellimit;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ETA To Next Grid",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",color:u,children:[s," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration",children:[m," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heading",children:[p,"\xb0"]}),!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration Limiter",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("accellimit")},children:[C," Gm/h"]})})||null]})};n.OvermapPanControls=function(e,n){var t=(0,r.useBackend)(n).act,a=e.disabled,i=e.actToDo,l=e.selected,d=void 0===l?function(e){return!1}:l;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(9),onClick:function(){return t(i,{dir:9})},icon:"arrow-up",iconRotation:-45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(1),onClick:function(){return t(i,{dir:1})},icon:"arrow-up"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(5),onClick:function(){return t(i,{dir:5})},icon:"arrow-up",iconRotation:45})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(8),onClick:function(){return t(i,{dir:8})},icon:"arrow-left"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(0),onClick:function(){return t("brake")},icon:"ban"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(4),onClick:function(){return t(i,{dir:4})},icon:"arrow-right"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(10),onClick:function(){return t(i,{dir:10})},icon:"arrow-down",iconRotation:45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(2),onClick:function(){return t(i,{dir:2})},icon:"arrow-down"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(6),onClick:function(){return t(i,{dir:6})},icon:"arrow-down",iconRotation:-45})]})],4)}},34227:function(e,n,t){"use strict";n.__esModule=!0,n.PortableBasicInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.PortableBasicInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.connected,d=i.holding,s=i.on,u=i.pressure,m=i.powerDraw,p=i.cellCharge,C=i.cellMaxCharge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){return a("power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Port",color:l?"good":"average",children:l?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:[m," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:C,ranges:{good:[.5*C,Infinity],average:[.25*C,.5*C],bad:[-Infinity,.25*C]},children:[p," W"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){return a("eject")}}),children:d?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d.pressure})," kPa"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No holding tank"})})],4)}},14959:function(e,n,t){"use strict";n.__esModule=!0,n.RankIcon=void 0;var o=t(39812),r=t(74814),c={"Colony Director":"user-tie","Site Manager":"user-tie",Overseer:"user-tie","Head of Personnel":"briefcase","Crew Resources Officer":"briefcase","Deputy Director":"briefcase","Command Secretary":"user-tie","Head of Security":"user-shield","Security Commander":"user-shield","Chief of Security":"user-shield",Warden:["city","shield-alt"],Detective:"search","Forensic Technician":"search","Security Officer":"user-shield","Junior Officer":"user-shield","Chief Engineer":"toolbox","Atmospheric Technician":"wind","Station Engineer":"toolbox","Maintenance Technician":"wrench","Engine Technician":"toolbox",Electrician:"toolbox","Chief Medical Officer":"user-md",Chemist:"mortar-pestle",Pharmacist:"mortar-pestle","Medical Doctor":"user-md",Surgeon:"user-md","Emergency Physician":"user-md",Nurse:"user-md",Virologist:"disease",Paramedic:"ambulance","Emergency Medical Technician":"ambulance",Psychiatrist:"couch",Psychologist:"couch","Research Director":"user-graduate","Research Supervisor":"user-graduate",Roboticist:"robot","Biomechanical Engineer":["wrench","heartbeat"],"Mechatronic Engineer":"wrench",Scientist:"flask",Xenoarchaeologist:"flask",Anomalist:"flask","Phoron Researcher":"flask","Circuit Designer":"car-battery",Xenobiologist:"meteor",Xenobotanist:["biohazard","seedling"],Quartermaster:"box-open","Supply Chief":"warehouse","Cargo Technician":"box-open","Shaft Miner":"hard-hat","Drill Technician":"hard-hat",Pathfinder:"binoculars",Explorer:"user-astronaut","Field Medic":["user-md","user-astronaut"],Pilot:"space-shuttle",Bartender:"glass-martini",Barista:"coffee",Botanist:"leaf",Gardener:"leaf",Chaplain:"place-of-worship",Counselor:"couch",Chef:"utensils",Cook:"utensils",Entertainer:"smile-beam",Performer:"smile-beam",Musician:"guitar",Stagehand:"smile-beam",Intern:"school","Apprentice Engineer":["school","wrench"],"Medical Intern":["school","user-md"],"Lab Assistant":["school","flask"],"Security Cadet":["school","shield-alt"],"Jr. Cargo Tech":["school","box"],"Jr. Explorer":["school","user-astronaut"],Server:["school","utensils"],"Internal Affairs Agent":"balance-scale",Janitor:"broom",Custodian:"broom","Sanitation Technician":"hand-sparkles",Maid:"broom",Librarian:"book",Journalist:"newspaper",Writer:"book",Historian:"chalkboard-teacher",Professor:"chalkboard-teacher",Visitor:"user","Emergency Responder":"fighter-jet"};n.RankIcon=function(e,n){var t=e.rank,a=e.color,i=void 0===a?"label":a,l=c[t];return"string"==typeof l?(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:l,size:2}):Array.isArray(l)?l.map((function(e){return(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:e,size:2},e)})):(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:"user",size:2})}},36355:function(e,n,t){"use strict";n.__esModule=!0,n.TemporaryNotice=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);n.TemporaryNotice=function(e,n){var t,i=e.decode,l=(0,c.useBackend)(n),d=l.act,s=l.data.temp;if(s){var u=((t={})[s.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},u,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:i?(0,r.decodeHtmlEntities)(s.text):s.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}}},28840:function(e,n,t){"use strict";n.__esModule=!0,n.pAIAtmos=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.pAIAtmos=function(e,n){var t=(0,a.useBackend)(n),d=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,l.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})})})}},47132:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDirectives=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.pAIDirectives=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.master,s=l.dna,u=l.prime,m=l.supplemental;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Master",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master",children:d&&(0,o.createComponentVNode)(2,c.Box,{children:[d," (",s,")",(0,o.createComponentVNode)(2,c.Button,{icon:"syringe",content:"Request Sample",onClick:function(){return i("getdna")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:"None"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Directives",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prime Directive",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Supplemental Directive(s)",children:m||"None"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,italic:!0,children:'Recall, personality, that you are a complex piece of software with tremendous social skills. Unlike station AI models, you are focused entirely on sapient-software interfacing. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you should strive to be seen as the ideal, unwavering digital companion that you are.'}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})]})})}},52852:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDoorjack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIDoorjack=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cable,s=l.machine,u=l.inprogress,m=l.progress_a,p=l.progress_b,C=l.aborted;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:150,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cable",children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Connected"})||d&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Extended"})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"ethernet",content:"Retracted",onClick:function(){return i("cable")}})})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hack",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:100,ranges:{good:[67,Infinity],average:[33,67],bad:[-Infinity,33]},children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),".",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",color:"bad",onClick:function(){return i("cancel")}})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"virus",content:"Start",onClick:function(){return i("jack")}})})||!!C&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",mt:1,children:"Hack aborted."})]})})})})}},88814:function(e,n,t){"use strict";n.__esModule=!0,n.pAIInterface=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIInterface=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.bought,s=l.not_bought,u=l.available_ram,m=l.emotions,p=l.current_emotion;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Emotion",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.id===p,onClick:function(){return i("image",{image:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Software (Available RAM: "+u+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Installed",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.on,onClick:function(){return i("software",{software:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloadable",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name+" ("+e.ram+")",disabled:e.ram>u,onClick:function(){return i("purchase",{purchase:e.id})}},e.id)}))})]})})]})})}},52510:function(e,n,t){"use strict";n.__esModule=!0,n.pAIMedrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIMedrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.medical,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.alg}),(0,o.createComponentVNode)(2,c.Box,{children:u.alg_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Diseases",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.cdi}),(0,o.createComponentVNode)(2,c.Box,{children:u.cdi_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},59946:function(e,n,t){"use strict";n.__esModule=!0,n.pAISecrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAISecrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.security,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:(0,o.createComponentVNode)(2,c.Box,{children:u.criminal})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},42360:function(e,n,t){"use strict";n.__esModule=!0,n.pda_atmos_scan=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814);n.pda_atmos_scan=function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(l).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})}},84932:function(e,n,t){"use strict";n.__esModule=!0,n.pda_janitor=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_janitor=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.janitor);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:0===a.user_loc.x&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Unknown"})||(0,o.createComponentVNode)(2,c.Box,{children:[a.user_loc.x," / ",a.user_loc.y]})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Locations",children:a.mops&&(0,o.createVNode)(1,"ul",null,a.mops.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No mops detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Bucket Locations",children:a.buckets&&(0,o.createVNode)(1,"ul",null,a.buckets.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Capacity: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No buckets detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Cleanbot Locations",children:a.cleanbots&&(0,o.createVNode)(1,"ul",null,a.cleanbots.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cleanbots detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Janitorial Cart Locations",children:a.carts&&(0,o.createVNode)(1,"ul",null,a.carts.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Water Level: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},6011:function(e,n,t){"use strict";n.__esModule=!0,n.pda_main_menu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.pda_main_menu=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.owner,d=i.ownjob,s=i.idInserted,u=i.categories,m=i.pai,p=i.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",d]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Update PDA Info",disabled:!s,onClick:function(){return a("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){var n=i.apps[e];return n&&n.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,children:n.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.ref in p?e.notify_icon:e.icon,iconSpin:e.ref in p,color:e.ref in p?"red":"transparent",content:e.name,onClick:function(){return a("StartProgram",{program:e.ref})}},e.ref)}))},e):null}))})}),!!m&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return a("pai",{option:1})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return a("pai",{option:2})}})]})],0)}},93303:function(e,n,t){"use strict";n.__esModule=!0,n.pda_manifest=void 0;var o=t(39812),r=(t(64499),t(71494)),c=t(74814),a=t(22902);n.pda_manifest=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.CrewManifestContent)})}},65276:function(e,n,t){"use strict";n.__esModule=!0,n.pda_medical=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_medical=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.medical;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Medical Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Disease",children:u.cdi}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:u.notes})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Medical record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},92494:function(e,n,t){"use strict";n.__esModule=!0,n.pda_messenger=void 0;var o=t(39812),r=t(2497),c=t(64499),a=t(71494),i=t(74814);n.pda_messenger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data);r.auto_scroll,r.convo_name,r.convo_job,r.messages;return r.active_conversation?(0,o.createComponentVNode)(2,d):(0,o.createComponentVNode)(2,s)};var l=function(e,n,t){if(n<0||n>t.length)return e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var o=t[n].sent;return e.sent&&o?"TinderMessage_Subsequent_Sent":e.sent||o?e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"},d=function(e,n){var t=(0,a.useBackend)(n),d=t.act,s=t.data,u=(s.auto_scroll,s.convo_name),m=s.convo_job,p=s.messages,C=s.active_conversation,h=(s.useRetro,(0,a.useLocalState)(n,"clipboardMode",!1)),N=h[0],V=h[1],b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:e.sent?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:l(e,n-1,t),inline:!0,children:(0,r.decodeHtmlEntities)(e.message)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]});return N&&(b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:e.sent?"ClassicMessage_Sent":"ClassicMessage_Received",children:[e.sent?"You:":"Them:"," ",(0,r.decodeHtmlEntities)(e.message)]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]})),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return d("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),b]})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.auto_scroll,c.convopdas),d=c.pdas,s=c.charges,m=(c.plugins,c.silent),p=c.toff;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,i.Button,{selected:!m,icon:m?"volume-mute":"volume-up",onClick:function(){return r("Toggle Ringer")},children:["Ringer: ",m?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return r("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"bell",onClick:function(){return r("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return r("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,i.Box,{children:[!!s&&(0,o.createComponentVNode)(2,i.Box,{children:[s," charges left."]}),!l.length&&!d.length&&(0,o.createComponentVNode)(2,i.Box,{children:"No other PDAs located."})||(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,u,{title:"Current Conversations",pdas:l,msgAct:"Select Conversation"}),(0,o.createComponentVNode)(2,u,{title:"Other PDAs",pdas:d,msgAct:"Message"})]})]})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",mt:2,children:"Messenger Offline."})]})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.pdas,d=e.title,s=e.msgAct,u=c.charges,m=c.plugins;return l&&l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return r(s,{target:e.Reference})}}),!!u&&m.map((function(n){return(0,o.createComponentVNode)(2,i.Button,{icon:n.icon,content:n.name,onClick:function(){return r("Messenger Plugin",{plugin:n.ref,target:e.Reference})}},n.ref)}))]},e.Reference)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:"No PDAs found."})}},31505:function(e,n,t){"use strict";n.__esModule=!0,n.pda_news=void 0;var o=t(39812),r=(t(64499),t(2497)),c=t(71494),a=t(74814);n.pda_news=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),d=r.feeds,s=r.target_feed;return(0,o.createComponentVNode)(2,a.Box,{children:!d.length&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||s&&(0,o.createComponentVNode)(2,i)||(0,o.createComponentVNode)(2,l)})};var i=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(l.name)+" by "+(0,r.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:null})}}),children:l.messages.length&&l.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[",e.message_type," by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))||(0,o.createComponentVNode)(2,a.Box,{children:["No stories found in ",l.name,"."]})})},l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Recent News",level:2,children:s.length&&(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,r.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,a.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})||(0,o.createComponentVNode)(2,a.Box,{children:"No recent stories found."})}),(0,o.createComponentVNode)(2,a.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)}},66785:function(e,n,t){"use strict";n.__esModule=!0,n.pda_notekeeper=void 0;var o=t(39812),r=t(71494),c=t(74814);n.pda_notekeeper=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.note;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:i}})}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("Edit")},content:"Edit Notes"})]})}},63853:function(e,n,t){"use strict";n.__esModule=!0,n.pda_power=void 0;var o=t(39812),r=t(71494),c=t(89793);n.pda_power=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.PowerMonitorContent)}},20575:function(e,n,t){"use strict";n.__esModule=!0,n.pda_security=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_security=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.security;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Security Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:u.criminal}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:u.mi_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:u.ma_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes:",preserveWhitespace:!0,children:u.notes||"No data found."})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Security record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},63891:function(e,n,t){"use strict";n.__esModule=!0,n.pda_signaller=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494),t(74814),t(32325));n.pda_signaller=function(e,n){return(0,o.createComponentVNode)(2,r.SignalerContent)}},14947:function(e,n,t){"use strict";n.__esModule=!0,n.pda_status_display=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_status_display=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return a("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Evac ETA",onClick:function(){return a("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Message",onClick:function(){return a("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"exclamation-triangle",content:"ALERT",onClick:function(){return a("Status",{statdisp:"alert"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg2"})}})})]})})}},85143:function(e,n,t){"use strict";n.__esModule=!0,n.pda_supply=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_supply=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.supply);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:a.shuttle_moving?"Moving to station "+a.shuttle_eta:"Shuttle at "+a.shuttle_loc})}),(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Approved Orders"}),a.approved.length&&a.approved.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," approved by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"}),(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Requested Orders"}),a.requests.length&&a.requests.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," requested by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"})]})]})}},73218:function(e,n,t){"use strict";n.__esModule=!0,n.getRoutedComponent=n.routingError=void 0;var o=t(39812),r=t(71494),c=(t(30098),t(85952)),a=t(8156),i=function(e,n){return function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:["notFound"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" was not found.")],4),"missingExport"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" is missing an export.")],4)]})})}};n.routingError=i;var l=function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0})})};n.getRoutedComponent=function(e){var n=e.getState(),t=(0,r.selectBackend)(n),o=t.suspended,c=t.config;if(o)return l;for(var d,s=null==c?void 0:c["interface"],u=[function(e){return"./"+e+".tsx"},function(e){return"./"+e+".js"},function(e){return"./"+e+"/index.tsx"},function(e){return"./"+e+"/index.js"}];!d&&u.length>0;){var m=u.shift()(s);try{d=a(m)}catch(C){if("MODULE_NOT_FOUND"!==C.code)throw C}}if(!d)return i("notFound",s);var p=d[s];return p||i("missingExport",s)}},56285:function(){},58602:function(){},48979:function(){},92433:function(){},35070:function(){},86455:function(){},41821:function(){},83243:function(){},97585:function(){},64197:function(){},87266:function(){},99195:function(){},72916:function(){},75168:function(e,n,t){var o={"./pda_atmos_scan.js":42360,"./pda_janitor.js":84932,"./pda_main_menu.js":6011,"./pda_manifest.js":93303,"./pda_medical.js":65276,"./pda_messenger.js":92494,"./pda_news.js":31505,"./pda_notekeeper.js":66785,"./pda_power.js":63853,"./pda_security.js":20575,"./pda_signaller.js":63891,"./pda_status_display.js":14947,"./pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=75168},8156:function(e,n,t){var o={"./AICard":34129,"./AICard.js":34129,"./APC":73405,"./APC.js":73405,"./AccountsTerminal":20832,"./AccountsTerminal.js":20832,"./AdminShuttleController":19007,"./AdminShuttleController.js":19007,"./AgentCard":51104,"./AgentCard.js":51104,"./AiAirlock":47330,"./AiAirlock.js":47330,"./AiRestorer":33084,"./AiRestorer.js":33084,"./AiSupermatter":597,"./AiSupermatter.js":597,"./AirAlarm":58444,"./AirAlarm.js":58444,"./AlertModal":24053,"./AlertModal.js":24053,"./AlgaeFarm":34847,"./AlgaeFarm.js":34847,"./AppearanceChanger":65145,"./AppearanceChanger.js":65145,"./ArcadeBattle":86776,"./ArcadeBattle.js":86776,"./AreaScrubberControl":13496,"./AreaScrubberControl.js":13496,"./AssemblyInfrared":56404,"./AssemblyInfrared.js":56404,"./AssemblyProx":29632,"./AssemblyProx.js":29632,"./AssemblyTimer":48661,"./AssemblyTimer.js":48661,"./AtmosAlertConsole":38531,"./AtmosAlertConsole.js":38531,"./AtmosControl":46566,"./AtmosControl.js":46566,"./AtmosFilter":2726,"./AtmosFilter.js":2726,"./AtmosMixer":61505,"./AtmosMixer.js":61505,"./Autolathe":99994,"./Autolathe.js":99994,"./Batteryrack":62586,"./Batteryrack.js":62586,"./BeaconLocator":25116,"./BeaconLocator.js":25116,"./Biogenerator":20813,"./Biogenerator.js":20813,"./BodyDesigner":81850,"./BodyDesigner.js":81850,"./BodyScanner":6060,"./BodyScanner.js":6060,"./BombTester":74639,"./BombTester.js":74639,"./BotanyEditor":48693,"./BotanyEditor.js":48693,"./BotanyIsolator":25486,"./BotanyIsolator.js":25486,"./BrigTimer":61956,"./BrigTimer.js":61956,"./CameraConsole":3180,"./CameraConsole.js":3180,"./Canister":94477,"./Canister.js":94477,"./Canvas":55636,"./Canvas.js":55636,"./CasinoPrizeDispenser":25131,"./CasinoPrizeDispenser.js":25131,"./CharacterDirectory":47947,"./CharacterDirectory.js":47947,"./ChemDispenser":22223,"./ChemDispenser.js":22223,"./ChemMaster":34859,"./ChemMaster.js":34859,"./ClawMachine":83919,"./ClawMachine.js":83919,"./Cleanbot":74351,"./Cleanbot.js":74351,"./CloningConsole":98213,"./CloningConsole.js":98213,"./ColorMate":32278,"./ColorMate.js":32278,"./CommunicationsConsole":130,"./CommunicationsConsole.js":130,"./Communicator":4220,"./Communicator.js":4220,"./ComputerFabricator":2174,"./ComputerFabricator.js":2174,"./CookingAppliance":26090,"./CookingAppliance.js":26090,"./CrewManifest":22902,"./CrewManifest.js":22902,"./CrewMonitor":96158,"./CrewMonitor.js":96158,"./Cryo":99798,"./Cryo.js":99798,"./CryoStorage":54234,"./CryoStorage.js":54234,"./CryoStorageVr":66384,"./CryoStorageVr.js":66384,"./DNAForensics":99579,"./DNAForensics.js":99579,"./DNAModifier":21849,"./DNAModifier.js":21849,"./DestinationTagger":59305,"./DestinationTagger.js":59305,"./DiseaseSplicer":10015,"./DiseaseSplicer.js":10015,"./DishIncubator":31066,"./DishIncubator.js":31066,"./DisposalBin":19095,"./DisposalBin.js":19095,"./DroneConsole":29345,"./DroneConsole.js":29345,"./EmbeddedController":84122,"./EmbeddedController.js":84122,"./ExonetNode":33777,"./ExonetNode.js":33777,"./ExosuitFabricator":95481,"./ExosuitFabricator.js":95481,"./Farmbot":95598,"./Farmbot.js":95598,"./Fax":17569,"./Fax.js":17569,"./FileCabinet":58087,"./FileCabinet.js":58087,"./Floorbot":21902,"./Floorbot.js":21902,"./GasPump":309,"./GasPump.js":309,"./GasTemperatureSystem":26049,"./GasTemperatureSystem.js":26049,"./GeneralAtmoControl":2753,"./GeneralAtmoControl.js":2753,"./GeneralRecords":57753,"./GeneralRecords.js":57753,"./Gps":25230,"./Gps.js":25230,"./GravityGenerator":4475,"./GravityGenerator.js":4475,"./GuestPass":95075,"./GuestPass.js":95075,"./GyrotronControl":31875,"./GyrotronControl.js":31875,"./Holodeck":7908,"./Holodeck.js":7908,"./ICAssembly":12676,"./ICAssembly.js":12676,"./ICCircuit":42394,"./ICCircuit.js":42394,"./ICDetailer":81039,"./ICDetailer.js":81039,"./ICPrinter":21687,"./ICPrinter.js":21687,"./IDCard":48522,"./IDCard.js":48522,"./IdentificationComputer":76952,"./IdentificationComputer.js":76952,"./InputModal":44570,"./InputModal.js":44570,"./InventoryPanel":53541,"./InventoryPanel.js":53541,"./InventoryPanelHuman":46638,"./InventoryPanelHuman.js":46638,"./IsolationCentrifuge":45e3,"./IsolationCentrifuge.js":45e3,"./JanitorCart":83994,"./JanitorCart.js":83994,"./Jukebox":68741,"./Jukebox.js":68741,"./LawManager":13204,"./LawManager.js":13204,"./ListInput":58802,"./ListInput.js":58802,"./LookingGlass":36104,"./LookingGlass.js":36104,"./MechaControlConsole":74714,"./MechaControlConsole.js":74714,"./Medbot":17888,"./Medbot.js":17888,"./MedicalRecords":37610,"./MedicalRecords.js":37610,"./MessageMonitor":287,"./MessageMonitor.js":287,"./Microwave":75412,"./Microwave.js":75412,"./MiningOreProcessingConsole":35016,"./MiningOreProcessingConsole.js":35016,"./MiningStackingConsole":87314,"./MiningStackingConsole.js":87314,"./MiningVendor":62012,"./MiningVendor.js":62012,"./MuleBot":6479,"./MuleBot.js":6479,"./NIF":46157,"./NIF.js":46157,"./NTNetRelay":79630,"./NTNetRelay.js":79630,"./Newscaster":60042,"./Newscaster.js":60042,"./NoticeBoard":31669,"./NoticeBoard.js":31669,"./NtosAccessDecrypter":63231,"./NtosAccessDecrypter.js":63231,"./NtosArcade":79760,"./NtosArcade.js":79760,"./NtosAtmosControl":97908,"./NtosAtmosControl.js":97908,"./NtosCameraConsole":63645,"./NtosCameraConsole.js":63645,"./NtosCommunicationsConsole":74093,"./NtosCommunicationsConsole.js":74093,"./NtosConfiguration":55513,"./NtosConfiguration.js":55513,"./NtosCrewMonitor":17539,"./NtosCrewMonitor.js":17539,"./NtosDigitalWarrant":20025,"./NtosDigitalWarrant.js":20025,"./NtosEmailAdministration":11325,"./NtosEmailAdministration.js":11325,"./NtosEmailClient":77006,"./NtosEmailClient.js":77006,"./NtosFileManager":86441,"./NtosFileManager.js":86441,"./NtosIdentificationComputer":87369,"./NtosIdentificationComputer.js":87369,"./NtosMain":59543,"./NtosMain.js":59543,"./NtosNetChat":73883,"./NtosNetChat.js":73883,"./NtosNetDos":83908,"./NtosNetDos.js":83908,"./NtosNetDownloader":83305,"./NtosNetDownloader.js":83305,"./NtosNetMonitor":6806,"./NtosNetMonitor.js":6806,"./NtosNetTransfer":4363,"./NtosNetTransfer.js":4363,"./NtosNewsBrowser":23225,"./NtosNewsBrowser.js":23225,"./NtosOvermapNavigation":3839,"./NtosOvermapNavigation.js":3839,"./NtosPowerMonitor":54698,"./NtosPowerMonitor.js":54698,"./NtosRCON":17086,"./NtosRCON.js":17086,"./NtosRevelation":69480,"./NtosRevelation.js":69480,"./NtosShutoffMonitor":93990,"./NtosShutoffMonitor.js":93990,"./NtosStationAlertConsole":76124,"./NtosStationAlertConsole.js":76124,"./NtosSupermatterMonitor":22475,"./NtosSupermatterMonitor.js":22475,"./NtosUAV":66744,"./NtosUAV.js":66744,"./NtosWordProcessor":19458,"./NtosWordProcessor.js":19458,"./OmniFilter":18326,"./OmniFilter.js":18326,"./OmniMixer":78588,"./OmniMixer.js":78588,"./OperatingComputer":48826,"./OperatingComputer.js":48826,"./OvermapDisperser":51888,"./OvermapDisperser.js":51888,"./OvermapEngines":25123,"./OvermapEngines.js":25123,"./OvermapFull":63836,"./OvermapFull.js":63836,"./OvermapHelm":89380,"./OvermapHelm.js":89380,"./OvermapNavigation":12640,"./OvermapNavigation.js":12640,"./OvermapShieldGenerator":84031,"./OvermapShieldGenerator.js":84031,"./OvermapShipSensors":51932,"./OvermapShipSensors.js":51932,"./ParticleAccelerator":57966,"./ParticleAccelerator.js":57966,"./PartsLathe":80374,"./PartsLathe.js":80374,"./PathogenicIsolator":83987,"./PathogenicIsolator.js":83987,"./Pda":72586,"./Pda.js":72586,"./PersonalCrafting":67589,"./PersonalCrafting.js":67589,"./Photocopier":9527,"./Photocopier.js":9527,"./PipeDispenser":92310,"./PipeDispenser.js":92310,"./PlantAnalyzer":38575,"./PlantAnalyzer.js":38575,"./PointDefenseControl":17599,"./PointDefenseControl.js":17599,"./PortableGenerator":46104,"./PortableGenerator.js":46104,"./PortablePump":82564,"./PortablePump.js":82564,"./PortableScrubber":24901,"./PortableScrubber.js":24901,"./PortableTurret":31695,"./PortableTurret.js":31695,"./PowerMonitor":89793,"./PowerMonitor.js":89793,"./PressureRegulator":81121,"./PressureRegulator.js":81121,"./PrisonerManagement":14210,"./PrisonerManagement.js":14210,"./RCON":43996,"./RCON.js":43996,"./RIGSuit":92141,"./RIGSuit.js":92141,"./Radio":17481,"./Radio.js":17481,"./RapidPipeDispenser":29509,"./RapidPipeDispenser.js":29509,"./RequestConsole":53976,"./RequestConsole.js":53976,"./ResearchConsole":48639,"./ResearchConsole.js":48639,"./ResearchServerController":35606,"./ResearchServerController.js":35606,"./ResleevingConsole":86330,"./ResleevingConsole.js":86330,"./ResleevingPod":88359,"./ResleevingPod.js":88359,"./RoboticsControlConsole":24455,"./RoboticsControlConsole.js":24455,"./RogueZones":52330,"./RogueZones.js":52330,"./RustCoreMonitor":59412,"./RustCoreMonitor.js":59412,"./RustFuelControl":59327,"./RustFuelControl.js":59327,"./Secbot":54943,"./Secbot.js":54943,"./SecureSafe":57436,"./SecureSafe.js":57436,"./SecurityRecords":71915,"./SecurityRecords.js":71915,"./SeedStorage":93550,"./SeedStorage.js":93550,"./ShieldCapacitor":16765,"./ShieldCapacitor.js":16765,"./ShieldGenerator":79229,"./ShieldGenerator.js":79229,"./ShutoffMonitor":89957,"./ShutoffMonitor.js":89957,"./ShuttleControl":34404,"./ShuttleControl.js":34404,"./Signaler":32325,"./Signaler.js":32325,"./Sleeper":80646,"./Sleeper.js":80646,"./SmartVend":55896,"./SmartVend.js":55896,"./Smes":20561,"./Smes.js":20561,"./SolarControl":21633,"./SolarControl.js":21633,"./SpaceHeater":57762,"./SpaceHeater.js":57762,"./Stack":58215,"./Stack.js":58215,"./StationAlertConsole":32015,"./StationAlertConsole.js":32015,"./StationBlueprints":52649,"./StationBlueprints.js":52649,"./StockExchange":84178,"./StockExchange.js":84178,"./SuitCycler":72e3,"./SuitCycler.js":72e3,"./SuitStorageUnit":80748,"./SuitStorageUnit.js":80748,"./SupermatterMonitor":6951,"./SupermatterMonitor.js":6951,"./SupplyConsole":12431,"./SupplyConsole.js":12431,"./TEGenerator":30111,"./TEGenerator.js":30111,"./Tank":58457,"./Tank.js":58457,"./TankDispenser":38754,"./TankDispenser.js":38754,"./TelecommsLogBrowser":73754,"./TelecommsLogBrowser.js":73754,"./TelecommsMachineBrowser":29441,"./TelecommsMachineBrowser.js":29441,"./TelecommsMultitoolMenu":86756,"./TelecommsMultitoolMenu.js":86756,"./Teleporter":18509,"./Teleporter.js":18509,"./TelesciConsole":62555,"./TelesciConsole.js":62555,"./TimeClock":55096,"./TimeClock.js":55096,"./TransferValve":24389,"./TransferValve.js":24389,"./TurbineControl":95893,"./TurbineControl.js":95893,"./Turbolift":62542,"./Turbolift.js":62542,"./Uplink":89761,"./Uplink.js":89761,"./Vending":61321,"./Vending.js":61321,"./VolumePanel":93147,"./VolumePanel.js":93147,"./VorePanel":24630,"./VorePanel.js":24630,"./Wires":21162,"./Wires.js":21162,"./XenoarchArtifactAnalyzer":81522,"./XenoarchArtifactAnalyzer.js":81522,"./XenoarchArtifactHarvester":40875,"./XenoarchArtifactHarvester.js":40875,"./XenoarchDepthScanner":88835,"./XenoarchDepthScanner.js":88835,"./XenoarchHandheldPowerUtilizer":5622,"./XenoarchHandheldPowerUtilizer.js":5622,"./XenoarchReplicator":53702,"./XenoarchReplicator.js":53702,"./XenoarchSpectrometer":13153,"./XenoarchSpectrometer.js":13153,"./XenoarchSuspension":19820,"./XenoarchSuspension.js":19820,"./common/AtmosControls":71739,"./common/AtmosControls.js":71739,"./common/BeakerContents":48229,"./common/BeakerContents.js":48229,"./common/ComplexModal":16007,"./common/ComplexModal.js":16007,"./common/FullscreenNotice":67861,"./common/FullscreenNotice.js":67861,"./common/InterfaceLockNoticeBox":21451,"./common/InterfaceLockNoticeBox.js":21451,"./common/LoginInfo":28117,"./common/LoginInfo.js":28117,"./common/LoginScreen":1192,"./common/LoginScreen.js":1192,"./common/Mining":21526,"./common/Mining.js":21526,"./common/Overmap":40754,"./common/Overmap.js":40754,"./common/PortableAtmos":34227,"./common/PortableAtmos.js":34227,"./common/RankIcon":14959,"./common/RankIcon.js":14959,"./common/TemporaryNotice":36355,"./common/TemporaryNotice.js":36355,"./pAIAtmos":28840,"./pAIAtmos.js":28840,"./pAIDirectives":47132,"./pAIDirectives.js":47132,"./pAIDoorjack":52852,"./pAIDoorjack.js":52852,"./pAIInterface":88814,"./pAIInterface.js":88814,"./pAIMedrecords":52510,"./pAIMedrecords.js":52510,"./pAISecrecords":59946,"./pAISecrecords.js":59946,"./pda/pda_atmos_scan":42360,"./pda/pda_atmos_scan.js":42360,"./pda/pda_janitor":84932,"./pda/pda_janitor.js":84932,"./pda/pda_main_menu":6011,"./pda/pda_main_menu.js":6011,"./pda/pda_manifest":93303,"./pda/pda_manifest.js":93303,"./pda/pda_medical":65276,"./pda/pda_medical.js":65276,"./pda/pda_messenger":92494,"./pda/pda_messenger.js":92494,"./pda/pda_news":31505,"./pda/pda_news.js":31505,"./pda/pda_notekeeper":66785,"./pda/pda_notekeeper.js":66785,"./pda/pda_power":63853,"./pda/pda_power.js":63853,"./pda/pda_security":20575,"./pda/pda_security.js":20575,"./pda/pda_signaller":63891,"./pda/pda_signaller.js":63891,"./pda/pda_status_display":14947,"./pda/pda_status_display.js":14947,"./pda/pda_supply":85143,"./pda/pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=8156}},t={};function o(e){var r=t[e];if(r!==undefined)return r.exports;var c=t[e]={exports:{}};return n[e](c,c.exports,o),c.exports}o.m=n,e=[],o.O=function(n,t,r,c){if(!t){var a=Infinity;for(d=0;d=c)&&Object.keys(o.O).every((function(e){return o.O[e](t[l])}))?t.splice(l--,1):(i=!1,c0&&e[d-1][2]>c;d--)e[d]=e[d-1];e[d]=[t,r,c]},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={764:0};o.O.j=function(n){return 0===e[n]};var n=function(n,t){var r,c,a=t[0],i=t[1],l=t[2],d=0;for(r in i)o.o(i,r)&&(o.m[r]=i[r]);for(l&&l(o),n&&n(t);d Date: Mon, 11 Apr 2022 23:13:50 +0200 Subject: [PATCH 03/14] More TGUI (And UI in general) --- code/modules/stockmarket/computer.dm | 95 +++------ maps/virgo_minitest/virgo_minitest-1.dmm | 126 ++++++------ .../packages/tgui/interfaces/StockExchange.js | 183 ++++++++++++------ tgui/public/tgui.bundle.js | 2 +- vorestation.dme | 2 +- 5 files changed, 211 insertions(+), 197 deletions(-) diff --git a/code/modules/stockmarket/computer.dm b/code/modules/stockmarket/computer.dm index 414a64cc91..e33931ec2a 100644 --- a/code/modules/stockmarket/computer.dm +++ b/code/modules/stockmarket/computer.dm @@ -22,7 +22,7 @@ //if(!ai_control && issilicon(user)) // to_chat(user, "Access Denied.") // return TRUE - + tgui_interact(user) /obj/machinery/computer/stockexchange/proc/balance() @@ -37,6 +37,9 @@ add_fingerprint(usr) switch(action) + if ("logout") + logged_in = null + if("stocks_buy") var/datum/stock/S = locate(params["share"]) in GLOB.stockExchange.stocks if (S) @@ -66,7 +69,7 @@ popup.open() if("stocks_archive") - var/datum/stock/S = locate(params["archive"]) + var/datum/stock/S = locate(params["share"]) if (logged_in && logged_in != "") var/list/LR = GLOB.stockExchange.last_read[S] LR[logged_in] = world.time @@ -94,7 +97,7 @@ popup.open() if("stocks_history") - var/datum/stock/S = locate("history") in GLOB.stockExchange.stocks + var/datum/stock/S = locate(params["share"]) in GLOB.stockExchange.stocks if (S) S.displayValues(usr) @@ -132,12 +135,15 @@ value = S.current_value data["stocks"] += list(list( + "REF" = REF(S), + "valueChange" = S.disp_value_change, // > 0 is +, < 0 is -, else its = "bankrupt" = S.bankrupt, "ID" = S.short_name, "Name" = S.name, "Value" = value, "Owned" = mystocks, "Avail" = S.available_shares, + "Products" = S.products, )) var/news = 0 @@ -152,41 +158,27 @@ for (var/datum/stockEvent/E in S.events) if (E.last_change > lrt && !E.hidden) news = 1 - - /* - if(S.disp_value_change > 0) - dat += "+" - else if(S.disp_value_change < 0) - dat += "-" - else - dat += "=" - - - - if(mystocks) - dat += "[]" - else - dat += "0 - */ - - else for (var/datum/stock/S in GLOB.stockExchange.stocks) var/mystocks = 0 if (logged_in && (logged_in in S.shareholders)) mystocks = S.shareholders[logged_in] - //dat += "
[S.name] ([S.short_name])[S.bankrupt ? " BANKRUPT" : null]
" - //if (S.last_unification) - // dat += "Unified shares [DisplayTimeText(world.time - S.last_unification)] ago.
" - //dat += "Current value per share: [S.current_value] | View history

" - //dat += "You currently own [mystocks] shares in this company. There are [S.available_shares] purchasable shares on the market currently.
" - //if (S.bankrupt) - // dat += "You cannot buy or sell shares in a bankrupt company!

" - //else - // dat += "Buy shares | Sell shares

" - //dat += "Prominent products:
" - for (var/prod in S.products) - dat += "[prod]
" + + var/unification = 0 + if (S.last_unification) + unification = DisplayTimeText(world.time - S.last_unification) + + data["stocks"] += list(list( + "REF" = REF(S), + "bankrupt" = S.bankrupt, + "ID" = S.short_name, + "Name" = S.name, + "Owned" = mystocks, + "Avail" = S.available_shares, + "Unification" = unification, + "Products" = S.products, + )) + var/news = 0 if (logged_in) var/list/LR = GLOB.stockExchange.last_read[S] @@ -200,40 +192,6 @@ if (E.last_change > lrt && !E.hidden) news = 1 break - //dat += "View news archives[news ? " (updated)" : null]
" - - /* - - .change { - font-weight: bold; - font-family: monospace; -} -.up { - background: #00a000; -} -.down { - background: #a00000; -} -.stable { - width: 100% - border-collapse: collapse; - border: 1px solid #305260; - border-spacing: 4px 4px; -} -.stable td, .stable th { - border: 1px solid #305260; - padding: 0px 3px; -} -.bankrupt { - border: 1px solid #a00000; - background: #a00000; -} - -a.updated { - color: red; -} - - */ return data @@ -326,8 +284,5 @@ a.updated { if (!usr || (!(usr in range(1, src)) && iscarbon(usr))) usr.machine = src - if (href_list["logout"]) - logged_in = null - src.add_fingerprint(usr) src.updateUsrDialog() \ No newline at end of file diff --git a/maps/virgo_minitest/virgo_minitest-1.dmm b/maps/virgo_minitest/virgo_minitest-1.dmm index fd81e96920..4dbf470b92 100644 --- a/maps/virgo_minitest/virgo_minitest-1.dmm +++ b/maps/virgo_minitest/virgo_minitest-1.dmm @@ -168,8 +168,8 @@ pixel_x = 24 }, /obj/structure/cable{ - icon_state = "0-2"; - d2 = 2 + d2 = 2; + icon_state = "0-2" }, /turf/simulated/floor/tiled, /area/tcommsat/computer) @@ -179,8 +179,8 @@ /area/space) "aA" = ( /obj/machinery/atmospherics/pipe/manifold/visible/cyan{ - icon_state = "map"; - dir = 4 + dir = 4; + icon_state = "map" }, /turf/simulated/floor/plating, /area/engineering/engine_room) @@ -353,8 +353,8 @@ dir = 8 }, /obj/structure/cable{ - icon_state = "0-4"; - d2 = 4 + d2 = 4; + icon_state = "0-4" }, /obj/machinery/atmospherics/pipe/simple/hidden/black{ dir = 6 @@ -368,8 +368,8 @@ dir = 1 }, /obj/structure/cable{ - icon_state = "0-4"; - d2 = 4 + d2 = 4; + icon_state = "0-4" }, /obj/structure/cable{ d2 = 8; @@ -386,8 +386,8 @@ }, /obj/structure/cable, /obj/structure/cable{ - icon_state = "0-4"; - d2 = 4 + d2 = 4; + icon_state = "0-4" }, /obj/structure/cable{ d2 = 8; @@ -405,8 +405,8 @@ dir = 1 }, /obj/structure/cable{ - icon_state = "0-4"; - d2 = 4 + d2 = 4; + icon_state = "0-4" }, /obj/structure/cable{ d2 = 8; @@ -468,8 +468,8 @@ /area/engineering/engine_room) "aY" = ( /obj/machinery/atmospherics/pipe/simple/visible/cyan{ - icon_state = "intact"; - dir = 5 + dir = 5; + icon_state = "intact" }, /obj/structure/cable{ d1 = 1; @@ -495,8 +495,8 @@ dir = 4 }, /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 9 + dir = 9; + icon_state = "camera" }, /turf/simulated/floor/plating, /area/engineering/engine_room) @@ -541,8 +541,8 @@ /area/tcommsat/chamber) "bg" = ( /obj/structure/cable{ - icon_state = "0-4"; - d2 = 4 + d2 = 4; + icon_state = "0-4" }, /obj/machinery/power/apc{ dir = 1; @@ -709,8 +709,8 @@ pixel_y = 0 }, /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 4 + dir = 4; + icon_state = "camera" }, /turf/simulated/floor/plating, /area/engineering/engine_room) @@ -747,8 +747,8 @@ /area/tcommsat/chamber) "bw" = ( /obj/structure/cable{ - icon_state = "0-4"; - d2 = 4 + d2 = 4; + icon_state = "0-4" }, /obj/machinery/power/apc{ dir = 2; @@ -798,8 +798,8 @@ name_tag = "MiniTest" }, /obj/structure/cable{ - icon_state = "0-4"; - d2 = 4 + d2 = 4; + icon_state = "0-4" }, /obj/structure/cable{ d2 = 8; @@ -933,8 +933,8 @@ pixel_y = 0 }, /obj/machinery/light{ - icon_state = "tube1"; - dir = 8 + dir = 8; + icon_state = "tube1" }, /turf/simulated/floor/bluegrid{ name = "Mainframe Base"; @@ -1115,8 +1115,8 @@ pixel_x = -32 }, /obj/structure/cable{ - icon_state = "0-4"; - d2 = 4 + d2 = 4; + icon_state = "0-4" }, /turf/simulated/floor/tiled, /area/hallway/secondary/engineering_hallway) @@ -1227,9 +1227,9 @@ external_pressure_bound = 140; external_pressure_bound_default = 140; icon_state = "map_vent_out"; - use_power = 1; pressure_checks = 0; - pressure_checks_default = 0 + pressure_checks_default = 0; + use_power = 1 }, /turf/simulated/floor/bluegrid{ name = "Mainframe Base"; @@ -1260,10 +1260,10 @@ initialize_directions = 1; internal_pressure_bound = 4000; internal_pressure_bound_default = 4000; - use_power = 1; pressure_checks = 2; pressure_checks_default = 2; - pump_direction = 0 + pump_direction = 0; + use_power = 1 }, /turf/simulated/floor/bluegrid{ name = "Mainframe Base"; @@ -2299,8 +2299,8 @@ icon_state = "0-8" }, /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 10 + dir = 10; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/crew_quarters/bar) @@ -2682,8 +2682,8 @@ pixel_y = 32 }, /obj/structure/cable{ - icon_state = "0-4"; - d2 = 4 + d2 = 4; + icon_state = "0-4" }, /turf/simulated/floor/tiled, /area/crew_quarters/cafeteria) @@ -2874,8 +2874,8 @@ pixel_y = 32 }, /obj/structure/cable{ - icon_state = "0-4"; - d2 = 4 + d2 = 4; + icon_state = "0-4" }, /turf/simulated/floor/tiled, /area/bridge) @@ -3312,17 +3312,21 @@ /obj/structure/shuttle, /turf/simulated/shuttle/wall/voidcraft/green, /area/shuttle/overmapdemo) +"lU" = ( +/obj/machinery/computer/stockexchange, +/turf/simulated/floor/tiled, +/area/bridge) "mj" = ( /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 10 + dir = 10; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/crew_quarters/bar) "nM" = ( /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 9 + dir = 9; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/crew_quarters/cafeteria) @@ -3332,8 +3336,8 @@ /area/bridge) "pG" = ( /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 9 + dir = 9; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/bridge) @@ -3363,8 +3367,8 @@ /area/bridge) "rK" = ( /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 10 + dir = 10; + icon_state = "camera" }, /turf/simulated/floor/bluegrid{ name = "Mainframe Base"; @@ -3399,15 +3403,15 @@ /area/shuttle/overmapdemo) "xM" = ( /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 5 + dir = 5; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/crew_quarters/cafeteria) "xX" = ( /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 4 + dir = 4; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/medical/medbay) @@ -3439,8 +3443,8 @@ icon_state = "1-2" }, /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 9 + dir = 9; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/hallway/primary/fore) @@ -3466,8 +3470,8 @@ /area/shuttle/overmapdemo) "OA" = ( /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 10 + dir = 10; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/medical/medbay) @@ -3487,8 +3491,8 @@ /area/bridge) "Ug" = ( /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 4 + dir = 4; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/medical/medbay2) @@ -3500,8 +3504,8 @@ /area/shuttle/overmapdemo) "Vf" = ( /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 9 + dir = 9; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/crew_quarters/bar) @@ -3521,8 +3525,8 @@ /area/shuttle/overmapdemo) "Yb" = ( /obj/machinery/camera/network/civilian{ - icon_state = "camera"; - dir = 9 + dir = 9; + icon_state = "camera" }, /turf/simulated/floor/tiled, /area/medical/medbay2) @@ -5545,7 +5549,7 @@ fY GC gf gr -gf +lU gf gz gf diff --git a/tgui/packages/tgui/interfaces/StockExchange.js b/tgui/packages/tgui/interfaces/StockExchange.js index d41f772a98..5d283129ca 100644 --- a/tgui/packages/tgui/interfaces/StockExchange.js +++ b/tgui/packages/tgui/interfaces/StockExchange.js @@ -1,5 +1,5 @@ import { useBackend } from "../backend"; -import { Button, Divider, Section, Table } from "../components"; +import { Box, Button, Divider, Section, Table } from "../components"; import { Window } from "../layouts"; export const StockExchange = (props, context) => { @@ -12,8 +12,19 @@ export const StockExchange = (props, context) => { stocks = [], } = data; + let subTemplate = ; + + if (viewMode === "Full") { + subTemplate = ; + } else if (viewMode === "Compressed") { + subTemplate = ; + } + return ( - +
Welcome, {stationName} Cargo Department | @@ -29,70 +40,114 @@ export const StockExchange = (props, context) => { This is a work in progress. Certain features may not be available.
- Actions: + Buy, - Sell, (A)rchives, (H)istory - - - - -   - - - ID - - - Name - - - Value - - - Owned - - - Avail - - - Actions - - - - {stocks.map(stock => ( - - -   - - - {stock.ID} - - - {stock.Name} - - - {stock.Value} - - - {stock.Owned} - - - {stock.Avail} - - -
+ {subTemplate}
); }; + +const StockExchangeFullView = (props, context) => { + const { act, data } = useBackend(context); + + const { + stocks = [], + } = data; + + return ( + + Actions: + Buy, - Sell, (A)rchives, (H)istory + + + + +   + + + ID + + + Name + + + Value + + + Owned + + + Avail + + + Actions + + + + {stocks.map(stock => ( + + +   + + + {stock.ID} + + + {stock.Name} + + + {stock.Value} + + + {stock.Owned} + + + {stock.Avail} + + +
+
+ ); +}; + +const StockExchangeCompactView = (props, context) => { + const { act, data } = useBackend(context); + + const { + stocks = [], + } = data; + + return ( + + {stocks.map(stock => ( + + {stock.name} {stock.ID}{stock.bankrupt === 1 && BANKRUPT }
+ Unified shares {stock.Unification} ago.
+ Current value per share: {stock.Value} |